public class BitPostingIndex extends Object implements PostingIndex<BitIndexPointer>
PostingIndex.DocidSpecificDocumentIndex
Modifier and Type | Field and Description |
---|---|
protected DocumentIndex |
doi |
protected int |
fieldCount |
protected BitInSeekable[] |
file |
protected IndexOnDisk |
index |
protected Constructor<? extends IterablePosting> |
postingConstructor |
protected Class<? extends IterablePosting> |
postingImplementation |
Modifier | Constructor and Description |
---|---|
|
BitPostingIndex(IndexOnDisk _index,
String _structureName,
Class<? extends IterablePosting> _postingImplementation)
Constructs an instance of the BitPostingIndex.
|
|
BitPostingIndex(IndexOnDisk _index,
String _structureName,
DocumentIndex _documentIndex,
Class<? extends IterablePosting> _postingImplementation)
Constructs an instance of the BitPostingIndex.
|
protected |
BitPostingIndex(String filename,
byte fileCount,
Class<? extends IterablePosting> _postingImplementation,
String _dataSource)
Deprecated.
|
|
BitPostingIndex(String filename,
byte fileCount,
Class<BasicIterablePosting> _postingImplementation,
String _dataSource,
int _fieldCount) |
protected |
BitPostingIndex(String filename,
byte fileCount,
DocumentIndex _doi,
Class<? extends IterablePosting> _postingImplementation,
String _dataSource,
int _fieldCount) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
IterablePosting |
getPostings(Pointer pointer)
Get the posting given a pointer
|
protected void |
setPostingImplementation(Class<? extends IterablePosting> postingClass) |
protected BitInSeekable[] file
protected Class<? extends IterablePosting> postingImplementation
protected Constructor<? extends IterablePosting> postingConstructor
protected DocumentIndex doi
protected IndexOnDisk index
protected int fieldCount
public BitPostingIndex(IndexOnDisk _index, String _structureName, Class<? extends IterablePosting> _postingImplementation) throws IOException
_index
- _structureName
- _postingImplementation
- IOException
public BitPostingIndex(IndexOnDisk _index, String _structureName, DocumentIndex _documentIndex, Class<? extends IterablePosting> _postingImplementation) throws IOException
_index
- _structureName
- _documentIndex
- _postingImplementation
- IOException
public BitPostingIndex(String filename, byte fileCount, Class<BasicIterablePosting> _postingImplementation, String _dataSource, int _fieldCount) throws IOException
IOException
@Deprecated protected BitPostingIndex(String filename, byte fileCount, Class<? extends IterablePosting> _postingImplementation, String _dataSource) throws IOException
IOException
protected BitPostingIndex(String filename, byte fileCount, DocumentIndex _doi, Class<? extends IterablePosting> _postingImplementation, String _dataSource, int _fieldCount) throws IOException
IOException
protected void setPostingImplementation(Class<? extends IterablePosting> postingClass) throws IOException
IOException
public IterablePosting getPostings(Pointer pointer) throws IOException
getPostings
in interface PostingIndex<BitIndexPointer>
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Terrier 4.0. Copyright © 2004-2014 University of Glasgow