public class ResultSetConsumer extends Object implements ResultSetConsumerI
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicInteger |
SMid |
| Constructor and Description |
|---|
ResultSetConsumer(org.gcube.data.streams.Stream<gr.uoa.di.madgik.grs.record.GenericRecord> recordsStream,
String searchType,
boolean onlyTitleSnippet) |
ResultSetConsumer(String RSLocator,
String searchType,
boolean onlyTitleSnippet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advanceReaderBy(int numOfResults)
Moves the resultset by the number of records specified
If negative, moves backwards
|
ArrayList<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> |
getAllResultIds(org.gcube.application.framework.core.session.ASLSession session) |
List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> |
getFirst(int n,
DisableButtons dis,
org.gcube.application.framework.core.session.ASLSession session) |
List<Properties> |
getFirstRaw(int n,
DisableButtons dis,
org.gcube.application.framework.core.session.ASLSession session)
only to be used in special cases.
|
List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> |
getNext(int n,
DisableButtons dis,
org.gcube.application.framework.core.session.ASLSession session) |
List<Properties> |
getNextRaw(int n,
DisableButtons dis,
org.gcube.application.framework.core.session.ASLSession session)
only to be used in special cases.
|
int |
getNumOfResultsRead() |
List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> |
getPrevious(int n,
DisableButtons dis,
org.gcube.application.framework.core.session.ASLSession session) |
List<String> |
getResultsToText(int n,
int offset,
org.gcube.application.framework.core.session.ASLSession session) |
boolean |
getTotalRead() |
static void |
removeSessionVariables(org.gcube.application.framework.core.session.ASLSession session) |
void |
setGenericSearchType(String gst) |
void |
setOnlyPresentables() |
void |
setOnlyTitleSnippet(boolean onlyTS) |
void |
setSearchStartTime(long timeMillis) |
void |
setWindowSize(int windowSize) |
protected static AtomicInteger SMid
public ResultSetConsumer(String RSLocator, String searchType, boolean onlyTitleSnippet) throws URISyntaxException, gRS2CreationException
public ResultSetConsumer(org.gcube.data.streams.Stream<gr.uoa.di.madgik.grs.record.GenericRecord> recordsStream,
String searchType,
boolean onlyTitleSnippet)
throws gRS2CreationException
gRS2CreationExceptionpublic void setSearchStartTime(long timeMillis)
setSearchStartTime in interface ResultSetConsumerIpublic static void removeSessionVariables(org.gcube.application.framework.core.session.ASLSession session)
session - the D4Science session to be used in order to remove the attributespublic List<Properties> getFirstRaw(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session) throws gRS2NoRecordReadWithinTimeIntervalException, gRS2ReaderException, gRS2AvailableRecordsRetrievalException, gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException, gr.uoa.di.madgik.grs.buffer.GRS2BufferException
getFirstRaw in interface ResultSetConsumerIgr.uoa.di.madgik.grs.buffer.GRS2BufferExceptiongr.uoa.di.madgik.grs.record.GRS2RecordDefinitionExceptiongRS2NoRecordReadWithinTimeIntervalExceptiongRS2ReaderExceptiongRS2AvailableRecordsRetrievalExceptionpublic List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getFirst(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session) throws gRS2NoRecordReadWithinTimeIntervalException, gRS2RecordDefinitionException, gRS2ReaderException, gRS2AvailableRecordsRetrievalException, InitialBridgingNotCompleteException, InternalErrorException
public List<Properties> getNextRaw(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session) throws gRS2NoRecordReadWithinTimeIntervalException, gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException, gr.uoa.di.madgik.grs.buffer.GRS2BufferException
getNextRaw in interface ResultSetConsumerIgRS2NoRecordReadWithinTimeIntervalExceptiongr.uoa.di.madgik.grs.buffer.GRS2BufferExceptiongr.uoa.di.madgik.grs.record.GRS2RecordDefinitionExceptionpublic List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getNext(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session) throws gRS2NoRecordReadWithinTimeIntervalException, gRS2RecordDefinitionException, gRS2ReaderException, gRS2AvailableRecordsRetrievalException, InitialBridgingNotCompleteException, InternalErrorException
public List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getPrevious(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session) throws gRS2NoRecordReadWithinTimeIntervalException, gRS2RecordDefinitionException, gRS2ReaderException, gRS2AvailableRecordsRetrievalException, InitialBridgingNotCompleteException, InternalErrorException
public List<String> getResultsToText(int n, int offset, org.gcube.application.framework.core.session.ASLSession session) throws gRS2ReaderException, gRS2RecordDefinitionException, gRS2BufferException
getResultsToText in interface ResultSetConsumerIgRS2ReaderExceptiongRS2RecordDefinitionExceptiongRS2BufferExceptionpublic boolean advanceReaderBy(int numOfResults)
advanceReaderBy in interface ResultSetConsumerInumofresults - public void setOnlyPresentables()
setOnlyPresentables in interface ResultSetConsumerIpublic void setWindowSize(int windowSize)
throws gr.uoa.di.madgik.grs.reader.GRS2ReaderInvalidArgumentException
setWindowSize in interface ResultSetConsumerIgr.uoa.di.madgik.grs.reader.GRS2ReaderInvalidArgumentExceptionpublic ArrayList<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getAllResultIds(org.gcube.application.framework.core.session.ASLSession session)
getAllResultIds in interface ResultSetConsumerIpublic void setGenericSearchType(String gst)
setGenericSearchType in interface ResultSetConsumerIpublic void setOnlyTitleSnippet(boolean onlyTS)
setOnlyTitleSnippet in interface ResultSetConsumerIpublic int getNumOfResultsRead()
getNumOfResultsRead in interface ResultSetConsumerIpublic boolean getTotalRead()
getTotalRead in interface ResultSetConsumerICopyright © 2014. All Rights Reserved.