Package org.apache.druid.server
Class ResourceIOReaderWriterFactory
java.lang.Object
org.apache.druid.server.ResourceIOReaderWriterFactory
Factory for creating instances of
ResourceIOReaderWriterFactory.ResourceIOReaderWriter.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulates the mapper for the request and theResourceIOReaderWriterFactory.ResourceIOWriterfor the response.static classHandles writing query response to the client in different formats. -
Constructor Summary
ConstructorsConstructorDescriptionResourceIOReaderWriterFactory(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper) -
Method Summary
Modifier and TypeMethodDescriptionfactorize(javax.servlet.http.HttpServletRequest req, boolean pretty) Creates aResourceIOReaderWriterFactory.ResourceIOReaderWriterinstance.
-
Constructor Details
-
ResourceIOReaderWriterFactory
@Inject public ResourceIOReaderWriterFactory(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper)
-
-
Method Details
-
factorize
public ResourceIOReaderWriterFactory.ResourceIOReaderWriter factorize(javax.servlet.http.HttpServletRequest req, boolean pretty) Creates aResourceIOReaderWriterFactory.ResourceIOReaderWriterinstance. The response writer is based on request accept header, with a fallback to content type if the accept header is not provided.
-