public class BitCounterCompressed extends java.lang.Object implements BitCounter
Constructor and Description |
---|
BitCounterCompressed(DataDescriptor dkey,
int n,
int bitOffset)
This counts the size of an array of Structures or Sequences, ie Structure(n)
|
Modifier and Type | Method and Description |
---|---|
void |
addNestedCounters(int innerDimensionSize) |
int |
getBitPos(int msgOffset) |
BitCounterCompressed[] |
getNestedCounters(int innerIndex) |
int |
getNumberRows() |
int |
getStartingBitPos() |
int |
getTotalBits() |
int |
ncounters()
Number of nested fields
|
void |
show(java.util.Formatter out,
int indent) |
public BitCounterCompressed(DataDescriptor dkey, int n, int bitOffset)
dkey
- is a structure or a sequence - so has subKeysn
- numbers of rows in the tablebitOffset
- number of bits taken up by the count variable (non-zero only for sequences)public int getStartingBitPos()
public int getBitPos(int msgOffset)
public int getTotalBits()
public BitCounterCompressed[] getNestedCounters(int innerIndex)
public void addNestedCounters(int innerDimensionSize)
public int ncounters()
public void show(java.util.Formatter out, int indent)
public int getNumberRows()
getNumberRows
in interface BitCounter