public abstract class GroupNodeBase<E extends IGroupMemberNode> extends GroupMemberNodeBase<E> implements IGroupNode<E>
DEFAULT_INITIAL_CAPACITY| Modifier | Constructor and Description |
|---|---|
protected |
GroupNodeBase() |
|
GroupNodeBase(BOp[] args,
Map<String,Object> anns)
Required shallow copy constructor.
|
|
GroupNodeBase(GroupNodeBase<E> op)
Constructor required for
com.bigdata.bop.BOpUtility#deepCopy(FilterNode). |
| Modifier and Type | Method and Description |
|---|---|
void |
addArg(BOp newArg)
Add a new argument (core mutation method).
|
void |
addArg(int index,
BOp newArg)
Add a new argument (core mutation method) at the specified index.
|
IGroupNode<E> |
addChild(E child)
Add a child to this group.
|
GroupNodeBase<E> |
clone()
Deep copy clone semantics.
|
List<FilterNode> |
getAttachedJoinFilters() |
List<E> |
getChildren() |
boolean |
isEmpty()
Return
true iff the group is empty. |
Iterator<E> |
iterator() |
boolean |
removeArg(BOp child)
Remove the 1st occurrence of the argument (core mutation method).
|
IGroupNode<E> |
removeChild(E child)
Remove a child from this group.
|
int |
replaceWith(BOp oldChild,
BOp newChild)
Replace a child of a node with another reference (destructive
modification).
|
ModifiableBOpBase |
setArg(int index,
BOp newArg)
Replace the value of the argument at the specified index (core mutation
method).
|
void |
setAttachedJoinFilters(List<FilterNode> filters) |
int |
size()
Return the #of children which are direct members of the group.
|
String |
toString(int indent)
Simple but robust version of to-String
|
getContext, getParent, getParentGraphPatternGroup, getParentJoinGroup, setParentgetQueryHints, toStringaddExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, replaceAllWith, setQueryHint, setQueryHintsaddArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, indexOf, setArgs, setId, setProperty, setUnboundProperty, toArray, toArrayannotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetContext, getParent, getParentGraphPatternGroup, getParentJoinGroup, setParentannotations, argIterator, args, arity, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toStringgetPropertygetDesiredBound, getRequiredBoundpublic GroupNodeBase(GroupNodeBase<E> op)
com.bigdata.bop.BOpUtility#deepCopy(FilterNode).public GroupNodeBase(BOp[] args, Map<String,Object> anns)
protected GroupNodeBase()
public Iterator<E> iterator()
iterator in interface Iterable<E extends IGroupMemberNode>public ModifiableBOpBase setArg(int index, BOp newArg)
Overridden to set the parent reference on the child.
setArg in class ModifiableBOpBaseindex - The index of the child expression to be replaced.newArg - The new child expression.ModifiableBOpBase.public void addArg(BOp newArg)
Overridden to set the parent reference on the child
addArg in class ModifiableBOpBasenewArg - The argument.public void addArg(int index,
BOp newArg)
Overridden to set the parent reference on the child
addArg in class ModifiableBOpBaseindex - The index at which the child expression is to be inserted.newArg - The argument.public boolean removeArg(BOp child)
Overridden to clear the parent reference on the child.
removeArg in class ModifiableBOpBasechild - The argument.true iff the argument was removed.public IGroupNode<E> addChild(E child)
IGroupNodeaddChild in interface IGroupNode<E extends IGroupMemberNode>public IGroupNode<E> removeChild(E child)
IGroupNoderemoveChild in interface IGroupNode<E extends IGroupMemberNode>public boolean isEmpty()
IGroupNodetrue iff the group is empty.isEmpty in interface IGroupNode<E extends IGroupMemberNode>public int size()
IGroupNodesize in interface IGroupNode<E extends IGroupMemberNode>public final List<FilterNode> getAttachedJoinFilters()
public final void setAttachedJoinFilters(List<FilterNode> filters)
public GroupNodeBase<E> clone()
Deep copy clone of the operator.
Overridden to also clone the children and then set the parent reference on the cloned children.
clone in interface BOpclone in class CoreBaseBOppublic String toString(int indent)
toString in interface BOptoString in interface IQueryNodetoString in class CoreBaseBOppublic int replaceWith(BOp oldChild, BOp newChild)
Overridden to set the parent reference on the new child and clear the parent reference on the old child.
replaceWith in class ModifiableBOpBaseCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.