Modifier and Type | Method and Description |
---|---|
ITypeValue |
decode(AbstractType abstractType,
Context context,
BinaryMessage message)
Decode binary message to type value.
|
ITypeValue |
decodeValue(Context context,
Type type,
ITypeValue decodeValue)
Decode value.
|
byte[] |
encode(AbstractType abstractType,
Context context,
ITypeValue fieldValue,
EncodePresenceMapBuilder presenceMapBuilder)
Encode type value to bytes.
|
ITypeValue |
encodeValue(Context context,
Type type,
ITypeValue encodeValue) |
ITypeValue |
getDefaultValue(Context context,
Type type)
Get default value for type.
|
OperatorType |
getOperatorType() |
ITypeValue |
getPresenceEncodingValue(Type type,
ITypeValue fieldValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
String |
getValue()
Gets operator value.
|
boolean |
requiredDecode()
Returns true if decoding enable.
|
boolean |
requiresPMap()
Returns true if P Map is required.
|
boolean |
shouldSetValue(ITypeValue value)
Returns true if value should be stored to context.
|
boolean |
shouldStoreDecodedValue(ITypeValue value)
Returns true if decoded value should stored to context.
|
compareTo
OperatorType getOperatorType()
ITypeValue decode(AbstractType abstractType, Context context, BinaryMessage message)
abstractType
- the type of operationcontext
- the contextmessage
- the binary messagebyte[] encode(AbstractType abstractType, Context context, ITypeValue fieldValue, EncodePresenceMapBuilder presenceMapBuilder)
abstractType
- the type of operationcontext
- the contextfieldValue
- the field valuepresenceMapBuilder
- the presence mapString getValue()
boolean shouldSetValue(ITypeValue value)
value
- the valueboolean shouldStoreDecodedValue(ITypeValue value)
value
- the valueboolean requiresPMap()
ITypeValue getPresenceEncodingValue(Type type, ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
boolean requiredDecode()
ITypeValue encodeValue(Context context, Type type, ITypeValue encodeValue)
context
- the contexttype
- the typeencodeValue
- ITypeValue decodeValue(Context context, Type type, ITypeValue decodeValue)
context
- the contexttype
- the typedecodeValue
- ITypeValue getDefaultValue(Context context, Type type)
context
- type
- the typeCopyright © 2000-2017 EPAM Systems. All Rights Reserved.