FunctionChainArg

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

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

import io.milvus.v2.service.vector.request.FunctionChainArg;

// Build column and literal arguments
FunctionChainArg arg = FunctionChainArg.col("$score");
FunctionChainArg literal = FunctionChainArg.literal(0.7);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?