Package com.streambase.sb
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getFieldLength
(Tuple tuple, Schema.Field field) Get field length(package private) int
getValueLength
(CompleteDataType completeType, Object value) Get value length(package private) abstract void
serializeField
(com.streambase.sb.TupleRep tuple, Schema.Field field, com.streambase.sb.util.ByteOrderedDataOutput out) Serialize field(package private) abstract void
serializeValue
(CompleteDataType valueType, Object value, com.streambase.sb.util.ByteOrderedDataOutput out) Serialize value
-
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
- Tuplefield
- Field to serializeout
- 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 typevalue
- Valueout
- Output- Throws:
TupleException
- Serialization error
-
getFieldLength
public int getFieldLength(Tuple tuple, Schema.Field field) throws NullValueException, TupleException Get field length- Parameters:
tuple
- Tuplefield
- Field- Returns:
- Field length
- Throws:
NullValueException
- Null value errorTupleException
- Tuple error
-
getValueLength
Get value length- Parameters:
completeType
- Value typevalue
- Value- Returns:
- Value length
-