-
- All Superinterfaces:
RecordTyped,TokenTyped,TokenValued
- All Known Subinterfaces:
CloseableRecordValuedIterator,RecordInput,RecordValuedIterator,SeekableRecordValuedIterator,SteppableRecordValued
- All Known Implementing Classes:
AbstractRecordValued,CompositeValue,DatasetIterator,RecordMap.RecordMapIterator,RecordRegister,RecordToken,RecordValuedFilter,SparseRecordRegister
public interface RecordValued extends TokenValued, RecordTyped
ATokenValuedobject containing record data.RecordValuedobjects are composed of one or moreScalarValuedobjects, each corresponding the fields of the record schema. Fields are identified both by name and position, as defined in the schema.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsNull()Determines if any field in the record is null valued.ScalarValuedgetField(int index)Get the field at the given index within the list of fields.ScalarValuedgetField(String fieldName)Gets the value of the field with the given name.ScalarValued[]getFields()Gets the values of all fields in the recordRecordTokenTypegetType()Gets the data type of the token.ScalarValuedIteratornewFieldIterator(FieldIteratorProperties properties)Create a new iterator for visiting the fields in this RecordValued object.ScalarValuedIteratornewFieldIterator(ScalarTokenType type)Create a new iterator for visiting the fields in this RecordValued object.ScalarValuedIteratornewFieldIterator(ScalarTokenType type, String[] selectedFieldNames)Create a new iterator for visiting the fields in this RecordValued object.intsize()Gets the number of fields in the record schema.-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Method Detail
-
getType
RecordTokenType getType()
Description copied from interface:TokenValuedGets the data type of the token. This type will dictate the valid values that can be contained.- Specified by:
getTypein interfaceRecordTyped- Specified by:
getTypein interfaceTokenTyped- Specified by:
getTypein interfaceTokenValued- Returns:
- the token type.
-
containsNull
boolean containsNull()
Determines if any field in the record is null valued.- Returns:
trueif at least one field is null valued,falseif none are
-
size
int size()
Gets the number of fields in the record schema.- Returns:
- the number of fields
-
getFields
ScalarValued[] getFields()
Gets the values of all fields in the record- Returns:
- an array containing the values of the record's fields
-
getField
ScalarValued getField(String fieldName)
Gets the value of the field with the given name.- Parameters:
fieldName- the field name- Returns:
- the field's value
-
getField
ScalarValued getField(int index)
Get the field at the given index within the list of fields.- Parameters:
index- zero-based index into the field list- Returns:
- the field's value
-
newFieldIterator
ScalarValuedIterator newFieldIterator(ScalarTokenType type)
Create a new iterator for visiting the fields in this RecordValued object. Visitation order will be sorted by the field's index.- Parameters:
type- the type of fields over which to iterate- Returns:
- an iterator over fields of the specified type
-
newFieldIterator
ScalarValuedIterator newFieldIterator(ScalarTokenType type, String[] selectedFieldNames)
Create a new iterator for visiting the fields in this RecordValued object. Visitation order will be sorted by the field's index.- Parameters:
type- the type of fields over which to iterateselectedFieldNames- the fields over which to iterate- Returns:
- an iterator over the specified fields
-
newFieldIterator
ScalarValuedIterator newFieldIterator(FieldIteratorProperties properties)
Create a new iterator for visiting the fields in this RecordValued object. Visitation order will optionally be sorted by the field's index, depending on the value ofFieldIteratorProperties.isSorted().- Parameters:
properties- properties for the iterator- Returns:
- an iterator over the fields
-
-