Class BitCounterCompressed

  • All Implemented Interfaces:
    BitCounter

    public class BitCounterCompressed
    extends Object
    implements BitCounter
    Count size of compressed fields
    Since:
    Jul 4, 2008
    • Constructor Detail

      • BitCounterCompressed

        public BitCounterCompressed​(DataDescriptor dkey,
                                    int n,
                                    int bitOffset)
        This counts the size of an array of Structures or Sequences, ie Structure(n)
        Parameters:
        dkey - is a structure or a sequence - so has subKeys
        n - numbers of rows in the table
        bitOffset - number of bits taken up by the count variable (non-zero only for sequences)
    • Method Detail

      • getStartingBitPos

        public int getStartingBitPos()
      • getBitPos

        public int getBitPos​(int msgOffset)
      • getTotalBits

        public int getTotalBits()
      • addNestedCounters

        public void addNestedCounters​(int innerDimensionSize)
      • ncounters

        public int ncounters()
        Number of nested fields
        Returns:
        1 if no nested fields, otherwise count of nested fields
      • show

        public void show​(Formatter out,
                         int indent)