Package org.apache.parquet.io
Class ColumnIOFactory
java.lang.Object
org.apache.parquet.io.ColumnIOFactory
Factory constructing the ColumnIO structure from the schema
-
Constructor Summary
ConstructorsConstructorDescriptionvalidation is off by defaultColumnIOFactory(boolean validating) ColumnIOFactory(String createdBy) validation is off by defaultColumnIOFactory(String createdBy, boolean validating) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnIO(MessageType schema) getColumnIO(MessageType requestedSchema, MessageType fileSchema) getColumnIO(MessageType requestedSchema, MessageType fileSchema, boolean strict)
-
Constructor Details
-
ColumnIOFactory
public ColumnIOFactory()validation is off by default -
ColumnIOFactory
validation is off by default- Parameters:
createdBy- createdBy string for readers
-
ColumnIOFactory
public ColumnIOFactory(boolean validating) - Parameters:
validating- to turn validation on
-
ColumnIOFactory
- Parameters:
createdBy- createdBy string for readersvalidating- to turn validation on
-
-
Method Details
-
getColumnIO
- Parameters:
requestedSchema- the requestedSchema we want to read/writefileSchema- the file schema (when reading it can be different from the requested schema)- Returns:
- the corresponding serializing/deserializing structure
-
getColumnIO
public MessageColumnIO getColumnIO(MessageType requestedSchema, MessageType fileSchema, boolean strict) - Parameters:
requestedSchema- the requestedSchema we want to read/writefileSchema- the file schema (when reading it can be different from the requested schema)strict- should file type and requested primitive types match- Returns:
- the corresponding serializing/deserializing structure
-
getColumnIO
- Parameters:
schema- the schema we want to read/write- Returns:
- the corresponding serializing/deserializing structure
-