public interface RecordValued extends TokenValued, RecordTyped
TokenValued object containing record data.
RecordValued objects are composed of one or more
ScalarValued objects, each corresponding the
fields of the record schema. Fields are identified both
by name and position, as defined in the schema.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNull()
Determines if any field in the record is null valued.
|
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.
|
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.
|
int |
size()
Gets the number of fields in the record schema.
|
isNullRecordTokenType getType()
TokenValuedgetType in interface RecordTypedgetType in interface TokenTypedgetType in interface TokenValuedboolean containsNull()
true if at least one field is null
valued, false if none areint size()
ScalarValued[] getFields()
ScalarValued getField(String fieldName)
fieldName - the field nameScalarValued getField(int index)
index - zero-based index into the field listScalarValuedIterator newFieldIterator(ScalarTokenType type)
type - the type of fields over which to iterateScalarValuedIterator newFieldIterator(ScalarTokenType type, String[] selectedFieldNames)
type - the type of fields over which to iterateselectedFieldNames - the fields over which to iterateScalarValuedIterator newFieldIterator(FieldIteratorProperties properties)
FieldIteratorProperties.isSorted().properties - properties for the iteratorCopyright © 2016 Actian Corporation. All rights reserved.