Restore BaseQuery.computeOverridenContext() for compatibility (#4241)

This commit is contained in:
Roman Leventov 2017-05-02 20:22:02 +03:00 committed by Fangjin Yang
parent 0bc18e7906
commit 5e85fcc0f5
1 changed files with 10 additions and 0 deletions

View File

@ -145,6 +145,16 @@ public abstract class BaseQuery<T extends Comparable<T>> implements Query<T>
return QueryContexts.parseBoolean(this, key, defaultValue);
}
/**
* @deprecated use {@link #computeOverriddenContext(Map, Map) computeOverriddenContext(getContext(), overrides))}
* instead. This method may be removed in the next minor or major version of Druid.
*/
@Deprecated
protected Map<String, Object> computeOverridenContext(final Map<String, Object> overrides)
{
return computeOverriddenContext(getContext(), overrides);
}
protected static Map<String, Object> computeOverriddenContext(
final Map<String, Object> context,
final Map<String, Object> overrides