Package it.unimi.dsi.sux4j.mph.codec
Class Codec.ZeroCodec
java.lang.Object
it.unimi.dsi.sux4j.mph.codec.Codec.ZeroCodec
- All Implemented Interfaces:
Codec
- Enclosing interface:
- Codec
A degenerate stateless codec (always returns zero).
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.unimi.dsi.sux4j.mph.codec.Codec
Codec.Binary, Codec.Decoder, Codec.Gamma, Codec.Huffman, Codec.Unary, Codec.ZeroCodec
-
Method Summary
Modifier and TypeMethodDescriptiongetCoder
(Long2LongMap frequencies) Returns a coder for a specific map from symbols to frequencies.static Codec.ZeroCodec
-
Method Details
-
getInstance
-
getCoder
Description copied from interface:Codec
Returns a coder for a specific map from symbols to frequencies.Note that even instantaneous codes (such as
Codec.Unary
) need to know the set of symbols, as the returned coder needs to known the maximum codeword length.
-