Class BufferLayout

java.lang.Object
org.apache.arrow.vector.BufferLayout

public class BufferLayout extends Object
Metadata class that captures the "type" of an Arrow buffer. (e.g. data buffers, offset buffers for variable width types and validity buffers).
  • Method Details

    • typeBuffer

      public static BufferLayout typeBuffer()
    • offsetBuffer

      public static BufferLayout offsetBuffer()
    • largeOffsetBuffer

      public static BufferLayout largeOffsetBuffer()
    • sizeBuffer

      public static BufferLayout sizeBuffer()
    • dataBuffer

      public static BufferLayout dataBuffer(int typeBitWidth)
      Returns a databuffer for the given bitwidth. Only supports powers of two between 8 and 128 inclusive.
    • booleanVector

      public static BufferLayout booleanVector()
    • validityVector

      public static BufferLayout validityVector()
    • byteVector

      public static BufferLayout byteVector()
    • viewVector

      public static BufferLayout viewVector()
    • getTypeBitWidth

      public int getTypeBitWidth()
    • getType

      public BufferLayout.BufferType getType()
    • 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