public class OffsetChar extends AOffset
| Constructor and Description |
|---|
OffsetChar(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.OffsetChar.IterateCharOffset |
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 OffsetChar |
readFields(DataInput in) |
void |
write(DataOutput out)
Write the offsets to disk.
|
getIterator, toStringpublic org.apache.sysds.runtime.compress.colgroup.offset.OffsetChar.IterateCharOffset 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 OffsetChar readFields(DataInput in) throws IOException
IOExceptionpublic static long getInMemorySize(int length)
Copyright © 2021 The Apache Software Foundation. All rights reserved.