Class OffsetChar
java.lang.Object
org.apache.sysds.runtime.compress.colgroup.offset.AOffset
org.apache.sysds.runtime.compress.colgroup.offset.OffsetChar
- All Implemented Interfaces:
Serializable,ISliceOffset
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.runtime.compress.colgroup.offset.AOffset
AOffset.OffsetSliceInfo, AOffset.RemoveEmptyOffsetsTmp -
Method Summary
Modifier and TypeMethodDescriptionstatic longestimateInMemorySize(int nOffs) longRemember to include the ordinal of the type of offset list.longGet the in memory size of the Offset objectGet an iterator of the offsets while also maintaining the data index pointer.intGet the length of the underlying array.Get an OffsetIterator of current offsets not maintaining the data index.intGet the offset to the first indexintGet the offset to the last valueintgetSize()Get the number of contained elements, This method iterate the entire offset list, so it is not constant lookup.moveIndex(int m) Move the index start x cellsstatic OffsetCharreadFields(DataInput in) slice(int lowOff, int highOff, int lowValue, int highValue, int low, int high) voidwrite(DataOutput out) Write the offsets to disk.Methods inherited from class org.apache.sysds.runtime.compress.colgroup.offset.AOffset
append, appendN, cacheIterator, clearSkipList, constructSkipList, equals, equals, getIterator, preAggregateDenseMap, preAggSparseMap, removeEmptyRows, reverse, slice, toString, verify
-
Method Details
-
getIterator
Description copied from class:AOffsetGet an iterator of the offsets while also maintaining the data index pointer.- Specified by:
getIteratorin classAOffset- Returns:
- AIterator that iterate through index and dictionary offset values.
-
getOffsetIterator
Description copied from class:AOffsetGet an OffsetIterator of current offsets not maintaining the data index.- Specified by:
getOffsetIteratorin classAOffset- Returns:
- AIterator that iterator through the delta offsets.
-
write
Description copied from class:AOffsetWrite the offsets to disk. If you implement another remember to write the ordinal of the new type to disk as well and add it to the OffsetFactory.- Specified by:
writein classAOffset- Parameters:
out- The output to write to- Throws:
IOException- Exception that happens if the IO fails to write.
-
getInMemorySize
public long getInMemorySize()Description copied from class:AOffsetGet the in memory size of the Offset object- Specified by:
getInMemorySizein classAOffset- Returns:
- In memory size as a long.
-
estimateInMemorySize
public static long estimateInMemorySize(int nOffs) -
getExactSizeOnDisk
public long getExactSizeOnDisk()Description copied from class:AOffsetRemember to include the ordinal of the type of offset list.- Specified by:
getExactSizeOnDiskin classAOffset- Returns:
- the size on disk as a long.
-
getSize
public int getSize()Description copied from class:AOffsetGet the number of contained elements, This method iterate the entire offset list, so it is not constant lookup. -
getOffsetToFirst
public int getOffsetToFirst()Description copied from class:AOffsetGet the offset to the first index- Specified by:
getOffsetToFirstin classAOffset- Returns:
- The first index offset
-
getOffsetToLast
public int getOffsetToLast()Description copied from class:AOffsetGet the offset to the last value- Specified by:
getOffsetToLastin classAOffset- Returns:
- The last values offset
-
readFields
- Throws:
IOException
-
slice
public AOffset.OffsetSliceInfo slice(int lowOff, int highOff, int lowValue, int highValue, int low, int high) - Specified by:
slicein interfaceISliceOffset
-
moveIndex
Description copied from class:AOffsetMove the index start x cells -
getLength
public int getLength()Description copied from class:AOffsetGet the length of the underlying array. This does not reflect the number of contained elements, since some of the elements can be skips.
-