Interface StructType
- All Superinterfaces:
DataSerializable,ObjectType,Serializable
Describes the field names and types for each field in a
Struct.- Since:
- GemFire 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.geode.DataSerializable
DataSerializable.Replaceable -
Method Summary
Modifier and TypeMethodDescriptionintgetFieldIndex(String fieldName) Returns the index of the field with the given name in thisStructType.String[]Get the names of the fields for this structThe the types of the fields for this structMethods inherited from interface org.apache.geode.DataSerializable
fromData, toDataMethods inherited from interface org.apache.geode.cache.query.types.ObjectType
getSimpleClassName, isCollectionType, isMapType, isStructType, resolveClass
-
Method Details
-
getFieldTypes
ObjectType[] getFieldTypes()The the types of the fields for this struct- Returns:
- the array of Class for the fields
-
getFieldNames
String[] getFieldNames()Get the names of the fields for this struct- Returns:
- the array of field names
-
getFieldIndex
Returns the index of the field with the given name in thisStructType.- Parameters:
fieldName- the name of the field- Returns:
- the index of the field with the given name in this
StructType - Throws:
IllegalArgumentException- If thisStructTypedoes not contain a field namedfieldName.
-