|
||||||||||
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 org.egothor.dir.TankerImpl
public class TankerImpl
This object encapsulates core Tanker structure with some routines which make the life of a programmer easier.
Field Summary |
---|
Fields inherited from class org.egothor.dir.Group |
---|
cache |
Constructor Summary | |
---|---|
TankerImpl()
|
Method Summary | |
---|---|
void |
append(BarrelReader a)
Add the given Barrel to this Tanker. |
void |
close()
Close this Tanker. |
void |
commit()
Save the state of the tanker object. |
protected void |
commitEmit(int recordsx4,
long[] record4)
|
protected void |
commitEmitEnd()
|
void |
destroy()
Description of the Method |
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. |
void |
initializeTanker(java.lang.String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity)
Init a tanker with Egothor dynamizer. |
void |
initializeTanker(java.lang.String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor)
Init a tanker with Standard dynamizer. |
java.util.Properties |
loadState()
Read properties of the Tanker |
protected boolean |
removeDoc(GlobalPosition position)
|
boolean |
removeDoc(long gid)
Remove the document with the given ID and return whether the operation was successful. |
Methods inherited from class org.egothor.dir.Tanker |
---|
elements, finalize, getRootVersionID, initialize, isDirty, optimize |
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, resolve, setBitmap, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TankerImpl()
Method Detail |
---|
public void initializeTanker(java.lang.String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity) throws java.io.IOException, com.sleepycat.db.DatabaseException
indexDir
- repo
- useBerkeleyGP
- MTE
- capacity
-
java.io.IOException
DatabaseException
public void initializeTanker(java.lang.String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor) throws java.io.IOException, com.sleepycat.db.DatabaseException
indexDir
- repo
- useBerkeleyGP
- MTE
- capacity
- mergeFactor
-
java.io.IOException
DatabaseException
public void append(BarrelReader a)
Tanker
append
in interface BarrelWriter
append
in class Tanker
a
- the Barrel to addpublic boolean removeDoc(long gid)
Group
removeDoc
in interface Barrel
removeDoc
in class Group
gid
- the document to remove
protected boolean removeDoc(GlobalPosition position)
public java.util.Properties loadState() throws java.io.IOException
p
- The properties
java.io.IOException
public DocumentData expandDocMetadata(DocumentData ofBarrel, Token[] interest)
Group
expandDocMetadata
in class Tanker
public void commit()
commit
in interface Barrel
commit
in class Tanker
protected void commitEmit(int recordsx4, long[] record4) throws java.io.IOException
commitEmit
in class Tanker
java.io.IOException
protected void commitEmitEnd() throws java.io.IOException
commitEmitEnd
in class Tanker
java.io.IOException
public void destroy()
destroy
in interface Barrel
destroy
in class Tanker
public void close()
Tanker
close
in interface Barrel
close
in interface BarrelWriter
close
in class Tanker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |