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

getElementType()

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

Java
public DataType getElementType()

Request Syntax

Java
getElementType()

RETURN TYPE:

DataType

RETURNS:

The return value will always be DataType.Array.

Examples

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

structFieldSchema.getElementType();

// DataType.Struct