ucar.nc2.iosp.bufr
Class BitCounterUncompressed
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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)
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 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)
- 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.