Class TupleBufferLongMappedWithGrounds
java.lang.Object
com.semedy.reasoner.edb.persistentstore.TupleBufferLongMappedWithGrounds
- All Implemented Interfaces:
TupleBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal long[]array()returns the array of values (no copy)final Objectclone()voidcopyTo(long[] target, int atIndex, int length) copy buffer to target array at indexfinal longget(int index) get the value at the indexintlength()get the length of the tuplevoidlength(int len) set the length of the tuplefinal intlimit()the right borderfinal intposition()´the current position of the tuple in the array of valuesfinal voidposition(int pos) set the position inside the array of valuesfinal voidput(int index, long v) set a value at a certain indexfinal voidput(long[] v) set a new array of valuestoString()
-
Constructor Details
-
TupleBufferLongMappedWithGrounds
public TupleBufferLongMappedWithGrounds(int[] map, long[] grounds, int arity)
-
-
Method Details
-
limit
public final int limit()Description copied from interface:TupleBufferthe right border- Specified by:
limitin interfaceTupleBuffer- Returns:
-
length
public void length(int len) Description copied from interface:TupleBufferset the length of the tuple- Specified by:
lengthin interfaceTupleBuffer
-
length
public int length()Description copied from interface:TupleBufferget the length of the tuple- Specified by:
lengthin interfaceTupleBuffer- Returns:
-
array
public final long[] array()Description copied from interface:TupleBufferreturns the array of values (no copy)- Specified by:
arrayin interfaceTupleBuffer- Returns:
-
position
public final int position()Description copied from interface:TupleBuffer´the current position of the tuple in the array of values- Specified by:
positionin interfaceTupleBuffer- Returns:
-
put
public final void put(int index, long v) Description copied from interface:TupleBufferset a value at a certain index- Specified by:
putin interfaceTupleBuffer
-
get
public final long get(int index) Description copied from interface:TupleBufferget the value at the index- Specified by:
getin interfaceTupleBuffer- Returns:
-
put
public final void put(long[] v) Description copied from interface:TupleBufferset a new array of values- Specified by:
putin interfaceTupleBuffer
-
position
public final void position(int pos) Description copied from interface:TupleBufferset the position inside the array of values- Specified by:
positionin interfaceTupleBuffer
-
clone
-
toString
-
copyTo
public void copyTo(long[] target, int atIndex, int length) Description copied from interface:TupleBuffercopy buffer to target array at index- Specified by:
copyToin interfaceTupleBuffer
-