Skip to content

Commit

Permalink
java docs
Browse files Browse the repository at this point in the history
Signed-off-by: sahil buddharaju <[email protected]>
  • Loading branch information
sahil buddharaju committed Aug 9, 2023
1 parent 3dc5f0b commit 6d5afa0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public interface SearchRequestOperationsListener {

void onExpandSearchPhaseEnd(SearchPhaseContext context, long tookTime);

/**
* Holder of Composite Listeners
*
* @opensearch.internal
*/

final class CompositeListener implements SearchRequestOperationsListener {
private final List<SearchRequestOperationsListener> listeners;
private final Logger logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ public void onExpandSearchPhaseFailure(SearchPhaseContext context) {
computeStats(statsHolder -> { totalStats.expandSearchCurrent.dec(); });
}

/**
* Holder of statistics values
*
* @opensearch.internal
*/

public static final class StatsHolder {
public MeanMetric dfsPreQueryMetric = new MeanMetric();
public CounterMetric dfsPreQueryCurrent = new CounterMetric();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public static class RequestStatsLongHolder {
public long expandSearchTotal;
}

/**
* Holder of statistics values
*
* @opensearch.internal
*/

public static class Stats implements Writeable, ToXContentFragment {

private long queryCount;
Expand Down

0 comments on commit 6d5afa0

Please sign in to comment.