|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.dynamizer.Dynamizer
public abstract class Dynamizer
This abstract class should be implemented by any class applying an algorithm for dynamization to a data structure. A Dynamizer allows to dynamize a static data structure using a merge algorithm and decomposition into smaller data structures.
Constructor Summary | |
---|---|
Dynamizer()
|
Method Summary | |
---|---|
abstract void |
add(BarrelReader a)
Append a new org.egothor.core.DynStructReader to the
existing data structure. |
abstract void |
add(BarrelReader localBarrelReader,
java.lang.String srcLocation)
Pullovers (moves) a new org.egothor.core.DynStructReader to the
existing data structure. |
void |
close()
|
TransactionLog |
commit()
All buffers must be saved. |
void |
destroy()
|
Sequence<Barrel> |
elements()
Set of DynStruct elements. |
SlotMap |
getSlotter()
|
Slot |
initializeUnderControl(int slot)
Require manager to watch over a slot (if it does not yet). |
boolean |
isDirty()
Test whether this object has been modified. |
abstract void |
optimize(boolean useSoftDelete)
Optimizes the data structure following a delete (or remove) operation on the managed elements. |
boolean |
removeDoc(long gid,
int slot,
long lid)
|
void |
setSlotter(SlotMap slotter)
Use the given Manager to handle data chunks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.egothor.core.Status |
---|
getState, setState |
Constructor Detail |
---|
public Dynamizer()
Method Detail |
---|
public boolean isDirty()
public final Slot initializeUnderControl(int slot)
slot
- the slotpublic void setSlotter(SlotMap slotter)
slotter
- the desired Slotterpublic final Sequence<Barrel> elements()
public abstract void add(BarrelReader a)
org.egothor.core.DynStructReader
to the
existing data structure. When the algorithm decides that it has to
rebuild the actual barrel structures it must optimize.
a
- the data structure to appendpublic abstract void add(BarrelReader localBarrelReader, java.lang.String srcLocation)
org.egothor.core.DynStructReader
to the
existing data structure. When the algorithm decides that it has to
rebuild the actual barrel structures it must optimize.
localBarrelReader
- srcLocation
- location of the structure to be pulled overpublic abstract void optimize(boolean useSoftDelete)
useSoftDelete
- true
meand don't delete barrels directly, only
log them as dead barrels. false
means direct
deletepublic final TransactionLog commit()
public final void close()
public SlotMap getSlotter()
public void destroy()
public boolean removeDoc(long gid, int slot, long lid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |