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()
TokenValuedIterator
RecordTokenType.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 TokenValuedIterator
public void resetIteration()
TokenValuedIterator
resetIteration
in interface TokenValuedIterator
public boolean stepNext()
TokenValuedIterator
stepNext
in interface TokenValuedIterator
public RecordTokenType getType()
TokenValued
getType
in interface RecordValued
getType
in interface TokenValued
getType
in interface RecordTyped
getType
in interface TokenTyped
public boolean isNull()
TokenValued
isNull
in interface TokenValued
true
if the token is null valued,
false
otherwisepublic boolean containsNull()
RecordValued
containsNull
in interface RecordValued
true
if at least one field is null
valued, false
if none arepublic ScalarValued getField(String fieldName)
RecordValued
getField
in interface RecordValued
fieldName
- the field namepublic ScalarValued getField(int index)
RecordValued
getField
in interface RecordValued
index
- zero-based index into the field listpublic ScalarValued[] getFields()
RecordValued
getFields
in interface RecordValued
public ScalarValuedIterator newFieldIterator(ScalarTokenType type)
RecordValued
newFieldIterator
in interface RecordValued
type
- the type of fields over which to iteratepublic ScalarValuedIterator newFieldIterator(ScalarTokenType type, String[] selectedFieldNames)
RecordValued
newFieldIterator
in interface RecordValued
type
- the type of fields over which to iterateselectedFieldNames
- the fields over which to iteratepublic ScalarValuedIterator newFieldIterator(FieldIteratorProperties properties)
RecordValued
FieldIteratorProperties.isSorted()
.newFieldIterator
in interface RecordValued
properties
- properties for the iteratorpublic int size()
RecordValued
size
in interface RecordValued
Copyright © 2016 Actian Corporation. All rights reserved.