public class TupleMarshalledBinding<E extends MarshalledTupleEntry> extends TupleBinding<E>
TupleBindingthat delegates to the
MarshalledTupleEntryinterface of the data or key object.
This class works by calling the methods of the
MarshalledTupleEntry interface, which must be implemented by the key or
data class, to convert between the key or data entry and the object.
|Constructor and Description|
Creates a tuple marshalled binding object.
|Modifier and Type||Method and Description|
Constructs a key or data object from a
Converts a key or data object to a tuple entry.
entryToObject, getPrimitiveBinding, objectToEntry
entryToInput, getTupleBufferSize, getTupleOutput, inputToEntry, newOutput, newOutput, outputToEntry, setTupleBufferSize
The given class is used to instantiate key or data objects using
Class.newInstance(), and therefore must be a public class and have
a public no-arguments constructor. It must also implement the
cls- is the class of the key or data objects.
public E entryToObject(TupleInput input)
public void objectToEntry(E object, TupleOutput output)
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.