public abstract class AbstractIndexWriter extends Object implements IndexWriter
The class implements two methods writing termdoc and docterm matrix to disk with options of term based, relation based or both
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected IRCollection |
collection |
protected static int |
doc_cache_size |
protected int |
doc_in_cache |
protected IRDocIndexList |
docIndexList |
protected IntSparseMatrix |
docrelationMatrix |
protected IntSparseMatrix |
doctermMatrix |
protected boolean |
initialized |
protected IRRelationIndexList |
relationIndexList |
protected boolean |
relationSupported |
protected IRTermIndexList |
termIndexList |
| Constructor and Description |
|---|
AbstractIndexWriter(boolean relationSupported) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclean, close, flush, initializeprotected static int doc_cache_size
protected IRTermIndexList termIndexList
protected IRRelationIndexList relationIndexList
protected IRDocIndexList docIndexList
protected IntSparseMatrix doctermMatrix
protected IntSparseMatrix docrelationMatrix
protected IRCollection collection
protected int doc_in_cache
protected boolean relationSupported
protected boolean initialized
public int size()
size 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[] arrTerms)
IndexWriterwrite in interface IndexWritercurDoc - the current documentarrTerms - terms in the current documentCopyright © 2018 JULIE Lab, Germany. All rights reserved.