java.lang.Object
htsjdk.samtools.cram.compression.nametokenisation.TokenStreams

public class TokenStreams extends Object
  • Field Details

  • Constructor Details

    • TokenStreams

      public TokenStreams(ByteBuffer inputByteBuffer, int useArith, int numNames)
      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 streams
      useArith - - true to use range coding; false for rANS coding
      numNames - - the number of read names in the slice for which this token stream is being created
  • Method Details

    • getStreamsForPos

      public ByteBuffer[] getStreamsForPos(int pos)
    • getStream

      public ByteBuffer getStream(int tokenPosition, int tokenType)