Class ArrowType.ExtensionType

Direct Known Subclasses:
OpaqueType
Enclosing class:
ArrowType

public abstract static class ArrowType.ExtensionType extends ArrowType.ComplexType
A user-defined data type that wraps an underlying storage type.
  • Field Details

    • EXTENSION_METADATA_KEY_NAME

      public static final String EXTENSION_METADATA_KEY_NAME
      The field metadata key storing the name of the extension type.
      See Also:
    • EXTENSION_METADATA_KEY_METADATA

      public static final String EXTENSION_METADATA_KEY_METADATA
      The field metadata key storing metadata for the extension type.
      See Also:
  • Constructor Details

    • ExtensionType

      public ExtensionType()
  • Method Details

    • storageType

      public abstract ArrowType storageType()
      The on-wire type for this user-defined type.
    • extensionName

      public abstract String extensionName()
      The name of this user-defined type. Used to identify the type during serialization.
    • extensionEquals

      public abstract boolean extensionEquals(ArrowType.ExtensionType other)
      Check equality of this type to another user-defined type.
    • serialize

      public abstract String serialize()
      Save any metadata for this type.
    • deserialize

      public abstract ArrowType deserialize(ArrowType storageType, String serializedData)
      Given saved metadata and the underlying storage type, construct a new instance of the user type.
    • getNewVector

      public abstract FieldVector getNewVector(String name, FieldType fieldType, BufferAllocator allocator)
      Construct a vector for the user type.
    • getTypeID

      public ArrowType.ArrowTypeID getTypeID()
      Specified by:
      getTypeID in class ArrowType
    • getType

      public int getType(com.google.flatbuffers.FlatBufferBuilder builder)
      Specified by:
      getType in class ArrowType
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • accept

      public <T> T accept(ArrowType.ArrowTypeVisitor<T> visitor)
      Specified by:
      accept in class ArrowType