org.gcube.indexmanagement.forwardindexupdater
Class ForwardIndexUpdaterService

java.lang.Object
  extended by org.gcube.indexmanagement.forwardindexupdater.ForwardIndexUpdaterService

public class ForwardIndexUpdaterService
extends java.lang.Object

The ForwardIndex Service is the implementation of the ForwardIndex wsdl interface. It implements methods for creating indexes, and for adding data in the rowset format to an index.


Constructor Summary
ForwardIndexUpdaterService()
          Constructor - sets up some variables and creates a logging instance
 
Method Summary
 DeletePairResponse deletePair(int key)
          Deleted a tuple stored in the database.
 InsertPairResponse insertPair(InsertPair insertPair)
          Insert a key and value pair in the database.
 ProcessResponse process(java.lang.String rowset)
          Processes the keys and values from a row set.
 ProcessResultSetResponse processResultSet(java.lang.String resultSetLocation)
          Process a ResultSet that contains ROWSETS information into an index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardIndexUpdaterService

public ForwardIndexUpdaterService()
                           throws IndexException
Constructor - sets up some variables and creates a logging instance

Throws:
IndexException - in case of an error.
Method Detail

deletePair

public DeletePairResponse deletePair(int key)
                              throws GCUBEFault
Deleted a tuple stored in the database.

Parameters:
key - to delete.
Returns:
value that is deleted.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

insertPair

public InsertPairResponse insertPair(InsertPair insertPair)
                              throws GCUBEFault
Insert a key and value pair in the database.

Parameters:
insertPair - - key and value pair to insert in the database.
Returns:
- value that is inserted in the database.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

process

public ProcessResponse process(java.lang.String rowset)
                        throws GCUBEFault
Processes the keys and values from a row set. The vaulues can be inserted or deleted ..

Parameters:
rowSet - - the row set that contains te keys.
Returns:
- the rowset with the result.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

processResultSet

public ProcessResultSetResponse processResultSet(java.lang.String resultSetLocation)
                                          throws GCUBEFault
Process a ResultSet that contains ROWSETS information into an index.

Parameters:
resultSetLocation - String - a String representation of the ResultSet EPR
Returns:
ProcessResultSetResponse - empty object.
Throws:
ForwardIndexException - - in case of error
GCUBEFault