Package org.apache.druid.query.context
Class ResponseContext.AbstractKey
java.lang.Object
org.apache.druid.query.context.ResponseContext.AbstractKey
- All Implemented Interfaces:
ResponseContext.Key
- Direct Known Subclasses:
ResponseContext.BooleanKey,ResponseContext.CounterKey,ResponseContext.LongKey,ResponseContext.StringKey
- Enclosing class:
ResponseContext
public abstract static class ResponseContext.AbstractKey
extends Object
implements ResponseContext.Key
Abstract key class which provides most functionality except the
type-specific merge logic. Parsing is provided by an associated
parse function.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanDrop()Returns true if this key can be removed to reduce header size when the header would otherwise be too large.getName()booleanWhether to return the key, value pair in the response header.readValue(com.fasterxml.jackson.core.JsonParser jp) Reads a value of this key from a JSON stream.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.context.ResponseContext.Key
mergeValues
-
Method Details
-
getName
- Specified by:
getNamein interfaceResponseContext.Key
-
includeInHeader
public boolean includeInHeader()Description copied from interface:ResponseContext.KeyWhether to return the key, value pair in the response header. If false, the value is for internal use only.- Specified by:
includeInHeaderin interfaceResponseContext.Key
-
canDrop
public boolean canDrop()Description copied from interface:ResponseContext.KeyReturns true if this key can be removed to reduce header size when the header would otherwise be too large.- Specified by:
canDropin interfaceResponseContext.Key
-
readValue
Description copied from interface:ResponseContext.KeyReads a value of this key from a JSON stream. Used byResponseContextDeserializer.- Specified by:
readValuein interfaceResponseContext.Key
-
toString
-