esevastyanov commented on a change in pull request #8110: [WIP] Response 
context refactoring
URL: https://github.com/apache/incubator-druid/pull/8110#discussion_r305618139
 
 

 ##########
 File path: server/src/main/java/org/apache/druid/server/QueryResource.java
 ##########
 @@ -337,27 +338,27 @@ protected ObjectMapper 
serializeDataTimeAsLong(ObjectMapper mapper)
     return mapper.copy().registerModule(new 
SimpleModule().addSerializer(DateTime.class, new DateTimeSerializer()));
   }
 
-  protected ResponseContext createContext(String requestType, boolean pretty)
+  protected QueryResponseContext createContext(String requestType, boolean 
pretty)
   {
     boolean isSmile = 
SmileMediaTypes.APPLICATION_JACKSON_SMILE.equals(requestType) ||
                       APPLICATION_SMILE.equals(requestType);
     String contentType = isSmile ? SmileMediaTypes.APPLICATION_JACKSON_SMILE : 
MediaType.APPLICATION_JSON;
-    return new ResponseContext(
+    return new QueryResponseContext(
         contentType,
         isSmile ? smileMapper : jsonMapper,
         isSmile ? serializeDateTimeAsLongSmileMapper : 
serializeDateTimeAsLongJsonMapper,
         pretty
     );
   }
 
-  protected static class ResponseContext
+  protected static class QueryResponseContext
 
 Review comment:
   Renamed to ResourceIOReaderWriter

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to