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() |
Map.Entry<Key,Value> |
getFirst(Transaction tx) |
Map.Entry<Key,Value> |
getLast(Transaction tx) |
long |
getNext() |
Page<ListNode<Key,Value>> |
getPage() |
long |
getPageId() |
boolean |
isEmpty(Transaction tx) |
boolean |
isHead() |
boolean |
isTail() |
Iterator<Map.Entry<Key,Value>> |
iterator(Transaction tx) |
Iterator<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) |
String |
toString() |
public ListNode()
public Value put(Transaction tx, Key key, Value value) throws IOException
IOException
public Value addFirst(Transaction tx, Key key, Value value) throws IOException
IOException
public void storeUpdate(Transaction tx) throws IOException
IOException
public Value get(Transaction tx, Key key)
public boolean isEmpty(Transaction tx)
public Map.Entry<Key,Value> getFirst(Transaction tx)
public Map.Entry<Key,Value> getLast(Transaction tx)
public Iterator<Map.Entry<Key,Value>> iterator(Transaction tx, long pos) throws IOException
IOException
public Iterator<Map.Entry<Key,Value>> iterator(Transaction tx) throws IOException
IOException
public void clear(Transaction tx) throws IOException
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)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.