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,ChangeType,CharFilter,CharFilterDefinition,ClusterRemoteInfo,CompletionToolType,CompositeAggregationSource,Condition,Context,DatabaseConfiguration,DatabaseConfigurationFull,DataframeAnalysis,DataframeAnalysisFeatureProcessor,DataframeAnalyticsStats,DataframeEvaluation,DecayFunction,DistanceFeatureQuery,DocValues,DynamicTemplate,EmailAttachment,EmbeddingInferenceResult,EmbeddingInput,EsqlApproximation,FieldDateMath,FieldSuggester,FieldValue,FunctionScore,GeoBounds,GeoGridQuery,GeoHashPrecision,GeoLocation,IndexResult,IndicesPrivilegesQuery,InferenceConfig,InferenceConfig,InferenceConfigCreate,InferenceConfigUpdate,InferenceResult,Input,Intervals,IntervalsFilter,IntervalsQuery,KnnEmbeddingInput,LifecycleExplain,Like,MessageContent,MovingAverageAggregation,MultiGetResponseItem,MultiSearchResponseItem,MultiTermLookup,Normalizer,Percentiles,PinnedQuery,PivotGroupBy,Preprocessor,Processor,Property,Query,QueryVectorBuilder,RangeQuery,Rank,ReasoningDetail,RegionPolicy,ReindexTasks,Repository,RerankInput,RerankQuery,Rescore,RetentionPolicy,Retriever,RoleMappingRule,RoleQuery,RoleTemplateInlineQuery,RRFRetrieverEntry,Schedule,ScheduleTimeOfDay,ScriptSource,SettingsSimilarity,Slices,SmoothingModel,SortOptions,SourceConfig,SourceConfigParam,SourceOnlyRepositorySettings,SpanQuery,SparseVectorQuery,Suggestion,Sync,TableValues,TaskInfos,TermsExclude,TermsInclude,TermsQueryField,TextEmbeddingInferenceResult,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