Uses of Interface
org.elasticsearch.common.CheckedFunction
-
-
Uses of CheckedFunction in org.elasticsearch.action
Methods in org.elasticsearch.action with parameters of type CheckedFunction Modifier and Type Method Description static <T,Response>
ActionListener<Response>ActionListener. map(ActionListener<T> listener, CheckedFunction<Response,T,Exception> fn)Creates a listener that wraps another listener, mapping response values via the given mapping function and passing along exceptions to the delegate. -
Uses of CheckedFunction in org.elasticsearch.client
Methods in org.elasticsearch.client with parameters of type CheckedFunction Modifier and Type Method Description protected <Resp> RespRestHighLevelClient. parseEntity(HttpEntity entity, CheckedFunction<XContentParser,Resp,IOException> entityParser)protected <Req extends ActionRequest,Resp>
RespRestHighLevelClient. performRequest(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
RespRestHighLevelClient. performRequest(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, Set<Integer> ignores)Defines a helper method for performing a request.protected <Req extends ActionRequest,Resp>
RespRestHighLevelClient. performRequestAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
RespRestHighLevelClient. performRequestAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, Set<Integer> ignores)Defines a helper method for performing a request and then parsing the returned entity using the provided entityParser.protected <Req extends Validatable,Resp>
Optional<Resp>RestHighLevelClient. performRequestAndParseOptionalEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser)Defines a helper method for requests that can 404 and in which case will return an empty Optional otherwise tries to parse the response bodyprotected <Req extends ActionRequest,Resp>
CancellableRestHighLevelClient. performRequestAsync(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, ActionListener<Resp> listener, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsync(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, ActionListener<Resp> listener, Set<Integer> ignores)Defines a helper method for asynchronously performing a request.protected <Req extends ActionRequest,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Resp> listener, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Resp> listener, Set<Integer> ignores)Defines a helper method for asynchronously performing a request.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseOptionalEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Optional<Resp>> listener)Asynchronous request which returns emptyOptionals in the case of 404s or parses entity into an Optional -
Uses of CheckedFunction in org.elasticsearch.common.xcontent
Methods in org.elasticsearch.common.xcontent with parameters of type CheckedFunction Modifier and Type Method Description <T> voidAbstractObjectParser. declareField(BiConsumer<Value,T> consumer, CheckedFunction<XContentParser,T,IOException> parser, ParseField parseField, ObjectParser.ValueType type)<T> Map<String,T>XContentParser. map(Supplier<Map<String,T>> mapFactory, CheckedFunction<XContentParser,T,IOException> mapValueParser)Returns an instance ofMapholding parsed map.<T> Map<String,T>XContentSubParser. map(Supplier<Map<String,T>> mapFactory, CheckedFunction<XContentParser,T,IOException> mapValueParser)Constructors in org.elasticsearch.common.xcontent with parameters of type CheckedFunction Constructor Description Entry(Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser,? extends T,IOException> parser)Creates a new entry which can be stored by the registry. -
Uses of CheckedFunction in org.elasticsearch.common.xcontent.support
Methods in org.elasticsearch.common.xcontent.support with parameters of type CheckedFunction Modifier and Type Method Description <T> Map<String,T>AbstractXContentParser. map(Supplier<Map<String,T>> mapFactory, CheckedFunction<XContentParser,T,IOException> mapValueParser) -
Uses of CheckedFunction in org.elasticsearch.env
Constructors in org.elasticsearch.env with parameters of type CheckedFunction Constructor Description NodeLock(int nodeId, org.apache.logging.log4j.Logger logger, Environment environment, CheckedFunction<Path,Boolean,IOException> pathFunction)Tries to acquire a node lock for a node id, throwsIOExceptionif it is unable to acquire it -
Uses of CheckedFunction in org.elasticsearch.index
Method parameters in org.elasticsearch.index with type arguments of type CheckedFunction Modifier and Type Method Description voidIndexModule. setReaderWrapper(Function<IndexService,CheckedFunction<DirectoryReader,DirectoryReader,IOException>> indexReaderWrapperFactory)Sets the factory for creating newDirectoryReaderwrapper instances. -
Uses of CheckedFunction in org.elasticsearch.index.shard
Constructors in org.elasticsearch.index.shard with parameters of type CheckedFunction Constructor Description IndexShard(ShardRouting shardRouting, IndexSettings indexSettings, ShardPath path, Store store, Supplier<Sort> indexSortSupplier, IndexCache indexCache, MapperService mapperService, SimilarityService similarityService, EngineFactory engineFactory, IndexEventListener indexEventListener, CheckedFunction<DirectoryReader,DirectoryReader,IOException> indexReaderWrapper, ThreadPool threadPool, BigArrays bigArrays, Engine.Warmer warmer, List<SearchOperationListener> searchOperationListener, List<IndexingOperationListener> listeners, Runnable globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer, CircuitBreakerService circuitBreakerService) -
Uses of CheckedFunction in org.elasticsearch.plugins
-
Uses of CheckedFunction in org.elasticsearch.repositories.blobstore
Constructors in org.elasticsearch.repositories.blobstore with parameters of type CheckedFunction Constructor Description ChecksumBlobStoreFormat(String codec, String blobNameFormat, CheckedFunction<XContentParser,T,IOException> reader, NamedXContentRegistry namedXContentRegistry, boolean compress) -
Uses of CheckedFunction in org.elasticsearch.search.aggregations
Methods in org.elasticsearch.search.aggregations with parameters of type CheckedFunction Modifier and Type Method Description protected static voidParsedMultiBucketAggregation. declareMultiBucketAggregationFields(ObjectParser<? extends ParsedMultiBucketAggregation,Void> objectParser, CheckedFunction<XContentParser,ParsedMultiBucketAggregation.ParsedBucket,IOException> bucketParser, CheckedFunction<XContentParser,ParsedMultiBucketAggregation.ParsedBucket,IOException> keyedBucketParser) -
Uses of CheckedFunction in org.elasticsearch.search.aggregations.bucket.geogrid
Methods in org.elasticsearch.search.aggregations.bucket.geogrid with parameters of type CheckedFunction Modifier and Type Method Description static ObjectParser<ParsedGeoGrid,Void>ParsedGeoGrid. createParser(Supplier<ParsedGeoGrid> supplier, CheckedFunction<XContentParser,ParsedMultiBucketAggregation.ParsedBucket,IOException> bucketParser, CheckedFunction<XContentParser,ParsedMultiBucketAggregation.ParsedBucket,IOException> keyedBucketParser) -
Uses of CheckedFunction in org.elasticsearch.search.aggregations.bucket.range
Methods in org.elasticsearch.search.aggregations.bucket.range with parameters of type CheckedFunction Modifier and Type Method Description protected static voidParsedRange. declareParsedRangeFields(ObjectParser<? extends ParsedRange,Void> objectParser, CheckedFunction<XContentParser,ParsedRange.ParsedBucket,IOException> bucketParser, CheckedFunction<XContentParser,ParsedRange.ParsedBucket,IOException> keyedBucketParser) -
Uses of CheckedFunction in org.elasticsearch.search.internal
Methods in org.elasticsearch.search.internal with parameters of type CheckedFunction Modifier and Type Method Description static QueryBuilderShardSearchRequest. parseAliasFilter(CheckedFunction<byte[],QueryBuilder,IOException> filterParser, IndexMetaData metaData, String... aliasNames)Returns the filter associated with listed filtering aliases. -
Uses of CheckedFunction in org.elasticsearch.search.suggest
Methods in org.elasticsearch.search.suggest with parameters of type CheckedFunction Modifier and Type Method Description protected static <E extends Suggest.Suggestion.Entry<?>>
voidSuggest.Suggestion. parseEntries(XContentParser parser, Suggest.Suggestion<E> suggestion, CheckedFunction<XContentParser,E,IOException> entryParser)
-