public class InfoSchemaFilter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InfoSchemaFilter.ConstantExprNode |
static class |
InfoSchemaFilter.ExprNode |
static class |
InfoSchemaFilter.FieldExprNode |
static class |
InfoSchemaFilter.FunctionExprNode |
static class |
InfoSchemaFilter.Result |
Constructor and Description |
---|
InfoSchemaFilter(InfoSchemaFilter.ExprNode exprRoot) |
Modifier and Type | Method and Description |
---|---|
InfoSchemaFilter.Result |
evaluate(Map<String,String> recordValues)
Evaluate the filter for given
|
InfoSchemaFilter.Result |
evaluate(Map<String,String> recordValues,
boolean prefixMatchesInconclusive)
Evaluate the filter for given
|
InfoSchemaFilter.ExprNode |
getExprRoot() |
String |
toString() |
public InfoSchemaFilter(InfoSchemaFilter.ExprNode exprRoot)
public InfoSchemaFilter.ExprNode getExprRoot()
public InfoSchemaFilter.Result evaluate(Map<String,String> recordValues)
recordValues
- map of field names and their valuespublic InfoSchemaFilter.Result evaluate(Map<String,String> recordValues, boolean prefixMatchesInconclusive)
recordValues
- map of field names and their valuesprefixMatchesInconclusive
- whether a prefix match between a schema path and a filter value
results in Result.INCONCLUSIVE. Used for pruning the schema search
tree, e.g. "dfs" need not be recursed to find a schema of "cp.default"Copyright © 1970 The Apache Software Foundation. All rights reserved.