Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.catalog.RowFormat Class Reference
Collaboration diagram for com.cloudera.impala.catalog.RowFormat:

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

com.cloudera.impala.catalog.RowFormat.RowFormat ( String  fieldDelimiter,
String  lineDelimiter,
String  escapeChar,
boolean  unescape 
)
inlineprivate
com.cloudera.impala.catalog.RowFormat.RowFormat ( String  fieldDelimiter,
String  lineDelimiter,
String  escapeChar 
)
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.

Member Function Documentation

static RowFormat com.cloudera.impala.catalog.RowFormat.fromStorageDescriptor ( StorageDescriptor  sd)
inlinestatic

Returns the RowFormat for the storage descriptor.

Definition at line 100 of file RowFormat.java.

References com.cloudera.impala.catalog.RowFormat.RowFormat().

static RowFormat com.cloudera.impala.catalog.RowFormat.fromThrift ( TTableRowFormat  tableRowFormat)
inlinestatic
static String com.cloudera.impala.catalog.RowFormat.getUnescapedValueOrNull ( String  value)
inlinestaticprivate

Definition at line 75 of file RowFormat.java.

Referenced by com.cloudera.impala.catalog.RowFormat.RowFormat().

TTableRowFormat com.cloudera.impala.catalog.RowFormat.toThrift ( )
inline

Member Data Documentation

final String com.cloudera.impala.catalog.RowFormat.escapeChar_
private
final String com.cloudera.impala.catalog.RowFormat.fieldDelimiter_
private
final String com.cloudera.impala.catalog.RowFormat.lineDelimiter_
private

The documentation for this class was generated from the following file: