public abstract class Dynamizer extends Object implements Status
Constructor and Description |
---|
Dynamizer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(BarrelReader a)
Append a new barrel to the
existing data structure.
|
abstract void |
add(BarrelReader localBarrelReader,
String srcLocation)
Pullovers (moves) a new barrel 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.
|
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)
a
- the data structure to appendpublic abstract void add(BarrelReader localBarrelReader, String srcLocation)
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)
gid
- slot
- lid
- Copyright © 2016 Egothor. All Rights Reserved.