public abstract class AbstractSequenceIndexWriter extends Object implements IndexWriter
The abstract index writer for sequencial data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected IRCollection |
collection |
protected static int |
doc_cache_size |
protected IRDocIndexList |
docIndexList |
protected SimpleElementList |
docKeyList |
protected SequenceWriter |
doctermMatrix |
protected boolean |
initialized |
protected SortedArray |
termCache |
protected IRTermIndexList |
termIndexList |
protected SimpleElementList |
termKeyList |
| Constructor and Description |
|---|
AbstractSequenceIndexWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
For disk-based indexing, this method dump all information in memory to the files on disk.
|
boolean |
indexed(String docKey) |
int |
size() |
boolean |
write(IRDoc curDoc,
IRTerm[] arrTerm)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclean, close, initializeprotected static int doc_cache_size
protected SortedArray termCache
protected SimpleElementList termKeyList
protected SimpleElementList docKeyList
protected IRTermIndexList termIndexList
protected IRDocIndexList docIndexList
protected SequenceWriter doctermMatrix
protected IRCollection collection
protected boolean initialized
public boolean indexed(String docKey)
public int size()
size in interface IndexWriterpublic void flush()
IndexWriterflush in interface IndexWriterpublic boolean write(IRDoc curDoc, IRTerm[] arrTerms, IRRelation[] arrRelations)
IndexWriterwrite in interface IndexWritercurDoc - the current documentarrTerms - terms in the current documentarrRelations - relations in the current documentpublic boolean write(IRDoc curDoc, IRTerm[] arrTerm)
IndexWriterwrite in interface IndexWritercurDoc - the current documentarrTerm - terms in the current documentCopyright © 2018 JULIE Lab, Germany. All rights reserved.