org.gcube.indexmanagement.forwardindexlookup
Class ForwardIndexLookupService

java.lang.Object
  extended by org.gcube.indexmanagement.forwardindexlookup.ForwardIndexLookupService

public class ForwardIndexLookupService
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
ForwardIndexLookupService()
          Constructor - sets up some variables and creates a logging instance
 
Method Summary
 DestroyPartiallyResponse destroyPartially(DestroyPartially empty)
          Removes the index resource from the container without removing any data stored by the resource (e.g.
 java.lang.String getAll(GetAll key)
          Gets all from the DB.
 int getCount(java.lang.String keyName)
          Gets the count for a specific KeyName.
 java.lang.String getEQ(GetEQ key)
          Gets the key and value pairs where keys are equal the input key.
 java.lang.String getGE(GetGE key)
          Gets the key and value pairs where keys are GE the input key
 java.lang.String getGEandLE(GetGEandLE key)
          Gets the key and value pairs where keys are GE the input key1 and LE the input key2
 java.lang.String getGEandLT(GetGEandLT key)
          Gets the key and value pairs where keys are GE the input key1 and LT the input key2.
 java.lang.String getGT(GetGT key)
          Gets the key and value pairs where keys are GT the input key.
 java.lang.String getGTandLE(GetGTandLE key)
          Gets the key and value pairs where keys are GT the input key1 and LE the input key2.
 java.lang.String getGTandLT(GetGTandLT key)
          Gets the key and value pairs where keys are GT the input key1 and LT the input key2.
 java.lang.String getLE(GetLE key)
          Gets the key and value pairs where keys are LE the input key.
 java.lang.String getLT(GetLT key)
          Gets the key and value pairs where keys are LT the input key.
 java.lang.String query(java.lang.String query)
          Performs a multiField query and returns the results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardIndexLookupService

public ForwardIndexLookupService()
                          throws java.rmi.RemoteException
Constructor - sets up some variables and creates a logging instance

Throws:
java.rmi.RemoteException - in case of an error.
Method Detail

getEQ

public java.lang.String getEQ(GetEQ key)
                       throws GCUBEFault
Gets the key and value pairs where keys are equal the input key.

Parameters:
key - - the lookup key.
Returns:
resultSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getGE

public java.lang.String getGE(GetGE key)
                       throws GCUBEFault
Gets the key and value pairs where keys are GE the input key

Parameters:
key - - the lookup key.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getGT

public java.lang.String getGT(GetGT key)
                       throws GCUBEFault
Gets the key and value pairs where keys are GT the input key.

Parameters:
key - - the lookup key.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getLE

public java.lang.String getLE(GetLE key)
                       throws GCUBEFault
Gets the key and value pairs where keys are LE the input key.

Parameters:
key - - contains the key.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getLT

public java.lang.String getLT(GetLT key)
                       throws GCUBEFault
Gets the key and value pairs where keys are LT the input key.

Parameters:
key - - contains the key.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getGEandLE

public java.lang.String getGEandLE(GetGEandLE key)
                            throws GCUBEFault
Gets the key and value pairs where keys are GE the input key1 and LE the input key2

Parameters:
key- - contains the keys.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getGTandLE

public java.lang.String getGTandLE(GetGTandLE key)
                            throws GCUBEFault
Gets the key and value pairs where keys are GT the input key1 and LE the input key2.

Parameters:
key - - contains the keys.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getGEandLT

public java.lang.String getGEandLT(GetGEandLT key)
                            throws GCUBEFault
Gets the key and value pairs where keys are GE the input key1 and LT the input key2.

Parameters:
key - - contains the keys.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - exception in case of failure.
GCUBEFault

getGTandLT

public java.lang.String getGTandLT(GetGTandLT key)
                            throws GCUBEFault
Gets the key and value pairs where keys are GT the input key1 and LT the input key2.

Parameters:
key - - contains the keys.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getAll

public java.lang.String getAll(GetAll key)
                        throws GCUBEFault
Gets all from the DB.

Parameters:
key - - contains info for result format and ascending-descending order.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

query

public java.lang.String query(java.lang.String query)
                       throws GCUBEFault
Performs a multiField query and returns the results.

Parameters:
query - - the query to be answered.
Returns:
rowSet EPR- with the key and value pairs.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

getCount

public int getCount(java.lang.String keyName)
             throws GCUBEFault
Gets the count for a specific KeyName.

Parameters:
keyName - - the keyName.
Returns:
count - the count for this KeyName.
Throws:
ForwardIndexException - in case of failure.
GCUBEFault

destroyPartially

public DestroyPartiallyResponse destroyPartially(DestroyPartially empty)
                                          throws GCUBEFault
Removes the index resource from the container without removing any data stored by the resource (e.g. CMS objects, local files, etc).

Parameters:
empty - empty stub request
Returns:
empty stub response
Throws:
GCUBEFault