setTypeParams()
This operation sets the type parameters of an Array of Structs field.
public void setTypeParams(Map<String, String> typeParams)
Request Syntax
setTypeParams(Map<String, String> typeParams)
PARAMETERS:
typeParams (Map
) - A map of struct-field type parameters. Supported keys include
mmap.enabledandwarmup.
RETURNS:
void
Example
import io.milvus.v2.service.collection.request.CreateCollectionReq;
import java.util.Map;
CreateCollectionReq.StructFieldSchema structFieldSchema = CreateCollectionReq.StructFieldSchema.builder()
.name("metadata")
.maxCapacity(100)
.fields(Collections.emptyList())
.build();
structFieldSchema.setTypeParams(Map.of(
"mmap.enabled", "true",
"warmup", "sync"
));