public class OnlineIndexWriter extends AbstractIndexWriter
The class is the same as BasicIndexWriter except that it does not store information to disk.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
collection, doc_cache_size, doc_in_cache, docIndexList, docrelationMatrix, doctermMatrix, initialized, relationIndexList, relationSupported, termIndexList| Constructor and Description |
|---|
OnlineIndexWriter(boolean relationSupported) |
| 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.
|
IRDocIndexList |
getDocIndexList() |
IntSparseMatrix |
getDocRelationMatrix() |
IntSparseMatrix |
getDocTermMatrix() |
IRCollection |
getIRCollection() |
IRRelationIndexList |
getRelationIndexList() |
IRTermIndexList |
getTermIndexList() |
void |
initialize()
It is required to call this method before calling the write method
|
size, write, writepublic void initialize()
IndexWriterpublic void close()
public void clean()
IndexWriterpublic void flush()
IndexWriterpublic IRTermIndexList getTermIndexList()
public IRRelationIndexList getRelationIndexList()
public IRDocIndexList getDocIndexList()
public IntSparseMatrix getDocTermMatrix()
public IntSparseMatrix getDocRelationMatrix()
public IRCollection getIRCollection()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.