Class ACompressedArray<T>
- java.lang.Object
-
- org.apache.sysds.runtime.frame.data.columns.Array<T>
-
- org.apache.sysds.runtime.frame.data.columns.ACompressedArray<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.frame.data.columns.Array
Array.ArrayIterator
-
-
Constructor Summary
Constructors Constructor Description ACompressedArray(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(String value)Append a string value to the current Array, this should in general be avoided, and appending larger blocks at a time should be preferred.voidappend(T value)Append a value of the same type of the Array.voidfill(String val)fill the entire array with specific value.voidfill(T val)fill the entire array with specific value.Objectget()Get the underlying array out of the column Group, it is the responsibility of the caller to know what type it is.voidreset(int size)Reset the Array and set to a different size.voidset(int index, double value)Set index to given double value (cast to the correct type of this array)voidset(int rl, int ru, Array<T> value)Set range to given arrays valuevoidset(int rl, int ru, Array<T> value, int rlSrc)Set range to given arrays value with an offset into other arrayvoidset(int index, String value)Set index to the given value of the string parsed.voidset(int index, T value)Set index to the given value of same typevoidsetFromOtherType(int rl, int ru, Array<?> value)Set range to given arrays valuevoidsetFromOtherTypeNz(int rl, int ru, Array<?> value)Set non default values in the range from the value array givenvoidsetNz(int rl, int ru, Array<T> value)Set non default values in the range from the value array givenArrayCompressionStatisticsstatistics(int nSamples)-
Methods inherited from class org.apache.sysds.runtime.frame.data.columns.Array
analyzeValueType, analyzeValueType, append, baseMemoryCost, changeType, changeType, changeTypeWithNulls, clone, containsNull, createMapping, equals, equals, extractDouble, findEmpty, findEmptyInverse, get, getAsByteArray, getAsDouble, getAsNaNDouble, getCache, getExactSerializedSize, getFrameArrayType, getInMemorySize, getIterator, getMinMaxLength, getNulls, getRecodeMap, getValueType, hashDouble, isEmpty, isNotEmpty, isShallowSerialize, possiblyContainsNaN, safeChangeType, select, select, setCache, setFromOtherTypeNz, setNz, size, slice, toString
-
-
-
-
Method Detail
-
get
public Object get()
Description copied from class:ArrayGet the underlying array out of the column Group, it is the responsibility of the caller to know what type it is. Also it is not guaranteed that the underlying data structure does not allocate an appropriate response to the caller. This in practice means that if called there is a possibility that the entire array is allocated again. So the method should only be used for debugging purposes not for performance.
-
set
public void set(int index, T value)Description copied from class:ArraySet index to the given value of same type
-
set
public void set(int index, double value)Description copied from class:ArraySet index to given double value (cast to the correct type of this array)
-
set
public void set(int index, String value)Description copied from class:ArraySet index to the given value of the string parsed.
-
setFromOtherType
public void setFromOtherType(int rl, int ru, Array<?> value)Description copied from class:ArraySet range to given arrays value- Specified by:
setFromOtherTypein classArray<T>- Parameters:
rl- row lowerru- row upper (inclusive)value- value array to take values from (other type)
-
set
public void set(int rl, int ru, Array<T> value)Description copied from class:ArraySet range to given arrays value
-
set
public void set(int rl, int ru, Array<T> value, int rlSrc)Description copied from class:ArraySet range to given arrays value with an offset into other array
-
setNz
public void setNz(int rl, int ru, Array<T> value)Description copied from class:ArraySet non default values in the range from the value array given
-
setFromOtherTypeNz
public void setFromOtherTypeNz(int rl, int ru, Array<?> value)Description copied from class:ArraySet non default values in the range from the value array given- Specified by:
setFromOtherTypeNzin classArray<T>- Parameters:
rl- row startru- row end inclusivevalue- value array of different type
-
append
public void append(String value)
Description copied from class:ArrayAppend a string value to the current Array, this should in general be avoided, and appending larger blocks at a time should be preferred.
-
append
public void append(T value)
Description copied from class:ArrayAppend a value of the same type of the Array. This should in general be avoided, and appending larger blocks at a time should be preferred.
-
fill
public void fill(String val)
Description copied from class:Arrayfill the entire array with specific value.
-
fill
public void fill(T val)
Description copied from class:Arrayfill the entire array with specific value.
-
reset
public void reset(int size)
Description copied from class:ArrayReset the Array and set to a different size. This method is used to reuse an already allocated Array, without extra allocation. It should only be done in cases where the Array is no longer in use in any FrameBlocks.
-
statistics
public ArrayCompressionStatistics statistics(int nSamples)
- Overrides:
statisticsin classArray<T>
-
-