com.continuent.tungsten.replicator.consistency
Class ConsistencyCheckMD5

java.lang.Object
  extended by com.continuent.tungsten.replicator.consistency.ConsistencyCheckAbstract
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.continuent.tungsten.replicator.consistency.ConsistencyCheck
ConsistencyCheck.Method
 
Field Summary
 
Fields inherited from class com.continuent.tungsten.replicator.consistency.ConsistencyCheckAbstract
id, method, table
 
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
 
Method Summary
 int getRowLimit()
          
 int getRowOffset()
          
 java.sql.ResultSet performConsistencyCheck(Database conn)
          
 
Methods inherited from class com.continuent.tungsten.replicator.consistency.ConsistencyCheckAbstract
deserialize, getCheckId, getMethod, getSchemaName, getTableName, serialize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

Method Detail

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)