java.lang.Object
com.pervasive.datarush.tokens.record.FieldIteratorHelper
Utility class for constructing field iterators associated with a given record type.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldIteratorHelper(RecordTokenType recordType, FieldIteratorProperties properties) Create a new FieldIteratorHelper. -
Method Summary
Modifier and TypeMethodDescriptionintgetRelativeIndex(ScalarValuedIterator iterator) Returns the index of the current field, relative to the selectedFields argument passed to this object's constructor.newFieldIterator(RecordValued record) InvokesRecordValued.newFieldIterator(ScalarTokenType, String[]), specifying the iteratorType and selectedFields arguments that were passed to this object's constructor.
-
Constructor Details
-
FieldIteratorHelper
Create a new FieldIteratorHelper.- Parameters:
recordType- The type of record on which this helper will create iteratorsproperties- properties for the field iterator
-
-
Method Details
-
newFieldIterator
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
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.
-