PList.PListIterator
headPageId, loaded, NOT_SET, pageFile, tailPageId
Modifier and Type | Method and Description |
---|---|
Location |
add(Transaction tx,
String key,
Location value) |
Object |
addFirst(String id,
ByteSequence bs) |
Location |
addFirst(Transaction tx,
String key,
Location value) |
Object |
addLast(String id,
ByteSequence bs) |
void |
claimFileLocations(Set<Integer> candidates) |
void |
clear(Transaction tx)
clear the index
|
void |
destroy() |
PListEntry |
get(long position) |
PListEntry |
getFirst() |
PListEntry |
getLast() |
String |
getName() |
boolean |
isEmpty() |
PList.PListIterator |
iterator() |
long |
messageSize() |
protected void |
onLoad(ListNode<String,Location> node,
Transaction tx) |
void |
onRemove(Map.Entry<String,Location> removed) |
boolean |
remove(long position) |
boolean |
remove(Object l) |
boolean |
remove(String id) |
void |
setName(String name) |
String |
toString() |
void |
write(DataOutput out) |
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
public void write(DataOutput out) throws IOException
IOException
public void destroy() throws IOException
destroy
in interface PList
IOException
public Object addLast(String id, ByteSequence bs) throws IOException
addLast
in interface PList
IOException
public Object addFirst(String id, ByteSequence bs) throws IOException
addFirst
in interface PList
IOException
public boolean remove(Object l) throws IOException
remove
in interface PList
IOException
public boolean remove(String id) throws IOException
IOException
public boolean remove(long position) throws IOException
IOException
public PListEntry get(long position) throws IOException
IOException
public PListEntry getFirst() throws IOException
IOException
public PListEntry getLast() throws IOException
IOException
public PList.PListIterator iterator() throws IOException
iterator
in interface PList
IOException
public void claimFileLocations(Set<Integer> candidates) throws IOException
IOException
public long messageSize()
messageSize
in interface PList
public Location add(Transaction tx, String key, Location value) throws IOException
add
in class ListIndex<String,Location>
IOException
public Location addFirst(Transaction tx, String key, Location value) throws IOException
addFirst
in class ListIndex<String,Location>
IOException
public void clear(Transaction tx) throws IOException
Index
protected void onLoad(ListNode<String,Location> node, Transaction tx)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.