org.exist.storage.lock
Class LockedDocumentMap

java.lang.Object
  extended by org.exist.util.hashtable.AbstractHashtable
      extended by org.exist.util.hashtable.Int2ObjectHashMap
          extended by org.exist.storage.lock.LockedDocumentMap

public class LockedDocumentMap
extends Int2ObjectHashMap

This map is used by the XQuery engine to track how many read locks were acquired for a document during query execution.


Constructor Summary
LockedDocumentMap()
           
 
Method Summary
 void add(DocumentImpl doc)
           
 DocumentSet getDocsByCollection(Collection collection, boolean includeSubColls, DocumentSet targetSet)
           
 DocumentSet toDocumentSet()
           
 void unlock()
           
 LockedDocumentMap unlockSome(DocumentSet keep)
           
 
Methods inherited from class org.exist.util.hashtable.Int2ObjectHashMap
clear, containsKey, get, iterator, put, remove, valueIterator
 
Methods inherited from class org.exist.util.hashtable.AbstractHashtable
getMaxRehash, isPrime, nextPrime, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockedDocumentMap

public LockedDocumentMap()
Method Detail

add

public void add(DocumentImpl doc)

toDocumentSet

public DocumentSet toDocumentSet()

getDocsByCollection

public DocumentSet getDocsByCollection(Collection collection,
                                       boolean includeSubColls,
                                       DocumentSet targetSet)

unlock

public void unlock()

unlockSome

public LockedDocumentMap unlockSome(DocumentSet keep)


Copyright (C) Wolfgang Meier. All rights reserved.