public class CopyOperatorCodec extends OptionallyPresentOperatorCodec
CONSTANT_ALL, COPY_ALL, DEFAULT_ALL, DELTA_DECIMAL, DELTA_INTEGER, DELTA_STRING, INCREMENT_INTEGER, NONE_ALL, TAIL
Modifier | Constructor and Description |
---|---|
protected |
CopyOperatorCodec() |
Modifier and Type | Method and Description |
---|---|
ScalarValue |
decodeValue(ScalarValue newValue,
ScalarValue priorValue,
Scalar field) |
boolean |
equals(Object obj) |
protected ScalarValue |
getEmptyValue(ScalarValue priorValue) |
protected ScalarValue |
getInitialValue(Scalar field)
Get the initial value of the passed Scalar object as long as the object
is defined
|
protected ScalarValue |
getValueToEncode(ScalarValue value,
ScalarValue priorValue,
ScalarValue defaultValue)
Determine which values to encode from the passed ScalarValue objects
|
decodeEmptyValue, getValueToEncode
canEncode, getCodec, getOperator, getValueToEncode, isPresenceMapBitSet, shouldDecodeType, toString, usesPresenceMapBit
protected ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, ScalarValue defaultValue)
getValueToEncode
in class OptionallyPresentOperatorCodec
value
- The ScalarValue object to be encodedpriorValue
- The priorValue object to be encodeddefaultValue
- The defaultValue object to be encodedprotected ScalarValue getInitialValue(Scalar field)
getInitialValue
in class OptionallyPresentOperatorCodec
field
- The Scalar object that the initial value is trying to returnprotected ScalarValue getEmptyValue(ScalarValue priorValue)
getEmptyValue
in class OptionallyPresentOperatorCodec
public ScalarValue decodeValue(ScalarValue newValue, ScalarValue priorValue, Scalar field)
decodeValue
in class OperatorCodec
public boolean equals(Object obj)
equals
in class OperatorCodec
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.