Class TupleUtil.RepMethods

java.lang.Object
com.streambase.sb.TupleUtil.RepMethods
All Implemented Interfaces:
com.streambase.sb.DataType.Registry.Functor
Enclosing class:
com.streambase.sb.TupleUtil

public abstract static class TupleUtil.RepMethods extends Object implements com.streambase.sb.DataType.Registry.Functor
DataType.Registry machinery for Tuple.serialize(), .getTupleLength()
  • Constructor Details

    • RepMethods

      public RepMethods()
  • Method Details

    • serializeField

      abstract void serializeField(com.streambase.sb.TupleRep tuple, Schema.Field field, com.streambase.sb.util.ByteOrderedDataOutput out) throws TupleException
      Serialize field
      Parameters:
      tuple - Tuple
      field - Field to serialize
      out - Output
      Throws:
      TupleException - Serialization error
    • serializeValue

      abstract void serializeValue(CompleteDataType valueType, Object value, com.streambase.sb.util.ByteOrderedDataOutput out) throws TupleException
      Serialize value
      Parameters:
      valueType - Value type
      value - Value
      out - Output
      Throws:
      TupleException - Serialization error
    • getFieldLength

      public int getFieldLength(Tuple tuple, Schema.Field field) throws NullValueException, TupleException
      Get field length
      Parameters:
      tuple - Tuple
      field - Field
      Returns:
      Field length
      Throws:
      NullValueException - Null value error
      TupleException - Tuple error
    • getValueLength

      int getValueLength(CompleteDataType completeType, Object value)
      Get value length
      Parameters:
      completeType - Value type
      value - Value
      Returns:
      Value length