public final class ListNode<Key,Value> extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ListNode.NodeMarshaller<Key,Value>
The Marshaller is used to store and load the data in the ListNode into a Page.
|
Constructor and Description |
---|
ListNode() |
Modifier and Type | Method and Description |
---|---|
Value |
addFirst(Transaction tx,
Key key,
Value value) |
void |
clear(Transaction tx) |
boolean |
contains(Transaction tx,
Key key) |
Value |
get(Transaction tx,
Key key) |
ListIndex<Key,Value> |
getContainingList() |
java.util.Map.Entry<Key,Value> |
getFirst(Transaction tx) |
java.util.Map.Entry<Key,Value> |
getLast(Transaction tx) |
long |
getNext() |
Page<ListNode<Key,Value>> |
getPage() |
long |
getPageId() |
boolean |
isEmpty(Transaction tx) |
boolean |
isHead() |
boolean |
isTail() |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator(Transaction tx) |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator(Transaction tx,
long pos) |
Value |
put(Transaction tx,
Key key,
Value value) |
void |
setContainingList(ListIndex<Key,Value> list) |
void |
setNext(long next) |
void |
setPage(Page<ListNode<Key,Value>> page) |
int |
size(Transaction tx) |
void |
storeUpdate(Transaction tx) |
java.lang.String |
toString() |
public ListNode()
public Value put(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOException
public Value addFirst(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOException
public void storeUpdate(Transaction tx) throws java.io.IOException
java.io.IOException
public Value get(Transaction tx, Key key)
public boolean isEmpty(Transaction tx)
public java.util.Map.Entry<Key,Value> getFirst(Transaction tx)
public java.util.Map.Entry<Key,Value> getLast(Transaction tx)
public java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx, long pos) throws java.io.IOException
java.io.IOException
public java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException
java.io.IOException
public void clear(Transaction tx) throws java.io.IOException
java.io.IOException
public boolean contains(Transaction tx, Key key)
public long getPageId()
public long getNext()
public void setNext(long next)
public void setContainingList(ListIndex<Key,Value> list)
public ListIndex<Key,Value> getContainingList()
public boolean isHead()
public boolean isTail()
public int size(Transaction tx)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2017. All Rights Reserved.