public class BigDecimalStrategy extends AbstractVariableSizedPropertyValueStrategy<BigDecimal>
PropertyValue operations with a value of the type
BigDecimal.| Constructor and Description |
|---|
BigDecimalStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BigDecimal value,
Object other)
Compares two objects.
|
BigDecimal |
get(byte[] bytes)
Deserializes an object from the provided byte array.
|
byte[] |
getRawBytes(BigDecimal value)
Serializes the given object.
|
byte |
getRawType()
Gets a byte which represents the data type the specific strategy handles.
|
Class<BigDecimal> |
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.
|
BigDecimal |
read(org.apache.flink.core.memory.DataInputView inputView,
byte typeByte)
Reads raw bytes from the given
DataInputView and deserializes the contained object. |
writepublic BigDecimal read(org.apache.flink.core.memory.DataInputView inputView, byte typeByte) throws IOException
PropertyValueStrategyDataInputView 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.public int compare(BigDecimal value, Object other)
PropertyValueStrategyvalue - first object.other - second object.public boolean is(Object value)
PropertyValueStrategyvalue - to be checked.value is an instance of the data type this strategy handles.
False otherwise.public Class<BigDecimal> getType()
PropertyValueStrategypublic BigDecimal get(byte[] bytes)
PropertyValueStrategybytes - representing a serialized object.public byte getRawType()
PropertyValueStrategypublic byte[] getRawBytes(BigDecimal value)
PropertyValueStrategyvalue can not be null.value - the object to be serialized.Copyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.