Class BinaryValueSerializer

java.lang.Object
kieker.common.record.io.BinaryValueSerializer
All Implemented Interfaces:
IValueSerializer

public class BinaryValueSerializer extends Object implements IValueSerializer
Default value serializer implementation.
Since:
1.13
Author:
Holger Knoche
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Create a binary value serializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(ByteBuffer buffer, IWriterRegistry<String> stringRegistry)
    Factory method to create a binary value serializer.
    void
    putBoolean(boolean value)
    Stores a boolean value in the underlying data store.
    void
    putByte(byte value)
    Stores a byte value in the underlying data store.
    void
    putBytes(byte[] value)
    Stores raw data in the underlying data store.
    void
    putChar(char value)
    Stores a char value in the underlying data store.
    void
    putDouble(double value)
    Stores a double value in the underlying data store.
    <T extends Enum<T>>
    void
    putEnumeration(T value)
    Stores a Enumeration value in the underlying data store.
    void
    putFloat(float value)
    Stores a float value in the underlying data store.
    void
    putInt(int value)
    Stores an int value in the underlying data store.
    void
    putLong(long value)
    Stores a long value in the underlying data store.
    void
    putShort(short value)
    Stores a short value in the underlying data store.
    void
    Stores a String value in the underlying data store.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BinaryValueSerializer

      protected BinaryValueSerializer(ByteBuffer buffer, IWriterRegistry<String> stringRegistry)
      Create a binary value serializer.
      Parameters:
      buffer - buffer for the serializer
      stringRegistry - the string registry used for the serializer
  • Method Details

    • create

      public static BinaryValueSerializer create(ByteBuffer buffer, IWriterRegistry<String> stringRegistry)
      Factory method to create a binary value serializer.
      Parameters:
      buffer - serialization buffer
      stringRegistry - the string registry used for the serializer
      Returns:
      the value serializer
    • putBoolean

      public void putBoolean(boolean value)
      Description copied from interface: IValueSerializer
      Stores a boolean value in the underlying data store.
      Specified by:
      putBoolean in interface IValueSerializer
      Parameters:
      value - The value to store
    • putByte

      public void putByte(byte value)
      Description copied from interface: IValueSerializer
      Stores a byte value in the underlying data store.
      Specified by:
      putByte in interface IValueSerializer
      Parameters:
      value - The value to store
    • putInt

      public void putInt(int value)
      Description copied from interface: IValueSerializer
      Stores an int value in the underlying data store.
      Specified by:
      putInt in interface IValueSerializer
      Parameters:
      value - The value to store
    • putLong

      public void putLong(long value)
      Description copied from interface: IValueSerializer
      Stores a long value in the underlying data store.
      Specified by:
      putLong in interface IValueSerializer
      Parameters:
      value - The value to store
    • putDouble

      public void putDouble(double value)
      Description copied from interface: IValueSerializer
      Stores a double value in the underlying data store.
      Specified by:
      putDouble in interface IValueSerializer
      Parameters:
      value - The value to store
    • putBytes

      public void putBytes(byte[] value)
      Description copied from interface: IValueSerializer
      Stores raw data in the underlying data store.
      Specified by:
      putBytes in interface IValueSerializer
      Parameters:
      value - The data to store
    • putString

      public void putString(String value)
      Description copied from interface: IValueSerializer
      Stores a String value in the underlying data store.
      Specified by:
      putString in interface IValueSerializer
      Parameters:
      value - The value to store
    • putChar

      public void putChar(char value)
      Description copied from interface: IValueSerializer
      Stores a char value in the underlying data store.
      Specified by:
      putChar in interface IValueSerializer
      Parameters:
      value - The value to store
    • putShort

      public void putShort(short value)
      Description copied from interface: IValueSerializer
      Stores a short value in the underlying data store.
      Specified by:
      putShort in interface IValueSerializer
      Parameters:
      value - The value to store
    • putFloat

      public void putFloat(float value)
      Description copied from interface: IValueSerializer
      Stores a float value in the underlying data store.
      Specified by:
      putFloat in interface IValueSerializer
      Parameters:
      value - The value to store
    • putEnumeration

      public <T extends Enum<T>> void putEnumeration(T value)
      Description copied from interface: IValueSerializer
      Stores a Enumeration value in the underlying data store.
      Specified by:
      putEnumeration in interface IValueSerializer
      Type Parameters:
      T - enumeration type
      Parameters:
      value - The value to store