Class DocumentChunkManager
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.agents.output.amazoncloudsearch.DocumentChunkManager
-
public class DocumentChunkManager extends org.apache.manifoldcf.core.database.BaseTable
-
-
Constructor Summary
Constructors Constructor Description DocumentChunkManager(org.apache.manifoldcf.core.interfaces.IDBInterface database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeinstall()Uninstall the manager.voiddeleteChunk(DocumentRecord[] records)Delete the chunk of documents (presumably because we processed them successfully)booleanequalOrMoreThan(java.lang.String host, java.lang.String path, int maximumNumber)Determine if there are N documents or more.voidinstall()Install the managerDocumentRecord[]readChunk(java.lang.String host, java.lang.String path, int maximumNumber)Read a chunk of documents.voidrecordDocument(java.lang.String uid, java.lang.String host, java.lang.String path, java.lang.String uri, java.lang.String activity, java.lang.Long length, java.io.InputStream sdfData)Record document information for later trasmission to Amazon.-
Methods inherited from class org.apache.manifoldcf.core.database.BaseTable
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
-
-
-
-
Method Detail
-
install
public void install() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionInstall the manager- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
deinstall
public void deinstall() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionUninstall the manager.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
recordDocument
public void recordDocument(java.lang.String uid, java.lang.String host, java.lang.String path, java.lang.String uri, java.lang.String activity, java.lang.Long length, java.io.InputStream sdfData) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionRecord document information for later trasmission to Amazon.- Parameters:
uid- documentuidsdfData- document SDF data.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
equalOrMoreThan
public boolean equalOrMoreThan(java.lang.String host, java.lang.String path, int maximumNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionDetermine if there are N documents or more.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
readChunk
public DocumentRecord[] readChunk(java.lang.String host, java.lang.String path, int maximumNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Read a chunk of documents.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
deleteChunk
public void deleteChunk(DocumentRecord[] records) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Delete the chunk of documents (presumably because we processed them successfully)- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-