Uses of Class
org.hibernate.search.engine.backend.work.execution.OperationSubmitter
Packages that use OperationSubmitter
Package
Description
-
Uses of OperationSubmitter in org.hibernate.search.engine.backend.index
Methods in org.hibernate.search.engine.backend.index with parameters of type OperationSubmitterModifier and TypeMethodDescriptionCompletionStage<List<? extends AnalysisToken>> IndexManager.analyzeAsync(String analyzerName, String terms, OperationSubmitter operationSubmitter) Applies the analyzer to a given string to produce a list of tokens in an async manner.IndexManager.normalizeAsync(String normalizerName, String terms, OperationSubmitter operationSubmitter) Applies the normalizer to a given string to produce a normalized token in an async manner. -
Uses of OperationSubmitter in org.hibernate.search.engine.backend.orchestration.spi
Methods in org.hibernate.search.engine.backend.orchestration.spi with parameters of type OperationSubmitterModifier and TypeMethodDescriptionprotected abstract voidAbstractWorkOrchestrator.doSubmit(W work, OperationSubmitter operationSubmitter) final voidAbstractWorkOrchestrator.submit(W work, OperationSubmitter operationSubmitter) voidBatchingExecutor.submit(W work, OperationSubmitter operationSubmitter) Submit a work for execution. -
Uses of OperationSubmitter in org.hibernate.search.engine.backend.schema.management.spi
Methods in org.hibernate.search.engine.backend.schema.management.spi with parameters of type OperationSubmitterModifier and TypeMethodDescriptionIndexSchemaManager.createIfMissing(OperationSubmitter operationSubmitter) Creates the schema if it doesn't already exist.IndexSchemaManager.createOrUpdate(OperationSubmitter operationSubmitter) Creates the schema if it doesn't already exist, or updates the existing schema to match requirements expressed by the mapper.IndexSchemaManager.createOrValidate(ContextualFailureCollector failureCollector, OperationSubmitter operationSubmitter) Creates the schema if it doesn't already exist, or validates the existing schema against requirements expressed by the mapper.IndexSchemaManager.dropAndCreate(OperationSubmitter operationSubmitter) Drops the schema and all indexed data if it exists, then creates the schema.IndexSchemaManager.dropIfExisting(OperationSubmitter operationSubmitter) Drops the schema and all indexed data if it exists.IndexSchemaManager.validate(ContextualFailureCollector failureCollector, OperationSubmitter operationSubmitter) Validates the existing schema against requirements expressed by the mapper. -
Uses of OperationSubmitter in org.hibernate.search.engine.backend.work.execution
Methods in org.hibernate.search.engine.backend.work.execution that return OperationSubmitterModifier and TypeMethodDescriptionstatic OperationSubmitterOperationSubmitter.blocking()When using this submitter, dding a new element will block the thread when the underlying queue is aBlockingQueueand it is at its maximum capacity, until some elements are removed from the queuestatic OperationSubmitterOperationSubmitter.offloading(Consumer<Runnable> executor) Creates an operation submitter that would attempt to submit work to a queue, but in case the queue is full it would offload the submitting of the operation to provided executor.static OperationSubmitterOperationSubmitter.rejecting()When using this submitter adding a new element will cause aRejectedExecutionExceptionwhen the underlying queue is aBlockingQueueand it is at its maximum capacity. -
Uses of OperationSubmitter in org.hibernate.search.engine.backend.work.execution.spi
Methods in org.hibernate.search.engine.backend.work.execution.spi with parameters of type OperationSubmitterModifier and TypeMethodDescriptionIndexIndexer.add(DocumentReferenceProvider referenceProvider, DocumentContributor documentContributor, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, OperationSubmitter operationSubmitter) Add a document to the index, assuming that the document is absent from the index.IndexIndexer.addOrUpdate(DocumentReferenceProvider referenceProvider, DocumentContributor documentContributor, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, OperationSubmitter operationSubmitter) Update a document in the index, or add it if it's absent from the index.IndexIndexer.delete(DocumentReferenceProvider referenceProvider, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, OperationSubmitter operationSubmitter) Delete a document from the index.default CompletableFuture<?> IndexIndexingPlan.execute(OperationSubmitter operationSubmitter) Start executing all the works in this plan, and clear the plan so that it can be re-used.IndexIndexingPlan.executeAndReport(OperationSubmitter operationSubmitter) Start executing all the works in this plan, and clear the plan so that it can be re-used.IndexWorkspace.flush(OperationSubmitter operationSubmitter, UnsupportedOperationBehavior unsupportedOperationBehavior) Flush to disk the changes to the index that were not committed yet.IndexWorkspace.mergeSegments(OperationSubmitter operationSubmitter, UnsupportedOperationBehavior unsupportedOperationBehavior) Merge all segments of the index into a single one.IndexWorkspace.purge(Set<String> routingKeys, OperationSubmitter operationSubmitter, UnsupportedOperationBehavior unsupportedOperationBehavior) Delete documents that were indexed with any of the given routing keys, or all documents if the set of routing keys is empty.IndexWorkspace.refresh(OperationSubmitter operationSubmitter, UnsupportedOperationBehavior unsupportedOperationBehavior) Refresh the indexes so that all changes executed so far will be visible in search queries.