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
public interface ScalarTokenSequence extends TokenSequence, ScalarTyped
ATokenSequence
containing scalar typed tokens. The scalar token types are enumerated inTokenTypeConstant
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScalarValued
getToken(int index)
Gets the value at the specified position.ScalarTokenType
getType()
Gets the data type of the tokens in the sequence.boolean
isNull()
Returns whether all elements are null.boolean
isZero(int index)
Indicates whether the specified token has a zero value.ScalarValuedIterator
newValueIterator()
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 Detail
-
getType
ScalarTokenType getType()
Gets the data type of the tokens in the sequence.- Specified by:
getType
in interfaceScalarTyped
- Specified by:
getType
in interfaceTokenTyped
- Returns:
- the token data type
-
getToken
ScalarValued getToken(int index)
Description copied from interface:TokenSequence
Gets the value at the specified position.- Specified by:
getToken
in interfaceTokenSequence
- Parameters:
index
- the index of the token- Returns:
- the value
-
newValueIterator
ScalarValuedIterator newValueIterator()
Description copied from interface:TokenSequence
Creates 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:
newValueIterator
in 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:
true
if the element is zero,false
otherwise
-
-