跳到主要内容
版本:v2.6.x

getStructFields()

This getter returns all struct field schemas in the collection schema.

Java
public List<CreateCollectionReq.StructFieldSchema> getStructFields()

RETURNS:

List<CreateCollectionReq.StructFieldSchema>

EXCEPTIONS:

  • MilvusClientException

    This exception will be raised when any error occurs during this operation.

Example

Java
CollectionSchema schema = CollectionSchema.builder().build();
List<CreateCollectionReq.StructFieldSchema> fields = schema.getStructFields();