Class Field


public class Field extends Object
A POJO abstraction for the Flatbuffer description of Vector Type.
  • Constructor Details

    • Field

      public Field(String name, FieldType fieldType, List<Field> children)
      Constructs a new Field object.
      name - name of the field
      fieldType - type of the field
      children - child fields, if any
  • Method Details

    • nullablePrimitive

      public static Field nullablePrimitive(String name, ArrowType.PrimitiveType type)
    • nullable

      public static Field nullable(String name, ArrowType type)
    • notNullable

      public static Field notNullable(String name, ArrowType type)
    • createVector

      public FieldVector createVector(BufferAllocator allocator)
      Construct a new vector of this type using the given allocator.
    • convertField

      public static Field convertField(Field field)
      Constructs a new instance from a flatbuffer representation of the field.
    • getField

      public int getField( builder)
      Puts this object into builder and returns the length of the serialized flatbuffer.
    • getName

      public String getName()
    • isNullable

      public boolean isNullable()
    • getType

      public ArrowType getType()
    • getFieldType

      public FieldType getFieldType()
    • getDictionary

      public DictionaryEncoding getDictionary()
    • getChildren

      public List<Field> getChildren()
    • getMetadata

      public Map<String,String> getMetadata()
    • hashCode

      public int hashCode()
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      equals in class Object
    • toString

      public String toString()
      toString in class Object