public abstract class OptionallyPresentOperatorCodec extends OperatorCodec
CONSTANT_ALL, COPY_ALL, DEFAULT_ALL, DELTA_DECIMAL, DELTA_INTEGER, DELTA_STRING, INCREMENT_INTEGER, NONE_ALL, TAIL
Modifier | Constructor and Description |
---|---|
protected |
OptionallyPresentOperatorCodec(Operator operator,
Type[] types) |
Modifier and Type | Method and Description |
---|---|
ScalarValue |
decodeEmptyValue(ScalarValue priorValue,
Scalar field) |
protected abstract ScalarValue |
getEmptyValue(ScalarValue priorValue) |
protected abstract ScalarValue |
getInitialValue(Scalar field) |
ScalarValue |
getValueToEncode(ScalarValue value,
ScalarValue priorValue,
Scalar field) |
protected abstract ScalarValue |
getValueToEncode(ScalarValue value,
ScalarValue priorValue,
ScalarValue defaultValue) |
canEncode, decodeValue, equals, getCodec, getOperator, getValueToEncode, isPresenceMapBitSet, shouldDecodeType, toString, usesPresenceMapBit
public ScalarValue decodeEmptyValue(ScalarValue priorValue, Scalar field)
decodeEmptyValue
in class OperatorCodec
priorValue
- field
- public ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, Scalar field)
getValueToEncode
in class OperatorCodec
value
- priorValue
- field
- protected abstract ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, ScalarValue defaultValue)
protected abstract ScalarValue getInitialValue(Scalar field)
protected abstract ScalarValue getEmptyValue(ScalarValue priorValue)
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.