public class BitCounterUncompressed extends java.lang.Object implements BitCounter
Constructor and Description |
---|
BitCounterUncompressed(DataDescriptor parent,
int nrows,
int replicationCountSize)
This counts the size of an array of Structures or Sequences, ie Structure(n)
|
Modifier and Type | Method and Description |
---|---|
int |
getCountBits() |
BitCounterUncompressed[] |
getNested(DataDescriptor subKey) |
int |
getNumberRows() |
int |
getOffset(DataDescriptor dkey) |
int |
getStartBit(int row) |
BitCounterUncompressed |
makeNested(DataDescriptor subKey,
int n,
int row,
int replicationCountSize)
Track nested Tables.
|
void |
setBitOffset(DataDescriptor dkey) |
void |
toString(java.util.Formatter f,
Indent indent) |
public BitCounterUncompressed(DataDescriptor parent, int nrows, int replicationCountSize)
parent
- is a structure or a sequence - so has subKeysnrows
- numbers of rows in the table, equals 1 for top levelreplicationCountSize
- number of bits taken up by the count variable (non-zero only for sequences)public void setBitOffset(DataDescriptor dkey)
public int getOffset(DataDescriptor dkey)
public BitCounterUncompressed makeNested(DataDescriptor subKey, int n, int row, int replicationCountSize)
subKey
- subKey is a structure or a sequence - so itself has subKeysn
- numbers of rows in the nested tablerow
- which row in the parent Table this belongs toreplicationCountSize
- number of bits taken up by the count (non-zero for sequences)public BitCounterUncompressed[] getNested(DataDescriptor subKey)
public int getCountBits()
public int getNumberRows()
getNumberRows
in interface BitCounter
public int getStartBit(int row)
public void toString(java.util.Formatter f, Indent indent)