Class ReadSupport.ReadContext

  • Enclosing class:
    ReadSupport<T>

    public static final class ReadSupport.ReadContext
    extends Object
    information to read the file
    • Constructor Detail

      • ReadContext

        public ReadContext​(MessageType requestedSchema)
        Parameters:
        requestedSchema - the schema requested by the user. Can not be null.
      • ReadContext

        public ReadContext​(MessageType requestedSchema,
                           Map<String,​String> readSupportMetadata)
        Parameters:
        requestedSchema - the schema requested by the user. Can not be null.
        readSupportMetadata - metadata specific to the ReadSupport implementation. Will be available in the prepareForRead phase.
    • Method Detail

      • getRequestedSchema

        public MessageType getRequestedSchema()
        Returns:
        the schema of the file
      • getReadSupportMetadata

        public Map<String,​String> getReadSupportMetadata()
        Returns:
        metadata specific to the ReadSupport implementation