Package org.terrier.structures
Class CompressingMetaIndex
- java.lang.Object
-
- org.terrier.structures.BaseCompressingMetaIndex
-
- org.terrier.structures.CompressingMetaIndex
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,MetaIndex
- Direct Known Subclasses:
UncompressedMetaIndex
public class CompressingMetaIndex extends BaseCompressingMetaIndex
Implementation of BaseCompressingMetaIndex that uses Zlib deflate algorithm to compress entries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompressingMetaIndex.InputStream
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.ThreadLocal<java.util.zip.Inflater>
inflaterCache
thread-local cache of Inflaters to be re-used for decompression-
Fields inherited from class org.terrier.structures.BaseCompressingMetaIndex
dataSource, key2bytelength, key2byteoffset, key2reverseOffset, keyCount, keyFactories, keyNames, numDocs, offsetLookup, path, pointerCache, prefix, recordLength, reverseMetaMaps, valueByteLengths, valueByteOffsets, valuesSorted
-
-
Constructor Summary
Constructors Constructor Description CompressingMetaIndex(IndexOnDisk index, java.lang.String structureName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
decode(byte[] input)
-
Methods inherited from class org.terrier.structures.BaseCompressingMetaIndex
_binarySearch, close, getAllItems, getDocument, getItem, getItems, getItems, getItems, getKeys, getReverseKeys, loadIndex, main, size
-
-
-
-
Constructor Detail
-
CompressingMetaIndex
public CompressingMetaIndex(IndexOnDisk index, java.lang.String structureName) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
decode
protected byte[] decode(byte[] input) throws java.io.IOException
- Specified by:
decode
in classBaseCompressingMetaIndex
- Throws:
java.io.IOException
-
-