public final class MultiLabelVectorWritable extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
MultiLabelVectorWritable() |
MultiLabelVectorWritable(Vector vector,
int[] labels) |
Modifier and Type | Method and Description |
---|---|
int[] |
getLabels() |
Vector |
getVector() |
static MultiLabelVectorWritable |
read(DataInput in) |
void |
readFields(DataInput in) |
void |
setLabels(int[] labels) |
void |
setVector(Vector vector) |
void |
write(DataOutput out) |
static void |
write(DataOutput out,
SequentialAccessSparseVector ssv,
int[] labels) |
public MultiLabelVectorWritable()
public MultiLabelVectorWritable(Vector vector, int[] labels)
public Vector getVector()
public void setVector(Vector vector)
public void setLabels(int[] labels)
public int[] getLabels()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public static MultiLabelVectorWritable read(DataInput in) throws IOException
IOException
public static void write(DataOutput out, SequentialAccessSparseVector ssv, int[] labels) throws IOException
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.