Class PListImpl
java.lang.Object
org.apache.activemq.store.kahadb.disk.index.ListIndex<String,Location>
org.apache.activemq.store.kahadb.plist.PListImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.store.PList
PList.PListIterator -
Field Summary
Fields inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
headPageId, loaded, NOT_SET, pageFile, tailPageId -
Method Summary
Modifier and TypeMethodDescriptionadd(Transaction tx, String key, Location value) addFirst(String id, ByteSequence bs) addFirst(Transaction tx, String key, Location value) addLast(String id, ByteSequence bs) voidclaimFileLocations(Set<Integer> candidates) voidclear(Transaction tx) clear the indexvoiddestroy()get(long position) getFirst()getLast()getName()booleanisEmpty()iterator()longprotected voidonLoad(ListNode<String, Location> node, Transaction tx) voidbooleanremove(long position) booleanbooleanvoidtoString()voidwrite(DataOutput out) Methods inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
containsKey, createNode, get, getFirst, getHead, getHeadPageId, getKeyMarshaller, getLast, getPageFile, getTail, getTailPageId, getValueMarshaller, isEmpty, isTransient, iterator, iterator, listNodeIterator, load, put, remove, setHeadPageId, setKeyMarshaller, setPageFile, setTailPageId, setValueMarshaller, size, storeNode, unload
-
Method Details
-
setName
-
getName
-
write
- Throws:
IOException
-
destroy
- Specified by:
destroyin interfacePList- Throws:
IOException
-
addLast
- Specified by:
addLastin interfacePList- Throws:
IOException
-
addFirst
- Specified by:
addFirstin interfacePList- Throws:
IOException
-
remove
- Specified by:
removein interfacePList- Throws:
IOException
-
remove
- Throws:
IOException
-
remove
- Throws:
IOException
-
get
- Throws:
IOException
-
getFirst
- Throws:
IOException
-
getLast
- Throws:
IOException
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfacePList- Throws:
IOException
-
claimFileLocations
- Throws:
IOException
-
messageSize
public long messageSize()- Specified by:
messageSizein interfacePList
-
add
- Overrides:
addin classListIndex<String,Location> - Throws:
IOException
-
addFirst
- Overrides:
addFirstin classListIndex<String,Location> - Throws:
IOException
-
clear
Description copied from interface:Indexclear the index -
onLoad
-
onRemove
-
toString
-