org.apache.activemq.store.kahadb.plist
Class PList
java.lang.Object
org.apache.kahadb.index.ListIndex<java.lang.String,Location>
org.apache.activemq.store.kahadb.plist.PList
- All Implemented Interfaces:
- Index<java.lang.String,Location>
public class PList
- extends ListIndex<java.lang.String,Location>
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 |
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.