|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.mapreduce.partial.InterResults
public class InterResults
Stores/Loads the intermediate results of step1 needed by step2.
This class should not be needed outside of the partial package, so all its methods are protected.
Method Summary | |
---|---|
static int |
load(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path forestPath,
int numMaps,
int numTrees,
int partition,
TreeID[] keys,
Node[] trees)
Load the trees and the keys returned from the first step |
static void |
store(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path forestPath,
TreeID[] keys,
Node[] trees,
int[] sizes)
Write the forest trees into a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int load(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path forestPath, int numMaps, int numTrees, int partition, TreeID[] keys, Node[] trees) throws java.io.IOException
fs
- forest path file systemforestPath
- file path to the (key,tree) filenumMaps
- number of map tasksnumTrees
- total number of trees in the forestpartition
- current partitionkeys
- array of size numTrees, will contain the loaded keystrees
- array of size numTrees, will contain the loaded trees
java.io.IOException
public static void store(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path forestPath, TreeID[] keys, Node[] trees, int[] sizes) throws java.io.IOException
fs
- File Systemkeys
- keys returned by the first steptrees
- trees returned by the first stepsizes
- partitions' sizes in hadoop order
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |