public class RowSet extends RowCollection implements Index, java.lang.Iterable<Row.Entry>, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
RowSet.keyIterator |
class |
RowSet.rowIterator |
RowCollection.partitionthread
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
chunkcache, chunkcount, exportOverheadSize, growfactorLarge100, growfactorSmall100, lastTimeWrote, rowdef, sortBound
Modifier | Constructor and Description |
---|---|
|
RowSet(Row rowdef) |
private |
RowSet(Row rowdef,
byte[] chunkcache,
int chunkcount,
int sortBound,
long lastTimeWrote) |
|
RowSet(Row rowdef,
int objectCount) |
|
RowSet(Row rowdef,
int objectCount,
byte[] cache,
int sortBound) |
|
RowSet(Row rowdef,
Row.Entry exportedCollectionRowEnvironment)
import an exported collection
|
|
RowSet(RowSet rs) |
Modifier and Type | Method and Description |
---|---|
protected int |
binaryPosition(byte[] key,
int astart) |
private int |
binarySearch(byte[] key,
int astart) |
RowSet |
clone() |
private int |
collectionReSortLimit() |
boolean |
delete(byte[] a)
remove a byte[] from the set.
|
void |
delete(java.util.List<byte[]> keys) |
void |
deleteOnExit() |
java.lang.String |
filename() |
private int |
find(byte[] a,
int astart) |
Row.Entry |
get(byte[] key,
boolean forcecopy) |
java.util.Map<byte[],Row.Entry> |
get(java.util.Collection<byte[]> keys,
boolean forcecopy) |
boolean |
has(byte[] key) |
static int |
importRowCount(long blength,
Row rowdef) |
static RowSet |
importRowSet(byte[] b,
Row rowdef) |
long |
inc(byte[] key,
int col,
long add,
Row.Entry initrow) |
private int |
iterativeSearch(byte[] key,
int astart,
int leftBorder,
int rightBound) |
java.util.Iterator<Row.Entry> |
iterator()
return an iterator for the row entries in this object
|
java.util.Iterator<byte[]> |
keys() |
CloneableIterator<byte[]> |
keys(boolean up,
byte[] firstKey) |
static void |
main(java.lang.String[] args) |
RowSet |
merge(RowSet c)
merge this row collection with another row collection.
|
protected static RowSet |
mergeEnum(RowCollection c0,
RowCollection c1)
merge this row collection with another row collection using an simultanous iteration of the input collections
the current collection is not altered in any way, the returned collection is a new collection with copied content.
|
boolean |
put(Row.Entry entry)
Adds the row to the index.
|
static byte[] |
randomHash(long r0,
long r1) |
static byte[] |
randomHash(java.util.Random r) |
Row.Entry |
remove(byte[] a) |
Row.Entry |
replace(Row.Entry entry) |
void |
reset() |
CloneableIterator<Row.Entry> |
rows() |
CloneableIterator<Row.Entry> |
rows(boolean up,
byte[] firstKey) |
add, addAllUnique, addSorted, addUnique, addUnique, buffer, clear, close, compare, compare, delete, exportCollection, get, getKey, insertUnique, isEmpty, isSorted, keys, largestKey, lastWrote, match, match, mem, memoryNeededForGrow, optimize, partition, random, removeDoubles, removeOne, removeRow, row, saveCollection, set, size, sizeOfExportedCollectionRows, smallestKey, sort, sorted, swap, test, top, toString, trim, uniq
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addUnique, clear, close, isEmpty, largestKey, mem, optimize, random, removeDoubles, removeOne, row, size, smallestKey, top
private static final long serialVersionUID
public RowSet(RowSet rs)
public RowSet(Row rowdef, int objectCount, byte[] cache, int sortBound)
public RowSet(Row rowdef, int objectCount) throws SpaceExceededException
SpaceExceededException
public RowSet(Row rowdef)
public RowSet(Row rowdef, Row.Entry exportedCollectionRowEnvironment)
rowdef
- exportedCollectionRowEnvironment
- columnInEnvironment
- private RowSet(Row rowdef, byte[] chunkcache, int chunkcount, int sortBound, long lastTimeWrote)
public static final RowSet importRowSet(byte[] b, Row rowdef) throws SpaceExceededException
SpaceExceededException
public static final int importRowCount(long blength, Row rowdef)
public RowSet clone()
clone
in class RowCollection
public void reset()
reset
in class RowCollection
public java.util.Map<byte[],Row.Entry> get(java.util.Collection<byte[]> keys, boolean forcecopy) throws java.io.IOException, java.lang.InterruptedException
public final boolean put(Row.Entry entry) throws SpaceExceededException
put
in interface Index
row
- a index rowjava.io.IOException
SpaceExceededException
private final int collectionReSortLimit()
public final Row.Entry replace(Row.Entry entry) throws SpaceExceededException
replace
in interface Index
SpaceExceededException
public final long inc(byte[] key, int col, long add, Row.Entry initrow) throws SpaceExceededException
SpaceExceededException
public final boolean delete(byte[] a)
public final void delete(java.util.List<byte[]> keys)
private final int find(byte[] a, int astart)
private final int iterativeSearch(byte[] key, int astart, int leftBorder, int rightBound)
private final int binarySearch(byte[] key, int astart)
protected final int binaryPosition(byte[] key, int astart)
public final java.util.Iterator<byte[]> keys()
public final CloneableIterator<byte[]> keys(boolean up, byte[] firstKey)
public final java.util.Iterator<Row.Entry> iterator()
RowCollection
iterator
in interface java.lang.Iterable<Row.Entry>
iterator
in interface Index
iterator
in class RowCollection
public final CloneableIterator<Row.Entry> rows(boolean up, byte[] firstKey)
public final CloneableIterator<Row.Entry> rows()
public final RowSet merge(RowSet c) throws SpaceExceededException
c
- SpaceExceededException
protected static final RowSet mergeEnum(RowCollection c0, RowCollection c1) throws SpaceExceededException
c
- SpaceExceededException
public static void main(java.lang.String[] args)
public static byte[] randomHash(long r0, long r1)
public static byte[] randomHash(java.util.Random r)
public void deleteOnExit()
deleteOnExit
in interface Index