Module datarush.library
Interface ScalarTokenSequence
- All Superinterfaces:
ScalarTyped,TokenSequence,TokenTyped
- All Known Subinterfaces:
BinaryTokenSequence,BooleanTokenSequence,CharTokenSequence,DateTokenSequence,DoubleTokenSequence,DurationTokenSequence,FloatTokenSequence,IntTokenSequence,Ip4AddressTokenSequence,Ip6AddressTokenSequence,LongTokenSequence,MoneyTokenSequence,MutableBinaryTokenSequence,MutableBooleanTokenSequence,MutableCharTokenSequence,MutableDateTokenSequence,MutableDoubleTokenSequence,MutableDurationTokenSequence,MutableFloatTokenSequence,MutableIntTokenSequence,MutableIp4AddressTokenSequence,MutableIp6AddressTokenSequence,MutableLongTokenSequence,MutableMoneyTokenSequence,MutableNumericTokenSequence,MutableObjectTokenSequence<O>,MutablePeriodTokenSequence,MutableScalarTokenSequence,MutableStringTokenSequence,MutableTimestampTokenSequence,MutableTimeTokenSequence,NumericTokenSequence,ObjectTokenSequence<O>,PeriodTokenSequence,StringTokenSequence,TimestampTokenSequence,TimeTokenSequence
- All Known Implementing Classes:
AbstractScalarTokenSequence,BinaryTokenList,BooleanTokenList,CharTokenList,DateTokenList,DoubleTokenList,DurationTokenList,FloatTokenList,IntTokenList,Ip4AddressTokenList,Ip6AddressTokenList,LongTokenList,MoneyTokenList,NumericTokenList,ObjectTokenList,PeriodTokenList,SparseBinaryTokenList,SparseBooleanTokenList,SparseCharTokenList,SparseDateTokenList,SparseDoubleTokenList,SparseDurationTokenList,SparseFloatTokenList,SparseIntTokenList,SparseIp4AddressTokenList,SparseIp6AddressTokenList,SparseLongTokenList,SparseMoneyTokenList,SparseNumericTokenList,SparseObjectTokenList,SparsePeriodTokenList,SparseStringTokenList,SparseTimestampTokenList,SparseTimeTokenList,StringTokenList,TimestampTokenList,TimeTokenList
A
TokenSequence containing scalar typed tokens.
The scalar token types are enumerated in TokenTypeConstant.-
Method Summary
Modifier and TypeMethodDescriptiongetToken(int index) Gets the value at the specified position.getType()Gets the data type of the tokens in the sequence.booleanisNull()Returns whether all elements are null.booleanisZero(int index) Indicates whether the specified token has a zero value.Creates an iterator over the non-null values of this sequence.Methods inherited from interface com.pervasive.datarush.sequences.TokenSequence
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
-
Method Details
-
getType
ScalarTokenType getType()Gets the data type of the tokens in the sequence.- Specified by:
getTypein interfaceScalarTyped- Specified by:
getTypein interfaceTokenTyped- Returns:
- the token data type
-
getToken
Description copied from interface:TokenSequenceGets the value at the specified position.- Specified by:
getTokenin interfaceTokenSequence- Parameters:
index- the index of the token- Returns:
- the value
-
newValueIterator
ScalarValuedIterator newValueIterator()Description copied from interface:TokenSequenceCreates an iterator over the non-null values of this sequence. The iterator will automatically be reset as modifications are made to the sequence.- Specified by:
newValueIteratorin interfaceTokenSequence- Returns:
- an newly-created iterator over the non-null values of this sequence.
-
isNull
boolean isNull()Returns whether all elements are null.- Returns:
- whether all elements are null.
-
isZero
boolean isZero(int index) Indicates whether the specified token has a zero value.- Parameters:
index- the index of the token- Returns:
trueif the element is zero,falseotherwise
-