|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
com.endeca.navigation.analytics.CoalesceList
public class CoalesceList
CoalesceList instances represent a list of expressions used
to return the the first non-null value in the list. These coalesce expressions
are objects of type Expr
Coalesce expressions provide the ability to evalute records for multiple
values and return the first non-null value encountered, in the order specified.
The CoalesceList saves the expressions in the form of a list, in the same order
as specified in the query.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CoalesceList()
Constructs an empty CoalesceList. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object obj)
Inserts an expression object at position index. |
Object |
get(int index)
Gets the expression at position index. |
Object |
remove(int index)
Removes the coalesce expression element at the specified position in this list. |
Object |
set(int index,
Object obj)
Replaces the expression object at position index
with the the expression object specified by obj. |
int |
size()
Returns the number of coalesce expressions in this CoalesceList. |
String |
toString()
Returns the string form of this CoalesceList. |
String |
toWire()
Returns the wire format of this CoalesceList. |
void |
validateSyntax()
Validates the syntax of this CoalesceList. |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
| Constructor Detail |
|---|
public CoalesceList()
CoalesceList.
| Method Detail |
|---|
public Object get(int index)
index.
The expression must be of type Expr.
get in interface Listget in class AbstractListindex - offset of the desired coalesce expression.
Expr object) at position index.
IndexOutOfBoundsException - if index is out of range.public int size()
CoalesceList.
size in interface Collectionsize in interface Listsize in class AbstractCollection
public Object set(int index,
Object obj)
index
with the the expression object specified by obj.
set in interface Listset in class AbstractListindex - offset of the Select object to replace.obj - the Select object to store.
index.
IndexOutOfBoundsException - if index is out of range.
public void add(int index,
Object obj)
index.
Shifts the element currently at that position (if any) and
any subsequent elements to the right (adds one to their indices).
add in interface Listadd in class AbstractListindex - offset at which the coalesce expression object is to be inserted.obj - the coalesce expression object to be inserted.
IndexOutOfBoundsException - if index is out of range.public Object remove(int index)
Expr.
remove in interface Listremove in class AbstractListindex - offset of element.
index.
IndexOutOfBoundsException - If the index is out of range.public String toString()
CoalesceList. These are of the format:
expression1, expression2...where expression is the string form of
Expr.
toString in interface QueryNodetoString in class AbstractCollectionCoalesceList in the specified format.public String toWire()
CoalesceList. This method is not
intended for public use because the wire format is subject to change.
toWire in interface QueryNodeCoalesceList.
public void validateSyntax()
throws SyntaxException
CoalesceList.
A CoalesceList is valid if all of its expressions are themselves
valid and the list is not empty.
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 | ||||||||