ucar.nc2.iosp.bufr
Class BitCounterUncompressed

java.lang.Object
  extended by ucar.nc2.iosp.bufr.BitCounterUncompressed

public class BitCounterUncompressed
extends Object

Counts the size of nested tables, for uncompressed messages. A top-level BitCounterUncompressed counts bits for one row = obs = dataset. obs = new BitCounterUncompressed(root, 1, 0);

Since:
May 10, 2008
Author:
caron

Constructor Summary
BitCounterUncompressed(DataDescriptor parent, int nrows, int replicationCountSize)
          This counts the size of an array of Structures or Sequences, ie Structure(n)
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitCounterUncompressed

public BitCounterUncompressed(DataDescriptor parent,
                              int nrows,
                              int replicationCountSize)
This counts the size of an array of Structures or Sequences, ie Structure(n)

Parameters:
parent - is a structure or a sequence - so has subKeys
nrows - numbers of rows in the table, equals 1 for top level
replicationCountSize - number of bits taken up by the count variable (non-zero only for sequences)
Method Detail

setBitOffset

public void setBitOffset(DataDescriptor dkey)

getOffset

public int getOffset(DataDescriptor dkey)

makeNested

public BitCounterUncompressed makeNested(DataDescriptor subKey,
                                         int n,
                                         int row,
                                         int replicationCountSize)
Track nested Tables.

Parameters:
subKey - subKey is a structure or a sequence - so itself has subKeys
n - numbers of rows in the nested table
row - which row in the parent Table this belongs to
replicationCountSize - number of bits taken up by the count (non-zero for sequences)
Returns:
nested ReplicationCounter

getNested

public BitCounterUncompressed[] getNested(DataDescriptor subKey)

getCountBits

public int getCountBits()

getNumberRows

public int getNumberRows()

getStartBit

public int getStartBit(int row)


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.