Inheritance diagram for com::sleepycat::bind::tuple::TupleBase:
Public Member Functions | |
TupleBase () | |
void | setTupleBufferSize (int byteSize) |
int | getTupleBufferSize () |
Static Public Member Functions | |
static void | outputToEntry (TupleOutput output, DatabaseEntry entry) |
static void | inputToEntry (TupleInput input, DatabaseEntry entry) |
static TupleInput | entryToInput (DatabaseEntry entry) |
static TupleOutput | newOutput () |
static TupleOutput | newOutput (byte[] buffer) |
Protected Member Functions | |
TupleOutput | getTupleOutput (Object object) |
Tuple bindings and key creators append data to a TupleOutput instance, which is also a com.sleepycat.util.FastOutputStream instance. This object has a byte array buffer that is resized when it is full. The reallocation of this buffer can be a performance factor for some applications using large objects. To manage this issue, the setTupleBufferSize method may be used to control the initial size of the buffer, and the getTupleOutput method may be overridden by subclasses to take over creation of the TupleOutput object.
Definition at line 27 of file TupleBase.java.
|
Initializes the initial output buffer size to zero. Unless setTupleBufferSize is called, the default com.sleepycat.util.FastOutputStream#DEFAULT_INIT_SIZE size will be used. Definition at line 38 of file TupleBase.java. |
|
Utility method to create a new tuple input object for reading the data from a given buffer. If an existing input is reused, it is reset before returning it.
Definition at line 134 of file TupleBase.java. Referenced by com::sleepycat::bind::tuple::BooleanBinding::entryToBoolean(), com::sleepycat::bind::tuple::ByteBinding::entryToByte(), com::sleepycat::bind::tuple::CharacterBinding::entryToChar(), com::sleepycat::bind::tuple::DoubleBinding::entryToDouble(), com::sleepycat::bind::tuple::FloatBinding::entryToFloat(), com::sleepycat::bind::tuple::IntegerBinding::entryToInt(), com::sleepycat::bind::tuple::LongBinding::entryToLong(), com::sleepycat::bind::tuple::TupleBinding::entryToObject(), com::sleepycat::bind::serial::TupleSerialBinding::entryToObject(), com::sleepycat::bind::tuple::ShortBinding::entryToShort(), and com::sleepycat::bind::tuple::StringBinding::entryToString(). |
|
Returns the initial byte size of the output buffer.
Definition at line 63 of file TupleBase.java. Referenced by getTupleOutput(). |
|
|
Utility method to set the data in a entry buffer to the data in a tuple input object.
Definition at line 119 of file TupleBase.java. References com::sleepycat::util::FastInputStream::getBufferBytes(), com::sleepycat::util::FastInputStream::getBufferLength(), and com::sleepycat::util::FastInputStream::getBufferOffset(). |
|
Utility method for use by bindings to create a tuple output object with a specific starting size.
Definition at line 160 of file TupleBase.java. |
|
Utility method for use by bindings to create a tuple output object.
Definition at line 147 of file TupleBase.java. |
|
Utility method to set the data in a entry buffer to the data in a tuple output object.
Definition at line 105 of file TupleBase.java. References com::sleepycat::util::FastOutputStream::getBufferBytes(), com::sleepycat::util::FastOutputStream::getBufferLength(), and com::sleepycat::util::FastOutputStream::getBufferOffset(). Referenced by com::sleepycat::bind::tuple::BooleanBinding::booleanToEntry(), com::sleepycat::bind::tuple::ByteBinding::byteToEntry(), com::sleepycat::bind::tuple::CharacterBinding::charToEntry(), com::sleepycat::bind::tuple::DoubleBinding::doubleToEntry(), com::sleepycat::bind::tuple::FloatBinding::floatToEntry(), com::sleepycat::bind::tuple::IntegerBinding::intToEntry(), com::sleepycat::bind::tuple::LongBinding::longToEntry(), com::sleepycat::bind::tuple::TupleTupleBinding::objectToData(), com::sleepycat::bind::tuple::TupleBinding::objectToEntry(), com::sleepycat::bind::tuple::TupleTupleBinding::objectToKey(), com::sleepycat::bind::serial::TupleSerialBinding::objectToKey(), com::sleepycat::bind::tuple::ShortBinding::shortToEntry(), and com::sleepycat::bind::tuple::StringBinding::stringToEntry(). |
|
Sets the initial byte size of the output buffer that is allocated by the default implementation of getTupleOutput. If this property is zero (the default), the default com.sleepycat.util.FastOutputStream#DEFAULT_INIT_SIZE size is used.
Definition at line 52 of file TupleBase.java. |