public final class RecordBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CheckBuffer |
| Constructor and Description |
|---|
RecordBuffer(ByteBuffer bb,
RecordFactory recFactory,
int num) |
RecordBuffer(RecordFactory recFactory,
int maxRec) |
| Modifier and Type | Method and Description |
|---|---|
<X> X |
_access(int idx,
byte[] key,
RecordMapper<X> mapper) |
Record |
_get(int idx) |
<X> X |
access(int idx,
byte[] key,
RecordMapper<X> mapper) |
void |
add(int idx,
Record record) |
void |
add(Record record) |
void |
clear()
Does not reset the size
|
void |
clear(int idx)
Does not reset the size
|
void |
clear(int idx,
int len)
Does not reset the size
|
void |
copy(int srcIdx,
org.apache.jena.dboe.base.buffer.BufferBase dst,
int dstIdx,
int len) |
void |
copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst) |
void |
decSize() |
void |
decSize(int n) |
RecordBuffer |
duplicate()
A duplicate which does not share anything with the original - for testing
|
int |
find(Record k) |
int |
find(Record rec,
int fromIndex,
int toIndex)
Search for key in range fromIndex (inclusive) to toIndex (exclusive)
|
Record |
findGet(Record k) |
Record |
get(int idx) |
Record |
getHigh() |
Record |
getLow() |
int |
getSize() |
void |
incSize() |
void |
incSize(int n) |
boolean |
isClear(int idx)
Is the record at idx set clear or not?
This is done without regard to buffer size.
|
boolean |
isEmpty() |
boolean |
isFull() |
Iterator<Record> |
iterator() |
Iterator<Record> |
iterator(Record min,
Record max)
Iterator over a range from min (inclusive) to max(exclusive)
|
<X> Iterator<X> |
iterator(Record min,
Record max,
RecordMapper<X> mapper) |
int |
maxSize() |
void |
remove(int idx) |
boolean |
removeByKey(Record k)
return true is removed anything
|
void |
removeTop()
Remove top element
|
void |
set(int idx,
Record record) |
void |
setSize(int n) |
void |
shiftDown(int idx) |
void |
shiftDownN(int idx,
int num) |
void |
shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
Move the element from the low end of other to the high end of this
|
void |
shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
Move the element from the high end of this to the low end of other
|
void |
shiftUp(int idx) |
void |
shiftUpN(int idx,
int num) |
int |
size() |
int |
slotLen() |
String |
toString() |
public static final boolean CheckBuffer
public RecordBuffer(RecordFactory recFactory, int maxRec)
public RecordBuffer(ByteBuffer bb, RecordFactory recFactory, int num)
public <X> X access(int idx,
byte[] key,
RecordMapper<X> mapper)
public Record get(int idx)
public Record getLow()
public Record getHigh()
public void add(Record record)
public void add(int idx,
Record record)
public void set(int idx,
Record record)
public <X> X _access(int idx,
byte[] key,
RecordMapper<X> mapper)
public Record _get(int idx)
public int find(Record k)
public Iterator<Record> iterator(Record min, Record max)
public <X> Iterator<X> iterator(Record min, Record max, RecordMapper<X> mapper)
public boolean removeByKey(Record k)
public int find(Record rec, int fromIndex, int toIndex)
public RecordBuffer duplicate()
public final void copy(int srcIdx,
org.apache.jena.dboe.base.buffer.BufferBase dst,
int dstIdx,
int len)
public final void copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst)
public final void removeTop()
public final void remove(int idx)
public final void clear(int idx,
int len)
public final void clear()
public final void clear(int idx)
public final boolean isClear(int idx)
public final boolean isFull()
public final boolean isEmpty()
public final void incSize()
public final void incSize(int n)
public final void decSize()
public final void decSize(int n)
public final int slotLen()
public final int getSize()
public final void setSize(int n)
public final int size()
public final int maxSize()
public final void shiftUp(int idx)
public final void shiftUpN(int idx,
int num)
public final void shiftDown(int idx)
public final void shiftDownN(int idx,
int num)
public void shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
public void shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
Licensed under the Apache License, Version 2.0