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

getFieldSchemaList()

This getter returns the list of all field schemas in the collection schema.

Java
public List<CreateCollectionReq.FieldSchema> getFieldSchemaList()

RETURNS:

List<CreateCollectionReq.FieldSchema>

EXCEPTIONS:

  • MilvusClientException

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

Example

Java
CollectionSchema schema = CollectionSchema.builder().build();
List<CreateCollectionReq.FieldSchema> fields = schema.getFieldSchemaList();