public class ThickBarrelIn extends Object implements BarrelReader
Documents
class and inverted list's
metadata in Terms
. This object defines a Barrel that
stores its inverted lists in a single file.Modifier and Type | Field and Description |
---|---|
String |
location
The directory where is the barrel stored.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the DB files.
|
SequenceWithClose<DocumentData> |
getDocuments()
Return an enumeration containing stored metadata of documents.
|
SequenceWithClose<IListReader> |
getILists()
Returns an enumeration of inverted lists.
|
long |
length()
Return the number of active (not deleted) documents.
|
void |
rewind()
Restart this BarrelReader so that the documents can be read again.
|
public String location
public SequenceWithClose<DocumentData> getDocuments()
getDocuments
in interface BarrelReader
public SequenceWithClose<IListReader> getILists()
getILists
in interface BarrelReader
public long length()
length
in interface BarrelReader
public void close()
close
in interface AutoCloseable
close
in interface BarrelReader
public void rewind() throws IOException
rewind
in interface BarrelReader
IOException
Copyright © 2016 Egothor. All Rights Reserved.