public class QueryProfileCompiler extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
QueryProfileCompiler.DimensionBindingForPath |
Constructor and Description |
---|
QueryProfileCompiler() |
Modifier and Type | Method and Description |
---|---|
private static void |
collectVariants(com.yahoo.processing.request.CompoundName path,
QueryProfile profile,
DimensionBinding currentVariant,
Set<QueryProfileCompiler.DimensionBindingForPath> allVariants)
Returns all the unique combinations of dimension values which have values set reachable from this profile.
|
private static void |
collectVariantsFromValues(com.yahoo.processing.request.CompoundName path,
Map<String,Object> values,
DimensionBinding currentVariant,
Set<QueryProfileCompiler.DimensionBindingForPath> allVariants) |
private static void |
collectVariantsInThis(com.yahoo.processing.request.CompoundName path,
QueryProfile profile,
DimensionBinding currentVariant,
Set<QueryProfileCompiler.DimensionBindingForPath> allVariants) |
static CompiledQueryProfile |
compile(QueryProfile in,
CompiledQueryProfileRegistry registry) |
static CompiledQueryProfileRegistry |
compile(QueryProfileRegistry input) |
private static final Logger log
public static CompiledQueryProfileRegistry compile(QueryProfileRegistry input)
public static CompiledQueryProfile compile(QueryProfile in, CompiledQueryProfileRegistry registry)
private static void collectVariants(com.yahoo.processing.request.CompoundName path, QueryProfile profile, DimensionBinding currentVariant, Set<QueryProfileCompiler.DimensionBindingForPath> allVariants)
profile
- the profile we are collecting the variants ofcurrentVariant
- the variant we must have to arrive at this point in the query profile graphallVariants
- the set of all variants accumulated so farprivate static void collectVariantsInThis(com.yahoo.processing.request.CompoundName path, QueryProfile profile, DimensionBinding currentVariant, Set<QueryProfileCompiler.DimensionBindingForPath> allVariants)
private static void collectVariantsFromValues(com.yahoo.processing.request.CompoundName path, Map<String,Object> values, DimensionBinding currentVariant, Set<QueryProfileCompiler.DimensionBindingForPath> allVariants)
Copyright © 2018. All rights reserved.