net.tinyos.tinydb
Class AggOp

java.lang.Object
  |
  +--net.tinyos.tinydb.AggOp

public class AggOp
extends java.lang.Object


Field Summary
static byte AGG_AVERAGE
           
static byte AGG_COUNT
           
static byte AGG_EXPAVG
           
static byte AGG_MAX
           
static byte AGG_MIN
           
static byte AGG_NOOP
           
static byte AGG_SUM
           
static byte AGG_WINAVG
           
static byte AGG_WINCNT
           
static byte AGG_WINMAX
           
static byte AGG_WINMIN
           
static byte AGG_WINSUM
           
 
Constructor Summary
AggOp(byte type)
          Constructor for normal aggregates
AggOp(byte type, short c)
          Constructor for temporal aggregates
 
Method Summary
 short getConst()
           
 java.lang.String getString(int value, int count)
           
 boolean isTemporal()
           
 java.util.Vector merge(int value1, int count1, int value2, int count2)
           
 byte toByte()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AGG_SUM

public static final byte AGG_SUM
See Also:
Constant Field Values

AGG_MIN

public static final byte AGG_MIN
See Also:
Constant Field Values

AGG_MAX

public static final byte AGG_MAX
See Also:
Constant Field Values

AGG_COUNT

public static final byte AGG_COUNT
See Also:
Constant Field Values

AGG_AVERAGE

public static final byte AGG_AVERAGE
See Also:
Constant Field Values

AGG_NOOP

public static final byte AGG_NOOP
See Also:
Constant Field Values

AGG_EXPAVG

public static final byte AGG_EXPAVG
See Also:
Constant Field Values

AGG_WINAVG

public static final byte AGG_WINAVG
See Also:
Constant Field Values

AGG_WINSUM

public static final byte AGG_WINSUM
See Also:
Constant Field Values

AGG_WINMIN

public static final byte AGG_WINMIN
See Also:
Constant Field Values

AGG_WINMAX

public static final byte AGG_WINMAX
See Also:
Constant Field Values

AGG_WINCNT

public static final byte AGG_WINCNT
See Also:
Constant Field Values
Constructor Detail

AggOp

public AggOp(byte type)
      throws java.util.NoSuchElementException
Constructor for normal aggregates


AggOp

public AggOp(byte type,
             short c)
      throws java.util.NoSuchElementException
Constructor for temporal aggregates

Method Detail

isTemporal

public boolean isTemporal()

toByte

public byte toByte()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getString

public java.lang.String getString(int value,
                                  int count)

merge

public java.util.Vector merge(int value1,
                              int count1,
                              int value2,
                              int count2)

getConst

public short getConst()