Class DocumentChunkManager


  • public class DocumentChunkManager
    extends org.apache.manifoldcf.core.database.BaseTable
    • Field Summary

      • Fields inherited from class org.apache.manifoldcf.core.database.BaseTable

        _rcsid, dbInterface, tableName
    • 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
      void deinstall()
      Uninstall the manager.
      void deleteChunk​(DocumentRecord[] records)
      Delete the chunk of documents (presumably because we processed them successfully)
      boolean equalOrMoreThan​(java.lang.String host, java.lang.String path, int maximumNumber)
      Determine if there are N documents or more.
      void install()
      Install the manager
      DocumentRecord[] readChunk​(java.lang.String host, java.lang.String path, int maximumNumber)
      Read a chunk of documents.
      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)
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentChunkManager

        public DocumentChunkManager​(org.apache.manifoldcf.core.interfaces.IDBInterface database)
    • Method Detail

      • install

        public void install()
                     throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Install the manager
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • deinstall

        public void deinstall()
                       throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Uninstall 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.IOException
        Record document information for later trasmission to Amazon.
        Parameters:
        uid - documentuid
        sdfData - document SDF data.
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        java.io.IOException
      • equalOrMoreThan

        public boolean equalOrMoreThan​(java.lang.String host,
                                       java.lang.String path,
                                       int maximumNumber)
                                throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Determine 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