|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.core.ProperObject
proper.imp.Indexer
public class Indexer
This class interpretes the "verbal" indexes for files, e.g. "first" or "last", and provides methods for checking indexes etc.
Field Summary |
---|
Fields inherited from interface proper.core.ProperInterface |
---|
VERSION |
Constructor Summary | |
---|---|
Indexer()
initializes the object |
Method Summary | |
---|---|
void |
addSplitIndexId(Data d,
int index)
sets for the given predicate the index where a split-id was inserted (necessary for the Namer!) |
int |
getIndex(Data d,
java.lang.String indexStr)
determines the index for the given predicate and index-String |
int |
getIndexCount(java.lang.String name)
returns the number of indexes the given predicate/list has |
java.lang.String |
getIndexes()
returns the "verbal" indexes used for determining indexes (this is the original set string!) |
java.util.Vector |
getIndexes(java.lang.String name)
returns the "processed" indexes for the given predicate/list |
java.util.Vector |
getIndexNames()
returns all names where there are indexes stored |
java.util.Vector |
getListsWithIndex()
returns a vector with names of lists that contain an index |
java.lang.String |
getProcessedIndexes()
returns the processed "verbal" indexes |
java.lang.String |
getProcessedIndexes(java.lang.String name)
returns the processed "verbal" indexes for the given predicate/list |
Traverser |
getTraverser()
returns the currently used traverser |
boolean |
isIndex(Data d,
int index)
checks whether the given index is an id index of the given predicate |
boolean |
isSplitIndexId(Data d,
int index)
checks whether the given index contains an id from a predicate split |
boolean |
keyIsInt()
checks whether the key used in the predicates is an Integer |
void |
removeNullIndexes()
removes predicates that have a NULL in an index |
void |
setAddClassLabel(boolean addClassLabel,
boolean onlyForSingles)
whether the class label was added for the current predicates (necessary for the calculation of the index!) |
void |
setIndexes(java.lang.String indexes)
sets the "verbal" indexes and does the initialization |
void |
setTraverser(Traverser traverser)
sets the traverser to access the current predicates and initializes |
Methods inherited from class proper.core.ProperObject |
---|
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Indexer()
Import
Method Detail |
---|
public void setIndexes(java.lang.String indexes)
public java.lang.String getIndexes()
public java.util.Vector getIndexes(java.lang.String name)
public java.lang.String getProcessedIndexes()
public java.lang.String getProcessedIndexes(java.lang.String name)
public int getIndexCount(java.lang.String name)
public java.util.Vector getIndexNames()
public void setTraverser(Traverser traverser)
public Traverser getTraverser()
public void setAddClassLabel(boolean addClassLabel, boolean onlyForSingles)
addClassLabel
- whether the class label was addedonlyForSingles
- if TRUE the the class label was only added
in predicates that had only one argumentpublic boolean isIndex(Data d, int index)
public int getIndex(Data d, java.lang.String indexStr)
public void removeNullIndexes()
public boolean keyIsInt() throws java.lang.Exception
java.lang.Exception
- throws an exception if there are no predicates
with indexespublic java.util.Vector getListsWithIndex()
public void addSplitIndexId(Data d, int index)
public boolean isSplitIndexId(Data d, int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |