Milvus
Zilliz
< Docs
  • Java

getElementType()

This operation returns the data type of the Struct elements within an Array of Structs field.

public DataType getElementType()

Request Syntax

getElementType()

RETURN TYPE:

DataType

RETURNS:

The return value will always be DataType.Array.

Examples

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

structFieldSchema.getElementType();

// DataType.Struct

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?