|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IValueArray
This interface is used to provide methods for storing (an array of) values.
Method Summary | |
---|---|
IValueArray |
clone(boolean deepClone,
Map<Object,Object> cloneMap)
Clone this value array. |
IValue |
getElementValue(int elementIndex)
Gets a value array element's value. |
int |
getLength()
Gets the length of this value array. |
void |
linearize(boolean isMapDefaultValues,
int bitsPerNonPrimitiveValue,
ObjectIntTable<INonPrimitiveValue> nonPrimitiveValueIdMap,
int bitsPerThreadId,
IntIntTable threadOrderMap,
BitSet elidedPositions,
BitBuffer bb)
Linearizes the contained values. |
void |
linearize(boolean isMapDefaultValues,
int bitsPerNonPrimitiveValue,
ObjectIntTable<INonPrimitiveValue> nonPrimitiveValueIdMap,
int bitsPerThreadId,
IntIntTable threadOrderMap,
BitSet elidedPositions,
BitBuffer bb,
int fromIndex,
int toIndex)
Linearizes the contained values. |
void |
setElementValue(int elementIndex,
IValue elementValue)
Sets a value array element's value. |
IValue[] |
toArray()
Returns the contained values as an array. |
void |
validate(IBogorConfiguration bc)
Validates this value array wrt. |
Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable |
---|
dispose |
Method Detail |
---|
void setElementValue(int elementIndex, IValue elementValue)
elementIndex
- The index of the element in this value array. Must be greater
than zero and less than the length of this value array.elementValue
- The new value of the element. Must be non-null.IValue getElementValue(int elementIndex)
elementIndex
- The index of the element in this value array. Must be greater
than zero and less than the length of this value array.
int getLength()
IValueArray clone(boolean deepClone, Map<Object,Object> cloneMap)
deepClone
- Indicates whether deep cloning.cloneMap
- Original values (IValue
) to their clones (
IValue
) mapping. The clone map to solve
circular references in values. If this value is a key in the
map, then this method returns the value of the key in the map.
Must be non-null if deep cloning.
void linearize(boolean isMapDefaultValues, int bitsPerNonPrimitiveValue, ObjectIntTable<INonPrimitiveValue> nonPrimitiveValueIdMap, int bitsPerThreadId, IntIntTable threadOrderMap, BitSet elidedPositions, BitBuffer bb)
isMapDefaultValues
- Indicates whether to bitmap default values.bitsPerNonPrimitiveValue
- The number of bits used to encode a non-primitive value.nonPrimitiveValueIdMap
- A mapping of non-primitive values to their unique id. Must be
non-null.bitsPerThreadId
- The number of bits used to encode a thread descriptor.threadOrderMap
- A mapping of thread descriptors to their order number. Must be
non-null.elidedPositions
- A bitset indicating which elements of the array should be
omitted from the bit-vector. A null reference here indicates
that all elements should be linearized.bb
- The bit-buffer for linearizing the values. Must be non-null.void linearize(boolean isMapDefaultValues, int bitsPerNonPrimitiveValue, ObjectIntTable<INonPrimitiveValue> nonPrimitiveValueIdMap, int bitsPerThreadId, IntIntTable threadOrderMap, BitSet elidedPositions, BitBuffer bb, int fromIndex, int toIndex)
isMapDefaultValues
- Indicates whether to bitmap default values.bitsPerNonPrimitiveValue
- The number of bits used to encode a non-primitive value.nonPrimitiveValueIdMap
- A mapping of non-primitive values to their unique id. Must be
non-null.bitsPerThreadId
- The number of bits used to encode a thread descriptor.threadOrderMap
- A mapping of thread descriptors to their order number. Must be
non-null.elidedPositions
- A bitset indicating which elements of the array should be
omitted from the bit-vector. A null reference here indicates
that all elements should be linearized.bb
- The bit-buffer for linearizing the values. Must be non-null.fromIndex
- The index of the first element to be linearized.toIndex
- The index after the last element to be linearized.IValue[] toArray()
void validate(IBogorConfiguration bc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |