org.apache.activemq.store.kahadb.plist
Class PList

java.lang.Object
  extended by org.apache.kahadb.index.ListIndex<java.lang.String,Location>
      extended by org.apache.activemq.store.kahadb.plist.PList
All Implemented Interfaces:
Index<java.lang.String,Location>

public class PList
extends ListIndex<java.lang.String,Location>


Nested Class Summary
 class PList.PListIterator
           
 
Field Summary
 
Fields inherited from class org.apache.kahadb.index.ListIndex
headPageId, loaded, NOT_SET, pageFile, tailPageId
 
Method Summary
 void addFirst(java.lang.String id, ByteSequence bs)
           
 void addLast(java.lang.String id, ByteSequence bs)
           
 void claimFileLocations(java.util.Set<java.lang.Integer> candidates)
           
 void destroy()
           
 PListEntry get(long position)
           
 PListEntry getFirst()
           
 PListEntry getLast()
           
 java.lang.String getName()
           
 boolean isEmpty()
           
 PList.PListIterator iterator()
           
 boolean remove(long position)
           
 boolean remove(java.lang.String id)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class org.apache.kahadb.index.ListIndex
add, addFirst, clear, containsKey, createNode, get, getFirst, getHead, getHeadPageId, getKeyMarshaller, getLast, getPageFile, getTail, getTailPageId, getValueMarshaller, isEmpty, isTransient, iterator, iterator, listNodeIterator, load, onRemove, put, remove, setHeadPageId, setKeyMarshaller, setPageFile, setTailPageId, setValueMarshaller, size, storeNode, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

destroy

public void destroy()
             throws java.io.IOException
Throws:
java.io.IOException

addLast

public void addLast(java.lang.String id,
                    ByteSequence bs)
             throws java.io.IOException
Throws:
java.io.IOException

addFirst

public void addFirst(java.lang.String id,
                     ByteSequence bs)
              throws java.io.IOException
Throws:
java.io.IOException

remove

public boolean remove(java.lang.String id)
               throws java.io.IOException
Throws:
java.io.IOException

remove

public boolean remove(long position)
               throws java.io.IOException
Throws:
java.io.IOException

get

public PListEntry get(long position)
               throws java.io.IOException
Throws:
java.io.IOException

getFirst

public PListEntry getFirst()
                    throws java.io.IOException
Throws:
java.io.IOException

getLast

public PListEntry getLast()
                   throws java.io.IOException
Throws:
java.io.IOException

isEmpty

public boolean isEmpty()

iterator

public PList.PListIterator iterator()
                             throws java.io.IOException
Throws:
java.io.IOException

claimFileLocations

public void claimFileLocations(java.util.Set<java.lang.Integer> candidates)
                        throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2012. All Rights Reserved.