edu.ksu.cis.kdd.data
Class LocalDatabaseTally

java.lang.Object
  extended byedu.ksu.cis.kdd.data.DatabaseTally
      extended byedu.ksu.cis.kdd.data.LocalDatabaseTally
All Implemented Interfaces:
Tally

public class LocalDatabaseTally
extends DatabaseTally

Author:
Roby Joehanes

Field Summary
protected  boolean alreadyPrefiltered
           
protected  Tuple[] joinCache
           
protected  java.util.TreeSet tablesInvolved
           
 
Fields inherited from class edu.ksu.cis.kdd.data.DatabaseTally
allAttributeIndices, attributeCache, attributeIndices, attributes, db, numTables, tableBaseIndex, tables, tallies
 
Method Summary
 Tally createSubTally(int[] indices, int[] values)
           
 Tally createSubTally(int attr, int value)
          Create a sub tally that is filtered according the attribute number attr with its value.
protected  Tuple[] join(Tuple[] t1, Tuple[] t2)
           
protected  Tuple[] joinAll()
           
 int size()
           
 int tally(int[] indices, int[] values)
           
 int tally(int attr, int value)
           
 
Methods inherited from class edu.ksu.cis.kdd.data.DatabaseTally
dumpTallyStatus, getAllAttributeIndices, getAtttribute, getRelevantAttributeIndices, getTables, getTallies, getUnderlyingData, groupedTally, groupedTally, preprocess, setUnderlyingData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alreadyPrefiltered

protected boolean alreadyPrefiltered

tablesInvolved

protected java.util.TreeSet tablesInvolved

joinCache

protected Tuple[] joinCache
Method Detail

createSubTally

public Tally createSubTally(int[] indices,
                            int[] values)
See Also:
edu.ksu.cis.kdd.data.TallyInterface#createSubTally(int[], int[])

size

public int size()
See Also:
edu.ksu.cis.kdd.data.TallyInterface#size()

tally

public int tally(int[] indices,
                 int[] values)

tally

public int tally(int attr,
                 int value)
Specified by:
tally in interface Tally
Specified by:
tally in class DatabaseTally

joinAll

protected Tuple[] joinAll()

join

protected Tuple[] join(Tuple[] t1,
                       Tuple[] t2)

createSubTally

public Tally createSubTally(int attr,
                            int value)
Create a sub tally that is filtered according the attribute number attr with its value. This does NOT propagate the ref keys -- too expensive. Doing it latter in tally phase

Parameters:
attr -
value -
Returns:
Prefiltered tally