|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.cm.Indexer
Nested Class Summary | |
static class |
Indexer.SearchCallback
|
Constructor Summary | |
Indexer()
|
|
Indexer(boolean sync)
Creates an indexer |
Method Summary | |
void |
addToIndex(Map indexables,
long pos)
|
boolean |
close()
|
boolean |
create()
|
Map |
getIndexers()
returns an iteration of index fields (attributes) |
BTreeFiler |
getListDB()
returns listDB |
boolean |
open()
|
void |
purge(List list)
purge all index entries pointing to a certain record. |
void |
purge(long pos)
purge all index entries pointing to a certain record. |
static Set |
readRecord(Record record)
|
void |
removeFromIndex(Map indexables,
long pos)
|
void |
search(IndexQuery query,
String name,
BTreeCallback callback)
|
void |
setLocation(String dir,
String file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Indexer()
public Indexer(boolean sync)
sync
- passed through to xindice to determine a lazy checkpoint or not
false == lazy checkpointMethod Detail |
public void setLocation(String dir, String file)
public boolean open() throws DBException
DBException
public boolean create() throws DBException
DBException
public boolean close() throws DBException
DBException
public Map getIndexers()
public BTreeFiler getListDB()
public void search(IndexQuery query, String name, BTreeCallback callback) throws IOException, BTreeException
IOException
BTreeException
public void addToIndex(Map indexables, long pos) throws IOException, DBException
IOException
DBException
public void removeFromIndex(Map indexables, long pos) throws DBException
DBException
public void purge(List list) throws IOException, BTreeException
list
- List of Long position(s) at which the record to be purged is
located in the main database.
IOException
BTreeException
public void purge(long pos) throws IOException, BTreeException
pos
- the position at which the record to be purged is
located in the main database.
IOException
BTreeException
public static Set readRecord(Record record)
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |