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, toString
public org.apache.sysds.runtime.compress.colgroup.offset.OffsetChar.IterateCharOffset getIterator()
AOffset
getIterator
in class AOffset
public void write(DataOutput out) throws IOException
AOffset
write
in class AOffset
out
- The output to write toIOException
- Exception that happens if the IO fails to write.public long getInMemorySize()
AOffset
getInMemorySize
in class AOffset
public long getExactSizeOnDisk()
AOffset
getExactSizeOnDisk
in class AOffset
public int getSize()
AOffset
public static OffsetChar readFields(DataInput in) throws IOException
IOException
public static long getInMemorySize(int length)
Copyright © 2021 The Apache Software Foundation. All rights reserved.