|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.cm.Indexer
public final class Indexer
Nested Class Summary | |
---|---|
static class |
Indexer.SearchCallback
|
Constructor Summary | |
---|---|
Indexer()
|
|
Indexer(boolean sync)
Creates an indexer |
Method Summary | |
---|---|
void |
addToIndex(Map<String,String> indexables,
long pos)
|
boolean |
close()
|
boolean |
create()
|
Map<String,NameIndexer> |
getIndexers()
returns an iteration of index fields (attributes) |
BTreeFiler |
getListDB()
returns listDB |
boolean |
open()
|
void |
purge(List<Long> 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<Long> |
readRecord(Record record)
|
void |
removeFromIndex(Map<String,String> 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<String,NameIndexer> getIndexers()
public BTreeFiler getListDB()
public void search(IndexQuery query, String name, BTreeCallback callback) throws IOException, BTreeException
IOException
BTreeException
public void addToIndex(Map<String,String> indexables, long pos) throws IOException, DBException
IOException
DBException
public void removeFromIndex(Map<String,String> indexables, long pos) throws DBException
DBException
public void purge(List<Long> list) throws IOException, BTreeException
list
- List of Long position(s) at which the record to be purged is
located in the main database.
IOException
- if an io error occurs
BTreeException
- if an DB error occurspublic void purge(long pos) throws IOException, BTreeException
pos
- the position at which the record to be purged is
located in the main database.
IOException
- if an io error occurs
BTreeException
- if an BTree error occurspublic static Set<Long> readRecord(Record record)
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |