Package co.elastic.clients.util
Interface TaggedUnion<Tag extends Enum<?>,BaseType>
- Type Parameters:
Tag- the tag type that defines the possible variants (an enum).BaseType- the closest common ancestor type to all variant values.
- All Known Subinterfaces:
OpenTaggedUnion<Tag,BaseType>
- All Known Implementing Classes:
Action,Action,Aggregate,Aggregation,Analyzer,ApiKeyAggregate,ApiKeyAggregation,ApiKeyQuery,Buckets,BucketsPath,BulkOperation,CategorizationAnalyzer,CategorizeTextAnalyzer,CharFilter,CharFilterDefinition,ClusterRemoteInfo,Condition,Context,DataframeAnalysis,DataframeAnalysisFeatureProcessor,DataframeAnalyticsStats,DataframeEvaluation,DecayFunction,DistanceFeatureQuery,DynamicTemplate,EmailAttachment,FieldDateMath,FieldRule,FieldSuggester,FieldValue,FunctionScore,GeoBounds,GeoHashPrecision,GeoLocation,InferenceConfig,InferenceConfig,InferenceConfigCreate,InferenceConfigUpdate,InferenceResult,Input,Intervals,IntervalsFilter,IntervalsQuery,LifecycleExplain,Like,MovingAverageAggregation,MultiGetResponseItem,MultiSearchResponseItem,NodeReloadResult,Normalizer,Percentiles,PinnedQuery,PivotGroupBy,Preprocessor,Processor,Property,Query,QueryVectorBuilder,RangeQuery,Rank,Repository,Rescore,RetentionPolicy,Retriever,RoleMappingRule,RoleQuery,RoleTemplateInlineQuery,Schedule,ScheduleTimeOfDay,SettingsSimilarity,Slices,SmoothingModel,SortOptions,SourceConfig,SourceConfigParam,SpanQuery,SparseVectorQuery,Suggestion,Sync,TaskInfos,TermsExclude,TermsInclude,TermsQueryField,Time,TokenFilter,TokenFilterDefinition,TokenizationConfig,Tokenizer,TokenizerDefinition,TrackHits,Transform,Trigger,TriggerEvent,UserQuery,Validation,WaitForActiveShards
public interface TaggedUnion<Tag extends Enum<?>,BaseType>
Base interface for tagged union types (also known as sum types or variants).
It provides access to the current variant kind and its value.
- See Also:
-
Method Summary