|
|||||||||
| 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(java.lang.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(java.lang.String[] names,
int index)
Called by EnumFormat to write the given index of the enum constant. |
void |
writeKeyObject(java.lang.Object o,
Format fieldFormat)
Called for a primary key field or composite key field with a reference type. |
void |
writeObject(java.lang.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(java.lang.Object o,
Format fieldFormat)
EntityOutput
writeObject in interface EntityOutputEntityInput#writeObject
public void writeKeyObject(java.lang.Object o,
Format fieldFormat)
EntityOutput
writeKeyObject in interface EntityOutputEntityInput#writeKeyObjectpublic void registerPriKeyObject(java.lang.Object o)
EntityOutput
registerPriKeyObject in interface EntityOutputEntityInput.registerPriKeyObject(java.lang.Object)public void writeArrayLength(int length)
EntityOutput
writeArrayLength in interface EntityOutputEntityInput#writeArrayLength
public void writeEnumConstant(java.lang.String[] names,
int index)
EntityOutput
writeEnumConstant in interface EntityOutputEntityInput#writeEnumConstant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||