Package com.esri.arcgisruntime.data
Class RelatedFeatureQueryResult
- java.lang.Object
 - 
- com.esri.arcgisruntime.data.RelatedFeatureQueryResult
 
 
- 
- All Implemented Interfaces:
 FeatureSet,Iterable<Feature>
public final class RelatedFeatureQueryResult extends Object implements FeatureSet
Represents the results of a related tables query. This iterator traverses the features found by the query.A prerequisite for querying related features is that all the participating tables must be part of a map, as either feature layers or non-spatial tables.
Example usage:
List<RelatedFeatureQueryResult> relatedFeatureQueryResultList = relatedFeatureQueryResultFuture.get(); //iterate over returned RelatedFeatureQueryResults for(RelatedFeatureQueryResult relatedQueryResult : relatedFeatureQueryResultList){ //iterate over Features returned for (Feature relatedFeature : relatedQueryResult) { ArcGISFeature agsFeature = (ArcGISFeature) relatedFeature; } }- Since:
 - 100.1.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArcGISFeaturegetFeature()Gets the feature for which related features were queried.List<Field>getFields()Gets the fields of the feature set.GeometryTypegetGeometryType()Gets the geometry type of the feature set.ArcGISFeatureTablegetRelatedTable()Gets the related table for this query result.RelationshipInfogetRelationshipInfo()Gets the relationship info for this query result.SpatialReferencegetSpatialReference()Gets the spatial reference of the feature set.booleanisTransferLimitExceeded()Gets if the transfer limit on the service was exceeded.Iterator<Feature>iterator()Returns a new iterator over the set of features.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.lang.Iterable
forEach, spliterator 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getFields
public List<Field> getFields()
Description copied from interface:FeatureSetGets the fields of the feature set.- Specified by:
 getFieldsin interfaceFeatureSet- Returns:
 - the fields of the feature set
 
 
- 
getGeometryType
public GeometryType getGeometryType()
Description copied from interface:FeatureSetGets the geometry type of the feature set.- Specified by:
 getGeometryTypein interfaceFeatureSet- Returns:
 - a geometry type
 
 
- 
getSpatialReference
public SpatialReference getSpatialReference()
Description copied from interface:FeatureSetGets the spatial reference of the feature set.- Specified by:
 getSpatialReferencein interfaceFeatureSet- Returns:
 - a spatial reference
 
 
- 
iterator
public Iterator<Feature> iterator()
Returns a new iterator over the set of features. Iterators previously returned from this method will become invalid and their methods will throw an IllegalStateException. 
- 
getFeature
public ArcGISFeature getFeature()
Gets the feature for which related features were queried.- Returns:
 - the feature
 - Since:
 - 100.1.0
 
 
- 
getRelationshipInfo
public RelationshipInfo getRelationshipInfo()
Gets the relationship info for this query result.- Returns:
 - the relationship info
 - Since:
 - 100.1.0
 
 
- 
isTransferLimitExceeded
public boolean isTransferLimitExceeded()
Gets if the transfer limit on the service was exceeded.- Returns:
 - true if the transfer limit was exceeded, false otherwise
 - Since:
 - 100.1.0
 
 
- 
getRelatedTable
public ArcGISFeatureTable getRelatedTable()
Gets the related table for this query result. There can be more than one instance of the same table or layer on the map with different scale level visibility, definition expression, and so on. All such instances share the same RelationshipInfo with the table the query operation is called on. In such cases, results from all such instances are returned, and the relatedTable property is used to distinguish between them.- Returns:
 - the related table
 - Since:
 - 100.1.0
 
 
 - 
 
 -