java.lang.Object
org.apache.jena.tdb1.base.buffer.RecordBuffer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecordBuffer(ByteBuffer bb, RecordFactory recFactory, int num) RecordBuffer(RecordFactory recFactory, int maxRec) -
Method Summary
Modifier and TypeMethodDescription_get(int idx) voidvoidfinal voidclear()Does not reset the sizefinal voidclear(int idx) Does not reset the sizefinal voidclear(int idx, int len) Does not reset the sizefinal voidcopy(int srcIdx, org.apache.jena.tdb1.base.buffer.BufferBase dst, int dstIdx, int len) final voidcopyToTop(org.apache.jena.tdb1.base.buffer.BufferBase dst) final voiddecSize()final voiddecSize(int n) A duplicate which does not share anything with the original - for testingintintSearch for key in range fromIndex (inclusive) to toIndex (exclusive)get(int idx) getHigh()getLow()final intgetSize()final voidincSize()final voidincSize(int n) final booleanisClear(int idx) Is the record at idx set clear or not? This is done without regard to buffer size.final booleanisEmpty()final booleanisFull()iterator()Iterator over a range from min (inclusive) to max(exclusive)final intmaxSize()final voidremove(int idx) booleanreturn true is removed anythingfinal voidRemove top elementvoidfinal voidsetSize(int n) final voidshiftDown(int idx) final voidshiftDownN(int idx, int num) voidshiftLeft(org.apache.jena.tdb1.base.buffer.BufferBase other) Move the element from the low end of other to the high end of thisvoidshiftRight(org.apache.jena.tdb1.base.buffer.BufferBase other) Move the element from the high end of this to the low end of otherfinal voidshiftUp(int idx) final voidshiftUpN(int idx, int num) final intsize()final intslotLen()toString()
-
Field Details
-
CheckBuffer
public static boolean CheckBuffer
-
-
Constructor Details
-
RecordBuffer
-
RecordBuffer
-
-
Method Details
-
get
-
getLow
-
getHigh
-
add
-
add
-
set
-
_get
-
find
-
iterator
-
iterator
Iterator over a range from min (inclusive) to max(exclusive) -
findGet
-
removeByKey
return true is removed anything -
find
Search for key in range fromIndex (inclusive) to toIndex (exclusive) -
toString
-
duplicate
A duplicate which does not share anything with the original - for testing -
copy
public final void copy(int srcIdx, org.apache.jena.tdb1.base.buffer.BufferBase dst, int dstIdx, int len) -
copyToTop
public final void copyToTop(org.apache.jena.tdb1.base.buffer.BufferBase dst) -
removeTop
public final void removeTop()Remove top element -
remove
public final void remove(int idx) -
clear
public final void clear(int idx, int len) Does not reset the size -
clear
public final void clear()Does not reset the size -
clear
public final void clear(int idx) Does not reset the size -
isClear
public final boolean isClear(int idx) Is the record at idx set clear or not? This is done without regard to buffer size. Requires NullOut to be accurate. Testing. -
isFull
public final boolean isFull() -
isEmpty
public final boolean isEmpty() -
incSize
public final void incSize() -
incSize
public final void incSize(int n) -
decSize
public final void decSize() -
decSize
public final void decSize(int n) -
slotLen
public final int slotLen() -
getSize
public final int getSize() -
setSize
public final void setSize(int n) -
size
public final int size() -
maxSize
public final int maxSize() -
shiftUp
public final void shiftUp(int idx) -
shiftUpN
public final void shiftUpN(int idx, int num) -
shiftDown
public final void shiftDown(int idx) -
shiftDownN
public final void shiftDownN(int idx, int num) -
shiftRight
public void shiftRight(org.apache.jena.tdb1.base.buffer.BufferBase other) Move the element from the high end of this to the low end of other -
shiftLeft
public void shiftLeft(org.apache.jena.tdb1.base.buffer.BufferBase other) Move the element from the low end of other to the high end of this
-