public class ByteArrayValueSerializer extends PrimitiveValueSerializer<BytesValue>
valueType
Constructor and Description |
---|
ByteArrayValueSerializer() |
Modifier and Type | Method and Description |
---|---|
BytesValue |
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.
|
BytesValue |
readValue(ValueFields valueFields) |
void |
writeValue(BytesValue variableValue,
ValueFields valueFields)
Serialize a
TypedValue to the ValueFields . |
canWriteValue, getName, getType, readValue
canHandle, getSerializationDataformat, isMutableValue
public BytesValue convertToTypedValue(UntypedValueImpl untypedValue)
TypedValueSerializer
TypedValueSerializer
(by invocation of TypedValueSerializer.canHandle(TypedValue)
).untypedValue
- the untyped valuepublic BytesValue readValue(ValueFields valueFields)
readValue
in class PrimitiveValueSerializer<BytesValue>
public void writeValue(BytesValue variableValue, ValueFields valueFields)
TypedValueSerializer
TypedValue
to the ValueFields
.variableValue
- the TypedValue
to persistvalueFields
- the ValueFields
to which the value should be persistedCopyright © 2018. All rights reserved.