Constructor and Description |
---|
QueryContext(int ignored,
Query owner) |
Modifier and Type | Method and Description |
---|---|
QueryContext |
clone() |
QueryContext |
cloneFor(Query cloneOwner) |
Object |
getProperty(String name)
Returns a property set anywhere in this context.
|
com.yahoo.processing.execution.Execution.Trace |
getTrace()
Returns the execution trace this delegates to
|
void |
logValue(String key,
Object value)
Adds a key-value which will be logged to the access log for this query (by doing toString() on the value
Multiple values may be set to the same key.
|
Iterator<com.yahoo.processing.execution.Execution.Trace.LogValue> |
logValueIterator()
Returns the values to be written to the access log for this
|
boolean |
render(Writer writer) |
void |
setProperty(String name,
Object value)
Adds a property key-value to this context.
|
String |
toString()
Returns a short string description of this (includes the first few messages only, and no newlines)
|
void |
trace(String message,
int traceLevel)
Adds a context message to this context
|
public static final String ID
private Query owner
public QueryContext(int ignored, Query owner)
public void trace(String message, int traceLevel)
public void logValue(String key, Object value)
public Iterator<com.yahoo.processing.execution.Execution.Trace.LogValue> logValueIterator()
public void setProperty(String name, Object value)
name
- the name of the propertyvalue
- the value of the property, or null to set this property to nullpublic Object getProperty(String name)
Note that this method have a time complexity which is proportional to the number of cloned/created queries times the average number of properties in each.
public String toString()
public boolean render(Writer writer) throws IOException
IOException
public QueryContext cloneFor(Query cloneOwner)
public com.yahoo.processing.execution.Execution.Trace getTrace()
public QueryContext clone()
Copyright © 2018. All rights reserved.