it.unimi.di.mg4j.index.remote
Class RemoteBitStreamHPIndex

java.lang.Object
  extended by it.unimi.di.mg4j.index.Index
      extended by it.unimi.di.mg4j.index.BitStreamIndex
          extended by it.unimi.di.mg4j.index.BitStreamHPIndex
              extended by it.unimi.di.mg4j.index.remote.RemoteBitStreamHPIndex
All Implemented Interfaces:
Serializable

public class RemoteBitStreamHPIndex
extends BitStreamHPIndex

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class it.unimi.di.mg4j.index.BitStreamIndex
BitStreamIndex.PropertyKeys
 
Nested classes/interfaces inherited from class it.unimi.di.mg4j.index.Index
Index.EmptyIndexIterator, Index.UriKeys
 
Field Summary
 SocketAddress address
          The address of the socket associated with this index.
static int DEFAULT_BUFFER_SIZE
          The default buffer size.
 
Fields inherited from class it.unimi.di.mg4j.index.BitStreamIndex
bufferSize, countCoding, DEFAULT_FIXED_QUANTUM, DEFAULT_HEIGHT, DEFAULT_QUANTUM, FIXED_POINT_BITS, FIXED_POINT_MULTIPLIER, frequencyCoding, height, offsets, pointerCoding, positionCoding, quantum, readerConstructor
 
Fields inherited from class it.unimi.di.mg4j.index.Index
field, hasCounts, hasPayloads, hasPositions, keyIndex, maxCount, numberOfDocuments, numberOfOccurrences, numberOfPostings, numberOfTerms, payload, prefixMap, properties, singletonSet, sizes, termMap, termProcessor
 
Constructor Summary
RemoteBitStreamHPIndex(SocketAddress address, int numberOfDocuments, int numberOfTerms, long numberOfPostings, long numberOfOccurrences, int maxCount, Payload payload, CompressionFlags.Coding frequencyCoding, CompressionFlags.Coding pointerCoding, CompressionFlags.Coding countCoding, CompressionFlags.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)
           
 
Method Summary
 InputBitStream getInputBitStream(int bufferSize)
          Returns an input bit stream over the index.
 InputStream getInputStream()
          Returns an input stream over the index.
 InputBitStream getPositionsInputBitStream(int bufferSize)
          Returns an input bit stream over the index.
 InputStream getPositionsInputStream()
          Returns an input stream over the index.
 
Methods inherited from class it.unimi.di.mg4j.index.BitStreamHPIndex
getConstructor, getReader
 
Methods inherited from class it.unimi.di.mg4j.index.BitStreamIndex
featureName, gaussianGolombModulus, golombModulus, quantumSigma, toString
 
Methods inherited from class it.unimi.di.mg4j.index.Index
documents, documents, documents, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getInstance, getInstance, getInstance, getInstance, getInstance, getReader, getTermProcessor, keyIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
The default buffer size.

See Also:
Constant Field Values

address

public final SocketAddress address
The address of the socket associated with this index.

Constructor Detail

RemoteBitStreamHPIndex

public RemoteBitStreamHPIndex(SocketAddress address,
                              int numberOfDocuments,
                              int numberOfTerms,
                              long numberOfPostings,
                              long numberOfOccurrences,
                              int maxCount,
                              Payload payload,
                              CompressionFlags.Coding frequencyCoding,
                              CompressionFlags.Coding pointerCoding,
                              CompressionFlags.Coding countCoding,
                              CompressionFlags.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)
Method Detail

getPositionsInputBitStream

public InputBitStream getPositionsInputBitStream(int bufferSize)
                                          throws IOException
Description copied from class: BitStreamHPIndex
Returns an input bit stream over the index.

Specified by:
getPositionsInputBitStream in class BitStreamHPIndex
Parameters:
bufferSize - a suggested buffer size.
Returns:
an input bit stream over the index.
Throws:
IOException

getPositionsInputStream

public InputStream getPositionsInputStream()
                                    throws IOException
Description copied from class: BitStreamHPIndex
Returns an input stream over the index.

Specified by:
getPositionsInputStream in class BitStreamHPIndex
Returns:
an input stream over the index.
Throws:
IOException

getInputBitStream

public InputBitStream getInputBitStream(int bufferSize)
                                 throws IOException
Description copied from class: BitStreamIndex
Returns an input bit stream over the index.

Specified by:
getInputBitStream in class BitStreamIndex
Parameters:
bufferSize - a suggested buffer size.
Returns:
an input bit stream over the index.
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from class: BitStreamIndex
Returns an input stream over the index.

Specified by:
getInputStream in class BitStreamIndex
Returns:
an input stream over the index.
Throws:
IOException