Class AzureAISearchBaseOpDispenser<REQUEST,RESULT>
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser<AzureAISearchBaseOp<?,?>,AzureAISearchSpace>
io.nosqlbench.adapter.azureaisearch.opsdispenser.AzureAISearchBaseOpDispenser<REQUEST,RESULT>
- All Implemented Interfaces:
OpDispenser<AzureAISearchBaseOp<?,,?>> OpResultTracker,NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,LongFunction<AzureAISearchBaseOp<?,?>>
- Direct Known Subclasses:
AzureAISearchCreateOrUpdateIndexOpDispenser,AzureAISearchDeleteIndexOpDispenser,AzureAISearchListIndexesOpDispenser,AzureAISearchSearchDocumentsOpDispenser,AzureAISearchUploadDocumentsOpDispenser
public abstract class AzureAISearchBaseOpDispenser<REQUEST,RESULT>
extends BaseOpDispenser<AzureAISearchBaseOp<?,?>,AzureAISearchSpace>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LongFunction<AzureAISearchSpace> protected final LongFunction<com.azure.search.documents.indexes.SearchIndexClient> Fields inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
EXPECTED_RESULT, logger, spaceF, START_TIMERS, STOP_TIMERS, VERIFIER, VERIFIER_IMPORTS, VERIFIER_INIT, verifierTimerFields inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
bufferOrphanedMetrics, closed_ns, error, errored_ns, metricsBuffer, parent, started_epoch_ms, started_ns, state, teardown_nsFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponent
EMPTY_COMPONENTFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponentProps
HDRDIGITS, SUMMARYFields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAzureAISearchBaseOpDispenser(AzureAISearchDriverAdapter adapter, ParsedOp op, LongFunction<String> targetF) -
Method Summary
Modifier and TypeMethodDescriptionabstract LongFunction<AzureAISearchBaseOp<REQUEST, RESULT>> createOpFunc(LongFunction<REQUEST> paramF, LongFunction<com.azure.search.documents.indexes.SearchIndexClient> clientF, ParsedOp op, LongFunction<String> targetF) getOp(long cycle) This method should do all the work of creating an operation that is executable by some other caller.abstract LongFunction<REQUEST> getParamFunc(LongFunction<com.azure.search.documents.indexes.SearchIndexClient> clientF, ParsedOp op, LongFunction<String> targetF) Methods inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
apply, getLabels, getOpName, getVerifier, onError, onStart, onSuccessMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
addAdvisor, addMetricsCloseable, attachChild, beforeDetach, close, create, detachChild, find, findParentService, getAdvisors, getChildren, getComponentOnlyLabels, getComponentProp, getComponentState, getNanosSinceStart, getParent, getTokens, nanosof_close, nanosof_error, nanosof_start, nanosof_teardown, onError, onEvent, reportExecutionMetric, setComponentProp, started_epoch_ms, teardown, toStringMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
addComponentMetric, addListener, findComponentMetrics, findComponentMetrics, getComponentMetric, getComponentMetrics, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentAdvisors
getAdvisorResultsMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentMetrics
addComponentMetric, findComponentMetrics, findComponentMetrics, findOneComponentMetric, findOneComponentMetric, getComponentMetric, getComponentMetricsMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Field Details
-
azureAISearchSpaceFunction
-
clientFunction
-
-
Constructor Details
-
AzureAISearchBaseOpDispenser
protected AzureAISearchBaseOpDispenser(AzureAISearchDriverAdapter adapter, ParsedOp op, LongFunction<String> targetF)
-
-
Method Details
-
getParamFunc
public abstract LongFunction<REQUEST> getParamFunc(LongFunction<com.azure.search.documents.indexes.SearchIndexClient> clientF, ParsedOp op, LongFunction<String> targetF) -
createOpFunc
public abstract LongFunction<AzureAISearchBaseOp<REQUEST,RESULT>> createOpFunc(LongFunction<REQUEST> paramF, LongFunction<com.azure.search.documents.indexes.SearchIndexClient> clientF, ParsedOp op, LongFunction<String> targetF) -
getOp
Description copied from interface:OpDispenserThis method should do all the work of creating an operation that is executable by some other caller. The value produced by the apply method should not require additional processing if a caller wants to execute the operation multiple times, as for retries.- Parameters:
cycle- The cycle number which serves as the seed for any generated op fields to be bound into an operation.- Returns:
- an executable operation
-