com.continuent.tungsten.replicator.consistency
Class ConsistencyCheckMD5
java.lang.Object
com.continuent.tungsten.replicator.consistency.ConsistencyCheckAbstract
com.continuent.tungsten.replicator.consistency.ConsistencyCheckMD5
- All Implemented Interfaces:
- ConsistencyCheck, java.io.Serializable
public class ConsistencyCheckMD5
- extends ConsistencyCheckAbstract
This class defines a ConsistencyCheckMD5
- Version:
- 1.0
- Author:
- Alex Yurchenko
- See Also:
- Serialized Form
|
Constructor Summary |
ConsistencyCheckMD5(int id,
Table table,
boolean checkColumnNames,
boolean checkColumnTypes)
Creates a new ConsistencyCheckMD5 object |
ConsistencyCheckMD5(int id,
Table table,
int rowFrom,
int rowLimit,
boolean checkColumnNames,
boolean checkColumnTypes)
Creates a new ConsistencyCheckMD5 object |
ConsistencyCheckMD5(int id,
Table table,
int rowFrom,
int rowLimit,
boolean checkColumnNames,
boolean checkColumnTypes,
boolean usePKForLimit)
Creates a new ConsistencyCheckMD5 object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConsistencyCheckMD5
public ConsistencyCheckMD5(int id,
Table table,
int rowFrom,
int rowLimit,
boolean checkColumnNames,
boolean checkColumnTypes)
- Creates a new
ConsistencyCheckMD5 object
ConsistencyCheckMD5
public ConsistencyCheckMD5(int id,
Table table,
int rowFrom,
int rowLimit,
boolean checkColumnNames,
boolean checkColumnTypes,
boolean usePKForLimit)
- Creates a new
ConsistencyCheckMD5 object
ConsistencyCheckMD5
public ConsistencyCheckMD5(int id,
Table table,
boolean checkColumnNames,
boolean checkColumnTypes)
- Creates a new
ConsistencyCheckMD5 object
getRowOffset
public int getRowOffset()
-
- Specified by:
getRowOffset in interface ConsistencyCheck- Overrides:
getRowOffset in class ConsistencyCheckAbstract
- Returns:
- offset of the row the check starts with. 1st row has offset 0.
Rows counted as sorted by primary key or by all columns if
there's no primary key.
- See Also:
ConsistencyCheckAbstract.getRowOffset()
getRowLimit
public int getRowLimit()
-
- Specified by:
getRowLimit in interface ConsistencyCheck- Overrides:
getRowLimit in class ConsistencyCheckAbstract
- Returns:
- how many rows to check
- See Also:
ConsistencyCheckAbstract.getRowLimit()
performConsistencyCheck
public java.sql.ResultSet performConsistencyCheck(Database conn)
throws ConsistencyException
-
- Specified by:
performConsistencyCheck in interface ConsistencyCheck- Specified by:
performConsistencyCheck in class ConsistencyCheckAbstract
- Returns:
- ResultSet should contain at least two values: int 'this_cnt' and
char[] 'this_crc'.
- Throws:
ConsistencyException- See Also:
ConsistencyCheckAbstract.performConsistencyCheck(com.continuent.tungsten.replicator.database.Database)