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

getFields()

This operation returns the fields of the Struct elements in an Array of Structs.

Java
public List<CreateCollectionReq.FieldSchema> getFields()

Request Syntax

Java
getFields()

RETURN TYPE:

List<CreateCollectionReq.FieldSchema>

RETURNS:

The return value will be the fields of the Struct elements in an Array of Structs.

Examples

Java
// You can get an instance of StructFieldSchema by describing
// a collection containing an Array of Struct field.

structFieldSchema.getFields();