public class RecordMap.RecordMapIterator extends Object implements RecordValuedIterator
seek method. Once a seek is successful, the
iterator can be used to step through the records matching the seek
criteria.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNull()
Determines if any field in the record is null valued.
|
int |
getAbsoluteIndex()
Returns the dense value index for the current value.
|
ScalarValued |
getField(int index)
Get the field at the given index within the list of fields.
|
ScalarValued |
getField(String fieldName)
Gets the value of the field with the given name.
|
ScalarValued[] |
getFields()
Gets the values of all fields in the record
|
RecordTokenType |
getType()
Gets the data type of the token.
|
boolean |
isNull()
Indicates whether the token is null valued.
|
ScalarValuedIterator |
newFieldIterator(FieldIteratorProperties properties)
Create a new iterator for visiting the fields in this RecordValued object.
|
ScalarValuedIterator |
newFieldIterator(ScalarTokenType type)
Create a new iterator for visiting the fields in this RecordValued object.
|
ScalarValuedIterator |
newFieldIterator(ScalarTokenType type,
String[] selectedFieldNames)
Create a new iterator for visiting the fields in this RecordValued object.
|
void |
resetIteration()
Resets the iteration to the beginning.
|
boolean |
seek()
Seek to the records in the cache that have the same key value as
the current record of the input data source tied to this iterator.
|
int |
size()
Gets the number of fields in the record schema.
|
boolean |
stepNext()
Advances to the next value not equal to "zero".
|
public boolean seek()
public int getAbsoluteIndex()
TokenValuedIteratorRecordTokenType.get(denseIndex) will
return the associated field.
NOTE: Iteration order is unspecified on this interface. Some implementations guarantee sort order whereas others do not. Please refer to the documentation on the factory method from which this iterator was constructed for ordering information.
getAbsoluteIndex in interface TokenValuedIteratorpublic void resetIteration()
TokenValuedIteratorresetIteration in interface TokenValuedIteratorpublic boolean stepNext()
TokenValuedIteratorstepNext in interface TokenValuedIteratorpublic RecordTokenType getType()
TokenValuedgetType in interface RecordValuedgetType in interface TokenValuedgetType in interface RecordTypedgetType in interface TokenTypedpublic boolean isNull()
TokenValuedisNull in interface TokenValuedtrue if the token is null valued,
false otherwisepublic boolean containsNull()
RecordValuedcontainsNull in interface RecordValuedtrue if at least one field is null
valued, false if none arepublic ScalarValued getField(String fieldName)
RecordValuedgetField in interface RecordValuedfieldName - the field namepublic ScalarValued getField(int index)
RecordValuedgetField in interface RecordValuedindex - zero-based index into the field listpublic ScalarValued[] getFields()
RecordValuedgetFields in interface RecordValuedpublic ScalarValuedIterator newFieldIterator(ScalarTokenType type)
RecordValuednewFieldIterator in interface RecordValuedtype - the type of fields over which to iteratepublic ScalarValuedIterator newFieldIterator(ScalarTokenType type, String[] selectedFieldNames)
RecordValuednewFieldIterator in interface RecordValuedtype - the type of fields over which to iterateselectedFieldNames - the fields over which to iteratepublic ScalarValuedIterator newFieldIterator(FieldIteratorProperties properties)
RecordValuedFieldIteratorProperties.isSorted().newFieldIterator in interface RecordValuedproperties - properties for the iteratorpublic int size()
RecordValuedsize in interface RecordValuedCopyright © 2024 Actian Corporation. All rights reserved.