sealed abstract class Primitive extends Enum[Primitive] with Serializable with Representable
Supported primitive types.
They serve as basis for scalars - dimensions and values.
Note: String types should only be used when the dimension is an actual text snippet.
- Alphabetic
- By Inheritance
- Primitive
- Representable
- Enum
- Serializable
- Comparable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def canBeDenseDimension(): Boolean
-
abstract
def
canBeValue(): Boolean
This method is called to check if the column Type of the value can be of the specified Primitive.
This method is called to check if the column Type of the value can be of the specified Primitive.
- returns
the Primitive of the column type
-
abstract
def
compare(leftTuple: ReadableTuple, leftColumn: Int, rightTuple: ReadableTuple, rightColumn: Int): Int
Compares data at leftTuple[leftColumn] with data at rightTuple[rightColumn] Note: The representation of both leftColumn and rightColumn is assumed to be the same as
thisNo validation on representation is performedCompares data at leftTuple[leftColumn] with data at rightTuple[rightColumn] Note: The representation of both leftColumn and rightColumn is assumed to be the same as
thisNo validation on representation is performed- leftTuple
left tuple from which a column will be compared
- leftColumn
column in leftTuple that will be compared
- rightTuple
right tuple from which a column will be compared
- rightColumn
column in right tuple that will be compared
- returns
-1 if lefttuple[leftColumn] < rightTuple[rightColumn], 0 if lefttuple[leftColumn] == rightTuple[rightColumn], 1 if lefttuple[leftColumn] > rightTuple[rightColumn]
-
abstract
def
copy(fromTuple: ReadableTuple, fromColumn: Int, toTuple: WriteableTuple, toColumn: Int): Unit
Copies data from fromTuple[fromColumn] to toTuple[toColumn] Note: The representation of both fromColumn and toColumn is assumed to be the same as
thisNo validation on representation is performedCopies data from fromTuple[fromColumn] to toTuple[toColumn] Note: The representation of both fromColumn and toColumn is assumed to be the same as
thisNo validation on representation is performed- fromTuple
ReadableTuplefrom which to copy- fromColumn
column in fromTuple to copy
- toTuple
WriteableTuplewhere the data would be copied- toColumn
column in toTuple where the data would be copied
-
abstract
def
equals(leftTuple: ReadableTuple, leftColumn: Int, rightTuple: ReadableTuple, rightColumn: Int): Boolean
Matches data at leftTuple[leftColumn] with data at rightTuple[rightColumn] Note: The representation of both leftColumn and rightColumn is assumed to be the same as
thisNo validation on representation is performedMatches data at leftTuple[leftColumn] with data at rightTuple[rightColumn] Note: The representation of both leftColumn and rightColumn is assumed to be the same as
thisNo validation on representation is performed- leftTuple
left tuple from which a column will be matched
- leftColumn
column in leftTuple that will be matched
- rightTuple
right tuple from which a column will be matched
- rightColumn
column in right tuple that will be matched
- returns
true if data is equal, false otherwise
-
abstract
def
from(value: Array[Byte], tuple: WriteableTuple, column: Int): Unit
Stores value from its byte[] serialization in the input tuple.
Stores value from its byte[] serialization in the input tuple.
For numeric types (int, long, float, double), BIG_ENDIAN byte order is expected.
For string type, a UTF-8 charset is used to construct the string.
For booleans, only the leading byte of the array is checked.
- value
Input value
- tuple
Input tuple to store the value
- column
Column index
- abstract def from(value: String, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Boolean, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Double, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Float, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Long, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Int, tuple: WriteableTuple, column: Int): Unit
- abstract def from(value: Number, tuple: WriteableTuple, column: Int): Unit
-
abstract
def
isInstance(obj: Any): Boolean
check whether the input object is of the primitive type without coercion.
- abstract def toBoolean(tuple: ReadableTuple, column: Int): Boolean
-
abstract
def
toBytes(tuple: ReadableTuple, column: Int): Array[Byte]
Returns value serialized into a byte[].
Returns value serialized into a byte[].
For numeric types (int, long, float, double), BIG_ENDIAN byte order is preserved.
For string type, a UTF-8 charset is used to get bytes.
For booleans, a single byte is returned in the array.
- tuple
Input tuple
- column
Column index
- returns
Value in byte[]
- abstract def toDouble(tuple: ReadableTuple, column: Int): Double
- abstract def toFloat(tuple: ReadableTuple, column: Int): Float
- abstract def toInt(tuple: ReadableTuple, column: Int): Int
- abstract def toLong(tuple: ReadableTuple, column: Int): Long
- abstract def toObject(tuple: ReadableTuple, column: Int): AnyRef
- abstract def toString(tuple: ReadableTuple, column: Int): String
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- Enum → AnyRef
- Annotations
- @throws( ... )
-
final
def
compareTo(arg0: Primitive): Int
- Definition Classes
- Enum → Comparable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(arg0: Any): Boolean
- Definition Classes
- Enum → AnyRef → Any
-
final
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- Enum → AnyRef
- def from(value: Any, tuple: WriteableTuple, column: Int): Unit
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getDeclaringClass(): Class[Primitive]
- Definition Classes
- Enum
-
def
getRepresentation(): Primitive
- Definition Classes
- Primitive → Representable
- Annotations
- @Override()
-
final
def
hashCode(): Int
- Definition Classes
- Enum → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
name(): String
- Definition Classes
- Enum
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
ordinal(): Int
- Definition Classes
- Enum
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Enum → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()