Class ColumnIOFactory


  • public class ColumnIOFactory
    extends Object
    Factory constructing the ColumnIO structure from the schema
    • 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 readers
        validating - to turn validation on
    • Method Detail

      • getColumnIO

        public MessageColumnIO getColumnIO​(MessageType requestedSchema,
                                           MessageType fileSchema)
        Parameters:
        requestedSchema - the requestedSchema we want to read/write
        fileSchema - 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/write
        fileSchema - 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