Package com.semedy.reasoner.api.edb
Interface TupleBuffer
- All Known Implementing Classes:
TupleBufferGrounds
,TupleBufferLong
,TupleBufferLongFilter
,TupleBufferLongIndexed
,TupleBufferLongMappedGrounds
,TupleBufferLongMappedGrounds
,TupleBufferLongMappedWithGrounds
,TupleBufferLongMappedWithGrounds
public interface TupleBuffer
a buffer for tuples
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionlong[]
array()
returns the array of values (no copy)void
copyTo
(long[] target, int atIndex, int length) copy buffer to target array at indexlong
get
(int index) get the value at the indexint
length()
get the length of the tuplevoid
length
(int len) set the length of the tupleint
limit()
the right borderint
position()
´the current position of the tuple in the array of valuesvoid
position
(int pos) set the position inside the array of valuesvoid
put
(int index, long v) set a value at a certain indexvoid
put
(long[] v) set a new array of values
-
Method Details
-
limit
int limit()the right border- Returns:
-
array
long[] array()returns the array of values (no copy)- Returns:
-
position
int position()´the current position of the tuple in the array of values- Returns:
-
put
void put(int index, long v) set a value at a certain index- Parameters:
index
-v
-
-
get
long get(int index) get the value at the index- Parameters:
index
-- Returns:
-
put
void put(long[] v) set a new array of values- Parameters:
v
-
-
position
void position(int pos) set the position inside the array of values- Parameters:
pos
-
-
length
int length()get the length of the tuple- Returns:
-
length
void length(int len) set the length of the tuple -
copyTo
void copyTo(long[] target, int atIndex, int length) copy buffer to target array at index- Parameters:
target
-atIndex
-
-