Interface ImportContext.SqlCsvImportOptionsOrBuilder (0.1.0)

public static interface ImportContext.SqlCsvImportOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getColumns(int index)

public abstract String getColumns(int index)

The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The columns at the given index.

getColumnsBytes(int index)

public abstract ByteString getColumnsBytes(int index)

The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the columns at the given index.

getColumnsCount()

public abstract int getColumnsCount()

The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2;

Returns
Type Description
int

The count of columns.

getColumnsList()

public abstract List<String> getColumnsList()

The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2;

Returns
Type Description
List<String>

A list containing the columns.

getEscapeCharacter()

public abstract String getEscapeCharacter()

Specifies the character that should appear before a data character that needs to be escaped.

string escape_character = 4;

Returns
Type Description
String

The escapeCharacter.

getEscapeCharacterBytes()

public abstract ByteString getEscapeCharacterBytes()

Specifies the character that should appear before a data character that needs to be escaped.

string escape_character = 4;

Returns
Type Description
ByteString

The bytes for escapeCharacter.

getFieldsTerminatedBy()

public abstract String getFieldsTerminatedBy()

Specifies the character that separates columns within each row (line) of the file.

string fields_terminated_by = 6;

Returns
Type Description
String

The fieldsTerminatedBy.

getFieldsTerminatedByBytes()

public abstract ByteString getFieldsTerminatedByBytes()

Specifies the character that separates columns within each row (line) of the file.

string fields_terminated_by = 6;

Returns
Type Description
ByteString

The bytes for fieldsTerminatedBy.

getLinesTerminatedBy()

public abstract String getLinesTerminatedBy()

This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.

string lines_terminated_by = 8;

Returns
Type Description
String

The linesTerminatedBy.

getLinesTerminatedByBytes()

public abstract ByteString getLinesTerminatedByBytes()

This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.

string lines_terminated_by = 8;

Returns
Type Description
ByteString

The bytes for linesTerminatedBy.

getQuoteCharacter()

public abstract String getQuoteCharacter()

Specifies the quoting character to be used when a data value is quoted.

string quote_character = 5;

Returns
Type Description
String

The quoteCharacter.

getQuoteCharacterBytes()

public abstract ByteString getQuoteCharacterBytes()

Specifies the quoting character to be used when a data value is quoted.

string quote_character = 5;

Returns
Type Description
ByteString

The bytes for quoteCharacter.

getTable()

public abstract String getTable()

The table to which CSV data is imported.

string table = 1;

Returns
Type Description
String

The table.

getTableBytes()

public abstract ByteString getTableBytes()

The table to which CSV data is imported.

string table = 1;

Returns
Type Description
ByteString

The bytes for table.