Class ExpressionFactory

java.lang.Object
io.qdrant.client.ExpressionFactory

public final class ExpressionFactory extends Object
Convenience methods for constructing Points.Expression
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.qdrant.client.grpc.Points.Expression
    abs(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing absolute value.
    static io.qdrant.client.grpc.Points.Expression
    acosh(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing inverse hyperbolic cosine.
    static io.qdrant.client.grpc.Points.Expression
    condition(io.qdrant.client.grpc.Common.Condition condition)
    Creates an Points.Expression from a Common.Condition.
    static io.qdrant.client.grpc.Points.Expression
    constant(float constant)
    Creates an Points.Expression from a constant.
    static io.qdrant.client.grpc.Points.Expression
    datetime(String datetime)
    Creates an Points.Expression from a date-time constant string.
    static io.qdrant.client.grpc.Points.Expression
    datetimeKey(String datetimeKey)
    Creates an Points.Expression from a payload key referencing date-time values.
    static io.qdrant.client.grpc.Points.Expression
    div(io.qdrant.client.grpc.Points.DivExpression div)
    Creates an Points.Expression that divides values.
    static io.qdrant.client.grpc.Points.Expression
    exp(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing exponential.
    static io.qdrant.client.grpc.Points.Expression
    expDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
    Creates an Points.Expression representing exponential decay.
    static io.qdrant.client.grpc.Points.Expression
    gaussDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
    Creates an Points.Expression representing Gaussian decay.
    static io.qdrant.client.grpc.Points.Expression
    geoDistance(io.qdrant.client.grpc.Points.GeoDistance geoDistance)
    Creates an Points.Expression from a Points.GeoDistance.
    static io.qdrant.client.grpc.Points.Expression
    linDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
    Creates an Points.Expression representing linear decay.
    static io.qdrant.client.grpc.Points.Expression
    ln(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing natural logarithm.
    static io.qdrant.client.grpc.Points.Expression
    log10(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing base-10 logarithm.
    static io.qdrant.client.grpc.Points.Expression
    max(io.qdrant.client.grpc.Points.MaxExpression max)
    Creates an Points.Expression for the maximum of values.
    static io.qdrant.client.grpc.Points.Expression
    min(io.qdrant.client.grpc.Points.MinExpression min)
    Creates an Points.Expression for the minimum of values.
    static io.qdrant.client.grpc.Points.Expression
    mult(io.qdrant.client.grpc.Points.MultExpression mult)
    Creates an Points.Expression that multiplies values.
    static io.qdrant.client.grpc.Points.Expression
    negate(io.qdrant.client.grpc.Points.Expression expr)
    Creates a negated Points.Expression.
    static io.qdrant.client.grpc.Points.Expression
    pow(io.qdrant.client.grpc.Points.PowExpression pow)
    Creates an Points.Expression from a Points.PowExpression.
    static io.qdrant.client.grpc.Points.Expression
    sqrt(io.qdrant.client.grpc.Points.Expression expr)
    Creates an Points.Expression representing square root.
    static io.qdrant.client.grpc.Points.Expression
    sum(io.qdrant.client.grpc.Points.SumExpression sum)
    Creates an Points.Expression that sums values.
    static io.qdrant.client.grpc.Points.Expression
    variable(String variable)
    Creates an Points.Expression from a variable name.

    Methods inherited from class java.lang.Object

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

    • constant

      public static io.qdrant.client.grpc.Points.Expression constant(float constant)
      Creates an Points.Expression from a constant.
      Parameters:
      constant - The constant float value
      Returns:
      a new instance of Points.Expression
    • variable

      public static io.qdrant.client.grpc.Points.Expression variable(String variable)
      Creates an Points.Expression from a variable name.
      Parameters:
      variable - The variable name (e.g., payload key or score reference)
      Returns:
      a new instance of Points.Expression
    • condition

      public static io.qdrant.client.grpc.Points.Expression condition(io.qdrant.client.grpc.Common.Condition condition)
      Creates an Points.Expression from a Common.Condition.
      Parameters:
      condition - The condition to evaluate
      Returns:
      a new instance of Points.Expression
    • geoDistance

      public static io.qdrant.client.grpc.Points.Expression geoDistance(io.qdrant.client.grpc.Points.GeoDistance geoDistance)
      Creates an Points.Expression from a Points.GeoDistance.
      Parameters:
      geoDistance - The geo distance object
      Returns:
      a new instance of Points.Expression
    • datetime

      public static io.qdrant.client.grpc.Points.Expression datetime(String datetime)
      Creates an Points.Expression from a date-time constant string.
      Parameters:
      datetime - The date-time string
      Returns:
      a new instance of Points.Expression
    • datetimeKey

      public static io.qdrant.client.grpc.Points.Expression datetimeKey(String datetimeKey)
      Creates an Points.Expression from a payload key referencing date-time values.
      Parameters:
      datetimeKey - The payload key containing date-time values
      Returns:
      a new instance of Points.Expression
    • mult

      public static io.qdrant.client.grpc.Points.Expression mult(io.qdrant.client.grpc.Points.MultExpression mult)
      Creates an Points.Expression that multiplies values.
      Parameters:
      mult - The multiplication expression
      Returns:
      a new instance of Points.Expression
    • sum

      public static io.qdrant.client.grpc.Points.Expression sum(io.qdrant.client.grpc.Points.SumExpression sum)
      Creates an Points.Expression that sums values.
      Parameters:
      sum - The summation expression
      Returns:
      a new instance of Points.Expression
    • div

      public static io.qdrant.client.grpc.Points.Expression div(io.qdrant.client.grpc.Points.DivExpression div)
      Creates an Points.Expression that divides values.
      Parameters:
      div - The division expression
      Returns:
      a new instance of Points.Expression
    • negate

      public static io.qdrant.client.grpc.Points.Expression negate(io.qdrant.client.grpc.Points.Expression expr)
      Creates a negated Points.Expression.
      Parameters:
      expr - The expression to negate
      Returns:
      a new instance of Points.Expression
    • abs

      public static io.qdrant.client.grpc.Points.Expression abs(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing absolute value.
      Parameters:
      expr - The expression to wrap with abs()
      Returns:
      a new instance of Points.Expression
    • sqrt

      public static io.qdrant.client.grpc.Points.Expression sqrt(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing square root.
      Parameters:
      expr - The expression to apply sqrt() to
      Returns:
      a new instance of Points.Expression
    • pow

      public static io.qdrant.client.grpc.Points.Expression pow(io.qdrant.client.grpc.Points.PowExpression pow)
      Creates an Points.Expression from a Points.PowExpression.
      Parameters:
      pow - The power expression (base and exponent)
      Returns:
      a new instance of Points.Expression
    • exp

      public static io.qdrant.client.grpc.Points.Expression exp(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing exponential.
      Parameters:
      expr - The expression to apply exponential to
      Returns:
      a new instance of Points.Expression
    • log10

      public static io.qdrant.client.grpc.Points.Expression log10(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing base-10 logarithm.
      Parameters:
      expr - The expression to apply log10() to
      Returns:
      a new instance of Points.Expression
    • ln

      public static io.qdrant.client.grpc.Points.Expression ln(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing natural logarithm.
      Parameters:
      expr - The expression to apply natural log to
      Returns:
      a new instance of Points.Expression
    • expDecay

      public static io.qdrant.client.grpc.Points.Expression expDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
      Creates an Points.Expression representing exponential decay.
      Parameters:
      decay - The decay parameters
      Returns:
      a new instance of Points.Expression
    • gaussDecay

      public static io.qdrant.client.grpc.Points.Expression gaussDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
      Creates an Points.Expression representing Gaussian decay.
      Parameters:
      decay - The decay parameters
      Returns:
      a new instance of Points.Expression
    • linDecay

      public static io.qdrant.client.grpc.Points.Expression linDecay(io.qdrant.client.grpc.Points.DecayParamsExpression decay)
      Creates an Points.Expression representing linear decay.
      Parameters:
      decay - The decay parameters
      Returns:
      a new instance of Points.Expression
    • acosh

      public static io.qdrant.client.grpc.Points.Expression acosh(io.qdrant.client.grpc.Points.Expression expr)
      Creates an Points.Expression representing inverse hyperbolic cosine.
      Parameters:
      expr - The expression to apply acosh() to
      Returns:
      a new instance of Points.Expression
    • max

      public static io.qdrant.client.grpc.Points.Expression max(io.qdrant.client.grpc.Points.MaxExpression max)
      Creates an Points.Expression for the maximum of values.
      Parameters:
      max - The maximum expression
      Returns:
      a new instance of Points.Expression
    • min

      public static io.qdrant.client.grpc.Points.Expression min(io.qdrant.client.grpc.Points.MinExpression min)
      Creates an Points.Expression for the minimum of values.
      Parameters:
      min - The minimum expression
      Returns:
      a new instance of Points.Expression