|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.cf.taste.impl.model.AbstractIDMigrator
org.apache.mahout.cf.taste.impl.model.MemoryIDMigrator
public final class MemoryIDMigrator
Implementation which stores the reverse long-to-String mapping in memory.
Constructor Summary | |
---|---|
MemoryIDMigrator()
|
Method Summary | |
---|---|
void |
storeMapping(long longID,
java.lang.String stringID)
Stores the reverse long-to-String mapping in some kind of backing store. |
java.lang.String |
toStringID(long longID)
|
Methods inherited from class org.apache.mahout.cf.taste.impl.model.AbstractIDMigrator |
---|
hash, initialize, toLongID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryIDMigrator()
Method Detail |
---|
public void storeMapping(long longID, java.lang.String stringID)
IDMigrator
IDMigrator.initialize(Iterable)
) for every String that might be encountered
in the application, or else the mapping will not be known.
longID
- long IDstringID
- string ID that maps to/from that long IDpublic java.lang.String toStringID(long longID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |