Class JsonParserIterator<T>

java.lang.Object
org.apache.druid.client.JsonParserIterator<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<T>, CloseableIterator<T>

public class JsonParserIterator<T> extends Object implements CloseableIterator<T>
  • Constructor Details

    • JsonParserIterator

      public JsonParserIterator(com.fasterxml.jackson.databind.JavaType typeRef, Future<InputStream> future, String url, @Nullable Query<T> query, String host, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • JsonParserIterator

      public JsonParserIterator(com.fasterxml.jackson.databind.JavaType typeRef, Future<InputStream> future, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Bypasses Jackson serialization to prevent materialization of results from the future in memory at once. A shortened version of JsonParserIterator(JavaType, Future, String, Query, String, ObjectMapper) where the URL and host parameters, used solely for logging/errors, are not known.
  • Method Details