public class PartitionedBlock<T extends CacheBlock> extends Object implements Externalizable
Constructor and Description |
---|
PartitionedBlock() |
PartitionedBlock(int rlen,
int clen,
int blen) |
PartitionedBlock(T block,
int blen) |
PartitionedBlock(T block,
long[] dims,
int blen) |
Modifier and Type | Method and Description |
---|---|
void |
clearBlocks() |
PartitionedBlock<T> |
createPartition(int offset,
int numBlks) |
T |
getBlock(int[] ix) |
T |
getBlock(int rowIndex,
int colIndex) |
long |
getBlocksize() |
long |
getDim(int i) |
long |
getExactSerializedSize() |
long |
getInMemorySize() |
long |
getNumCols() |
int |
getNumColumnBlocks() |
int |
getNumDimBlocks(int dim) |
int |
getNumRowBlocks() |
long |
getNumRows() |
void |
readExternal(ObjectInput is)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for efficient broadcast deserialization.
|
void |
setBlock(int rowIndex,
int colIndex,
T block) |
void |
writeExternal(ObjectOutput os)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for efficient broadcast serialization.
|
public PartitionedBlock()
public PartitionedBlock(T block, int blen)
public PartitionedBlock(T block, long[] dims, int blen)
public PartitionedBlock(int rlen, int clen, int blen)
public PartitionedBlock<T> createPartition(int offset, int numBlks)
public long getNumRows()
public long getNumCols()
public long getDim(int i)
public long getBlocksize()
public int getNumRowBlocks()
public int getNumColumnBlocks()
public int getNumDimBlocks(int dim)
public T getBlock(int rowIndex, int colIndex)
public T getBlock(int[] ix)
public void setBlock(int rowIndex, int colIndex, T block)
public long getInMemorySize()
public long getExactSerializedSize()
public void clearBlocks()
public void readExternal(ObjectInput is) throws IOException
readExternal
in interface Externalizable
is
- object inputIOException
- if IOException occurspublic void writeExternal(ObjectOutput os) throws IOException
writeExternal
in interface Externalizable
os
- object outputIOException
- if IOException occursCopyright © 2020 The Apache Software Foundation. All rights reserved.