public class SlotMap extends Object
Constructor and Description |
---|
SlotMap(String filename,
int versionID) |
Modifier and Type | Method and Description |
---|---|
Slot |
addUnderControl(int slot) |
void |
assignNewListener() |
void |
destroy(Slot slot) |
void |
destroySlots() |
Sequence<Barrel> |
elements() |
TransactionLog |
execute() |
Barrel |
get(int slot) |
Barrel |
get(Slot slot) |
String |
getFilename() |
int |
getRootVersionID() |
long |
getUid() |
static SlotMap |
open(String filename,
int versionID)
Returns the slotter on the filename (canonical form of the filename will be used).
|
Slot |
pullOverBarrel(BarrelReader reader,
String srcLocation)
Pulls over (moves) srcLocation barrel into this databes.
|
boolean |
removeDoc(long gid,
int slot,
long lid) |
TransactionLog |
rollback() |
Slot |
save(BarrelReader reader) |
void |
setListenSlotMap(ListenSlotMap listener) |
void |
softDestroy(Slot slot) |
public SlotMap(String filename, int versionID)
public void setListenSlotMap(ListenSlotMap listener)
public static SlotMap open(String filename, int versionID) throws IOException
IOException
getRootVersionID()
public void assignNewListener() throws IOException
IOException
public int getRootVersionID()
public long getUid()
public String getFilename()
public Slot addUnderControl(int slot)
public Barrel get(int slot)
public void destroy(Slot slot)
public void softDestroy(Slot slot)
public Slot save(BarrelReader reader)
public Slot pullOverBarrel(BarrelReader reader, String srcLocation)
reader
- Reader that is being pulled oversrcLocation
- Reader's location that is being pulled overpublic void destroySlots()
public TransactionLog rollback()
public TransactionLog execute()
public boolean removeDoc(long gid, int slot, long lid)
Copyright © 2016 Egothor. All Rights Reserved.