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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves abooleanvalue from the underlying data source.bytegetByte()Retrieves abytevalue from the underlying data source.chargetChar()Retrieves acharvalue from the underlying data source.doubleRetrieves adoublevalue from the underlying data source.<T extends Enum<T>>
TgetEnumeration(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.Retrieves aStringvalue from the underlying data source.Methods inherited from class kieker.common.record.io.AbstractValueDeserializer
enumerationValueOf
-
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
Description copied from interface:IValueDeserializerRetrieves abytevalue from the underlying data source.- Specified by:
getBytein interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
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
Description copied from interface:IValueDeserializerRetrieves ashortvalue from the underlying data source.- Specified by:
getShortin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors
-
getInt
Description copied from interface:IValueDeserializerRetrieves anintvalue from the underlying data source.- Specified by:
getIntin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors
-
getLong
Description copied from interface:IValueDeserializerRetrieves alongvalue from the underlying data source.- Specified by:
getLongin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors
-
getFloat
Description copied from interface:IValueDeserializerRetrieves afloatvalue from the underlying data source.- Specified by:
getFloatin interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors
-
getDouble
Description copied from interface:IValueDeserializerRetrieves adoublevalue from the underlying data source.- Specified by:
getDoublein interfaceIValueDeserializer- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors
-
getString
Description copied from interface:IValueDeserializerRetrieves aStringvalue from the underlying data source.- Specified by:
getStringin interfaceIValueDeserializer- Returns:
- The retrieved value
-
getEnumeration
Description 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
-