Class OpaqueVector

All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<ValueVector>, FieldVector, ValueIterableVector<Object>, ValueVector

public class OpaqueVector extends ExtensionTypeVector<FieldVector> implements ValueIterableVector<Object>
Opaque is a wrapper for (usually binary) data from an external (often non-Arrow) system that could not be interpreted.
  • Constructor Details

  • Method Details

    • getField

      public Field getField()
      Description copied from interface: ValueVector
      Get information about how this field is materialized.
      Specified by:
      getField in interface ValueVector
      Overrides:
      getField in class ExtensionTypeVector<FieldVector>
      Returns:
      the field corresponding to this vector
    • getObject

      public Object getObject(int index)
      Description copied from class: ExtensionTypeVector
      Get the extension object at the specified index.

      Generally, this should access the underlying vector and construct the corresponding Java object from the raw data.

      Specified by:
      getObject in interface ValueVector
      Specified by:
      getObject in class ExtensionTypeVector<FieldVector>
      Parameters:
      index - index of object to get
      Returns:
      friendly type object, null if value is unset
    • hashCode

      public int hashCode(int index)
      Description copied from interface: ValueVector
      Returns hashCode of element in index with the default hasher.
      Specified by:
      hashCode in interface ValueVector
    • hashCode

      public int hashCode(int index, ArrowBufHasher hasher)
      Description copied from interface: ValueVector
      Returns hashCode of element in index with the given hasher.
      Specified by:
      hashCode in interface ValueVector