|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.kdd.data.DatabaseTally
Tallying for database. This is incorrect yet
Field Summary | |
protected int[] |
allAttributeIndices
|
protected edu.ksu.cis.kdd.data.DatabaseTally.Cache[] |
attributeCache
|
protected int[] |
attributeIndices
|
protected Attribute[] |
attributes
|
protected Database |
db
|
protected int |
numTables
|
protected int[] |
tableBaseIndex
|
protected Table[] |
tables
|
protected TableTally[] |
tallies
|
Method Summary | |
void |
dumpTallyStatus()
|
int[] |
getAllAttributeIndices()
|
Attribute |
getAtttribute(int idx)
|
int[] |
getRelevantAttributeIndices()
|
Table[] |
getTables()
|
TableTally[] |
getTallies()
Returns the tally for each table. |
Data |
getUnderlyingData()
|
java.util.List |
groupedTally(int[] indices)
|
protected java.util.List |
groupedTally(int[] indices,
int[] values,
int depth,
java.util.List valueList)
|
protected void |
preprocess()
This big chunk of code is for preprocessing the database. |
void |
setUnderlyingData(Data d)
|
abstract int |
tally(int attr,
int value)
|
java.lang.String |
toString()
Dump tallyer status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.ksu.cis.kdd.data.Tally |
createSubTally, createSubTally, size, tally |
Field Detail |
protected Database db
protected TableTally[] tallies
protected Table[] tables
protected edu.ksu.cis.kdd.data.DatabaseTally.Cache[] attributeCache
protected int[] attributeIndices
protected int[] allAttributeIndices
protected int[] tableBaseIndex
protected int numTables
protected Attribute[] attributes
Method Detail |
protected void preprocess()
This big chunk of code is for preprocessing the database. The process is roughly as follows:
Note to self: Do NOT call this method in the constructor as it would slow down the createSubTally.
public int[] getAllAttributeIndices()
public int[] getRelevantAttributeIndices()
getRelevantAttributeIndices
in interface Tally
public Attribute getAtttribute(int idx)
public Table[] getTables()
public TableTally[] getTallies()
public abstract int tally(int attr, int value)
tally
in interface Tally
public java.lang.String toString()
public void dumpTallyStatus()
public Data getUnderlyingData()
getUnderlyingData
in interface Tally
public void setUnderlyingData(Data d)
setUnderlyingData
in interface Tally
public java.util.List groupedTally(int[] indices)
groupedTally
in interface Tally
edu.ksu.cis.kdd.data.TallyInterface#groupedTally(int[])
protected java.util.List groupedTally(int[] indices, int[] values, int depth, java.util.List valueList)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |