- java.lang.Object
-
- com.pervasive.datarush.tokens.record.AbstractRecordValued<ScalarRegister>
-
- com.pervasive.datarush.tokens.record.RecordRegister
-
- All Implemented Interfaces:
DataRegister
,RecordSettable
,RecordValued
,TokenSettable
,TokenValued
,RecordTyped
,TokenTyped
public class RecordRegister extends AbstractRecordValued<ScalarRegister> implements DataRegister, RecordSettable
A composite register of scalar registers; a mutableRecordValued
object. ARecordRegister
can also be thought of as an updateable row of tabular data.
-
-
Constructor Summary
Constructors Constructor Description RecordRegister(RecordTokenType type)
Constructs a new null-valued register with the given record type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
set(TokenValued value)
Sets the contained value to the given token value.void
setNull()
Sets the contained value to be null valued.void
setZero()
Sets the contained value to be zero valued.-
Methods inherited from class com.pervasive.datarush.tokens.record.AbstractRecordValued
containsNull, getConverter, getField, getField, getFields, getType, isNull, newFieldIterator, newFieldIterator, newFieldIterator, size, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.pervasive.datarush.tokens.record.RecordSettable
getField, getField, getFields, getType, size
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Constructor Detail
-
RecordRegister
public RecordRegister(RecordTokenType type)
Constructs a new null-valued register with the given record type. The resulting field registers are all null-valued initially.- Parameters:
type
- the record schema of the register
-
-
Method Detail
-
set
public void set(TokenValued value)
Description copied from interface:TokenSettable
Sets the contained value to the given token value. The given value must have a type compatible with this object.- Specified by:
set
in interfaceTokenSettable
- Parameters:
value
- the value to which to set the container
-
setNull
public void setNull()
Description copied from interface:TokenSettable
Sets the contained value to be null valued.- Specified by:
setNull
in interfaceTokenSettable
-
setZero
public void setZero()
Description copied from interface:TokenSettable
Sets the contained value to be zero valued.- Specified by:
setZero
in interfaceTokenSettable
-
-