Class Bits

java.lang.Object
io.debezium.data.Bits

public class Bits extends Object
A set of bits of arbitrary length.
Author:
Randall Hauch
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.kafka.connect.data.SchemaBuilder
    builder(int length)
    Returns a SchemaBuilder for a Bits.
    static byte[]
    fromBitSet(org.apache.kafka.connect.data.Schema schema, BitSet value)
    Convert a value from its logical format (BitSet) to it's encoded format.
    static org.apache.kafka.connect.data.Schema
    schema(int length)
    Returns a Schema for a Bits but with all other default Schema settings.
    static BitSet
    toBitSet(org.apache.kafka.connect.data.Schema schema, byte[] value)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Bits

      public Bits()
  • Method Details

    • builder

      public static org.apache.kafka.connect.data.SchemaBuilder builder(int length)
      Returns a SchemaBuilder for a Bits. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.
      Parameters:
      length - maximum the number of bits in the set
      Returns:
      the schema builder
    • schema

      public static org.apache.kafka.connect.data.Schema schema(int length)
      Returns a Schema for a Bits but with all other default Schema settings.
      Parameters:
      length - maximum the number of bits in the set
      Returns:
      the schema
      See Also:
    • fromBitSet

      public static byte[] fromBitSet(org.apache.kafka.connect.data.Schema schema, BitSet value)
      Convert a value from its logical format (BitSet) to it's encoded format.
      Parameters:
      schema - the schema
      value - the logical value
      Returns:
      the encoded value
    • toBitSet

      public static BitSet toBitSet(org.apache.kafka.connect.data.Schema schema, byte[] value)