public class CompositeValue extends AbstractRecordValued<ScalarValued>
Unlike RecordToken, there is no guarantee of immutability.
While no mutators are provided on CompositeValue, the
underlying fields may refer to mutable objects.
| Constructor and Description |
|---|
CompositeValue(RecordTokenType type,
ScalarValued[] fields)
Construct a composite with the described schema using
the supplied
ScalarValued objects. |
CompositeValue(RecordTokenType type,
ScalarValued[] fields,
ModificationCountProvider modCountProvider)
Construct a composite with the described schema using
the supplied
ScalarValued objects. |
CompositeValue(ScalarValued[] fields)
Construct a composite from the supplied
ScalarValued objects. |
CompositeValue(ScalarValued[] fields,
ModificationCountProvider modCountProvider)
Construct a composite from the supplied
ScalarValued objects. |
containsNull, getConverter, getField, getField, getFields, getType, isNull, newFieldIterator, newFieldIterator, newFieldIterator, size, toStringpublic CompositeValue(ScalarValued[] fields)
ScalarValued objects.
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.
fields - the ScalarValued objects containing field valuespublic CompositeValue(ScalarValued[] fields, ModificationCountProvider modCountProvider)
ScalarValued objects.
The record schema will be generated from the fields using
default names.fields - the ScalarValued objects containing field valuesmodCountProvider - modification count provider. required for notification of
underlying changes.public CompositeValue(RecordTokenType type, ScalarValued[] fields)
ScalarValued objects. 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.
type - the record schema to use for the resulting compositefields - the ScalarValued objects containing field valuesDRException - if the provided field types disagree
with the types of the field objectspublic CompositeValue(RecordTokenType type, ScalarValued[] fields, ModificationCountProvider modCountProvider)
ScalarValued objects. The field types
in the schema will be cross-validated against the given objects.type - the record schema to use for the resulting compositefields - the ScalarValued objects containing field valuesmodCountProvider - modification count provider. required for notification of
underlying changes.DRException - if the provided field types disagree
with the types of the field objectsCopyright © 2016 Actian Corporation. All rights reserved.