public final class Fast64CodeWordCoder extends CodeWordCoder
codeWord
Constructor and Description |
---|
Fast64CodeWordCoder(BitVector[] codeWord)
Creates a new codeword-based coder using the given vector of codewords.
|
Fast64CodeWordCoder(BitVector[] codeWord,
long[] longCodeWord)
Creates a new codeword-based coder using the given vector of codewords.
|
Modifier and Type | Method and Description |
---|---|
int |
encode(int symbol,
OutputBitStream obs)
Encodes a symbol.
|
codeWords, encode, flush, flush
public Fast64CodeWordCoder(BitVector[] codeWord, long[] longCodeWord)
codeWord.length-1
, included.codeWord
- a vector of codewords.longCodeWord
- the same codewords as those specified in codeWord
, but
as right-aligned longs written in left-to-right fashion.public Fast64CodeWordCoder(BitVector[] codeWord)
codeWord.length-1
, included.codeWord
- a vector of codewords.public int encode(int symbol, OutputBitStream obs) throws IOException
Coder
encode
in interface Coder
encode
in class CodeWordCoder
symbol
- a symbol.obs
- the output bit stream where the encoded symbol will be written.IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.