public abstract class SMultiplePairs extends java.lang.Object implements SDatabaseEntryBase
SDatabaseEntry
pairs. Use one of the concrete subclasses depending
on whether you need:
SMultipleKeyDataEntry
SMultipleRecnoDataEntry
Modifier | Constructor and Description |
---|---|
protected |
SMultiplePairs() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(SDatabaseEntry key,
SDatabaseEntry data) |
int |
getBatchSize()
Return the amount of data to be returned in a single get() call.
|
boolean |
next(SDatabaseEntry key,
SDatabaseEntry data)
Get the next key/data pair in the returned set.
|
void |
setBatchSize(int batchSize)
When used as an output argument to a database or cursor get() call, set
the amount of data (in total bytes) to be returned.
|
protected void append(SDatabaseEntry key, SDatabaseEntry data)
public int getBatchSize()
public void setBatchSize(int batchSize)
This method is only advisory. The exact amount of data returned may be more or less than the amount specified.
batchSize
- the amount of data to be returned in a single get()
callpublic boolean next(SDatabaseEntry key, SDatabaseEntry data)
SDatabase
or SCursor
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
key
- an entry that is set to refer to the next key element in the
returned setdata
- an entry that is set to refer to the next data element in
the
returned setCopyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.