Package uk.ac.starlink.table
Interface ValueStore
-
- All Known Implementing Classes:
ArrayPrimitiveStore
public interface ValueStoreInterface for storing a vector of values. Depending on implementation, these values may be objects or primitives.- Since:
- 2 Nov 2005
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidget(long index, java.lang.Object array, int ioff, int count)Retrieves a vector of values from this object.longgetLength()Returns the length of the vector.java.lang.Class<?>getType()Returns the class of value which this object can store.voidput(long index, java.lang.Object array, int ioff, int count)Stores a vector of values in this object.
-
-
-
Method Detail
-
getType
java.lang.Class<?> getType()
Returns the class of value which this object can store.- Returns:
- primitive class
-
getLength
long getLength()
Returns the length of the vector.- Returns:
- vector length
-
put
void put(long index, java.lang.Object array, int ioff, int count)Stores a vector of values in this object.arraymust be an array of values matchinggetType. Elementioffofarrayis stored at indexindex, elemntioff+1atindex+1, etc.- Parameters:
index- starting offset to write toarray- array of values to storeioff- offset into array from which the first value is takencount- number of values to transfer
-
get
void get(long index, java.lang.Object array, int ioff, int count)Retrieves a vector of values from this object.arraymust be an array of type matchinggetType. Every element ofarraywill be filled with values; the first retrieved from offsetindex, the second fromindex+1, etc.- Parameters:
index- starting offsetarray- array to accept dataioff- offset into array to which the first value is copiedcount- number of values to transfer
-
-