|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.sleepycat.util.FastOutputStream
com.sleepycat.bind.tuple.TupleOutput
com.sleepycat.persist.impl.RecordOutput
class RecordOutput
Implements EntityOutput to write record key-data pairs. Extends TupleOutput to implement the subset of TupleOutput methods that are defined in the EntityOutput interface.
Field Summary |
---|
Fields inherited from class com.sleepycat.util.FastOutputStream |
---|
DEFAULT_BUMP_SIZE, DEFAULT_INIT_SIZE |
Constructor Summary | |
---|---|
RecordOutput(Catalog catalog,
boolean rawAccess)
Creates a new output with an empty/null VisitedObjects set. |
Method Summary | |
---|---|
void |
registerPriKeyObject(Object o)
Called via Accessor.writeSecKeyFields for a primary key field with a reference type. |
void |
writeArrayLength(int length)
Called by ObjectArrayFormat and PrimitiveArrayFormat to write the array length. |
void |
writeEnumConstant(String[] names,
int index)
Called by EnumFormat to write the given index of the enum constant. |
void |
writeKeyObject(Object o,
Format fieldFormat)
Called for a primary key field or composite key field with a reference type. |
void |
writeObject(Object o,
Format fieldFormat)
Called via Accessor to write all fields with reference types, except for the primary key field and composite key fields (see writeKeyObject below). |
Methods inherited from class com.sleepycat.bind.tuple.TupleOutput |
---|
getBigIntegerByteLength, writeBigInteger, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeFloat, writeInt, writeLong, writePackedInt, writeShort, writeSortedDouble, writeSortedFloat, writeString, writeString, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort |
Methods inherited from class com.sleepycat.util.FastOutputStream |
---|
addSize, getBufferBytes, getBufferLength, getBufferOffset, makeSpace, reset, size, toByteArray, toString, toString, write, write, write, writeFast, writeFast, writeFast, writeTo |
Methods inherited from class java.io.OutputStream |
---|
close, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sleepycat.persist.impl.EntityOutput |
---|
writeBigInteger, writeBoolean, writeByte, writeChar, writeInt, writeLong, writeShort, writeSortedDouble, writeSortedFloat, writeString |
Constructor Detail |
---|
RecordOutput(Catalog catalog, boolean rawAccess)
Method Detail |
---|
public void writeObject(Object o, Format fieldFormat)
EntityOutput
writeObject
in interface EntityOutput
EntityInput#writeObject
public void writeKeyObject(Object o, Format fieldFormat)
EntityOutput
writeKeyObject
in interface EntityOutput
EntityInput#writeKeyObject
public void registerPriKeyObject(Object o)
EntityOutput
registerPriKeyObject
in interface EntityOutput
EntityInput.registerPriKeyObject(java.lang.Object)
public void writeArrayLength(int length)
EntityOutput
writeArrayLength
in interface EntityOutput
EntityInput#writeArrayLength
public void writeEnumConstant(String[] names, int index)
EntityOutput
writeEnumConstant
in interface EntityOutput
EntityInput#writeEnumConstant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |