|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.spectral.common.VectorCache
public final class VectorCache
This class handles reading and writing vectors to the Hadoop distributed cache. Created as a result of Eigencuts' liberal use of such functionality, but available to any algorithm requiring it.
Method Summary | |
---|---|
static Vector |
load(org.apache.hadoop.io.Writable key,
org.apache.hadoop.conf.Configuration conf)
Loads the vector with the specified key from the cache. |
static Vector |
load(org.apache.hadoop.io.Writable key,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path input)
Loads a Vector from the specified path |
static void |
save(org.apache.hadoop.io.Writable key,
Vector vector,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration conf)
Calls the save() method, setting the cache to overwrite any previous Path and to delete the path after exiting |
static void |
save(org.apache.hadoop.io.Writable key,
Vector vector,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration conf,
boolean overwritePath,
boolean deleteOnExit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void save(org.apache.hadoop.io.Writable key, Vector vector, org.apache.hadoop.fs.Path output, org.apache.hadoop.conf.Configuration conf, boolean overwritePath, boolean deleteOnExit) throws java.io.IOException
key
- SequenceFile keyvector
- Vector to save, to be wrapped as VectorWritable
java.io.IOException
public static void save(org.apache.hadoop.io.Writable key, Vector vector, org.apache.hadoop.fs.Path output, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOException
public static Vector load(org.apache.hadoop.io.Writable key, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOException
public static Vector load(org.apache.hadoop.io.Writable key, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path input) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |