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, setParent
getQueryHints, toString
addExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, replaceAllWith, setQueryHint, setQueryHints
addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, indexOf, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString
finalize, getClass, notify, notifyAll, wait, wait, wait
getContext, getParent, getParentGraphPatternGroup, getParentJoinGroup, setParent
annotations, argIterator, args, arity, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toString
getProperty
getDesiredBound, getRequiredBound
public 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 ModifiableBOpBase
index
- 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 ModifiableBOpBase
newArg
- The argument.public void addArg(int index, BOp newArg)
Overridden to set the parent reference on the child
addArg
in class ModifiableBOpBase
index
- 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 ModifiableBOpBase
child
- The argument.true
iff the argument was removed.public IGroupNode<E> addChild(E child)
IGroupNode
addChild
in interface IGroupNode<E extends IGroupMemberNode>
public IGroupNode<E> removeChild(E child)
IGroupNode
removeChild
in interface IGroupNode<E extends IGroupMemberNode>
public boolean isEmpty()
IGroupNode
true
iff the group is empty.isEmpty
in interface IGroupNode<E extends IGroupMemberNode>
public int size()
IGroupNode
size
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 BOp
clone
in class CoreBaseBOp
public String toString(int indent)
toString
in interface BOp
toString
in interface IQueryNode
toString
in class CoreBaseBOp
public 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 ModifiableBOpBase
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.