Package org.vast.data
Class DataIndexer
java.lang.Object
org.vast.data.DataIndexer
- Direct Known Subclasses:
 DataArrayIndexer,DataGroupIndexer,DataValueIndexer
Abstract base class for all Data Indexers
- Since:
 - Apr 4, 2006
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected AbstractDataBlockbooleanprotected booleanprotected DataIndexer[]protected DataIndexerprotected intprotected DataVisitor[] - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildIndexer(DataIndexer newIndexer) Adds a child indexer to the listvoidaddVisitor(DataVisitor newVisitor) Adds a visitor to the listprotected voidLoop through all registered visitors and call their mapData methodabstract voidabstract DataIndexercopy()abstract voidgetData(int[] indexList) booleanhasNext()voidinsertChildIndexer(DataIndexer newIndexer) Insert a child indexer at the begining of the listabstract voidnext()voidreset()Resets the indexer by resetting all necessary variables.abstract voidsetData(AbstractDataBlock data) abstract intskip(int num) abstract voidabstract voidupdateStartIndex(int startIndex)  
- 
Field Details
- 
data
 - 
componentIndex
protected int componentIndex - 
scalarCount
protected int scalarCount - 
hasNext
protected boolean hasNext - 
doVisitors
public boolean doVisitors - 
visitorList
 - 
indexerList
 - 
parentIndexer
 
 - 
 - 
Constructor Details
- 
DataIndexer
public DataIndexer() 
 - 
 - 
Method Details
- 
getData
public abstract void getData(int[] indexList)  - 
setData
 - 
clearData
public abstract void clearData() - 
next
public abstract void next() - 
skip
public abstract int skip(int num)  - 
updateStartIndex
public abstract void updateStartIndex(int startIndex)  - 
updateScalarCount
public abstract void updateScalarCount() - 
copy
 - 
hasNext
public boolean hasNext() - 
addChildIndexer
Adds a child indexer to the list- Parameters:
 newIndexer-
 - 
insertChildIndexer
Insert a child indexer at the begining of the list- Parameters:
 newIndexer-
 - 
addVisitor
Adds a visitor to the list- Parameters:
 newVisitor-
 - 
reset
public void reset()Resets the indexer by resetting all necessary variables. This also resets all child indexers. - 
applyVisitors
protected void applyVisitors()Loop through all registered visitors and call their mapData method 
 -