Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
RowFormat (String fieldDelimiter, String lineDelimiter, String escapeChar) | |
String | getFieldDelimiter () |
String | getLineDelimiter () |
String | getEscapeChar () |
boolean | isDefault () |
TTableRowFormat | toThrift () |
Static Public Member Functions | |
static RowFormat | fromThrift (TTableRowFormat tableRowFormat) |
static RowFormat | fromStorageDescriptor (StorageDescriptor sd) |
Static Public Attributes | |
static final RowFormat | DEFAULT_ROW_FORMAT = new RowFormat(null, null, null) |
Private Member Functions | |
RowFormat (String fieldDelimiter, String lineDelimiter, String escapeChar, boolean unescape) | |
Static Private Member Functions | |
static String | getUnescapedValueOrNull (String value) |
Private Attributes | |
final String | fieldDelimiter_ |
final String | lineDelimiter_ |
final String | escapeChar_ |
Defines the physical (on-disk) format for a table's data. This is used when creating a new table to specify how to interpret the fields (columns) and lines (rows) in a a data file.
Definition at line 30 of file RowFormat.java.
|
inlineprivate |
Definition at line 38 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.escapeChar_, com.cloudera.impala.catalog.RowFormat.fieldDelimiter_, com.cloudera.impala.catalog.RowFormat.getUnescapedValueOrNull(), and com.cloudera.impala.catalog.RowFormat.lineDelimiter_.
Referenced by com.cloudera.impala.catalog.RowFormat.fromStorageDescriptor(), and com.cloudera.impala.catalog.RowFormat.fromThrift().
|
inline |
Creates a new instance of the RowFormat class, unescaping the values of field delimiter, line delimiter, and escape char.
Definition at line 55 of file RowFormat.java.
|
inlinestatic |
Returns the RowFormat for the storage descriptor.
Definition at line 100 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.RowFormat().
|
inlinestatic |
Definition at line 87 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.DEFAULT_ROW_FORMAT, and com.cloudera.impala.catalog.RowFormat.RowFormat().
Referenced by com.cloudera.impala.service.CatalogOpExecutor.createMetaStoreTable().
|
inline |
Definition at line 67 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.escapeChar_.
Referenced by com.cloudera.impala.analysis.CreateTableStmt.analyze(), com.cloudera.impala.catalog.HiveStorageDescriptorFactory.createSd(), com.cloudera.impala.analysis.ToSqlUtils.getCreateTableSql(), and com.cloudera.impala.catalog.RowFormat.toThrift().
|
inline |
Definition at line 59 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.fieldDelimiter_.
Referenced by com.cloudera.impala.analysis.CreateTableStmt.analyze(), com.cloudera.impala.catalog.HiveStorageDescriptorFactory.createSd(), com.cloudera.impala.analysis.ToSqlUtils.getCreateTableSql(), and com.cloudera.impala.catalog.RowFormat.toThrift().
|
inline |
Definition at line 63 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.lineDelimiter_.
Referenced by com.cloudera.impala.analysis.CreateTableStmt.analyze(), com.cloudera.impala.catalog.HiveStorageDescriptorFactory.createSd(), com.cloudera.impala.analysis.ToSqlUtils.getCreateTableSql(), and com.cloudera.impala.catalog.RowFormat.toThrift().
|
inlinestaticprivate |
Definition at line 75 of file RowFormat.java.
Referenced by com.cloudera.impala.catalog.RowFormat.RowFormat().
|
inline |
Definition at line 71 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.escapeChar_, com.cloudera.impala.catalog.RowFormat.fieldDelimiter_, and com.cloudera.impala.catalog.RowFormat.lineDelimiter_.
Referenced by com.cloudera.impala.analysis.ToSqlUtils.getCreateTableSql().
|
inline |
Definition at line 79 of file RowFormat.java.
References com.cloudera.impala.catalog.RowFormat.getEscapeChar(), com.cloudera.impala.catalog.RowFormat.getFieldDelimiter(), and com.cloudera.impala.catalog.RowFormat.getLineDelimiter().
|
static |
Definition at line 32 of file RowFormat.java.
Referenced by com.cloudera.impala.analysis.CreateTableDataSrcStmt.CreateTableDataSrcStmt(), com.cloudera.impala.catalog.RowFormat.fromThrift(), com.cloudera.impala.service.CatalogOpExecutor.setStorageDescriptorFileFormat(), and com.cloudera.impala.catalog.HdfsStorageDescriptorTest.testDelimiters().
|
private |
Definition at line 36 of file RowFormat.java.
Referenced by com.cloudera.impala.catalog.RowFormat.getEscapeChar(), com.cloudera.impala.catalog.RowFormat.isDefault(), and com.cloudera.impala.catalog.RowFormat.RowFormat().
|
private |
Definition at line 34 of file RowFormat.java.
Referenced by com.cloudera.impala.catalog.RowFormat.getFieldDelimiter(), com.cloudera.impala.catalog.RowFormat.isDefault(), and com.cloudera.impala.catalog.RowFormat.RowFormat().
|
private |
Definition at line 35 of file RowFormat.java.
Referenced by com.cloudera.impala.catalog.RowFormat.getLineDelimiter(), com.cloudera.impala.catalog.RowFormat.isDefault(), and com.cloudera.impala.catalog.RowFormat.RowFormat().