org.apache.mahout.df.mapreduce
Class MapredOutput
java.lang.Object
org.apache.mahout.df.mapreduce.MapredOutput
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.hadoop.io.Writable
public class MapredOutput
- extends java.lang.Object
- implements org.apache.hadoop.io.Writable, java.lang.Cloneable
Used by various implementation to return the results of a build.
Contains a grown tree and and its oob predictions.
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MapredOutput
public MapredOutput()
MapredOutput
public MapredOutput(Node tree,
int[] predictions)
MapredOutput
public MapredOutput(Node tree)
MapredOutput
public MapredOutput(int[] predictions)
getTree
public Node getTree()
getPredictions
public int[] getPredictions()
read
public static MapredOutput read(java.io.DataInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
clone
public MapredOutput clone()
- Overrides:
clone
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.