|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.dir.Group org.egothor.dir.Tanker
public abstract class Tanker
A Tanker is a group of Barrels with the capability of inserting new
Barrels. The insertion often causes the reorganization of the active
Barrels of the group. The reorganization is then assured by Dynamizer
.
Field Summary |
---|
Fields inherited from class org.egothor.dir.Group |
---|
cache |
Constructor Summary | |
---|---|
protected |
Tanker()
|
Method Summary | |
---|---|
void |
append(BarrelReader a)
Add the given Barrel to this Tanker. |
void |
close()
Close this Tanker. |
void |
commit()
Store the actual state of this Tanker. |
protected void |
commitEmit(int recordsx4,
long[] record4)
|
protected void |
commitEmitEnd()
|
void |
destroy()
Destroy this Tanker. |
Sequence<Barrel> |
elements()
Return the Barrels in this Tanker. |
abstract DocumentData |
expandDocMetadata(DocumentData ofBarrel,
Token[] interest)
Retrives the document data, but restrict the data block to the part relevant to some tokens of our interest. |
protected void |
finalize()
Calls close() . |
int |
getRootVersionID()
|
protected void |
initialize(Distributor<Barrel> dis,
Dynamizer dyn)
Constructor for the Tanker object. |
boolean |
isDirty()
Test whether this Tanker has been modified. |
void |
optimize()
Description of the Method |
Methods inherited from class org.egothor.dir.Group |
---|
deleted, expand, forEach, getBitmap, getCache, getCWI, getIListMeta, getMeta, initialize, initializeCache, initializeCache, initializeCache, initializeCache, iterate, open, openIList, query, query, removeDoc, resolve, setBitmap, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Tanker()
Method Detail |
---|
protected void initialize(Distributor<Barrel> dis, Dynamizer dyn)
dis
- handles requests of this Tankerdyn
- takes care of reorganization if necessarypublic boolean isDirty()
public abstract DocumentData expandDocMetadata(DocumentData ofBarrel, Token[] interest)
Group
expandDocMetadata
in class Group
public Sequence<Barrel> elements()
elements
in class Group
public void commit()
commit
in interface Barrel
protected void commitEmit(int recordsx4, long[] record4) throws java.io.IOException
java.io.IOException
protected void commitEmitEnd() throws java.io.IOException
java.io.IOException
public int getRootVersionID()
public void close()
close
in interface Barrel
close
in interface BarrelWriter
close
in class Group
public void append(BarrelReader a)
append
in interface BarrelWriter
a
- the Barrel to addpublic void destroy()
destroy
in interface Barrel
destroy
in class Group
public void optimize()
protected void finalize()
close()
.
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |