Package | Description |
---|---|
com.pushtechnology.diffusion.datatype |
Data Types.
|
com.pushtechnology.diffusion.datatype.binary |
Binary Data Type.
|
com.pushtechnology.diffusion.datatype.json |
JSON Data Type.
|
com.pushtechnology.diffusion.datatype.recordv2 |
RecordV2 Data Type.
|
Modifier and Type | Method and Description |
---|---|
V |
DeltaType.apply(V oldValue,
D delta)
Apply a delta to a value.
|
D |
DeltaType.diff(V oldValue,
V newValue)
Create a delta from two values.
|
boolean |
DeltaType.isValueCheaper(V value,
D delta)
Calculate if
value is cheaper than delta . |
<T> T |
DataType.readAs(Class<T> classOfT,
byte[] bytes)
Create a value of a compatible class from binary.
|
<T> T |
DataType.readAs(Class<T> classOfT,
byte[] bytes,
int offset,
int length)
Create a value of a compatible class from a binary.
|
<T> T |
DataType.readAs(Class<T> classOfT,
Bytes bytes)
Create a value of a compatible class from binary.
|
D |
DeltaType.readDelta(byte[] in)
Create a delta from binary.
|
D |
DeltaType.readDelta(byte[] in,
int offset,
int length)
Create a delta from binary.
|
D |
DeltaType.readDelta(Bytes in)
Create a delta from binary.
|
V |
DataType.readValue(byte[] bytes)
Create a value from binary.
|
V |
DataType.readValue(byte[] bytes,
int offset,
int length)
Create a value from binary.
|
V |
DataType.readValue(Bytes bytes)
Create a value from binary.
|
void |
DataType.validate(V value)
Check whether a value is valid.
|
Modifier and Type | Method and Description |
---|---|
Binary |
Binary.apply(BinaryDelta delta)
Apply a binary delta to this value to create a new value.
|
Modifier and Type | Method and Description |
---|---|
JSON |
JSON.apply(BinaryDelta delta)
Apply a binary delta to this JSON value to create a new value.
|
BinaryDelta |
JSON.binaryDiff(JSON original)
Compare this JSON value with an earlier version to create a binary delta.
|
JSONDelta |
JSON.diff(JSON original)
Compare this JSON value with an earlier version to calculate a structural
delta.
|
JSON |
JSONDataType.fromJsonString(String json)
Parse a JSON string.
|
String |
JSON.toJsonString() |
JSON |
JSON.validate()
Check whether this instance is valid.
|
Modifier and Type | Method and Description |
---|---|
RecordModel |
RecordV2.asValidatedModel(Schema schema)
Parses the value into a model based upon a specified schema.
|
Copyright © 2022 Push Technology Ltd. All Rights Reserved.