public class OffsetByte extends AOffset
| Constructor and Description |
|---|
OffsetByte(int[] indexes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getExactSizeOnDisk()
Remember to include the ordinal of the type of offset list.
|
long |
getInMemorySize()
Get the in memory size of the Offset object
|
static long |
getInMemorySize(int length) |
org.apache.sysds.runtime.compress.colgroup.offset.OffsetByte.IterateByteOffset |
getIterator()
Get an iterator of the offsets.
|
int |
getSize()
Get the number of contained elements, This method iterate the entire offset list, so it is not constant lookup.
|
static OffsetByte |
readFields(DataInput in) |
void |
write(DataOutput out)
Write the offsets to disk.
|
getIterator, toStringpublic org.apache.sysds.runtime.compress.colgroup.offset.OffsetByte.IterateByteOffset getIterator()
AOffsetgetIterator in class AOffsetpublic void write(DataOutput out) throws IOException
AOffsetwrite in class AOffsetout - The output to write toIOException - Exception that happens if the IO fails to write.public long getInMemorySize()
AOffsetgetInMemorySize in class AOffsetpublic long getExactSizeOnDisk()
AOffsetgetExactSizeOnDisk in class AOffsetpublic int getSize()
AOffsetpublic static long getInMemorySize(int length)
public static OffsetByte readFields(DataInput in) throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.