org.exist.dom
Class DocumentSet
java.lang.Object
it.unimi.dsi.fastutil.Int2ObjectAbstractMap
it.unimi.dsi.fastutil.Int2ObjectOpenHashMap
org.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
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 |
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 |
DocumentSet
public DocumentSet()
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.