Terrier IR Platform
2.2.1

Package uk.ac.gla.terrier.compression

Provides implementation of a random access file and input and output streams where we can read or write gamma, unary and binary encoded integers.

See:
          Description

Interface Summary
BitIn Interface describing the read compression methods supported by the BitFile and BitInputStream classes.
BitInSeekable Interface for BitFile and OldBitFile - future proofing for returning new objects for readReset instead of just the object itself.
BitOut Interface describing the writing compression methods supported by the BitFile classes.
 

Class Summary
BitByteOutputStream This class provides methods to write compressed integers to an outputstream.
The numbers are written into a byte starting from the most significant bit (i.e, left to right).
BitFile This class encapsulates a random access file and provides the functionalities to write binary encoded, unary encoded and gamma encoded integers greater than zero, as well as specifying their offset in the file.
BitFileInMemory Class which enables a BitFile to be read in memory
BitInputStream This class reads from a file or an InputStream integers that can be coded with different encoding algorithms.
BitOutputStream This class provides methods to write compressed integers to an outputstream.
The numbers are written into a byte starting from the most significant bit (i.e, left to right).
BitUtilities Utility methods for use in the BitFile classes.
LinkedBuffer Implements an element of a linked list that contains a byte array
MemoryLinkedOutputStream This class implements an OutputStream that writes everything in memory, and never flushes the data to disk.
MemoryOutputStream This class extends an ordinary OutputStream to handle transparently writes in memory.
MemorySBOS This class extends the BitByteOutputStream, so it provides the compression writting functions, but uses a MemoryOutputStream as an underlying OutputStream, so it is needed to be flushed to disk separately.
OldBitFile This class encapsulates a random access file and provides the functionalities to write highly compressed data structures, eg binary encoded, unary encoded and gamma encoded integers greater than zero, as well as specifying their offset in the file.
OldBitInputStream This class provides sequential stream access to a compressed BitFile file.
OldBitOutputStream Deprecated.  
 

Package uk.ac.gla.terrier.compression Description

Provides implementation of a random access file and input and output streams where we can read or write gamma, unary and binary encoded integers.


Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow