Title: Aggregation Query in Sensor Network with Sketches
Description: This code is for the simulation of sensor network with sketches algorithms. It applies with aggregation queries.
Copyright: Computer Science Department, Boston University,Copyright (c) 2003
Company: Boston University
Field Detail |
public Object guessAgg
public Grouping groupBy
public Predicate having
Constructor Detail |
public AggMessage(Sensor sender, int epoch, Vector aggs, int level, Vector parents, Grouping groupBy, Predicate having, int bytes)
sender
- The sensor that is sending the messageepoch
- The epoch in which the message was sent (see {@link Clock#getEpoch(int) Clock.getEpoch})aggs
- A vector of partial state records representing the aggregates from this child and its children partitioned by group.level
- The level of the senderparent
- The parent of the sendergroupBy
- The grouping applied to aggshaving
- The having predicate (not currently supported)bytes
- The number of bytes required for this message (hack used for state measurement)public AggMessage(Sensor sender, int epoch, Object agg, int level, Vector parents, int bytes)
sender
- The sensor that is sending the messageepoch
- The epoch in which the message was sent (see {@link Clock#getEpoch(int) Clock.getEpoch()} )agg
- A partial state records representing the aggregates from this child and its children.level
- The level of the senderparent
- The parent of the senderbytes
- The number of bytes required for this message (hack used for state measurement)Method Detail |
public Object getAggregate()
public Object getAggregate(int group)
group
- The group whose value should be fetched.NoSuchElementException
- If the group is invalid.public Vector getAggregates()
public int getLevel()
public Vector getParent()
public ParentInfo getInfo()