com.bigdata.counters.query
Class CSet

java.lang.Object
  extended by com.bigdata.counters.query.CSet

public class CSet
extends Object

Pairs together an ordered set of category values for a pivot table with the set of counters which share that set of category values.

Version:
$Id: CSet.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 String[] cats
          The set of ordered category values.
 List<ICounter> counters
          The set of counters sharing the same set of ordered category values.
 
Constructor Summary
CSet(String[] cats, ICounter counter)
          Create a set based on the specified category values and initially containing the specified ICounter.
 
Method Summary
 void add(ICounter counter)
          Add another counter to that set.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cats

public final String[] cats
The set of ordered category values.


counters

public final List<ICounter> counters
The set of counters sharing the same set of ordered category values.

Constructor Detail

CSet

public CSet(String[] cats,
            ICounter counter)
Create a set based on the specified category values and initially containing the specified ICounter.

Parameters:
cats - An ordered set of category values.
counter - A counter from whose ICounterNode.getPath() the category values were extracted as capturing groups.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

add

public void add(ICounter counter)
Add another counter to that set.

Parameters:
counter - The counter.


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.