collector
Class Transazione

java.lang.Object
  |
  +--collector.Transazione

public class Transazione
extends java.lang.Object


Constructor Summary
Transazione(Database db)
           
 
Method Summary
 int addReference(UrlInfo URLinfo)
          Adds to the database a new reference to an URL.
 void commit()
          transaction is completed: commit
 int getReferences(java.lang.String URL)
           
 void insertIndex(java.lang.String url, float[] pesi, float epsilon)
          Inserisco un indice usato nella tabella degli indici usati
 void insertUrl(java.lang.String url, float[] pesi, java.lang.String info, java.lang.String fromURL)
          Inserisco un URL catalogato nella tabella degli URL
 void print()
          Stampa il risultato della catalogazione di una pagina.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transazione

public Transazione(Database db)
Method Detail

insertUrl

public void insertUrl(java.lang.String url,
                      float[] pesi,
                      java.lang.String info,
                      java.lang.String fromURL)
Inserisco un URL catalogato nella tabella degli URL

insertIndex

public void insertIndex(java.lang.String url,
                        float[] pesi,
                        float epsilon)
Inserisco un indice usato nella tabella degli indici usati
Parameters:
epsilon - is the threshold for index pages. Weights smaller than epsilon are discarded.

commit

public void commit()
transaction is completed: commit

addReference

public int addReference(UrlInfo URLinfo)
Adds to the database a new reference to an URL.
Parameters:
weights - are the weights determined by the context of the new reference
URLinfo - contains the abstract and the URL from
Returns:
the number of references to the URL.

getReferences

public int getReferences(java.lang.String URL)

print

public void print()
Stampa il risultato della catalogazione di una pagina.