PList.PListIteratorheadPageId, 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, unloadpublic void write(DataOutput out) throws IOException
IOExceptionpublic void destroy() throws IOException
destroy in interface PListIOExceptionpublic Object addLast(String id, ByteSequence bs) throws IOException
addLast in interface PListIOExceptionpublic Object addFirst(String id, ByteSequence bs) throws IOException
addFirst in interface PListIOExceptionpublic boolean remove(Object l) throws IOException
remove in interface PListIOExceptionpublic boolean remove(String id) throws IOException
IOExceptionpublic boolean remove(long position) throws IOException
IOExceptionpublic PListEntry get(long position) throws IOException
IOExceptionpublic PListEntry getFirst() throws IOException
IOExceptionpublic PListEntry getLast() throws IOException
IOExceptionpublic PList.PListIterator iterator() throws IOException
iterator in interface PListIOExceptionpublic void claimFileLocations(Set<Integer> candidates) throws IOException
IOExceptionpublic long messageSize()
messageSize in interface PListpublic Location add(Transaction tx, String key, Location value) throws IOException
add in class ListIndex<String,Location>IOExceptionpublic Location addFirst(Transaction tx, String key, Location value) throws IOException
addFirst in class ListIndex<String,Location>IOExceptionpublic void clear(Transaction tx) throws IOException
Indexprotected void onLoad(ListNode<String,Location> node, Transaction tx)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.