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 boolean
getBoolean()
Retrieves aboolean
value from the underlying data source.byte
getByte()
Retrieves abyte
value from the underlying data source.char
getChar()
Retrieves achar
value from the underlying data source.double
getDouble()
Retrieves adouble
value from the underlying data source.<T extends java.lang.Enum<T>>
TgetEnumeration(java.lang.Class<T> clazz)
Retrieves aEnumeration
value from the underlying data source.float
getFloat()
Retrieves afloat
value from the underlying data source.int
getInt()
Retrieves anint
value from the underlying data source.long
getLong()
Retrieves along
value from the underlying data source.short
getShort()
Retrieves ashort
value from the underlying data source.java.lang.String
getString()
Retrieves aString
value from the underlying data source.
-
Method Details
-
getBoolean
boolean getBoolean()Retrieves aboolean
value from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getByte
byte getByte() throws java.lang.NumberFormatExceptionRetrieves abyte
value from the underlying data source.- Returns:
- The retrieved value
- Throws:
java.lang.NumberFormatException
- on format errors- Since:
- 1.13
-
getChar
char getChar()Retrieves achar
value from the underlying data source.- Returns:
- The retrieved value
- Since:
- 1.13
-
getShort
short getShort() throws java.lang.NumberFormatExceptionRetrieves ashort
value 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 anint
value 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 along
value 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 afloat
value 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 adouble
value 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 aString
value 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 aEnumeration
value 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
-