public class Carrydown extends BaseTable
Field | Type | Description |
---|---|---|
jobid | BIGINT | Reference:jobs.id |
parentidhash | VARCHAR(40) | |
childidhash | VARCHAR(40) | |
dataname | VARCHAR(255) | |
datavaluehash | VARCHAR(40) | |
datavalue | LONGTEXT | |
isnew | CHAR(1) | |
processid | VARCHAR(16) |
Modifier and Type | Class and Description |
---|---|
protected static class |
Carrydown.DuplicateFinder |
protected static class |
Carrydown.ResultDuplicateEliminator
Limit checker which removes duplicate rows, based on datavaluehash
|
protected static class |
Carrydown.ValueRecord |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
childIDHashField |
static java.lang.String |
dataNameField |
static java.lang.String |
dataValueField |
static java.lang.String |
dataValueHashField |
protected static int |
ISNEW_BASE
The standard value for the "isnew" field.
|
protected static int |
ISNEW_EXISTING
This value means that the link existed before, and has been found during this scan.
|
protected static int |
ISNEW_NEW
This value means that the link is brand-new; it did not exist before this pass.
|
protected static java.util.Map |
isNewMap |
static java.lang.String |
jobIDField |
static java.lang.String |
newField |
static java.lang.String |
parentIDHashField |
static java.lang.String |
processIDField |
dbInterface, tableName
Constructor and Description |
---|
Carrydown(IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
analyzeTables()
Analyze job tables that need analysis.
|
void |
deinstall()
Uninstall.
|
void |
deleteOwner(java.lang.Long jobID)
Delete an owning job (and clean up the corresponding carrydown rows).
|
void |
deleteRecords(java.lang.Long jobID,
java.lang.String[] documentIDHashes)
Delete all records that mention a particular set of document identifiers.
|
java.lang.String[] |
getDataValues(java.lang.Long jobID,
java.lang.String documentIdentifierHash,
java.lang.String dataName)
Get unique values given a document identifier, data name, an job identifier
|
CharacterInput[] |
getDataValuesAsFiles(java.lang.Long jobID,
java.lang.String documentIdentifierHash,
java.lang.String dataName)
Get unique values given a document identifier, data name, an job identifier
|
void |
install(java.lang.String jobsTable,
java.lang.String jobsColumn)
Install or upgrade.
|
protected int |
maxClausePerformDeleteRecords(java.lang.Long jobID) |
protected void |
performDeleteRecords(java.lang.Long jobID,
java.util.List<java.lang.String> list) |
protected void |
performExistsCheck(java.util.Set<Carrydown.ValueRecord> presentSet,
java.lang.String query,
java.util.ArrayList list)
Do the exists check, in batch.
|
protected void |
performRestoreRecords(java.lang.String query,
java.lang.Long jobID,
java.util.List<java.lang.String> list) |
protected void |
performRevertRecords(java.lang.String query,
java.lang.Long jobID,
java.util.List<java.lang.String> list) |
boolean |
recordCarrydownData(java.lang.Long jobID,
java.lang.String parentDocumentIDHash,
java.lang.String childDocumentIDHash,
java.lang.String[] documentDataNames,
java.lang.String[][] documentDataValueHashes,
java.lang.Object[][] documentDataValues,
java.lang.String processID)
Add carrydown data for a given parent/child pair.
|
boolean[] |
recordCarrydownDataMultiple(java.lang.Long jobID,
java.lang.String parentDocumentIDHash,
java.lang.String[] childDocumentIDHashes,
java.lang.String[][] dataNames,
java.lang.String[][][] dataValueHashes,
java.lang.Object[][][] dataValues,
java.lang.String processID)
Add carrydown data to the table.
|
void |
restart()
Clean up after all process IDs.
|
void |
restart(java.lang.String processID)
Reset, at startup time.
|
void |
restartCluster()
Reset, at startup time, entire cluster
|
void |
restoreRecords(java.lang.Long jobID,
java.lang.String[] parentDocumentIDHashes)
Return all records belonging to the specified parent documents to the base state,
and delete the old (eliminated) child records.
|
void |
revertRecords(java.lang.Long jobID,
java.lang.String[] parentDocumentIDHashes)
Revert all records belonging to the specified parent documents to their original,
pre-modified, state.
|
static java.lang.String |
statusToString(int status)
Convert link status to string
|
static int |
stringToStatus(java.lang.String status)
Convert string to link status.
|
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
public static final java.lang.String _rcsid
public static final java.lang.String jobIDField
public static final java.lang.String parentIDHashField
public static final java.lang.String childIDHashField
public static final java.lang.String dataNameField
public static final java.lang.String dataValueHashField
public static final java.lang.String dataValueField
public static final java.lang.String newField
public static final java.lang.String processIDField
protected static final int ISNEW_BASE
protected static final int ISNEW_NEW
protected static final int ISNEW_EXISTING
protected static java.util.Map isNewMap
public Carrydown(IDBInterface database) throws ManifoldCFException
database
- is the database handle.ManifoldCFException
public void install(java.lang.String jobsTable, java.lang.String jobsColumn) throws ManifoldCFException
ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public void analyzeTables() throws ManifoldCFException
ManifoldCFException
public void deleteOwner(java.lang.Long jobID) throws ManifoldCFException
ManifoldCFException
public void restart(java.lang.String processID) throws ManifoldCFException
processID
- is the process ID.ManifoldCFException
public void restart() throws ManifoldCFException
ManifoldCFException
public void restartCluster() throws ManifoldCFException
ManifoldCFException
public boolean recordCarrydownData(java.lang.Long jobID, java.lang.String parentDocumentIDHash, java.lang.String childDocumentIDHash, java.lang.String[] documentDataNames, java.lang.String[][] documentDataValueHashes, java.lang.Object[][] documentDataValues, java.lang.String processID) throws ManifoldCFException
ManifoldCFException
public boolean[] recordCarrydownDataMultiple(java.lang.Long jobID, java.lang.String parentDocumentIDHash, java.lang.String[] childDocumentIDHashes, java.lang.String[][] dataNames, java.lang.String[][][] dataValueHashes, java.lang.Object[][][] dataValues, java.lang.String processID) throws ManifoldCFException
ManifoldCFException
protected void performExistsCheck(java.util.Set<Carrydown.ValueRecord> presentSet, java.lang.String query, java.util.ArrayList list) throws ManifoldCFException
ManifoldCFException
public void revertRecords(java.lang.Long jobID, java.lang.String[] parentDocumentIDHashes) throws ManifoldCFException
ManifoldCFException
protected void performRevertRecords(java.lang.String query, java.lang.Long jobID, java.util.List<java.lang.String> list) throws ManifoldCFException
ManifoldCFException
public void restoreRecords(java.lang.Long jobID, java.lang.String[] parentDocumentIDHashes) throws ManifoldCFException
ManifoldCFException
protected void performRestoreRecords(java.lang.String query, java.lang.Long jobID, java.util.List<java.lang.String> list) throws ManifoldCFException
ManifoldCFException
public void deleteRecords(java.lang.Long jobID, java.lang.String[] documentIDHashes) throws ManifoldCFException
ManifoldCFException
protected int maxClausePerformDeleteRecords(java.lang.Long jobID)
protected void performDeleteRecords(java.lang.Long jobID, java.util.List<java.lang.String> list) throws ManifoldCFException
ManifoldCFException
public java.lang.String[] getDataValues(java.lang.Long jobID, java.lang.String documentIdentifierHash, java.lang.String dataName) throws ManifoldCFException
ManifoldCFException
public CharacterInput[] getDataValuesAsFiles(java.lang.Long jobID, java.lang.String documentIdentifierHash, java.lang.String dataName) throws ManifoldCFException
ManifoldCFException
public static int stringToStatus(java.lang.String status)
public static java.lang.String statusToString(int status)