- java.lang.Object
-
- com.pervasive.datarush.tokens.record.FieldIteratorHelper
-
public final class FieldIteratorHelper extends Object
Utility class for constructing field iterators associated with a given record type.
-
-
Constructor Summary
Constructors Constructor Description FieldIteratorHelper(RecordTokenType recordType, FieldIteratorProperties properties)
Create a new FieldIteratorHelper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRelativeIndex(ScalarValuedIterator iterator)
Returns the index of the current field, relative to the selectedFields argument passed to this object's constructor.ScalarValuedIterator
newFieldIterator(RecordValued record)
InvokesRecordValued.newFieldIterator(ScalarTokenType, String[])
, specifying the iteratorType and selectedFields arguments that were passed to this object's constructor.
-
-
-
Constructor Detail
-
FieldIteratorHelper
public FieldIteratorHelper(RecordTokenType recordType, FieldIteratorProperties properties)
Create a new FieldIteratorHelper.- Parameters:
recordType
- The type of record on which this helper will create iteratorsproperties
- properties for the field iterator
-
-
Method Detail
-
newFieldIterator
public ScalarValuedIterator newFieldIterator(RecordValued record)
InvokesRecordValued.newFieldIterator(ScalarTokenType, String[])
, specifying the iteratorType and selectedFields arguments that were passed to this object's constructor.- Parameters:
record
- The record on which to create an iterator.- Returns:
- A newly created iterator.
-
getRelativeIndex
public int getRelativeIndex(ScalarValuedIterator iterator)
Returns the index of the current field, relative to the selectedFields argument passed to this object's constructor.- Parameters:
iterator
- A valid iterator, positioned on a field.- Returns:
- the index of the current field in the iterator, relative to the selectedFields argument.
-
-