Package org.apache.parquet.io
Class ColumnIOFactory
- java.lang.Object
-
- org.apache.parquet.io.ColumnIOFactory
-
public class ColumnIOFactory extends Object
Factory constructing the ColumnIO structure from the schema
-
-
Constructor Summary
Constructors Constructor Description ColumnIOFactory()validation is off by defaultColumnIOFactory(boolean validating)ColumnIOFactory(String createdBy)validation is off by defaultColumnIOFactory(String createdBy, boolean validating)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageColumnIOgetColumnIO(MessageType schema)MessageColumnIOgetColumnIO(MessageType requestedSchema, MessageType fileSchema)MessageColumnIOgetColumnIO(MessageType requestedSchema, MessageType fileSchema, boolean strict)
-
-
-
Constructor Detail
-
ColumnIOFactory
public ColumnIOFactory()
validation is off by default
-
ColumnIOFactory
public ColumnIOFactory(String createdBy)
validation is off by default- Parameters:
createdBy- createdBy string for readers
-
ColumnIOFactory
public ColumnIOFactory(boolean validating)
- Parameters:
validating- to turn validation on
-
ColumnIOFactory
public ColumnIOFactory(String createdBy, boolean validating)
- Parameters:
createdBy- createdBy string for readersvalidating- to turn validation on
-
-
Method Detail
-
getColumnIO
public MessageColumnIO getColumnIO(MessageType requestedSchema, MessageType fileSchema)
- 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
public MessageColumnIO getColumnIO(MessageType schema)
- Parameters:
schema- the schema we want to read/write- Returns:
- the corresponding serializing/deserializing structure
-
-