public static class RepGroupDB.NodeBinding extends TupleBinding<RepNodeImpl>
Prior to RepGroupImpl version 3, the second field was always the ordinal value of the node type, which was either 0 or 1. Starting with version 3, values greater than 1 are treated as the rep group version of the format used to write the node binding, with the node type following in the next field, and the jeVersion field added at the end.
| Constructor and Description |
|---|
NodeBinding(int groupFormatVersion)
Create an instance for reading or writing using the specified group
format version.
|
| Modifier and Type | Method and Description |
|---|---|
RepNodeImpl |
entryToObject(TupleInput input)
Constructs a key or data object from a
TupleInput entry. |
void |
objectToEntry(RepNodeImpl mi,
TupleOutput output)
Converts a key or data object to a tuple entry.
|
static boolean |
supportsObjectToEntry(RepNodeImpl node,
int groupFormatVersion)
Returns whether the node can be serialized using the specified group
format version.
|
entryToObject, getPrimitiveBinding, objectToEntryentryToInput, getTupleBufferSize, getTupleOutput, inputToEntry, newOutput, newOutput, outputToEntry, setTupleBufferSizepublic NodeBinding(int groupFormatVersion)
public RepNodeImpl entryToObject(TupleInput input)
TupleBindingTupleInput entry.entryToObject in class TupleBinding<RepNodeImpl>input - is the tuple key or data entry.public static boolean supportsObjectToEntry(RepNodeImpl node, int groupFormatVersion)
public void objectToEntry(RepNodeImpl mi, TupleOutput output)
TupleBindingobjectToEntry in class TupleBinding<RepNodeImpl>mi - is the key or data object.output - is the tuple entry to which the key or data should be
written.Copyright © 2024. All rights reserved.