org.apache.mahout.cf.taste.example.email
Class EmailUtility
java.lang.Object
org.apache.mahout.cf.taste.example.email.EmailUtility
public final class EmailUtility
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
MSG_IDS_PREFIX
public static final String MSG_IDS_PREFIX
- See Also:
- Constant Field Values
FROM_PREFIX
public static final String FROM_PREFIX
- See Also:
- Constant Field Values
MSG_ID_DIMENSION
public static final String MSG_ID_DIMENSION
- See Also:
- Constant Field Values
FROM_INDEX
public static final String FROM_INDEX
- See Also:
- Constant Field Values
REFS_INDEX
public static final String REFS_INDEX
- See Also:
- Constant Field Values
WHITESPACE
public static final Pattern WHITESPACE
cleanUpEmailAddress
public static String cleanUpEmailAddress(CharSequence address)
- Strip off some spurious characters that make it harder to dedup
loadDictionaries
public static void loadDictionaries(org.apache.hadoop.conf.Configuration conf,
String fromPrefix,
OpenObjectIntHashMap<String> fromDictionary,
String msgIdPrefix,
OpenObjectIntHashMap<String> msgIdDictionary)
throws IOException
- Throws:
IOException
parseReferences
public static String[] parseReferences(CharSequence rawRefs)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.