Class DoubleVector

java.lang.Object
io.debezium.data.vector.DoubleVector

public class DoubleVector extends Object
A semantic type for a vector type with 8-byte elements.
Author:
Jiri Pechanec
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.kafka.connect.data.SchemaBuilder
    Returns a SchemaBuilder for a 8-byte vector field.
    static List<Double>
    fromLogical(org.apache.kafka.connect.data.Schema schema, String value)
    Converts a value from its logical format - String of [x,y,z,...] to its encoded format - a Connect array represented by list of numbers.
    static org.apache.kafka.connect.data.Schema
    Returns a SchemaBuilder for a 8-byte ector field, with all other default Schema settings.

    Methods inherited from class java.lang.Object

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

    • LOGICAL_NAME

      public static final String LOGICAL_NAME
      See Also:
    • SCHEMA_VERSION

      public static int SCHEMA_VERSION
  • Constructor Details

    • DoubleVector

      public DoubleVector()
  • Method Details

    • builder

      public static org.apache.kafka.connect.data.SchemaBuilder builder()
      Returns a SchemaBuilder for a 8-byte vector field. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.
      Returns:
      the schema builder
    • schema

      public static org.apache.kafka.connect.data.Schema schema()
      Returns a SchemaBuilder for a 8-byte ector field, with all other default Schema settings.
      Returns:
      the schema
      See Also:
    • fromLogical

      public static List<Double> fromLogical(org.apache.kafka.connect.data.Schema schema, String value)
      Converts a value from its logical format - String of [x,y,z,...] to its encoded format - a Connect array represented by list of numbers.
      Parameters:
      schema - of the encoded value
      value - the value of the vector
      Returns:
      the encoded value