public class NOnesIntDecoder extends FourFlagsIntDecoder
NOnesIntEncoder
.Constructor and Description |
---|
NOnesIntDecoder(int n)
Constructs a decoder with a given N (Number of consecutive '1's which are
translated into a single target value '2'.
|
public NOnesIntDecoder(int n)
public void decode(BytesRef buf, IntsRef values)
IntDecoder
IntsRef
. Note
that values.offset
is set to 0, and values.length
is
updated to denote the number of decoded values.decode
in class FourFlagsIntDecoder
public String toString()
toString
in class FourFlagsIntDecoder
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.