Package org.opennms.netmgt.flows.elastic
Class ElasticFlowQueryService
- java.lang.Object
-
- org.opennms.netmgt.flows.elastic.ElasticFlowQueryService
-
- All Implemented Interfaces:
FlowQueryService
- Direct Known Subclasses:
AggregatedFlowQueryService
,RawFlowQueryService
public abstract class ElasticFlowQueryService extends java.lang.Object implements FlowQueryService
-
-
Constructor Summary
Constructors Constructor Description ElasticFlowQueryService(io.searchbox.client.JestClient client, IndexSelector indexSelector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends io.searchbox.client.JestResult>
java.util.concurrent.CompletableFuture<T>executeAsync(io.searchbox.action.Action<T> action)
protected static <T> java.util.concurrent.CompletableFuture<com.google.common.collect.Table<Directional<T>,java.lang.Long,java.lang.Double>>
mapTable(com.google.common.collect.Table<Directional<java.lang.String>,java.lang.Long,java.lang.Double> source, java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<T>> fn)
Rebuilds the table, mapping the row keys using the given function and fills in missing cells with NaN values.java.util.concurrent.CompletableFuture<io.searchbox.core.SearchResult>
searchAsync(java.lang.String query, TimeRangeFilter timeRangeFilter)
protected static <T,A,R>
java.util.concurrent.CompletableFuture<R>transpose(java.lang.Iterable<java.util.concurrent.CompletableFuture<T>> futures, java.util.stream.Collector<? super T,A,R> collector)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.flows.api.FlowQueryService
getApplications, getApplicationSeries, getApplicationSummaries, getConversations, getConversationSeries, getConversationSummaries, getFieldSeries, getFieldSummaries, getFieldValues, getFlowCount, getHosts, getHostSeries, getHostSummaries, getTopNApplicationSeries, getTopNApplicationSummaries, getTopNConversationSeries, getTopNConversationSummaries, getTopNHostSeries, getTopNHostSummaries
-
-
-
-
Constructor Detail
-
ElasticFlowQueryService
public ElasticFlowQueryService(io.searchbox.client.JestClient client, IndexSelector indexSelector)
-
-
Method Detail
-
mapTable
protected static <T> java.util.concurrent.CompletableFuture<com.google.common.collect.Table<Directional<T>,java.lang.Long,java.lang.Double>> mapTable(com.google.common.collect.Table<Directional<java.lang.String>,java.lang.Long,java.lang.Double> source, java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<T>> fn)
Rebuilds the table, mapping the row keys using the given function and fills in missing cells with NaN values.
-
transpose
protected static <T,A,R> java.util.concurrent.CompletableFuture<R> transpose(java.lang.Iterable<java.util.concurrent.CompletableFuture<T>> futures, java.util.stream.Collector<? super T,A,R> collector)
-
searchAsync
public java.util.concurrent.CompletableFuture<io.searchbox.core.SearchResult> searchAsync(java.lang.String query, TimeRangeFilter timeRangeFilter)
-
executeAsync
public <T extends io.searchbox.client.JestResult> java.util.concurrent.CompletableFuture<T> executeAsync(io.searchbox.action.Action<T> action)
-
-