Gemfire JavaDocs
Package org.apache.geode.cache.query
Interface Struct
-
public interface Struct
An immutable and thread-safe data type used by the result of someSELECT
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 aStructType
.- Since:
- GemFire 4.0
- See Also:
SelectResults
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String fieldName)
Return the value associated with the given field namejava.lang.Object[]
getFieldValues()
Get the values in this structStructType
getStructType()
Returns theStructType
that describes the fields of thisStruct
.
-
-
-
Method Detail
-
get
java.lang.Object get(java.lang.String fieldName)
Return the value associated with the given field name- Parameters:
fieldName
- the String name of the field- Returns:
- the value associated with the specified field
- Throws:
java.lang.IllegalArgumentException
- If this struct does not have a field named fieldName- See Also:
StructType.getFieldIndex(java.lang.String)
-
getFieldValues
java.lang.Object[] getFieldValues()
Get the values in this struct- Returns:
- the array of values
-
getStructType
StructType getStructType()
Returns theStructType
that describes the fields of thisStruct
.- Returns:
- the
StructType
that describes the fields of thisStruct
-
-