Class SchemaExprParser
java.lang.Object
org.apache.drill.exec.record.metadata.schema.parser.SchemaExprParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnMetadataparseColumn(String column) Parses string definition of the column and converts it intoColumnMetadatainstance.static ColumnMetadataparseColumn(String name, String type, TypeProtos.DataMode mode) Parses given column name, type and mode intoColumnMetadatainstance.static TupleMetadataparseSchema(String schema) Parses string definition of the schema and converts it intoTupleMetadatainstance.
-
Constructor Details
-
SchemaExprParser
public SchemaExprParser()
-
-
Method Details
-
parseSchema
Parses string definition of the schema and converts it intoTupleMetadatainstance.- Parameters:
schema- schema definition- Returns:
- metadata description of the schema
- Throws:
IOException- when unable to parse the schema
-
parseColumn
public static ColumnMetadata parseColumn(String name, String type, TypeProtos.DataMode mode) throws IOException Parses given column name, type and mode intoColumnMetadatainstance.- Parameters:
name- column nametype- column typemode- column mode- Returns:
- column metadata
- Throws:
IOException- when unable to parse the column
-
parseColumn
Parses string definition of the column and converts it intoColumnMetadatainstance.- Parameters:
column- column definition- Returns:
- metadata description of the column
- Throws:
IOException- when unable to parse the column
-