Class NonStreamingQueryResults

    • Constructor Detail

      • NonStreamingQueryResults

        public NonStreamingQueryResults()
      • NonStreamingQueryResults

        public NonStreamingQueryResults​(long syncId)
    • Method Detail

      • getError

        public java.lang.Exception getError()
        Specified by:
        getError in interface QueryResult
      • setSyncId

        public void setSyncId​(long syncId)
      • getPathInfo

        public java.util.List<PathInfo> getPathInfo()
        Description copied from interface: QueryResult
        Information about the paths queried. Corresponds 1-to-1 with the paths passed in when the query was executed.
        Specified by:
        getPathInfo in interface QueryResult
      • moveForward

        protected void moveForward()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<ResultDataPoint>
      • onData

        public void onData​(java.util.function.Consumer<DataPoint> consumer,
                           java.util.function.BiConsumer<java.lang.Boolean,​java.lang.Throwable> onComplete)
        Specified by:
        onData in interface QueryResult
      • cancel

        public void cancel()
        Description copied from interface: QueryResult
        Cancels the query. Will call onComplete immediately, and will no longer process values. If takeNext() is blocked, it will throw an interrupted exception.
        Specified by:
        cancel in interface QueryResult
      • onError

        public void onError​(java.lang.Exception t)