public abstract class AbstractIRQuery extends Object implements IRQuery
Abstract class of IR query
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
children |
protected Operator |
optr |
| Constructor and Description |
|---|
AbstractIRQuery() |
| Modifier and Type | Method and Description |
|---|---|
IRQuery |
getChild(int index) |
int |
getChildNum() |
Operator |
getOperator() |
int |
getQueryKey() |
double |
getSelectivity() |
protected String[] |
getTokenList(String query) |
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 |
isRelBoolQuery() |
boolean |
isRelSimpleQuery() |
boolean |
parse(String query) |
protected abstract void |
parse(String[] expression) |
void |
setQueryKey(int key) |
String |
toString() |
public int getQueryKey()
getQueryKey in interface IRQuerypublic void setQueryKey(int key)
setQueryKey in interface IRQuerypublic boolean isPredicate()
IRQueryisPredicate in interface IRQuerypublic boolean isCompoundQuery()
IRQueryisCompoundQuery in interface IRQuerypublic boolean isRelSimpleQuery()
isRelSimpleQuery in interface IRQuerypublic boolean isRelBoolQuery()
isRelBoolQuery in interface IRQuerypublic boolean parse(String query)
public int getChildNum()
getChildNum in interface IRQuerypublic double getSelectivity()
getSelectivity in interface IRQuerypublic Operator getOperator()
getOperator in interface IRQuerypublic String toString()
protected abstract void parse(String[] expression)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.