Class RequestLogLine

java.lang.Object
org.apache.druid.server.RequestLogLine

public class RequestLogLine extends Object
  • Method Details

    • forNative

      public static RequestLogLine forNative(Query<?> query, org.joda.time.DateTime timestamp, String remoteAddr, QueryStats queryStats)
    • forSql

      public static RequestLogLine forSql(String sql, Map<String,Object> sqlQueryContext, org.joda.time.DateTime timestamp, String remoteAddr, QueryStats queryStats)
    • getNativeQueryLine

      public String getNativeQueryLine(com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getSqlQueryLine

      public String getSqlQueryLine(com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getQuery

      @Nullable public Query<?> getQuery()
    • getSql

      @Nullable public String getSql()
    • getSqlQueryContext

      @Nullable public Map<String,Object> getSqlQueryContext()
    • getTimestamp

      public org.joda.time.DateTime getTimestamp()
    • getRemoteAddr

      @Nullable public String getRemoteAddr()
    • getQueryStats

      public QueryStats getQueryStats()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object