|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.db.DbTagCloud
public class DbTagCloud
Connecting to tag cloud
| Constructor Summary | |
|---|---|
DbTagCloud(java.lang.String path)
Constructor which gets the connection to the database |
|
| Method Summary | |
|---|---|
boolean |
anyTagExistForAUser(java.lang.String nsid)
Check if the tag and user id already exist |
boolean |
checkExistingComOfTagAndNsid(java.lang.String nsid,
int tid)
Check if the combination of user id and a tag already exists |
void |
delete(java.lang.String nsid)
Delete tag cloud by nsid |
java.util.Vector<Similarity> |
getSimilaritiesUsingTFIDF(java.util.Vector<java.lang.String> userToCompare,
java.lang.String nsid)
pass two user to this method and get the TF-IDF value of similarity |
void |
insert(java.lang.String nsid,
int tid,
int freq)
Insert tag cloud individuals |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbTagCloud(java.lang.String path)
path - to where the database details are| Method Detail |
|---|
public void insert(java.lang.String nsid,
int tid,
int freq)
throws java.sql.SQLException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
nsid - user id from the flickr websitetid - tag idfreq - tag frequency
java.sql.SQLException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public boolean checkExistingComOfTagAndNsid(java.lang.String nsid,
int tid)
throws java.sql.SQLException
nsid - user id from Flickr websitetid - tag id
java.sql.SQLException
public java.util.Vector<Similarity> getSimilaritiesUsingTFIDF(java.util.Vector<java.lang.String> userToCompare,
java.lang.String nsid)
throws java.sql.SQLException
userToCompare - Vector of people be comparednsid - user id from the Flickr website
java.sql.SQLException
public boolean anyTagExistForAUser(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
public void delete(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||