public class NullStrategy extends Object implements PropertyValueStrategy
PropertyValue operations when the value is null.| Constructor and Description |
|---|
NullStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object value,
Object other)
Compares two objects.
|
Object |
get(byte[] bytes)
Deserializes an object from the provided byte array.
|
byte[] |
getRawBytes(Object value)
Serializes the given object.
|
byte |
getRawType()
Gets a byte which represents the data type the specific strategy handles.
|
Class<?> |
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.
|
Object |
read(org.apache.flink.core.memory.DataInputView inputView,
byte typeByte)
Reads raw bytes from the given
DataInputView and deserializes the contained object. |
void |
write(Object value,
org.apache.flink.core.memory.DataOutputView outputView)
Writes the given value to the provided
DataOutputView. |
public void write(Object value, org.apache.flink.core.memory.DataOutputView outputView) throws IOException
PropertyValueStrategyDataOutputView.
The argument value can not be null.write in interface PropertyValueStrategyvalue - to be written to the DataOutputView.outputView - that the value is written to.IOException - if write process fails.public Object read(org.apache.flink.core.memory.DataInputView inputView, byte typeByte) throws IOException
PropertyValueStrategyDataInputView and deserializes the contained object.read in interface PropertyValueStrategyinputView - containing serialized object.typeByte - byte needed to indicate whether serialized object has a variable length.IOException - when reading or deserialization of the object fails.public int compare(Object value, Object other)
PropertyValueStrategycompare in interface PropertyValueStrategyvalue - first object.other - second object.public boolean is(Object value)
PropertyValueStrategyis in interface PropertyValueStrategyvalue - to be checked.value is an instance of the data type this strategy handles.
False otherwise.public Class<?> getType()
PropertyValueStrategygetType in interface PropertyValueStrategypublic Object get(byte[] bytes)
PropertyValueStrategyget in interface PropertyValueStrategybytes - representing a serialized object.public byte getRawType()
PropertyValueStrategygetRawType in interface PropertyValueStrategypublic byte[] getRawBytes(Object value)
PropertyValueStrategyvalue can not be null.getRawBytes in interface PropertyValueStrategyvalue - the object to be serialized.Copyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.