org.apache.mahout.cf.taste.impl.similarity.jdbc
Class MySQLJDBCInMemoryItemSimilarity
java.lang.Object
org.apache.mahout.cf.taste.impl.common.jdbc.AbstractJDBCComponent
org.apache.mahout.cf.taste.impl.similarity.jdbc.SQL92JDBCInMemoryItemSimilarity
org.apache.mahout.cf.taste.impl.similarity.jdbc.MySQLJDBCInMemoryItemSimilarity
- All Implemented Interfaces:
- Refreshable, ItemSimilarity
public class MySQLJDBCInMemoryItemSimilarity
- extends SQL92JDBCInMemoryItemSimilarity
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLJDBCInMemoryItemSimilarity
public MySQLJDBCInMemoryItemSimilarity()
throws TasteException
- Throws:
TasteException
MySQLJDBCInMemoryItemSimilarity
public MySQLJDBCInMemoryItemSimilarity(String dataSourceName)
throws TasteException
- Throws:
TasteException
MySQLJDBCInMemoryItemSimilarity
public MySQLJDBCInMemoryItemSimilarity(DataSource dataSource)
MySQLJDBCInMemoryItemSimilarity
public MySQLJDBCInMemoryItemSimilarity(DataSource dataSource,
String getAllItemSimilaritiesSQL)
getFetchSize
protected int getFetchSize()
- Overrides:
getFetchSize
in class AbstractJDBCComponent
itemSimilarity
public double itemSimilarity(long itemID1,
long itemID2)
throws TasteException
- Specified by:
itemSimilarity
in interface ItemSimilarity
- Throws:
TasteException
itemSimilarities
public double[] itemSimilarities(long itemID1,
long[] itemID2s)
throws TasteException
- Specified by:
itemSimilarities
in interface ItemSimilarity
- Throws:
TasteException
allSimilarItemIDs
public long[] allSimilarItemIDs(long itemID)
throws TasteException
- Specified by:
allSimilarItemIDs
in interface ItemSimilarity
- Throws:
TasteException
refresh
public void refresh(Collection<Refreshable> alreadyRefreshed)
- Specified by:
refresh
in interface Refreshable
reload
protected void reload()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.