Constructor and Description |
---|
MemValues(Data data,
boolean updindex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the index.
|
int |
costs(IndexToken token)
Returns a cost estimation for searching the specified token.
|
void |
create(IndexType type)
Creates an index.
|
void |
delete(byte[] key,
int id)
Removes a record from the index.
|
boolean |
drop()
Drops the index.
|
EntryIterator |
entries(IndexEntries entries)
Returns all entries that match the specified token.
|
void |
finish()
Finishes the build process.
|
byte[] |
info(MainOptions options)
Returns information on the index structure.
|
void |
init()
Initializes the index.
|
IndexIterator |
iter(IndexToken token)
Returns an iterator for the index results.
|
int |
put(byte[] key,
int id)
Stores the specified key and id.
|
void |
rehash(int s)
Rehashes all entries.
|
public MemValues(Data data, boolean updindex)
data
- data instanceupdindex
- updating indexpublic void init()
Index
public IndexIterator iter(IndexToken token)
Index
public int costs(IndexToken token)
Index
public EntryIterator entries(IndexEntries entries)
Index
public byte[] info(MainOptions options)
Index
public void finish()
public void create(IndexType type)
type
- index typepublic boolean drop()
Index
public void close()
Index
public void rehash(int s)
ASet
public int put(byte[] key, int id)
key
- keyid
- id valuepublic void delete(byte[] key, int id)
key
- record keyid
- record idCopyright © 2005–2015 BaseX Team. All rights reserved.