public interface Index
Index
stores locations
and accesses the entries for comparison through the Indexable
interface.Indexable
,
IndexBuilder
Modifier and Type | Interface and Description |
---|---|
static interface |
Index.Iterator
Iterator over index entries.
|
Modifier and Type | Field and Description |
---|---|
static int |
NO_TYPE
Return type for
getType to signal that no index container data is used
by this index. |
Modifier and Type | Method and Description |
---|---|
Index.Iterator |
getEntryPositions(Indexable dictionary,
ByteBuffer expression,
Object[] parameters)
Returns an iterator over index entries matching certain criteria.
|
int |
getType()
Returns the index type, which is used to fetch the index data from an
IndexContainer . |
void |
setContainer(IndexContainer container)
Sets the index container from which the index data is read.
|
static final int NO_TYPE
getType
to signal that no index container data is used
by this index.int getType()
IndexContainer
.NO_TYPE
if the index does not
use data from an index container.void setContainer(IndexContainer container) throws IndexException
getType
.IndexException
Index.Iterator getEntryPositions(Indexable dictionary, ByteBuffer expression, Object[] parameters) throws IndexException
dictionary
- Dictionary which this Index
indexes.expression
- The search expression, encoded in a form compatible to the
dictionary
.parameters
- Additional index-dependent parameters. May be null
if the
index does not use additional search parameters.IndexException
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.