public class SparseRowBlockWritable extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
SparseRowBlockWritable() |
SparseRowBlockWritable(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
getNumRows() |
int[] |
getRowIndices() |
Vector[] |
getRows() |
void |
plusBlock(SparseRowBlockWritable bOther)
pluses one block into another.
|
void |
plusRow(int index,
Vector row) |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public SparseRowBlockWritable()
public SparseRowBlockWritable(int initialCapacity)
public int[] getRowIndices()
public Vector[] getRows()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void plusRow(int index,
Vector row)
public void plusBlock(SparseRowBlockWritable bOther)
bOther - block to addpublic int getNumRows()
public void clear()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.