Class ListNode<Key,Value>
java.lang.Object
org.apache.activemq.store.kahadb.disk.index.ListNode<Key,Value>
The ListNode class represents a node in the List object graph. It is stored
in one overflowing Page of a PageFile.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe Marshaller is used to store and load the data in the ListNode into a Page. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFirst(Transaction tx, Key key, Value value) voidclear(Transaction tx) booleancontains(Transaction tx, Key key) get(Transaction tx, Key key) getFirst(Transaction tx) getLast(Transaction tx) longgetNext()getPage()longbooleanisEmpty(Transaction tx) booleanisHead()booleanisTail()iterator(Transaction tx) iterator(Transaction tx, long pos) put(Transaction tx, Key key, Value value) voidsetContainingList(ListIndex<Key, Value> list) voidsetNext(long next) voidintsize(Transaction tx) voidtoString()
-
Constructor Details
-
ListNode
public ListNode()
-
-
Method Details
-
put
- Throws:
IOException
-
addFirst
- Throws:
IOException
-
storeUpdate
- Throws:
IOException
-
get
-
isEmpty
-
getFirst
-
getLast
-
iterator
- Throws:
IOException
-
iterator
- Throws:
IOException
-
clear
- Throws:
IOException
-
contains
-
getPageId
public long getPageId() -
getPage
-
setPage
-
getNext
public long getNext() -
setNext
public void setNext(long next) -
setContainingList
-
getContainingList
-
isHead
public boolean isHead() -
isTail
public boolean isTail() -
size
-
toString
-