Class MetadataFilterBuilder

java.lang.Object
dev.langchain4j.store.embedding.filter.MetadataFilterBuilder

public class MetadataFilterBuilder extends Object
A helper class for building a Filter for Metadata key.
  • Constructor Details

    • MetadataFilterBuilder

      public MetadataFilterBuilder(String key)
  • Method Details

    • metadataKey

      public static MetadataFilterBuilder metadataKey(String key)
    • isEqualTo

      public Filter isEqualTo(String value)
    • isEqualTo

      public Filter isEqualTo(UUID value)
    • isEqualTo

      public Filter isEqualTo(int value)
    • isEqualTo

      public Filter isEqualTo(long value)
    • isEqualTo

      public Filter isEqualTo(float value)
    • isEqualTo

      public Filter isEqualTo(double value)
    • isNotEqualTo

      public Filter isNotEqualTo(String value)
    • isNotEqualTo

      public Filter isNotEqualTo(UUID value)
    • isNotEqualTo

      public Filter isNotEqualTo(int value)
    • isNotEqualTo

      public Filter isNotEqualTo(long value)
    • isNotEqualTo

      public Filter isNotEqualTo(float value)
    • isNotEqualTo

      public Filter isNotEqualTo(double value)
    • isGreaterThan

      public Filter isGreaterThan(String value)
    • isGreaterThan

      public Filter isGreaterThan(int value)
    • isGreaterThan

      public Filter isGreaterThan(long value)
    • isGreaterThan

      public Filter isGreaterThan(float value)
    • isGreaterThan

      public Filter isGreaterThan(double value)
    • isGreaterThanOrEqualTo

      public Filter isGreaterThanOrEqualTo(String value)
    • isGreaterThanOrEqualTo

      public Filter isGreaterThanOrEqualTo(int value)
    • isGreaterThanOrEqualTo

      public Filter isGreaterThanOrEqualTo(long value)
    • isGreaterThanOrEqualTo

      public Filter isGreaterThanOrEqualTo(float value)
    • isGreaterThanOrEqualTo

      public Filter isGreaterThanOrEqualTo(double value)
    • isLessThan

      public Filter isLessThan(String value)
    • isLessThan

      public Filter isLessThan(int value)
    • isLessThan

      public Filter isLessThan(long value)
    • isLessThan

      public Filter isLessThan(float value)
    • isLessThan

      public Filter isLessThan(double value)
    • isLessThanOrEqualTo

      public Filter isLessThanOrEqualTo(String value)
    • isLessThanOrEqualTo

      public Filter isLessThanOrEqualTo(int value)
    • isLessThanOrEqualTo

      public Filter isLessThanOrEqualTo(long value)
    • isLessThanOrEqualTo

      public Filter isLessThanOrEqualTo(float value)
    • isLessThanOrEqualTo

      public Filter isLessThanOrEqualTo(double value)
    • isBetween

      public Filter isBetween(String fromValue, String toValue)
    • isBetween

      public Filter isBetween(int fromValue, int toValue)
    • isBetween

      public Filter isBetween(long fromValue, long toValue)
    • isBetween

      public Filter isBetween(float fromValue, float toValue)
    • isBetween

      public Filter isBetween(double fromValue, double toValue)
    • isIn

      public Filter isIn(String... values)
    • isIn

      public Filter isIn(UUID... values)
    • isIn

      public Filter isIn(int... values)
    • isIn

      public Filter isIn(long... values)
    • isIn

      public Filter isIn(float... values)
    • isIn

      public Filter isIn(double... values)
    • isIn

      public Filter isIn(Collection<?> values)
    • isNotIn

      public Filter isNotIn(String... values)
    • isNotIn

      public Filter isNotIn(UUID... values)
    • isNotIn

      public Filter isNotIn(int... values)
    • isNotIn

      public Filter isNotIn(long... values)
    • isNotIn

      public Filter isNotIn(float... values)
    • isNotIn

      public Filter isNotIn(double... values)
    • isNotIn

      public Filter isNotIn(Collection<?> values)