com.raritantechnologies.federated
Class ProxyResultSet

java.lang.Object
  extended bycom.raritantechnologies.federated.ProxyResultSet
All Implemented Interfaces:
IFederatedResultSet, IResultSet

public class ProxyResultSet
extends java.lang.Object
implements IResultSet, IFederatedResultSet

Proxy class which manages synchronous/asynchronous buffering between FederatedRunner threads and the originating FederatedSearch.


Developed by Raritan Technologies Inc..

Author:
Kepler Gelotte

Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultSet
ELAPSEDTIME, PAGESIZE, QUERYSTRING, RESULTSETID, STARTDOC, TOTALDOCS
 
Constructor Summary
ProxyResultSet(IResultSet results)
           
 
Method Summary
 void addAttribute(java.lang.String name, java.lang.Object attr)
           
 void addResult(IResult result)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Iterator getAttributes()
          ResultSet Properties
 double getElapsedTime()
           
 long getElapsedTimeMS()
           
 int getEndDoc()
           
 INavigator getNavigator()
          To Support Faceted Navigation
 int getPageSize()
           
 java.lang.String getQueryString()
           
 IResult getResult(int index)
           
 java.util.Iterator getResults()
           
 java.util.Iterator getResults(ISorter sortBy)
           
 java.lang.Integer getResultSetID()
           
 java.util.Iterator getSourceNames()
           
 int getStartDoc()
           
 int getTotalDocs()
           
 int getTotalDocs(java.lang.String sourceName)
           
 java.lang.String getXML()
           
 java.lang.String getXML(ISorter sortBy)
           
 java.lang.String getXML(java.util.Iterator headerFields, java.util.Iterator resultFields, java.util.Iterator nestedFields)
           
 void setElapsedTimeMS(long time)
           
 void setNavigator(INavigator navigator)
           
 void setPageSize(int pageSize)
           
 void setQueryString(java.lang.String queryString)
           
 void setResultSetID(java.lang.Integer resultSetID)
           
 void setStartDoc(int startDoc)
           
 void setTotalDocs(int totalDocs)
           
 void setTotalDocs(IResultSet newResults, java.lang.String sourceName)
           
 void setTotalDocs(java.lang.String sourceName, int totalDocs)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyResultSet

public ProxyResultSet(IResultSet results)
Method Detail

setResultSetID

public void setResultSetID(java.lang.Integer resultSetID)
Specified by:
setResultSetID in interface IResultSet

getResultSetID

public java.lang.Integer getResultSetID()
Specified by:
getResultSetID in interface IResultSet

setQueryString

public void setQueryString(java.lang.String queryString)
Specified by:
setQueryString in interface IResultSet

getQueryString

public java.lang.String getQueryString()
Specified by:
getQueryString in interface IResultSet

setNavigator

public void setNavigator(INavigator navigator)
Specified by:
setNavigator in interface IResultSet

getNavigator

public INavigator getNavigator()
Description copied from interface: IResultSet
To Support Faceted Navigation

Specified by:
getNavigator in interface IResultSet

setTotalDocs

public void setTotalDocs(int totalDocs)
Specified by:
setTotalDocs in interface IResultSet

setTotalDocs

public void setTotalDocs(IResultSet newResults,
                         java.lang.String sourceName)

getTotalDocs

public int getTotalDocs()
Specified by:
getTotalDocs in interface IResultSet

setStartDoc

public void setStartDoc(int startDoc)
Specified by:
setStartDoc in interface IResultSet

getStartDoc

public int getStartDoc()
Specified by:
getStartDoc in interface IResultSet

setPageSize

public void setPageSize(int pageSize)
Specified by:
setPageSize in interface IResultSet

getPageSize

public int getPageSize()
Specified by:
getPageSize in interface IResultSet

getEndDoc

public int getEndDoc()
Specified by:
getEndDoc in interface IResultSet

addResult

public void addResult(IResult result)
Specified by:
addResult in interface IResultSet

getResults

public java.util.Iterator getResults()
Specified by:
getResults in interface IResultSet

getResults

public java.util.Iterator getResults(ISorter sortBy)
Specified by:
getResults in interface IResultSet

getResult

public IResult getResult(int index)
Specified by:
getResult in interface IResultSet

size

public int size()
Specified by:
size in interface IResultSet

getXML

public java.lang.String getXML()
Specified by:
getXML in interface IResultSet

getXML

public java.lang.String getXML(ISorter sortBy)
Specified by:
getXML in interface IResultSet

getXML

public java.lang.String getXML(java.util.Iterator headerFields,
                               java.util.Iterator resultFields,
                               java.util.Iterator nestedFields)
Specified by:
getXML in interface IResultSet

toString

public java.lang.String toString()
Specified by:
toString in interface IResultSet

setElapsedTimeMS

public void setElapsedTimeMS(long time)
Specified by:
setElapsedTimeMS in interface IResultSet

getElapsedTimeMS

public long getElapsedTimeMS()
Specified by:
getElapsedTimeMS in interface IResultSet

getElapsedTime

public double getElapsedTime()
Specified by:
getElapsedTime in interface IResultSet

addAttribute

public void addAttribute(java.lang.String name,
                         java.lang.Object attr)
Specified by:
addAttribute in interface IResultSet

getAttributes

public java.util.Iterator getAttributes()
Description copied from interface: IResultSet
ResultSet Properties

Specified by:
getAttributes in interface IResultSet

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface IResultSet

setTotalDocs

public void setTotalDocs(java.lang.String sourceName,
                         int totalDocs)
Specified by:
setTotalDocs in interface IFederatedResultSet

getTotalDocs

public int getTotalDocs(java.lang.String sourceName)
Specified by:
getTotalDocs in interface IFederatedResultSet

getSourceNames

public java.util.Iterator getSourceNames()
Specified by:
getSourceNames in interface IFederatedResultSet