public interface Struct
SELECT
queries. It
allows us to represent of "tuple" of values. It has a fixed number of "fields", each of which has
a name and a value. The names and types of these fields are described by a StructType
.SelectResults
Modifier and Type | Method and Description |
---|---|
Object |
get(String fieldName)
Return the value associated with the given field name
|
Object[] |
getFieldValues()
Get the values in this struct
|
StructType |
getStructType()
Returns the
StructType that describes the fields of this Struct . |
Object get(String fieldName)
fieldName
- the String name of the fieldIllegalArgumentException
- If this struct does not have a field named fieldNameStructType.getFieldIndex(java.lang.String)
Object[] getFieldValues()
StructType getStructType()
StructType
that describes the fields of this Struct
.StructType
that describes the fields of this Struct