org.exist.dom
Class DocumentSet

java.lang.Object
  extended byit.unimi.dsi.fastutil.Int2ObjectAbstractMap
      extended byit.unimi.dsi.fastutil.Int2ObjectOpenHashMap
          extended byorg.exist.dom.DocumentSet
All Implemented Interfaces:
java.lang.Cloneable, it.unimi.dsi.fastutil.Hash, it.unimi.dsi.fastutil.Int2ObjectMap, java.util.Map, org.w3c.dom.NodeList, java.io.Serializable

public class DocumentSet
extends it.unimi.dsi.fastutil.Int2ObjectOpenHashMap
implements org.w3c.dom.NodeList

Manages a set of documents. This class implements the NodeList interface for a collection of documents. It also contains methods to retrieve the collections these documents belong to.

Author:
wolf
See Also:
Serialized Form

Field Summary
 
Fields inherited from class it.unimi.dsi.fastutil.Int2ObjectOpenHashMap
count, entries, f, free, key, keys, maxFill, p, serialVersionUID, state, value, values
 
Fields inherited from interface it.unimi.dsi.fastutil.Hash
DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED
 
Constructor Summary
DocumentSet()
           
 
Method Summary
 void add(DocumentImpl doc)
           
 void add(org.w3c.dom.Node node)
           
 void addAll(java.util.Collection docs)
          Fast method to add a bunch of documents from a Java collection.
 void addAll(org.w3c.dom.NodeList other)
           
 void addCollection(Collection collection)
           
 boolean contains(DocumentSet other)
           
 boolean contains(int id)
           
 boolean equals(java.lang.Object other)
           
 int getCollectionCount()
           
 java.util.Iterator getCollectionIterator()
           
 DocumentImpl getDoc(int docId)
           
 int getLength()
           
 int getMaxDocId()
           
 int getMinDocId()
           
 java.lang.String[] getNames()
           
 boolean hasAllDocuments()
           
 DocumentSet intersection(DocumentSet other)
           
 org.w3c.dom.Node item(int pos)
           
 java.util.Iterator iterator()
           
 void setAllDocuments(boolean all)
           
 DocumentSet union(DocumentSet other)
           
 
Methods inherited from class it.unimi.dsi.fastutil.Int2ObjectOpenHashMap
clear, clone, containsKey, containsValue, entrySet, get, get, hashCode, isEmpty, keySet, put, put, rehash, remove, remove, size, trim, trim, values
 
Methods inherited from class it.unimi.dsi.fastutil.Int2ObjectAbstractMap
containsKey, defaultReturnValue, defaultReturnValue, getDefRetValue, putAll, setDefRetValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.Int2ObjectMap
defaultReturnValue, defaultReturnValue, getDefRetValue, setDefRetValue
 
Methods inherited from interface java.util.Map
containsKey, putAll
 

Constructor Detail

DocumentSet

public DocumentSet()
Method Detail

setAllDocuments

public void setAllDocuments(boolean all)

hasAllDocuments

public boolean hasAllDocuments()

add

public void add(DocumentImpl doc)

add

public void add(org.w3c.dom.Node node)

addAll

public void addAll(org.w3c.dom.NodeList other)

addAll

public void addAll(java.util.Collection docs)
Fast method to add a bunch of documents from a Java collection. The method assumes that no duplicate entries are in the input collection.

Parameters:
docs -

addCollection

public void addCollection(Collection collection)

iterator

public java.util.Iterator iterator()

getCollectionIterator

public java.util.Iterator getCollectionIterator()

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.NodeList

getCollectionCount

public int getCollectionCount()

item

public org.w3c.dom.Node item(int pos)
Specified by:
item in interface org.w3c.dom.NodeList

getDoc

public DocumentImpl getDoc(int docId)

getNames

public java.lang.String[] getNames()

intersection

public DocumentSet intersection(DocumentSet other)

union

public DocumentSet union(DocumentSet other)

contains

public boolean contains(DocumentSet other)

contains

public boolean contains(int id)

getMinDocId

public int getMinDocId()

getMaxDocId

public int getMaxDocId()

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.util.Map


Copyright (C) Wolfgang Meier. All rights reserved.