public static final class SearchArgumentImpl.PredicateLeafImpl extends Object implements PredicateLeaf
PredicateLeaf.Operator, PredicateLeaf.Type
Constructor and Description |
---|
PredicateLeafImpl(PredicateLeaf.Operator operator,
PredicateLeaf.Type type,
String columnName,
Object literal,
List<Object> literalList) |
PredicateLeafImpl(PredicateLeaf.Operator operator,
PredicateLeaf.Type type,
String columnName,
Object literal,
List<Object> literalList,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkLiteralType(Object literal,
PredicateLeaf.Type type,
org.apache.hadoop.conf.Configuration conf) |
boolean |
equals(Object other) |
String |
getColumnName()
Get the simple column name.
|
int |
getId()
Get the id of the leaf.
|
Object |
getLiteral()
Get the literal half of the predicate leaf.
|
List<Object> |
getLiteralList()
For operators with multiple literals (IN and BETWEEN), get the literals.
|
PredicateLeaf.Operator |
getOperator()
Get the operator for the leaf.
|
PredicateLeaf.Type |
getType()
Get the type of the column and literal by the file format.
|
int |
hashCode() |
static void |
setColumnName(PredicateLeaf leaf,
String newName) |
void |
setId(int newId) |
String |
toString() |
public PredicateLeafImpl(PredicateLeaf.Operator operator, PredicateLeaf.Type type, String columnName, Object literal, List<Object> literalList)
public PredicateLeafImpl(PredicateLeaf.Operator operator, PredicateLeaf.Type type, String columnName, Object literal, List<Object> literalList, org.apache.hadoop.conf.Configuration conf)
public PredicateLeaf.Operator getOperator()
PredicateLeaf
getOperator
in interface PredicateLeaf
public PredicateLeaf.Type getType()
PredicateLeaf
getType
in interface PredicateLeaf
public String getColumnName()
PredicateLeaf
getColumnName
in interface PredicateLeaf
public Object getLiteral()
PredicateLeaf
getLiteral
in interface PredicateLeaf
public List<Object> getLiteralList()
PredicateLeaf
getLiteralList
in interface PredicateLeaf
public int getId()
PredicateLeaf
getId
in interface PredicateLeaf
SearchArgument.getLeaves()
public void setId(int newId)
public static void setColumnName(PredicateLeaf leaf, String newName)
protected void checkLiteralType(Object literal, PredicateLeaf.Type type, org.apache.hadoop.conf.Configuration conf)
Copyright © 2021 The Apache Software Foundation. All rights reserved.