org.apache.geode.cache.query.types

## Interface StructType

- All Superinterfaces:
    DataSerializable, ObjectType, java.io.Serializable

      public interface StructType
      extends ObjectType

  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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getFieldIndex(java.lang.String fieldName)` Returns the index of the field with the given name in this `StructType`.
    `java.lang.String[]` | `getFieldNames()` Get the names of the fields for this struct
    `ObjectType[]` | `getFieldTypes()` The the types of the fields for this struct

    - ### Methods inherited from interface org.apache.geode.cache.query.types.ObjectType

      `getSimpleClassName, isCollectionType, isMapType, isStructType, resolveClass`

    - ### Methods inherited from interface org.apache.geode.DataSerializable

      `fromData, toData`

- - ### Method Detail

    - #### getFieldTypes

          ObjectType[] getFieldTypes()

      The the types of the fields for this struct
      Returns:
        the array of Class for the fields

    - #### getFieldNames

          java.lang.String[] getFieldNames()

      Get the names of the fields for this struct
      Returns:
        the array of field names

    - #### getFieldIndex

          int getFieldIndex(java.lang.String fieldName)

      Returns the index of the field with the given name in this `StructType`.
      Throws:
        `java.lang.IllegalArgumentException` - If this `StructType` does not contain a field named `fieldName`.