Class HopDeleteDeps
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.crawler.jobs.HopDeleteDeps
-
public class HopDeleteDeps extends BaseTable
This class manages the table that keeps track of link deletion dependencies for cached hopcounts.
hopdeletedepsField Type Description jobid BIGINT Reference:jobs.id ownerid BIGINT Reference:hopcount.id linktype VARCHAR(255) parentidhash VARCHAR(40) childidhash VARCHAR(40)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidstatic java.lang.StringchildIDHashFieldstatic java.lang.StringjobIDFieldstatic java.lang.StringlinkTypeFieldstatic java.lang.StringownerIDFieldstatic java.lang.StringparentIDHashField-
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
-
-
Constructor Summary
Constructors Constructor Description HopDeleteDeps(IDBInterface database)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyzeTables()Analyze job tables that need analysis.voiddeinstall()Uninstall.voiddeleteDependency(java.lang.Long ownerID, DeleteDependency dd)Delete a dependencyvoiddeleteJob(java.lang.Long jobID)Delete a job.voiddeleteOwnerRows(java.lang.Long[] ownerIDs)Delete rows related to specified owners.DeleteDependency[]getDeleteDependencies(java.lang.Long ownerID)Get the delete dependencies for an owner.voidinstall(java.lang.String jobsTable, java.lang.String jobsColumn, java.lang.String hopCountTable, java.lang.String idColumn)Install or upgrade.voidremoveMarkedRows(java.lang.String parentTable, java.lang.String parentIDHashField, java.lang.String query, java.util.ArrayList queryList)Remove rows that correspond to specific hopcount records.voidwriteDependency(java.lang.Long ownerID, java.lang.Long jobID, DeleteDependency dd)Write a delete dependency.-
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
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
jobIDField
public static final java.lang.String jobIDField
- See Also:
- Constant Field Values
-
ownerIDField
public static final java.lang.String ownerIDField
- See Also:
- Constant Field Values
-
linkTypeField
public static final java.lang.String linkTypeField
- See Also:
- Constant Field Values
-
parentIDHashField
public static final java.lang.String parentIDHashField
- See Also:
- Constant Field Values
-
childIDHashField
public static final java.lang.String childIDHashField
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HopDeleteDeps
public HopDeleteDeps(IDBInterface database) throws ManifoldCFException
Constructor.- Parameters:
database- is the database handle.- Throws:
ManifoldCFException
-
-
Method Detail
-
install
public void install(java.lang.String jobsTable, java.lang.String jobsColumn, java.lang.String hopCountTable, java.lang.String idColumn) throws ManifoldCFExceptionInstall or upgrade.- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFExceptionUninstall.- Throws:
ManifoldCFException
-
analyzeTables
public void analyzeTables() throws ManifoldCFExceptionAnalyze job tables that need analysis.- Throws:
ManifoldCFException
-
deleteJob
public void deleteJob(java.lang.Long jobID) throws ManifoldCFExceptionDelete a job.- Throws:
ManifoldCFException
-
removeMarkedRows
public void removeMarkedRows(java.lang.String parentTable, java.lang.String parentIDHashField, java.lang.String query, java.util.ArrayList queryList) throws ManifoldCFExceptionRemove rows that correspond to specific hopcount records.- Throws:
ManifoldCFException
-
deleteOwnerRows
public void deleteOwnerRows(java.lang.Long[] ownerIDs) throws ManifoldCFExceptionDelete rows related to specified owners. The list of specified owners does not exceed the maximum database in-clause size.- Throws:
ManifoldCFException
-
getDeleteDependencies
public DeleteDependency[] getDeleteDependencies(java.lang.Long ownerID) throws ManifoldCFException
Get the delete dependencies for an owner.- Returns:
- the links
- Throws:
ManifoldCFException
-
deleteDependency
public void deleteDependency(java.lang.Long ownerID, DeleteDependency dd) throws ManifoldCFExceptionDelete a dependency- Throws:
ManifoldCFException
-
writeDependency
public void writeDependency(java.lang.Long ownerID, java.lang.Long jobID, DeleteDependency dd) throws ManifoldCFExceptionWrite a delete dependency.- Throws:
ManifoldCFException
-
-