class RecordInput extends TupleInput implements EntityInput
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
PRI_KEY_VISITED_OFFSET |
(package private) static java.lang.String |
PROHIBIT_NESTED_REF_MSG |
(package private) static java.lang.Object |
PROHIBIT_REF_OBJECT |
(package private) static int |
PROHIBIT_REF_OFFSET |
(package private) static int |
VISITED_INIT_SIZE |
buf, len, mark, off| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.String[] names)
Called by EnumFormat to read and return index of the enum constant.
|
java.lang.Object |
readKeyObject(Format format)
Called for a primary key field or a composite key field with a reference
type.
|
java.lang.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(java.lang.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.
|
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, readUnsignedShortavailable, getBufferBytes, getBufferLength, getBufferOffset, mark, markSupported, read, read, read, readFast, readFast, readFast, reset, skip, skipFastclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBigInteger, readBoolean, readByte, readChar, readInt, readLong, readShort, readSortedDouble, readSortedFloat, readStringstatic final int VISITED_INIT_SIZE
static final int PRI_KEY_VISITED_OFFSET
static final int PROHIBIT_REF_OFFSET
static final java.lang.Object PROHIBIT_REF_OBJECT
static final java.lang.String PROHIBIT_NESTED_REF_MSG
RecordInput(Catalog catalog, boolean rawAccess, DatabaseEntry priKeyEntry, int priKeyFormatId, byte[] buffer, int offset, int length)
public Catalog getCatalog()
EntityInputgetCatalog in interface EntityInputEntityInput.getCatalog()public boolean isRawAccess()
EntityInputisRawAccess in interface EntityInputEntityInput.isRawAccess()public boolean setRawAccess(boolean rawAccessParam)
EntityInputsetRawAccess in interface EntityInputEntityInput.setRawAccess(boolean)public java.lang.Object readObject()
EntityInputreadObject in interface EntityInputEntityInput.readObject()public java.lang.Object readKeyObject(Format format)
EntityInputFor such key fields, no formatId is present nor can the object already be present in the visited object set.
readKeyObject in interface EntityInputEntityInput.readKeyObject(com.sleepycat.persist.impl.Format)KeyLocation getKeyLocation(Format fieldFormat)
public void registerPriKeyObject(java.lang.Object o)
EntityInputregisterPriKeyObject in interface EntityInputEntityInput.registerPriKeyObject(java.lang.Object)public void skipField(Format declaredFormat)
EntityInputskipField in interface EntityInputEntityInput.skipField(com.sleepycat.persist.impl.Format)public int readArrayLength()
EntityInputreadArrayLength in interface EntityInputpublic int readEnumConstant(java.lang.String[] names)
EntityInputreadEnumConstant in interface EntityInputCopyright (c) 2004,2008 Oracle. All rights reserved.