public class ThickBarrelOut extends Object implements BarrelWriter
Constructor and Description |
---|
ThickBarrelOut(String location)
Constructor for the ThickBarrelOut object.
|
Modifier and Type | Method and Description |
---|---|
void |
append(BarrelReader old)
Appends the given Barrel to this one.
|
void |
appendIList(long max_len,
IListReader il)
Appends the given inverted list to this Barrel.
|
void |
close()
Close this stream and mark resources for garbage collection.
|
void |
saveDocument(long globalUID,
long localUID,
int revision) |
void |
setListenBarrelWriter(ListenBarrelWriter listener) |
public ThickBarrelOut(String location) throws IOException
location
directory and initializes DB
files for metadata in that new directory. This constructor
allocates the inverted lists single file that is located in a
directory location
in a file with filename lists
location
- the directory to be createdIOException
- if the directory cannot be createdpublic void setListenBarrelWriter(ListenBarrelWriter listener)
listener
- public void close()
close
in interface AutoCloseable
close
in interface BarrelWriter
public void saveDocument(long globalUID, long localUID, int revision) throws IOException
globalUID
- localUID
- revision
- IOException
public void append(BarrelReader old) throws IOException
append
in interface BarrelWriter
old
- the Barrel to add to this oneIOException
- if an I/O error occurspublic void appendIList(long max_len, IListReader il) throws IOException
remap
value.max_len
- Description of the Parameteril
- the inverted list to addIOException
- if an I/O error occursCopyright © 2016 Egothor. All Rights Reserved.