public class ConcatListReader extends ConcatLists
Constructor and Description |
---|
ConcatListReader(int max_len,
String term)
Constructor for the ConcatListReader object
|
Modifier and Type | Method and Description |
---|---|
void |
add(long off,
IListReader ilr)
Add the given inverted list at the given position in this
ConcatListReader.
|
void |
close()
Close the IListReaders and mark for garbage collection.
|
IListItem |
cursor() |
long |
getPostings()
Return the number of postings.
|
void |
switchContext()
Description of the Method
|
public ConcatListReader(int max_len, String term)
max_len
- the initial lengthterm
- the termpublic long getPostings()
getPostings
in interface IListReader
getPostings
in class ConcatLists
public void add(long off, IListReader ilr)
off
- where to addilr
- the inverted list to addpublic void switchContext()
switchContext
in class ConcatLists
public IListItem cursor()
public void close()
close
in interface AutoCloseable
close
in interface IListReader
close
in class ConcatLists
Copyright © 2016 Egothor. All Rights Reserved.