Package kieker.common.record.io
Interface IValueDeserializer
- All Known Implementing Classes:
BinaryValueDeserializer,CassandraValueDeserializer,JsonArrayValueDeserializer,TextValueDeserializer
public interface IValueDeserializer
Interface for value deserializers for use by monitoring records.
- Since:
- 1.13
- Author:
- Holger Knoche, Reiner Jung - added enumeration support
-
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.
-
Method Details
-
getBoolean
boolean getBoolean()Retrieves abooleanvalue from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getByte
Retrieves abytevalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getChar
char getChar()Retrieves acharvalue from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getShort
Retrieves ashortvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getInt
Retrieves anintvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getLong
Retrieves alongvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getFloat
Retrieves afloatvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getDouble
Retrieves adoublevalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
NumberFormatException- on format errors- Since:
- 1.13
-
getString
String getString()Retrieves aStringvalue from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getEnumeration
Retrieves aEnumerationvalue from the underlying data source.- 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 typeRecordInstantiationException- input errors- Since:
- 1.14
-