java.lang.Object
org.springframework.data.cassandra.core.convert.CassandraVector
All Implemented Interfaces:
Vector

public class CassandraVector extends Object implements Vector
Vector implementation for Cassandra's CqlVector.
Since:
4.5
Author:
Mark Paluch
  • Method Details

    • of

      public static CassandraVector of(com.datastax.oss.driver.api.core.data.CqlVector<?> cqlVector)
      Creates a new CassandraVector for the given CqlVector.
      Parameters:
      cqlVector - must not be null.
      Returns:
      a new CassandraVector for the given CqlVector
    • getType

      public Class<? extends Number> getType()
      Specified by:
      getType in interface Vector
    • getSource

      public com.datastax.oss.driver.api.core.data.CqlVector<?> getSource()
      Specified by:
      getSource in interface Vector
    • size

      public int size()
      Specified by:
      size in interface Vector
    • toFloatArray

      public float[] toFloatArray()
      Specified by:
      toFloatArray in interface Vector
    • toDoubleArray

      public double[] toDoubleArray()
      Specified by:
      toDoubleArray in interface Vector
    • toString

      public String toString()
      Overrides:
      toString in class Object