Class IntArrayList
java.lang.Object
org.apache.sysds.runtime.compress.utils.IntArrayList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendValue(int value) voidappendValue(IntArrayList value) int[]Returns the underlying array of offsets.int[]extractValues(boolean trim) intget(int index) voidreset()intsize()toString()
-
Constructor Details
-
IntArrayList
public IntArrayList() -
IntArrayList
public IntArrayList(int initialSize) -
IntArrayList
public IntArrayList(int[] values)
-
-
Method Details
-
size
public int size() -
appendValue
public void appendValue(int value) -
appendValue
-
extractValues
public int[] extractValues()Returns the underlying array of offsets. Note that this array might be physically larger than the actual length of the offset lists. Use size() to obtain the actual length.- Returns:
- integer array of offsets, the physical array length may be larger than the length of the offset list
-
get
public int get(int index) -
extractValues
public int[] extractValues(boolean trim) -
reset
public void reset() -
toString
-