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 |
---|---|
java.lang.Object |
get(java.lang.String fieldName)
Return the value associated with the given field name
|
java.lang.Object[] |
getFieldValues()
Get the values in this struct
|
StructType |
getStructType()
Returns the
StructType that describes the fields of this Struct . |
java.lang.Object get(java.lang.String fieldName)
fieldName
- the String name of the fieldjava.lang.IllegalArgumentException
- If this struct does not have a field named fieldNameStructType.getFieldIndex(java.lang.String)
java.lang.Object[] getFieldValues()
StructType getStructType()
StructType
that describes the fields of this Struct
.