T - The property value type.public interface PropertyValueStrategy<T>
PropertyValue's value.| Modifier and Type | Method and Description |
|---|---|
int |
compare(T value,
Object other)
Compares two objects.
|
T |
get(byte[] bytes)
Deserializes an object from the provided byte array.
|
byte[] |
getRawBytes(T value)
Serializes the given object.
|
byte |
getRawType()
Gets a byte which represents the data type the specific strategy handles.
|
Class<T> |
getType()
Gets the class of the data type the specific strategy handles.
|
boolean |
is(Object value)
Checks if given object is an instance of the data type the specific strategy handles.
|
T |
read(org.apache.flink.core.memory.DataInputView inputView,
byte typeByte)
Reads raw bytes from the given
DataInputView and deserializes the contained object. |
void |
write(T value,
org.apache.flink.core.memory.DataOutputView outputView)
Writes the given value to the provided
DataOutputView. |
void write(T value, org.apache.flink.core.memory.DataOutputView outputView) throws IOException
DataOutputView.
The argument value can not be null.value - to be written to the DataOutputView.outputView - that the value is written to.IOException - if write process fails.T read(org.apache.flink.core.memory.DataInputView inputView, byte typeByte) throws IOException
DataInputView and deserializes the contained object.inputView - containing serialized object.typeByte - byte needed to indicate whether serialized object has a variable length.IOException - when reading or deserialization of the object fails.int compare(T value, Object other)
value - first object.other - second object.IllegalArgumentException - when other is not comparable to value.boolean is(Object value)
value - to be checked.value is an instance of the data type this strategy handles.
False otherwise.Class<T> getType()
T get(byte[] bytes) throws IOException
bytes - representing a serialized object.IOException - on failurebyte getRawType()
byte[] getRawBytes(T value) throws IOException
value can not be null.value - the object to be serialized.IOException - on failureCopyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.