Class TokenStreams
java.lang.Object
htsjdk.samtools.cram.compression.nametokenisation.TokenStreams
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final intstatic final byte -
Constructor Summary
ConstructorsConstructorDescriptionTokenStreams(ByteBuffer inputByteBuffer, int useArith, int numNames) The outer index corresponds to the (column) position in a name (starting at index 0). -
Method Summary
Modifier and TypeMethodDescriptiongetStream(int tokenPosition, int tokenType) getStreamsForPos(int pos)
-
Field Details
-
TOKEN_TYPE
public static final byte TOKEN_TYPE- See Also:
-
TOKEN_STRING
public static final byte TOKEN_STRING- See Also:
-
TOKEN_CHAR
public static final byte TOKEN_CHAR- See Also:
-
TOKEN_DIGITS0
public static final byte TOKEN_DIGITS0- See Also:
-
TOKEN_DZLEN
public static final byte TOKEN_DZLEN- See Also:
-
TOKEN_DUP
public static final byte TOKEN_DUP- See Also:
-
TOKEN_DIFF
public static final byte TOKEN_DIFF- See Also:
-
TOKEN_DIGITS
public static final byte TOKEN_DIGITS- See Also:
-
TOKEN_DELTA
public static final byte TOKEN_DELTA- See Also:
-
TOKEN_DELTA0
public static final byte TOKEN_DELTA0- See Also:
-
TOKEN_MATCH
public static final byte TOKEN_MATCH- See Also:
-
TOKEN_NOP
public static final byte TOKEN_NOP- See Also:
-
TOKEN_END
public static final byte TOKEN_END- See Also:
-
TOTAL_TOKEN_TYPES
public static final int TOTAL_TOKEN_TYPES- See Also:
-
TYPE_TOKEN_FLAG_MASK
public static final byte TYPE_TOKEN_FLAG_MASK- See Also:
-
DUP_PREVIOUS_STREAM_FLAG_MASK
public static final byte DUP_PREVIOUS_STREAM_FLAG_MASK- See Also:
-
NEW_POSITION_FLAG_MASK
public static final byte NEW_POSITION_FLAG_MASK- See Also:
-
-
Constructor Details
-
TokenStreams
The outer index corresponds to the (column) position in a name (starting at index 0). The inner index corresponds to the token type. Each element in this list of lists is a ByteBuffer of tokens.- Parameters:
inputByteBuffer- - the input buffer of token streamsuseArith- - true to use range coding; false for rANS codingnumNames- - the number of read names in the slice for which this token stream is being created
-
-
Method Details
-
getStreamsForPos
-
getStream
-