Class CollectionConfig

    • Method Detail

      • vectorConfig

        public final VectorConfig vectorConfig()

        Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.

        Returns:
        Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromVectorConfig

        public static CollectionConfig fromVectorConfig​(VectorConfig vectorConfig)
        Create an instance of this class with vectorConfig() initialized to the given value.

        Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.

        Parameters:
        vectorConfig - Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.

      • fromVectorConfig

        public static CollectionConfig fromVectorConfig​(Consumer<VectorConfig.Builder> vectorConfig)
        Create an instance of this class with vectorConfig() initialized to the given value.

        Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.

        Parameters:
        vectorConfig - Configuration for your vector collection type.

        • Dimension: The number of elements in your vector.