public class ByteArrayValueSerializer extends PrimitiveValueSerializer<BytesValue>
BINARY_VALUE_TYPES, valueType
Constructor and Description |
---|
ByteArrayValueSerializer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canWriteValue(TypedValue typedValue) |
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 . |
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 persistedprotected boolean canWriteValue(TypedValue typedValue)
canWriteValue
in class PrimitiveValueSerializer<BytesValue>
Copyright © 2019. All rights reserved.