|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.sleepycat.util.FastInputStream
com.sleepycat.bind.tuple.TupleInput
com.sleepycat.persist.impl.RecordInput
class RecordInput
Implements EntityInput to read record key-data pairs. Extends TupleInput to implement the subset of TupleInput methods that are defined in the EntityInput interface.
Field Summary | |
---|---|
(package private) static int |
PRI_KEY_VISITED_OFFSET
|
(package private) static String |
PROHIBIT_NESTED_REF_MSG
|
(package private) static Object |
PROHIBIT_REF_OBJECT
|
(package private) static int |
PROHIBIT_REF_OFFSET
|
(package private) static int |
VISITED_INIT_SIZE
|
Fields inherited from class com.sleepycat.util.FastInputStream |
---|
buf, len, mark, off |
Constructor Summary | |
---|---|
RecordInput(Catalog catalog,
boolean rawAccess,
DatabaseEntry priKeyEntry,
int priKeyFormatId,
byte[] buffer,
int offset,
int length)
Creates a new input with a empty/null visited map. |
Method Summary | |
---|---|
Catalog |
getCatalog()
Returns the Catalog associated with this input. |
(package private) KeyLocation |
getKeyLocation(Format fieldFormat)
Called when copying secondary keys, for an input that is positioned on the secondary key field. |
boolean |
isRawAccess()
Return whether this input is in raw mode, i.e., whether it is returning raw instances. |
int |
readArrayLength()
Called by ObjectArrayFormat and PrimitiveArrayFormat to read the array length. |
int |
readEnumConstant(String[] names)
Called by EnumFormat to read and return index of the enum constant. |
Object |
readKeyObject(Format format)
Called for a primary key field or a composite key field with a reference type. |
Object |
readObject()
Called via Accessor to read all fields with reference types, except for the primary key field and composite key fields (see readKeyObject below). |
void |
registerPriKeyObject(Object o)
Called via Accessor.readSecKeyFields for a primary key field with a reference type. |
boolean |
setRawAccess(boolean rawAccessParam)
Changes raw mode and returns the original mode, which is normally restored later. |
void |
skipField(Format declaredFormat)
Called via PersistKeyCreator to skip fields prior to the secondary key field. |
Methods inherited from class com.sleepycat.bind.tuple.TupleInput |
---|
getBigIntegerByteLength, getPackedIntByteLength, getPackedLongByteLength, getStringByteLength, readBigInteger, readBoolean, readByte, readBytes, readBytes, readChar, readChars, readChars, readDouble, readFloat, readInt, readLong, readPackedInt, readPackedLong, readShort, readSortedDouble, readSortedFloat, readString, readString, readString, readUnsignedByte, readUnsignedInt, readUnsignedShort |
Methods inherited from class com.sleepycat.util.FastInputStream |
---|
available, getBufferBytes, getBufferLength, getBufferOffset, mark, markSupported, read, read, read, readFast, readFast, readFast, reset, skip, skipFast |
Methods inherited from class java.io.InputStream |
---|
close |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sleepycat.persist.impl.EntityInput |
---|
readBigInteger, readBoolean, readByte, readChar, readInt, readLong, readShort, readSortedDouble, readSortedFloat, readString |
Field Detail |
---|
static final int VISITED_INIT_SIZE
static final int PRI_KEY_VISITED_OFFSET
static final int PROHIBIT_REF_OFFSET
static final Object PROHIBIT_REF_OBJECT
static final String PROHIBIT_NESTED_REF_MSG
Constructor Detail |
---|
RecordInput(Catalog catalog, boolean rawAccess, DatabaseEntry priKeyEntry, int priKeyFormatId, byte[] buffer, int offset, int length)
Method Detail |
---|
public Catalog getCatalog()
EntityInput
getCatalog
in interface EntityInput
EntityInput.getCatalog()
public boolean isRawAccess()
EntityInput
isRawAccess
in interface EntityInput
EntityInput.isRawAccess()
public boolean setRawAccess(boolean rawAccessParam)
EntityInput
setRawAccess
in interface EntityInput
EntityInput.setRawAccess(boolean)
public Object readObject()
EntityInput
readObject
in interface EntityInput
EntityInput.readObject()
public Object readKeyObject(Format format)
EntityInput
For such key fields, no formatId is present nor can the object already be present in the visited object set.
readKeyObject
in interface EntityInput
EntityInput.readKeyObject(com.sleepycat.persist.impl.Format)
KeyLocation getKeyLocation(Format fieldFormat)
public void registerPriKeyObject(Object o)
EntityInput
registerPriKeyObject
in interface EntityInput
EntityInput.registerPriKeyObject(java.lang.Object)
public void skipField(Format declaredFormat)
EntityInput
skipField
in interface EntityInput
EntityInput.skipField(com.sleepycat.persist.impl.Format)
public int readArrayLength()
EntityInput
readArrayLength
in interface EntityInput
public int readEnumConstant(String[] names)
EntityInput
readEnumConstant
in interface EntityInput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |