Package com.streambase.sb
Class TupleRep.TupleLayout
java.lang.Object
com.streambase.sb.TupleRep.TupleLayout
- All Implemented Interfaces:
Serializable
- Enclosing class:
com.streambase.sb.TupleRep
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:
-
Method Summary
Modifier and TypeMethodDescriptiongetField(int i) Get field at indexintGet length of fixed data bufferintgetFixedDataOffset(Schema.Field field) Get fixed data field offsetintGet number of variable data fieldsintgetVarDataIndex(Schema.Field field) Get variable field indexgetVarDataType(int i) Get variable data type at index
-
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
Get variable field index- Parameters:
field- field- Returns:
- index
-
getFixedDataOffset
Get fixed data field offset- Parameters:
field- field- Returns:
- offset
-
getVarDataType
Get variable data type at index- Parameters:
i- index- Returns:
- data type
-
getField
Get field at index- Parameters:
i- field index- Returns:
- field at index
-