Class SchemaAware

  • Direct Known Subclasses:
    Block

    public abstract class SchemaAware
    extends Object
    Defines a component that is aware of Apache Arrow Schema.
    • Constructor Detail

      • SchemaAware

        public SchemaAware()
    • Method Detail

      • internalGetSchema

        protected abstract org.apache.arrow.vector.types.pojo.Schema internalGetSchema()
        Provides access to the Schema object.
        Returns:
        The Schema currently being used by this object.
      • getFields

        public List<org.apache.arrow.vector.types.pojo.Field> getFields()
        Provides access to the Fields on the Schema currently being used by this Object.
        Returns:
        The list of fields.
      • getMetaData

        public String getMetaData​(String key)
        Provides access to metadata stored on the Schema currently being used by this Object.
        Parameters:
        key - The metadata key to lookup.
        Returns:
        The value associated with that key in the Schema's metadata, null if no such key exists.
      • getMetaData

        public Map<String,​String> getMetaData()
        Provides access to all avaialable metadata on the Schema.
        Returns:
        All metadata key-value pairs as a map.