| java.lang.Object com.sleepycat.persist.SubIndex
SubIndex | class SubIndex implements EntityIndex<PK, E>(Code) | | The EntityIndex returned by SecondaryIndex.subIndex. A SubIndex, in JE
internal terms, is a duplicates btree for a single key in the main btree.
From the user's viewpoint, the keys are primary keys. This class implements
that viewpoint. In general, getSearchBoth and getSearchBothRange are used
where in a normal index getSearchKey and getSearchRange would be used. The
main tree key is always implied, not passed as a parameter.
author: Mark Hayes |
Method Summary | |
public boolean | contains(PK key) | public boolean | contains(Transaction txn, PK key, LockMode lockMode) | public long | count() | public boolean | delete(PK key) | public boolean | delete(Transaction txn, PK key) | public EntityCursor<E> | entities() | public EntityCursor<E> | entities(Transaction txn, CursorConfig config) | public EntityCursor<E> | entities(PK fromKey, boolean fromInclusive, PK toKey, boolean toInclusive) | public EntityCursor<E> | entities(Transaction txn, PK fromKey, boolean fromInclusive, PK toKey, boolean toInclusive, CursorConfig config) | public E | get(PK key) | public E | get(Transaction txn, PK key, LockMode lockMode) | public EntityCursor<PK> | keys() | public EntityCursor<PK> | keys(Transaction txn, CursorConfig config) | public EntityCursor<PK> | keys(PK fromKey, boolean fromInclusive, PK toKey, boolean toInclusive) | public EntityCursor<PK> | keys(Transaction txn, PK fromKey, boolean fromInclusive, PK toKey, boolean toInclusive, CursorConfig config) | public Map<PK, E> | map() | public synchronized SortedMap<PK, E> | sortedMap() |
|
|