FunctionChainOp
A single operation in a function-chain pipeline, such as map, sort, or limit.
io.milvus.v2.service.vector.request.FunctionChainOp
Constants
-
String OP_MAP— The"map"operation name. -
String OP_SORT— The"sort"operation name. -
String OP_LIMIT— The"limit"operation name.
Constructor
This builder creates a function-chain operation with an optional expression, inputs, outputs, and parameters.
FunctionChainOp.builder()
.op(String op)
.expr(FunctionChainExpr expr)
.inputs(List<String> inputs)
.outputs(List<String> outputs)
.params(Map<String, FunctionParamValue> params)
.build()
BUILDER METHODS:
-
op(String op)The operation name, e.g.
"map","sort","limit". -
expr(FunctionChainExpr expr)The function expression attached to this operation. See FunctionChainExpr.
-
inputs(List<String> inputs)The input columns of this operation.
-
outputs(List<String> outputs)The output columns of this operation.
-
params(Map<String, FunctionParamValue> params)The named parameters of this operation. See FunctionParamValue.
RETURN TYPE:
FunctionChainOp
METHODS:
-
String getOp()Returns the operation name.
-
FunctionChainExpr getExpr()Returns the attached function expression.
-
List<String> getInputs()Returns the input columns of this operation.
-
List<String> getOutputs()Returns the output columns of this operation.
-
Map<String, FunctionParamValue> getParams()Returns the named parameters of this operation.
Example
FunctionChainOp op = FunctionChainOp.builder()
.op(FunctionChainOp.OP_SORT)
.inputs(Collections.singletonList("$score"))
.build();