public abstract class OperatorCodec extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static OperatorCodec |
CONSTANT_ALL |
protected static OperatorCodec |
COPY_ALL |
protected static OperatorCodec |
DEFAULT_ALL |
protected static OperatorCodec |
DELTA_DECIMAL |
protected static OperatorCodec |
DELTA_INTEGER |
protected static OperatorCodec |
DELTA_STRING |
protected static OperatorCodec |
INCREMENT_INTEGER |
protected static OperatorCodec |
NONE_ALL |
protected static OperatorCodec |
TAIL |
| Modifier | Constructor and Description |
|---|---|
protected |
OperatorCodec(Operator operator,
Type[] types) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(ScalarValue value,
Scalar field) |
abstract ScalarValue |
decodeEmptyValue(ScalarValue previousValue,
Scalar field) |
abstract ScalarValue |
decodeValue(ScalarValue newValue,
ScalarValue priorValue,
Scalar field) |
boolean |
equals(Object obj) |
static OperatorCodec |
getCodec(Operator operator,
Type type)
Find the operator by the key
|
Operator |
getOperator() |
abstract ScalarValue |
getValueToEncode(ScalarValue value,
ScalarValue priorValue,
Scalar field) |
ScalarValue |
getValueToEncode(ScalarValue value,
ScalarValue priorValue,
Scalar scalar,
BitVectorBuilder presenceMapBuilder) |
boolean |
isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue) |
boolean |
shouldDecodeType() |
String |
toString() |
boolean |
usesPresenceMapBit(boolean optional)
Use this to show that there is a MapBit present
|
protected static final OperatorCodec NONE_ALL
protected static final OperatorCodec CONSTANT_ALL
protected static final OperatorCodec DEFAULT_ALL
protected static final OperatorCodec COPY_ALL
protected static final OperatorCodec INCREMENT_INTEGER
protected static final OperatorCodec DELTA_INTEGER
protected static final OperatorCodec DELTA_STRING
protected static final OperatorCodec DELTA_DECIMAL
protected static final OperatorCodec TAIL
public static OperatorCodec getCodec(Operator operator, Type type)
operator - the fast operatortype - The type of the operator, stored to the keypublic abstract ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, Scalar field)
public abstract ScalarValue decodeValue(ScalarValue newValue, ScalarValue priorValue, Scalar field)
public boolean isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
encoding - The byte array that is being encodedfieldValue - The fieldValue object to checkpublic abstract ScalarValue decodeEmptyValue(ScalarValue previousValue, Scalar field)
public boolean usesPresenceMapBit(boolean optional)
optional - The Optional booleanpublic ScalarValue getValueToEncode(ScalarValue value, ScalarValue priorValue, Scalar scalar, BitVectorBuilder presenceMapBuilder)
value - priorValue - scalar - presenceMapBuilder - public Operator getOperator()
public boolean canEncode(ScalarValue value, Scalar field)
public boolean shouldDecodeType()
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.