|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.navigation.analytics.FilterIn
public class FilterIn
A FilterIn is a Filter that checks membership of
a given set of values in a table. The membership is checked with a
set of lookup expressions in a LookupList that is set in
the FilterIn.
This filter:
"[expression1, expression2] IN MyTable"
is semantically correct if MyTable is GROUPED
by the same number of fields as the number of expressions within brackets
"[...]". In this way, the contents of the brackets uniquely identify a
record in MyTable. Brackets with no expression list within represent access
to a table that is GROUPed to a single record.
Because the implicit tables NavStateRecords and AllBaseRecords are not
GROUPED, it is not possible to do a lookup on these tables.
| Constructor Summary | |
|---|---|
FilterIn(String tableName,
LookupList fList)
Constructs a new FilterIn. |
|
| Method Summary | |
|---|---|
LookupList |
getLookupList()
Gets the LookupList for this FilterIn. |
String |
getTableName()
Gets the table name for this FilterIn. |
void |
setLookupList(LookupList lList)
Sets the LookupList for this FilterIn. |
void |
setTableName(String tName)
Sets the table name for this FilterIn. |
String |
toString()
Returns the string form of this FilterIn. |
String |
toWire()
Returns the wire format of this FilterIn. |
void |
validateSyntax()
Validates the syntax of this FilterIn. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterIn(String tableName,
LookupList fList)
FilterIn. The LookupList represents a
list of expressions that evaluate to a list of values that uniquely
identify a record in the specified table.
tableName - the name of the table. Note that the table names
NavStateRecords and AllBaseRecords
are reserved and therefore cannot be specified.fList - a LookupList object that has been populated
with lookup expressions (objects of type Expr).| Method Detail |
|---|
public String getTableName()
FilterIn.
FilterIn.public void setTableName(String tName)
FilterIn.
tName - the name of the table. Note that the table names
NavStateRecords and AllBaseRecords
are reserved and therefore cannot be specified.public LookupList getLookupList()
LookupList for this FilterIn.
LookupList for this FilterIn.public void setLookupList(LookupList lList)
LookupList for this FilterIn.
lList - a LookupList object that has been populated
with lookup expressions (objects of type Expr).public String toString()
FilterIn. These are of the format:
[expression1, expression2...] IN table-namewhere each expression is a lookup expression in the
LookupList.
toString in interface QueryNodetoString in class ObjectFilterIn in the specified format.public String toWire()
FilterIn. This method is not
intended for public use because the wire format is subject to change.
toWire in interface QueryNodeFilterIn.
public void validateSyntax()
throws SyntaxException
FilterIn.
A FilterIn is valid if the table-name is non-null and non-empty
and the LookupList is itself valid.
validateSyntax in interface QueryNodeSyntaxException - if the syntax requirements are not satisfied.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||