public abstract class AbstractPredicate extends AbstractIRQuery implements Predicate
Abstract class of predicate
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
constraint |
protected int |
expressionType |
protected int |
predicateType |
protected double |
weight |
children, optrPREDICATE_BOOL, PREDICATE_QUALIFIER, PREDICATE_RELATION, PREDICATE_SIMPLE, PREDICATE_TERM| Constructor and Description |
|---|
AbstractPredicate() |
| Modifier and Type | Method and Description |
|---|---|
IRQuery |
getChild(int index) |
int |
getChildNum() |
Expression |
getConstraint() |
Operator |
getOperator() |
double |
getSelectivity() |
double |
getWeight() |
boolean |
isBoolPredicate() |
boolean |
isCompoundQuery()
If the current query denotes a simple predicate, this method returns false, otherwise true.
|
boolean |
isPredicate()
A predicate always begins with a ltter T (term predicate), R(relation predicate), or M(modifier predicate)
|
boolean |
isQualifierPredicate() |
boolean |
isRelationPredicate() |
boolean |
isSimplePredicate() |
boolean |
isTermPredicate() |
boolean |
parse(String predicate) |
protected abstract void |
parse(String[] predicate) |
void |
setWeight(double weight) |
getQueryKey, getTokenList, isRelBoolQuery, isRelSimpleQuery, setQueryKey, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoSQLExpression, toStringgetQueryKey, isRelBoolQuery, isRelSimpleQuery, setQueryKeyprotected double weight
protected int predicateType
protected int expressionType
protected Expression constraint
public boolean parse(String predicate)
parse in interface IRQueryparse in class AbstractIRQuerypredicate - the query stringpublic Operator getOperator()
getOperator in interface IRQuerygetOperator in class AbstractIRQuerypublic boolean isPredicate()
IRQueryisPredicate in interface IRQueryisPredicate in class AbstractIRQuerypublic boolean isCompoundQuery()
IRQueryisCompoundQuery in interface IRQueryisCompoundQuery in class AbstractIRQuerypublic IRQuery getChild(int index)
getChild in interface IRQuerygetChild in class AbstractIRQuerypublic int getChildNum()
getChildNum in interface IRQuerygetChildNum in class AbstractIRQuerypublic double getSelectivity()
getSelectivity in interface IRQuerygetSelectivity in interface PredicategetSelectivity in class AbstractIRQuerypublic Expression getConstraint()
getConstraint in interface Predicatepublic boolean isSimplePredicate()
isSimplePredicate in interface Predicatepublic boolean isBoolPredicate()
isBoolPredicate in interface Predicatepublic boolean isTermPredicate()
isTermPredicate in interface Predicatepublic boolean isRelationPredicate()
isRelationPredicate in interface Predicatepublic boolean isQualifierPredicate()
isQualifierPredicate in interface Predicateprotected abstract void parse(String[] predicate)
parse in class AbstractIRQueryCopyright © 2018 JULIE Lab, Germany. All rights reserved.