|
Berkeley DB version 4.8.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.db.DatabaseEntry
com.sleepycat.db.MultipleEntry
com.sleepycat.db.MultipleDataEntry
public class MultipleDataEntry
A DatabaseEntry that holds multiple data items returned by a single
Database
or Cursor
get call.
Constructor Summary | |
---|---|
MultipleDataEntry()
Construct an entry with no data. |
|
MultipleDataEntry(byte[] data)
Construct an entry with a given byte array. |
|
MultipleDataEntry(byte[] data,
int offset,
int size)
Constructs a DatabaseEntry with a given byte array, offset and size. |
Method Summary | |
---|---|
boolean |
append(byte[] data)
Append an entry to the bulk buffer. |
boolean |
append(byte[] data,
int offset,
int len)
Append an entry to the bulk buffer. |
boolean |
append(DatabaseEntry data)
Append an entry to the bulk buffer. |
boolean |
next(DatabaseEntry data)
Get the next data element in the returned set. |
Methods inherited from class com.sleepycat.db.MultipleEntry |
---|
append_internal, append_internal, setUserBuffer |
Methods inherited from class com.sleepycat.db.DatabaseEntry |
---|
equals, getData, getDataNIO, getOffset, getPartial, getPartialLength, getPartialOffset, getRecordNumber, getReuseBuffer, getSize, getUserBuffer, getUserBufferLength, hashCode, setData, setData, setDataNIO, setDataNIO, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setRecordNumber, setReuseBuffer, setSize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleDataEntry()
MultipleEntry.setUserBuffer
method.
public MultipleDataEntry(byte[] data)
MultipleEntry.setUserBuffer
method.
data
- Byte array wrapped by the entry.public MultipleDataEntry(byte[] data, int offset, int size)
data
- Byte array wrapped by the DatabaseEntry.offset
- Offset in the first byte in the byte array to be included.size
- Number of bytes in the byte array to be included.Method Detail |
---|
public boolean next(DatabaseEntry data)
Database
or
Cursor
get method with this object as the data parameter.
When used with the Queue and Recno access methods,
data.getData()
will return
null
for deleted
records.
- Parameters:
data
- an entry that is set to refer to the next data element in the returned
set.
- Returns:
- indicates whether a value was found. A return of
false
indicates that the end of the set was reached.
append
public boolean append(byte[] data,
int offset,
int len)
throws DatabaseException
- Append an entry to the bulk buffer.
- Parameters:
data
- an array containing the record to be added.offset
- the position in the data array where the record starts.len
- the length of the record, in bytes, to be copied from the data array.
- Returns:
- indicates whether there was space. A return of
false
indicates that the specified entry could not fit in the buffer.
- Throws:
DatabaseException
append
public boolean append(DatabaseEntry data)
throws DatabaseException
- Append an entry to the bulk buffer.
- Parameters:
data
- the record to be appended, using the offset and size specified in the
DatabaseEntry
.
- Returns:
- indicates whether there was space. A return of
false
indicates that the specified entry could not fit in the buffer.
- Throws:
DatabaseException
append
public boolean append(byte[] data)
throws DatabaseException
- Append an entry to the bulk buffer.
- Parameters:
data
- an array containing the record to be added.
- Returns:
- indicates whether there was space. A return of
false
indicates that the specified entry could not fit in the buffer.
- Throws:
DatabaseException
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Berkeley DB
version 4.8.26
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright (c) 1996-2009 Oracle. All rights reserved.