|
||||||||||
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
public abstract class AbstractIDMigrator
Constructor Summary | |
---|---|
protected |
AbstractIDMigrator()
|
Method Summary | |
---|---|
protected long |
hash(java.lang.String value)
|
void |
initialize(java.lang.Iterable<java.lang.String> stringIDs)
Make the mapping aware of the given string IDs. |
long |
toLongID(java.lang.String stringID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mahout.cf.taste.model.IDMigrator |
---|
storeMapping, toStringID |
Constructor Detail |
---|
protected AbstractIDMigrator()
Method Detail |
---|
protected final long hash(java.lang.String value)
public long toLongID(java.lang.String stringID)
toLongID
in interface IDMigrator
String
's UTF-8 encoding as a
long.public void initialize(java.lang.Iterable<java.lang.String> stringIDs) throws TasteException
IDMigrator
initialize
in interface IDMigrator
TasteException
- if an error occurs while storing the mappings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |