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 int
protected AbstractDataBlock
boolean
protected boolean
protected DataIndexer[]
protected DataIndexer
protected int
protected DataVisitor[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildIndexer
(DataIndexer newIndexer) Adds a child indexer to the listvoid
addVisitor
(DataVisitor newVisitor) Adds a visitor to the listprotected void
Loop through all registered visitors and call their mapData methodabstract void
abstract DataIndexer
copy()
abstract void
getData
(int[] indexList) boolean
hasNext()
void
insertChildIndexer
(DataIndexer newIndexer) Insert a child indexer at the begining of the listabstract void
next()
void
reset()
Resets the indexer by resetting all necessary variables.abstract void
setData
(AbstractDataBlock data) abstract int
skip
(int num) abstract void
abstract void
updateStartIndex
(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
-