org.exist.memtree
Class InMemoryNodeSet

java.lang.Object
  extended by org.exist.xquery.value.AbstractSequence
      extended by org.exist.xquery.value.ValueSequence
          extended by org.exist.memtree.InMemoryNodeSet
All Implemented Interfaces:
MemoryNodeSet, Sequence

public class InMemoryNodeSet
extends ValueSequence


Field Summary
static InMemoryNodeSet EMPTY
           
 
Fields inherited from interface org.exist.xquery.value.Sequence
EMPTY_SEQUENCE
 
Constructor Summary
InMemoryNodeSet()
           
InMemoryNodeSet(int initialSize)
           
InMemoryNodeSet(Sequence otherSequence)
           
 
Method Summary
 Sequence getAncestors(boolean includeSelf, NodeTest test)
           
 Sequence getAttributes(NodeTest test)
           
 Sequence getChildren(NodeTest test)
           
 Sequence getChildrenForParent(NodeImpl parent)
           
 Sequence getDescendantAttributes(NodeTest test)
           
 Sequence getDescendants(boolean includeSelf, NodeTest test)
           
 Sequence getFollowingSiblings(NodeTest test)
           
 Sequence getParents(NodeTest test)
           
 Sequence getPrecedingSiblings(NodeTest test)
           
 Sequence getSelf(NodeTest test)
           
 
Methods inherited from class org.exist.xquery.value.ValueSequence
add, addAll, clear, clearContext, get, getCollectionIterator, getDocumentSet, getFollowing, getHashKey, getItemCount, getItemType, getPreceding, getState, hasChanged, hasOne, isCacheable, isEmpty, isInMemorySet, isOrdered, isPersistentSet, itemAt, iterate, nodeMoved, removeDuplicates, selectChildren, selectDescendants, setHolderVariable, setIsOrdered, size, sortInDocumentOrder, toMemNodeSet, toNodeSet, toString, unorderedIterator
 
Methods inherited from class org.exist.xquery.value.AbstractSequence
conversionPreference, convertTo, effectiveBooleanValue, getCardinality, getStringValue, hasMany, isCached, setIsCached, setSelfAsContext, toJavaObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.value.Sequence
conversionPreference, convertTo, effectiveBooleanValue, getCardinality, getStringValue, hasMany, isCached, setIsCached, setSelfAsContext, toJavaObject
 

Field Detail

EMPTY

public static final InMemoryNodeSet EMPTY
Constructor Detail

InMemoryNodeSet

public InMemoryNodeSet()

InMemoryNodeSet

public InMemoryNodeSet(int initialSize)

InMemoryNodeSet

public InMemoryNodeSet(Sequence otherSequence)
                throws XPathException
Throws:
XPathException
Method Detail

getAttributes

public Sequence getAttributes(NodeTest test)
                       throws XPathException
Specified by:
getAttributes in interface MemoryNodeSet
Overrides:
getAttributes in class ValueSequence
Throws:
XPathException

getDescendantAttributes

public Sequence getDescendantAttributes(NodeTest test)
                                 throws XPathException
Specified by:
getDescendantAttributes in interface MemoryNodeSet
Overrides:
getDescendantAttributes in class ValueSequence
Throws:
XPathException

getChildren

public Sequence getChildren(NodeTest test)
                     throws XPathException
Specified by:
getChildren in interface MemoryNodeSet
Overrides:
getChildren in class ValueSequence
Throws:
XPathException

getChildrenForParent

public Sequence getChildrenForParent(NodeImpl parent)
Specified by:
getChildrenForParent in interface MemoryNodeSet
Overrides:
getChildrenForParent in class ValueSequence

getDescendants

public Sequence getDescendants(boolean includeSelf,
                               NodeTest test)
                        throws XPathException
Specified by:
getDescendants in interface MemoryNodeSet
Overrides:
getDescendants in class ValueSequence
Throws:
XPathException

getAncestors

public Sequence getAncestors(boolean includeSelf,
                             NodeTest test)
                      throws XPathException
Specified by:
getAncestors in interface MemoryNodeSet
Overrides:
getAncestors in class ValueSequence
Throws:
XPathException

getParents

public Sequence getParents(NodeTest test)
                    throws XPathException
Specified by:
getParents in interface MemoryNodeSet
Overrides:
getParents in class ValueSequence
Throws:
XPathException

getSelf

public Sequence getSelf(NodeTest test)
                 throws XPathException
Specified by:
getSelf in interface MemoryNodeSet
Overrides:
getSelf in class ValueSequence
Throws:
XPathException

getPrecedingSiblings

public Sequence getPrecedingSiblings(NodeTest test)
                              throws XPathException
Specified by:
getPrecedingSiblings in interface MemoryNodeSet
Overrides:
getPrecedingSiblings in class ValueSequence
Throws:
XPathException

getFollowingSiblings

public Sequence getFollowingSiblings(NodeTest test)
                              throws XPathException
Specified by:
getFollowingSiblings in interface MemoryNodeSet
Overrides:
getFollowingSiblings in class ValueSequence
Throws:
XPathException


Copyright (C) Wolfgang Meier. All rights reserved.