public class HarvestLogReader extends DocReader
Document
that logs a
single OAI harvest. The index writer that is responsible for creating this type of Lucene Document
is a HarvestLogWriter
.ResultDoc
,
HarvestLogWriter
Constructor and Description |
---|
HarvestLogReader()
Constructor for the HarvestLogReader object
|
HarvestLogReader(org.apache.lucene.document.Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene
Document created by a DocWriter . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseUrl()
Gets the baseUrl attribute of the HarvestLogReader object
|
protected static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
java.lang.String |
getDeletedRecordSupport()
Gets the level of support for deleted records of the data provider, or null if not available.
|
java.util.Date |
getEndDate()
Gets the end time as a Date, or null.
|
java.lang.String |
getEndTime()
Gets the endTime attribute of the HarvestLogReader object
|
long |
getEndTimeLong()
Gets the end time as a long, or -1 if not available.
|
java.lang.String |
getEntryType()
Gets the entryType attribute of the HarvestLogReader object
|
java.util.Date |
getFromDate()
Gets the from Date used for this harvest, or null if none was used.
|
java.lang.String |
getFromDatestamp()
Gets the from datestamp of the form yyyy-MM-ddTHH:mm:ssZ used for this harvest, or null if none was used.
|
java.lang.String |
getHarvestDir()
Gets the harvestDir attribute of the HarvestLogReader object
|
java.lang.String |
getHarvestDuration()
Gets the harvest duration for display, or null if not available.
|
long |
getHarvestDurationLong()
Gets the harvest duration as a long, or -1 if not avialble.
|
java.lang.String |
getHarvestUid()
The UID of an individual harvest that was performed.
|
long |
getHarvestUidLong()
Gets the harvestUidLong attribute of the HarvestLogReader object
|
java.lang.String |
getLogDate()
Gets the logDate attribute of the HarvestLogReader object
|
java.lang.String |
getLogMessage()
Gets the logMessage attribute of the HarvestLogReader object
|
java.lang.String |
getNumHarvestedRecords()
Gets the numHarvestedRecords attribute of the HarvestLogReader object
|
int |
getNumHarvestedRecordsInt()
Gets the numHarvestedRecordsInt attribute of the HarvestLogReader object
|
java.lang.String |
getNumResumptionTokens()
Gets the numResumptionTokens attribute of the HarvestLogReader object
|
int |
getNumResumptionTokensInt()
Gets the numResumptionTokensInt attribute of the HarvestLogReader object
|
java.lang.String |
getOaiErrorCode()
Gets the OAI error code that was returned by the data provider, for example 'noRecordsMatch', or null if
not applicable.
|
java.lang.String |
getReaderType()
Gets a String describing the reader type.
|
java.lang.String |
getRepositoryName()
Gets the repositoryName attribute of the HarvestLogReader object
|
java.lang.String |
getSet()
Gets the set if one was specified, or empty String.
|
java.util.Date |
getStartDate()
Gets the start time as a Date, or null.
|
java.lang.String |
getStartTime()
Gets the startTime attribute of the HarvestLogReader object
|
long |
getStartTimeLong()
Gets the start time as a long, or -1 if not available.
|
java.lang.String |
getSupportedGranularity()
Gets the date granularity supported by the data provider, or null if not available.
|
java.lang.String |
getUid()
The UID of the scheduled harvest.
|
long |
getUidLong()
Gets the uidLong attribute of the HarvestLogReader object
|
java.util.Date |
getUntilDate()
Gets the until Date used for this harvest, or null if none was used.
|
java.lang.String |
getUntilDatestamp()
Gets the until datestamp of the form yyyy-MM-ddTHH:mm:ssZ used for this harvest, or null if none was
used.
|
java.lang.String |
getZipFilePath()
Gets the path to the zip file for this harvest, or null if none was saved.
|
void |
init()
Init method does nothing.
|
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
public HarvestLogReader()
public java.lang.String getLogDate()
public java.util.Date getStartDate()
public java.lang.String getStartTime()
public long getStartTimeLong()
public java.util.Date getEndDate()
public java.lang.String getEndTime()
public long getEndTimeLong()
public long getHarvestDurationLong()
public java.lang.String getHarvestDuration()
public java.lang.String getRepositoryName()
public java.lang.String getBaseUrl()
public java.lang.String getSet()
public java.lang.String getFromDatestamp()
public java.util.Date getFromDate()
public java.lang.String getUntilDatestamp()
public java.util.Date getUntilDate()
public java.lang.String getUid()
public long getUidLong()
public java.lang.String getHarvestUid()
public long getHarvestUidLong()
public java.lang.String getNumHarvestedRecords()
public int getNumHarvestedRecordsInt()
public java.lang.String getNumResumptionTokens()
public int getNumResumptionTokensInt()
public java.lang.String getLogMessage()
public java.lang.String getHarvestDir()
public java.lang.String getZipFilePath()
public java.lang.String getDeletedRecordSupport()
public java.lang.String getSupportedGranularity()
public java.lang.String getOaiErrorCode()
public java.lang.String getEntryType()
public java.lang.String getReaderType()
getReaderType
in class DocReader
protected static final java.lang.String getDateStamp()