package streamsum.tuple_counts;

import java.util.Comparator;

/**
 * Additional queries that can be run against a tuple-cache
 */
public interface Queries {

    /**
     * Query for all tuples matching the filter.
     * @subj filter results to one subject.  May be null
     * @actions filter results to this set of actions.  May be null.
     **/
    CountTuple tuplesForSubjAction(Object subj, Object... actions);

    /**
     * Query for all tuples matching the filter, returning the results in sorted order.
     * @comp specifies how to sort the results.  Null means unsorted.
     * @subj filter results to one subject.  May be null
     * @actions filter results to this set of actions.  May be null.
     **/
    CountTuple tuplesForSubjAction(Comparator<CountTuple> comp, Object subj, Object... actions);
}

@@ -54,16 +54,39 @@
 parator;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -363,32 +363,37 @@
 l.%0A     **/%0A    
+List%3C
 CountTuple tuple
@@ -378,32 +378,33 @@
  List%3CCountTuple
+%3E
  tuplesForSubjAc
@@ -747,16 +747,21 @@
 **/%0A    
+List%3C
 CountTup
@@ -762,16 +762,17 @@
 untTuple
+%3E
  tuplesF

fix signature