Class ElasticFlowQueryService

    • 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)