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 Value put(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOExceptionpublic Value addFirst(Transaction tx, Key key, Value value) throws java.io.IOException
java.io.IOExceptionpublic void storeUpdate(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic 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.IOExceptionpublic java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic void clear(Transaction tx) throws java.io.IOException
java.io.IOExceptionpublic boolean contains(Transaction tx, Key key)
public long getPageId()
public long getNext()
public void setNext(long next)
public boolean isHead()
public boolean isTail()
public int size(Transaction tx)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.