public class TankerImpl extends Tanker
Constructor and Description |
---|
TankerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
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(String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity)
Init a tanker with Egothor dynamizer.
|
void |
initializeTanker(String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor)
Init a tanker with Standard dynamizer.
|
Properties |
loadState()
Read properties of the Tanker
|
boolean |
removeDoc(long gid)
Remove the document with the given ID and return whether the
operation was successful.
|
elements, getRootVersionID, isDirty, optimize
deleted, expand, forEach, getBitmap, getCache, getCWI, getIListMeta, getMeta, initializeCache, initializeCache, initializeCache, initializeCache, iterate, open, openIList, query, query, query, resolve, setBitmap, size
public void initializeTanker(String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity) throws IOException
indexDir
- repo
- useBerkeleyGP
- MTE
- capacity
- IOException
public void initializeTanker(String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor) throws IOException
indexDir
- repo
- useBerkeleyGP
- MTE
- capacity
- mergeFactor
- IOException
public void append(BarrelReader a)
Tanker
append
in interface BarrelWriter
append
in class Tanker
a
- the Barrel to addpublic boolean removeDoc(long gid)
Group
public Properties loadState() throws IOException
IOException
public DocumentData expandDocMetadata(DocumentData ofBarrel, Token[] interest)
Group
expandDocMetadata
in class Tanker
public void commit()
public void destroy()
public void close()
Tanker
close
in interface AutoCloseable
close
in interface Barrel
close
in interface BarrelWriter
close
in class Tanker
Copyright © 2016 Egothor. All Rights Reserved.