Package org.apache.calcite.adapter.csv
Class CsvSchemaFactory
- java.lang.Object
-
- org.apache.calcite.adapter.csv.CsvSchemaFactory
-
- All Implemented Interfaces:
SchemaFactory
public class CsvSchemaFactory extends java.lang.Object implements SchemaFactory
Factory that creates aCsvSchema
.Allows a custom schema to be included in a
model.json
file.
-
-
Field Summary
Fields Modifier and Type Field Description static CsvSchemaFactory
INSTANCE
Public singleton, per factory contract.(package private) static java.lang.String
ROWTIME_COLUMN_NAME
Name of the column that is implicitly created in a CSV stream table to hold the data arrival time.
-
Constructor Summary
Constructors Modifier Constructor Description private
CsvSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Creates a Schema.
-
-
-
Field Detail
-
ROWTIME_COLUMN_NAME
static final java.lang.String ROWTIME_COLUMN_NAME
Name of the column that is implicitly created in a CSV stream table to hold the data arrival time.- See Also:
- Constant Field Values
-
INSTANCE
public static final CsvSchemaFactory INSTANCE
Public singleton, per factory contract.
-
-
Method Detail
-
create
public Schema create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Description copied from interface:SchemaFactory
Creates a Schema.- Specified by:
create
in interfaceSchemaFactory
- Parameters:
parentSchema
- Parent schemaname
- Name of this schemaoperand
- The "operand" JSON property- Returns:
- Created schema
-
-