org.apache.mahout.cf.taste.hadoop
Class MapFilesMap<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
java.lang.Object
org.apache.mahout.cf.taste.hadoop.MapFilesMap<K,V>
- All Implemented Interfaces:
- java.io.Closeable
public final class MapFilesMap<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
- extends java.lang.Object
- implements java.io.Closeable
Represents a series of MapFile
s, from which one might want to look up values based on keys. It just
provides a simplified way to open them all up, and search from all of them.
Constructor Summary |
MapFilesMap(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path parentDir,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapFilesMap
public MapFilesMap(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path parentDir,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
- Throws:
java.io.IOException
get
public V get(K key,
V value)
throws java.io.IOException
- Returns:
- value reference if key is found, filled in with value data, or null if not found
- Throws:
java.io.IOException
close
public void close()
- Specified by:
close
in interface java.io.Closeable
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.