java.lang.Object
com.pervasive.datarush.tokens.record.AbstractRecordValued<ScalarValued>
com.pervasive.datarush.tokens.record.CompositeValue
- All Implemented Interfaces:
RecordValued,TokenValued,RecordTyped,TokenTyped
A composite value comprised of scalar valued fields.
Unlike RecordToken, there is no guarantee of immutability.
While no mutators are provided on CompositeValue, the
underlying fields may refer to mutable objects.
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeValue(ScalarValued[] fields) Construct a composite from the suppliedScalarValuedobjects.CompositeValue(ScalarValued[] fields, ModificationCountProvider modCountProvider) Construct a composite from the suppliedScalarValuedobjects.CompositeValue(RecordTokenType type, ScalarValued[] fields) Construct a composite with the described schema using the suppliedScalarValuedobjects.CompositeValue(RecordTokenType type, ScalarValued[] fields, ModificationCountProvider modCountProvider) Construct a composite with the described schema using the suppliedScalarValuedobjects. -
Method Summary
Methods inherited from class com.pervasive.datarush.tokens.record.AbstractRecordValued
containsNull, getConverter, getField, getField, getFields, getType, isNull, newFieldIterator, newFieldIterator, newFieldIterator, size, toString
-
Constructor Details
-
CompositeValue
Construct a composite from the suppliedScalarValuedobjects. The record schema will be generated from the fields using default names.It is assumed that the source is immutable; if this is not the case, field iterators obtained from this object may not behave correctly. Use
CompositeValue(ScalarValued[], ModificationCountProvider)with an appropriate modification counter instead if this is an issue.- Parameters:
fields- theScalarValuedobjects containing field values
-
CompositeValue
Construct a composite from the suppliedScalarValuedobjects. The record schema will be generated from the fields using default names.- Parameters:
fields- theScalarValuedobjects containing field valuesmodCountProvider- modification count provider. required for notification of underlying changes.
-
CompositeValue
Construct a composite with the described schema using the suppliedScalarValuedobjects. The field types in the schema will be cross-validated against the given objects.It is assumed that the source is immutable; if this is not the case, field iterators obtained from this object may not behave correctly. Use
CompositeValue(RecordTokenType, ScalarValued[], ModificationCountProvider)with an appropriate modification counter instead if this is an issue.- Parameters:
type- the record schema to use for the resulting compositefields- theScalarValuedobjects containing field values- Throws:
DRException- if the provided field types disagree with the types of the field objects
-
CompositeValue
public CompositeValue(RecordTokenType type, ScalarValued[] fields, ModificationCountProvider modCountProvider) Construct a composite with the described schema using the suppliedScalarValuedobjects. The field types in the schema will be cross-validated against the given objects.- Parameters:
type- the record schema to use for the resulting compositefields- theScalarValuedobjects containing field valuesmodCountProvider- modification count provider. required for notification of underlying changes.- Throws:
DRException- if the provided field types disagree with the types of the field objects
-