org.eaglei.search.provider.lucene.harvest
Class AbstractStreamHarvester
java.lang.Object
org.eaglei.search.provider.lucene.harvest.AbstractStreamHarvester
- All Implemented Interfaces:
- org.eaglei.search.harvest.DataHarvester, org.eaglei.search.harvest.PollingDataHarvester
- Direct Known Subclasses:
- FileStreamHarvester, RepositoryStreamHarvester
public abstract class AbstractStreamHarvester
- extends java.lang.Object
- implements org.eaglei.search.harvest.PollingDataHarvester
- The results from the harvest call (returned in SPARQL tabular format) are parsed into a set of SPARQL
QuerySolutions.
- The QuerySolutions are used to create a set of ResourceChangeEvents (one event for each unique subject URI).
- ResourceChangeListeners are notified when a set of change notifications are about to being,
on each event, and on change stream end.
- Author:
- tbashor
|
Constructor Summary |
protected |
AbstractStreamHarvester(org.eaglei.model.EIOntModel eiOntModel,
org.eaglei.model.EIEntity institution)
Creates a new RepositoryHarvester. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eaglei.search.harvest.DataHarvester |
harvest |
formatWithTZ
protected static final java.text.DateFormat formatWithTZ
eiOntModel
protected final org.eaglei.model.EIOntModel eiOntModel
institution
protected final org.eaglei.model.EIEntity institution
isInitialized
protected boolean isInitialized
AbstractStreamHarvester
protected AbstractStreamHarvester(org.eaglei.model.EIOntModel eiOntModel,
org.eaglei.model.EIEntity institution)
- Creates a new RepositoryHarvester.
isInitialPollComplete
public boolean isInitialPollComplete()
- Specified by:
isInitialPollComplete in interface org.eaglei.search.harvest.PollingDataHarvester
startPolling
public void startPolling()
- Specified by:
startPolling in interface org.eaglei.search.harvest.PollingDataHarvester
isInitialized
public boolean isInitialized()
setInitialized
public void setInitialized(boolean isInitialized)
getHarvestInfo
public abstract java.lang.String getHarvestInfo()
addChangeListener
public void addChangeListener(org.eaglei.search.harvest.ResourceChangeListener listener)
- Specified by:
addChangeListener in interface org.eaglei.search.harvest.DataHarvester
notifyChangeStreamStart
protected void notifyChangeStreamStart()
notifyChangeEvent
protected void notifyChangeEvent(org.eaglei.search.harvest.ResourceChangeEvent event)
notifyChangeStreamEnd
protected void notifyChangeStreamEnd(java.util.Date lastModifiedDate)
generateResourceChangeEvents
protected int generateResourceChangeEvents(java.io.InputStream is)
Copyright © 2009-2011 Eagle-I. All Rights Reserved.