跳到主要内容
版本:v3.0.x

FunctionChainArg

A single argument of a function-chain expression: either a column reference or a literal value.

Java
io.milvus.v2.service.vector.request.FunctionChainArg

Methods​

  • static FunctionChainArg col(String name)

    Creates a column-reference argument for the given field name.

  • static FunctionChainArg literal(Object value)

    Creates a literal-value argument.

  • boolean isColumn()

    Returns true if this argument is a column reference.

  • String getColumnName()

    Returns the column name when this argument is a column reference.

  • FunctionParamValue getLiteral()

    Returns the literal value when this argument is a literal.

Example​

Java
FunctionChainArg arg = FunctionChainArg.col("$score");
FunctionChainArg literal = FunctionChainArg.literal(0.7);