Class OffsetByte
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.colgroup.offset.AOffset
- 
- org.apache.sysds.runtime.compress.colgroup.offset.OffsetByte
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class OffsetByte extends AOffset - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description OffsetByte(int[] indexes)OffsetByte(int[] indexes, int apos, int alen)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longestimateInMemorySize(int nOffs)longgetExactSizeOnDisk()Remember to include the ordinal of the type of offset list.longgetInMemorySize()Get the in memory size of the Offset objectAIteratorgetIterator()Get an iterator of the offsets while also maintaining the data index pointer.AOffsetIteratorgetOffsetIterator()Get an OffsetIterator of current offsets not maintaining the data index.intgetOffsetsLength()Get the length of the underlying offsets lists.intgetOffsetToFirst()Get the offset to the first indexintgetOffsetToLast()Get 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.static OffsetBytereadFields(DataInput in)voidwrite(DataOutput out)Write the offsets to disk.- 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.offset.AOffsetcacheIterator, equals, getIterator, preAggregateDenseMap, preAggregateSparseMap, toString
 
- 
 
- 
- 
- 
Method Detail- 
getIteratorpublic AIterator getIterator() Description copied from class:AOffsetGet an iterator of the offsets while also maintaining the data index pointer.- Specified by:
- getIteratorin class- AOffset
- Returns:
- AIterator that iterate through index and dictionary offset values.
 
 - 
getOffsetIteratorpublic AOffsetIterator getOffsetIterator() Description copied from class:AOffsetGet an OffsetIterator of current offsets not maintaining the data index.- Specified by:
- getOffsetIteratorin class- AOffset
- Returns:
- AIterator that iterator through the delta offsets.
 
 - 
writepublic void write(DataOutput out) throws IOException 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 class- AOffset
- Parameters:
- out- The output to write to
- Throws:
- IOException- Exception that happens if the IO fails to write.
 
 - 
getExactSizeOnDiskpublic long getExactSizeOnDisk() Description copied from class:AOffsetRemember to include the ordinal of the type of offset list.- Specified by:
- getExactSizeOnDiskin class- AOffset
- Returns:
- the size on disk as a long.
 
 - 
getSizepublic 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.
 - 
getOffsetToFirstpublic int getOffsetToFirst() Description copied from class:AOffsetGet the offset to the first index- Specified by:
- getOffsetToFirstin class- AOffset
- Returns:
- The first index offset
 
 - 
getOffsetToLastpublic int getOffsetToLast() Description copied from class:AOffsetGet the offset to the last value- Specified by:
- getOffsetToLastin class- AOffset
- Returns:
- The last values offset
 
 - 
getOffsetsLengthpublic int getOffsetsLength() Description copied from class:AOffsetGet the length of the underlying offsets lists.- Specified by:
- getOffsetsLengthin class- AOffset
- Returns:
- The number of offsets.
 
 - 
getInMemorySizepublic long getInMemorySize() Description copied from class:AOffsetGet the in memory size of the Offset object- Specified by:
- getInMemorySizein class- AOffset
- Returns:
- In memory size as a long.
 
 - 
estimateInMemorySizepublic static long estimateInMemorySize(int nOffs) 
 - 
readFieldspublic static OffsetByte readFields(DataInput in) throws IOException - Throws:
- IOException
 
 
- 
 
-