|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.reader.DocReader org.dlese.dpc.index.reader.HarvestLogReader
public class HarvestLogReader
A bean for accessing the data stored in a Lucene 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
Field Summary |
---|
Fields inherited from class org.dlese.dpc.index.reader.DocReader |
---|
conf, doc, resultDoc, score |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
String |
getBaseUrl()
Gets the baseUrl attribute of the HarvestLogReader object |
protected static String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
String |
getDeletedRecordSupport()
Gets the level of support for deleted records of the data provider, or null if not available. |
Date |
getEndDate()
Gets the end time as a Date, or null. |
String |
getEndTime()
Gets the endTime attribute of the HarvestLogReader object |
long |
getEndTimeLong()
Gets the end time as a long, or -1 if not available. |
String |
getEntryType()
Gets the entryType attribute of the HarvestLogReader object |
Date |
getFromDate()
Gets the from Date used for this harvest, or null if none was used. |
String |
getFromDatestamp()
Gets the from datestamp of the form yyyy-MM-ddTHH:mm:ssZ used for this harvest, or null if none was used. |
String |
getHarvestDir()
Gets the harvestDir attribute of the HarvestLogReader object |
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. |
String |
getHarvestUid()
The UID of an individual harvest that was performed. |
long |
getHarvestUidLong()
Gets the harvestUidLong attribute of the HarvestLogReader object |
String |
getLogDate()
Gets the logDate attribute of the HarvestLogReader object |
String |
getLogMessage()
Gets the logMessage attribute of the HarvestLogReader object |
String |
getNumHarvestedRecords()
Gets the numHarvestedRecords attribute of the HarvestLogReader object |
int |
getNumHarvestedRecordsInt()
Gets the numHarvestedRecordsInt attribute of the HarvestLogReader object |
String |
getNumResumptionTokens()
Gets the numResumptionTokens attribute of the HarvestLogReader object |
int |
getNumResumptionTokensInt()
Gets the numResumptionTokensInt attribute of the HarvestLogReader object |
String |
getOaiErrorCode()
Gets the OAI error code that was returned by the data provider, for example 'noRecordsMatch', or null if not applicable. |
String |
getReaderType()
Gets a String describing the reader type. |
String |
getRepositoryName()
Gets the repositoryName attribute of the HarvestLogReader object |
String |
getSet()
Gets the set if one was specified, or empty String. |
Date |
getStartDate()
Gets the start time as a Date, or null. |
String |
getStartTime()
Gets the startTime attribute of the HarvestLogReader object |
long |
getStartTimeLong()
Gets the start time as a long, or -1 if not available. |
String |
getSupportedGranularity()
Gets the date granularity supported by the data provider, or null if not available. |
String |
getUid()
The UID of the scheduled harvest. |
long |
getUidLong()
Gets the uidLong attribute of the HarvestLogReader object |
Date |
getUntilDate()
Gets the until Date used for this harvest, or null if none was used. |
String |
getUntilDatestamp()
Gets the until datestamp of the form yyyy-MM-ddTHH:mm:ssZ used for this harvest, or null if none was used. |
String |
getZipFilePath()
Gets the path to the zip file for this harvest, or null if none was saved. |
void |
init()
Init method does nothing. |
Methods inherited from class org.dlese.dpc.index.reader.DocReader |
---|
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HarvestLogReader()
public HarvestLogReader(org.apache.lucene.document.Document doc)
Document
created by a DocWriter
. Sets the
score to 0.
doc
- A Lucene Document
created by a DocWriter
.Method Detail |
---|
public void init()
init
in class DocReader
public String getLogDate()
public Date getStartDate()
public String getStartTime()
public long getStartTimeLong()
public Date getEndDate()
public String getEndTime()
public long getEndTimeLong()
public long getHarvestDurationLong()
public String getHarvestDuration()
public String getRepositoryName()
public String getBaseUrl()
public String getSet()
public String getFromDatestamp()
public Date getFromDate()
public String getUntilDatestamp()
public Date getUntilDate()
public String getUid()
public long getUidLong()
public String getHarvestUid()
public long getHarvestUidLong()
public String getNumHarvestedRecords()
public int getNumHarvestedRecordsInt()
public String getNumResumptionTokens()
public int getNumResumptionTokensInt()
public String getLogMessage()
public String getHarvestDir()
public String getZipFilePath()
public String getDeletedRecordSupport()
public String getSupportedGranularity()
public String getOaiErrorCode()
public String getEntryType()
public String getReaderType()
getReaderType
in class DocReader
protected static final String getDateStamp()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |