Class TupleRep.TupleLayout

java.lang.Object
com.streambase.sb.TupleRep.TupleLayout
All Implemented Interfaces:
Schema.TupleClassInfo, Serializable
Enclosing class:
com.streambase.sb.TupleRep

public static class TupleRep.TupleLayout extends Object implements Schema.TupleClassInfo, Serializable
A class that holds information about how the fields in a particular schema are laid out in memory by TupleRep.

TODO: Consider reducing complexity by having the varData structure be the length of the fields in the tuple.

See Also:
  • Constructor Details

    • TupleLayout

      TupleLayout(Schema schema)
      Constructor
      Parameters:
      schema - tuple schema
  • Method Details

    • getNumVarDataFields

      public int getNumVarDataFields()
      Get number of variable data fields
      Returns:
      number of fields
    • getFixedDataBufferLength

      public int getFixedDataBufferLength()
      Get length of fixed data buffer
      Returns:
      length
    • getVarDataIndex

      public int getVarDataIndex(Schema.Field field)
      Get variable field index
      Parameters:
      field - field
      Returns:
      index
    • getFixedDataOffset

      public int getFixedDataOffset(Schema.Field field)
      Get fixed data field offset
      Parameters:
      field - field
      Returns:
      offset
    • getVarDataType

      public DataType getVarDataType(int i)
      Get variable data type at index
      Parameters:
      i - index
      Returns:
      data type
    • getField

      public Schema.Field getField(int i)
      Get field at index
      Parameters:
      i - field index
      Returns:
      field at index