Package org.terrier.structures
Class ZstdCompressedMetaIndex
- java.lang.Object
-
- org.terrier.structures.BaseCompressingMetaIndex
-
- org.terrier.structures.ZstdCompressedMetaIndex
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,MetaIndex
public class ZstdCompressedMetaIndex extends BaseCompressingMetaIndex
MetaIndex implementation for when records are compressed using Zstandard- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZstdCompressedMetaIndex.InputStream
-
Field Summary
-
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 ZstdCompressedMetaIndex(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
-
ZstdCompressedMetaIndex
public ZstdCompressedMetaIndex(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
-
-