Package kieker.extension.cassandra
Class CassandraValueDeserializer
java.lang.Object
kieker.common.record.io.AbstractValueDeserializer
kieker.extension.cassandra.CassandraValueDeserializer
- All Implemented Interfaces:
IValueDeserializer
public class CassandraValueDeserializer extends AbstractValueDeserializer implements IValueDeserializer
- Since:
- 1.16
- Author:
- Reiner Jung
-
Constructor Summary
Constructors Constructor Description CassandraValueDeserializer(com.datastax.oss.driver.api.core.cql.Row row) -
Method Summary
Modifier and Type Method Description booleangetBoolean()Retrieves abooleanvalue from the underlying data source.bytegetByte()Retrieves abytevalue from the underlying data source.chargetChar()Retrieves acharvalue from the underlying data source.doublegetDouble()Retrieves adoublevalue from the underlying data source.<T extends java.lang.Enum<T>>
TgetEnumeration(java.lang.Class<T> clazz)Retrieves aEnumerationvalue from the underlying data source.floatgetFloat()Retrieves afloatvalue from the underlying data source.intgetInt()Retrieves anintvalue from the underlying data source.longgetLong()Retrieves alongvalue from the underlying data source.shortgetShort()Retrieves ashortvalue from the underlying data source.java.lang.StringgetString()Retrieves aStringvalue from the underlying data source.
-
Constructor Details
-
CassandraValueDeserializer
public CassandraValueDeserializer(com.datastax.oss.driver.api.core.cql.Row row)
-
-
Method Details
-
getBoolean
public boolean getBoolean()Description copied from interface:IValueDeserializerRetrieves abooleanvalue from the underlying data source.- Specified by:
getBooleanin interfaceIValueDeserializer- Returns:
- The retrieved value
-
getByte
public byte getByte() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves abytevalue from the underlying data source.- Specified by:
getBytein interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getChar
public char getChar()Description copied from interface:IValueDeserializerRetrieves acharvalue from the underlying data source.- Specified by:
getCharin interfaceIValueDeserializer- Returns:
- The retrieved value
-
getShort
public short getShort() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves ashortvalue from the underlying data source.- Specified by:
getShortin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getInt
public int getInt() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves anintvalue from the underlying data source.- Specified by:
getIntin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getLong
public long getLong() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves alongvalue from the underlying data source.- Specified by:
getLongin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getFloat
public float getFloat() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves afloatvalue from the underlying data source.- Specified by:
getFloatin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getDouble
public double getDouble() throws java.lang.NumberFormatExceptionDescription copied from interface:IValueDeserializerRetrieves adoublevalue from the underlying data source.- Specified by:
getDoublein interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors
-
getString
public java.lang.String getString()Description copied from interface:IValueDeserializerRetrieves aStringvalue from the underlying data source.- Specified by:
getStringin interfaceIValueDeserializer- Returns:
- The retrieved value
-
getEnumeration
public <T extends java.lang.Enum<T>> T getEnumeration(java.lang.Class<T> clazz) throws RecordInstantiationExceptionDescription copied from interface:IValueDeserializerRetrieves aEnumerationvalue from the underlying data source.- Specified by:
getEnumerationin interfaceIValueDeserializer- Type Parameters:
T- the corresponding enumeration type- Parameters:
clazz- enumeration type to be used- Returns:
- The retrieved value
- Throws:
RecordInstantiationException- in case the received ordinal does not exist in the specified enumeration type
-