Class SchemaExprParser
java.lang.Object
org.apache.drill.exec.record.metadata.schema.parser.SchemaExprParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnMetadata
parseColumn
(String column) Parses string definition of the column and converts it intoColumnMetadata
instance.static ColumnMetadata
parseColumn
(String name, String type, TypeProtos.DataMode mode) Parses given column name, type and mode intoColumnMetadata
instance.static TupleMetadata
parseSchema
(String schema) Parses string definition of the schema and converts it intoTupleMetadata
instance.
-
Constructor Details
-
SchemaExprParser
public SchemaExprParser()
-
-
Method Details
-
parseSchema
Parses string definition of the schema and converts it intoTupleMetadata
instance.- 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 intoColumnMetadata
instance.- 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 intoColumnMetadata
instance.- Parameters:
column
- column definition- Returns:
- metadata description of the column
- Throws:
IOException
- when unable to parse the column
-