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 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.
-
Method Details
-
getBoolean
boolean getBoolean()Retrieves abooleanvalue from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getByte
byte getByte() throws java.lang.NumberFormatExceptionRetrieves abytevalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.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
short getShort() throws java.lang.NumberFormatExceptionRetrieves ashortvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors- Since:
- 1.13
-
getInt
int getInt() throws java.lang.NumberFormatExceptionRetrieves anintvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors- Since:
- 1.13
-
getLong
long getLong() throws java.lang.NumberFormatExceptionRetrieves alongvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors- Since:
- 1.13
-
getFloat
float getFloat() throws java.lang.NumberFormatExceptionRetrieves afloatvalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors- Since:
- 1.13
-
getDouble
double getDouble() throws java.lang.NumberFormatExceptionRetrieves adoublevalue from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException- on format errors- Since:
- 1.13
-
getString
java.lang.String getString()Retrieves aStringvalue from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getEnumeration
<T extends java.lang.Enum<T>> T getEnumeration(java.lang.Class<T> clazz) throws RecordInstantiationExceptionRetrieves 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
-