| java.lang.Object it.unimi.dsi.mg4j.index.Index it.unimi.dsi.mg4j.index.BitStreamIndex it.unimi.dsi.mg4j.index.BitStreamHPIndex
All known Subclasses: it.unimi.dsi.mg4j.index.InMemoryHPIndex, it.unimi.dsi.mg4j.index.MemoryMappedHPIndex, it.unimi.dsi.mg4j.index.FileHPIndex,
BitStreamHPIndex | abstract public class BitStreamHPIndex extends BitStreamIndex (Code) | | A
index.
Implementing subclasses must provide access to the index bitstream (as it
happens for a
BitStreamIndex ) but also to the positions stream,
both at
and
level.
Wired implementations
The standard readers associated to an instance of this class are of type
BitStreamHPIndexReader .
Nonetheless, it is possible to generate automatically sources for wired classes that
work only for a particular set of codings and flags. The wired classes will be fetched
automagically by reflection, if available. Please read the section about performance in the MG4J manual.
author: Sebastiano Vigna since: 1.1 |
Constructor Summary | |
public | BitStreamHPIndex(int numberOfDocuments, int numberOfTerms, long numberOfPostings, long numberOfOccurrences, int maxCount, Payload payload, Coding frequencyCoding, Coding pointerCoding, Coding countCoding, Coding positionCoding, int quantum, int height, int bufferSize, TermProcessor termProcessor, String field, Properties properties, StringMap<? extends CharSequence> termMap, PrefixMap<? extends CharSequence> prefixMap, IntList sizes, LongList offsets) |
BitStreamHPIndex | public BitStreamHPIndex(int numberOfDocuments, int numberOfTerms, long numberOfPostings, long numberOfOccurrences, int maxCount, Payload payload, Coding frequencyCoding, Coding pointerCoding, Coding countCoding, Coding positionCoding, int quantum, int height, int bufferSize, TermProcessor termProcessor, String field, Properties properties, StringMap<? extends CharSequence> termMap, PrefixMap<? extends CharSequence> prefixMap, IntList sizes, LongList offsets)(Code) | | |
getPositionsInputBitStream | abstract public InputBitStream getPositionsInputBitStream(int bufferSize) throws IOException(Code) | | Returns an input bit stream over the index.
Parameters: bufferSize - a suggested buffer size. an input bit stream over the index. |
getPositionsInputStream | abstract public InputStream getPositionsInputStream() throws IOException(Code) | | Returns an input stream over the index.
an input stream over the index. |
Methods inherited from it.unimi.dsi.mg4j.index.Index | public IndexIterator documents(int term) throws IOException(Code)(Java Doc) public IndexIterator documents(CharSequence term) throws IOException(Code)(Java Doc) abstract public IndexIterator documents(CharSequence prefix, int limit) throws IOException, TooManyTermsException(Code)(Java Doc) public static Index getInstance(CharSequence uri, boolean randomAccess, boolean documentSizes, boolean maps) throws IOException, ConfigurationException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static Index getInstance(CharSequence uri, boolean randomAccess, boolean documentSizes) throws IOException, ConfigurationException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static Index getInstance(CharSequence uri, boolean randomAccess) throws ConfigurationException, IOException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static Index getInstance(CharSequence uri) throws ConfigurationException, IOException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public IndexReader getReader() throws IOException(Code)(Java Doc) abstract public IndexReader getReader(int bufferSize) throws IOException(Code)(Java Doc) protected static TermProcessor getTermProcessor(Properties properties)(Code)(Java Doc) public void keyIndex(Index newKeyIndex)(Code)(Java Doc)
|
|
|