|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.robot.index.DocumentsFastWriter
public class DocumentsFastWriter
DocumentsFastWriter can construct a structure that is described in Documents
. It can also add an element to an already existing
structure.
Constructor Summary | |
---|---|
DocumentsFastWriter(java.lang.String location)
Constructor for the DocumentsFastWriter. |
Method Summary | |
---|---|
long |
addElement(DocumentData obj)
Appends a new object to the structure. |
void |
close()
Close the two files opened in the constructor. |
void |
save(DocumentData doc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentsFastWriter(java.lang.String location) throws java.io.IOException
location
- the directory to write torunnable
- the index must be able to run, not only to be readable via DocumentsReader
java.io.IOException
- Description of the Exception
IOException
- if an I/O error occursMethod Detail |
---|
public void save(DocumentData doc) throws java.io.IOException
java.io.IOException
public long addElement(DocumentData obj) throws java.io.IOException
Saveable
.
obj
- the element to add
java.io.IOException
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |