public interface IndexWriter
Interface of index writer
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
For disk-based indexing, this method delete all files under the indexing folder.
|
void |
close() |
void |
flush()
For disk-based indexing, this method dump all information in memory to the files on disk.
|
void |
initialize()
It is required to call this method before calling the write method
|
int |
size() |
boolean |
write(IRDoc curDoc,
IRTerm[] arrTerms)
All fields (doc key, doc index, term count, term number, relation count, and relation number) of the IRDoc object should be set.
|
boolean |
write(IRDoc curDoc,
IRTerm[] arrTerms,
IRRelation[] arrRelations)
All fields (doc key, doc index, term count, term number, relation count, and relation number) of the IRDoc object should be set.
|
void initialize()
void close()
void clean()
boolean write(IRDoc curDoc, IRTerm[] arrTerms, IRRelation[] arrRelations)
curDoc - the current documentarrTerms - terms in the current documentarrRelations - relations in the current documentboolean write(IRDoc curDoc, IRTerm[] arrTerms)
curDoc - the current documentarrTerms - terms in the current documentint size()
void flush()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.