Package com.illumon.iris.db.v2
Class TableUpdateValidator
java.lang.Object
com.illumon.iris.db.v2.TableUpdateValidator
- All Implemented Interfaces:
QueryTable.Operation
public class TableUpdateValidator extends Object implements QueryTable.Operation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.QueryTable.Operation
QueryTable.Operation.Result
-
Method Summary
Modifier and Type Method Description void
deepValidation()
void
dontValidateColumns(String[] columnNames)
String
getDescription()
String
getLogPrefix()
QueryTable
getResultTable()
QueryTable.Operation.Result
initialize(boolean usePrev, long beforeClock)
Initialize this operation.static TableUpdateValidator
make(QueryTable tableToValidate)
static TableUpdateValidator
make(String description, QueryTable tableToValidate)
void
validate()
-
Method Details
-
make
-
make
-
getDescription
- Specified by:
getDescription
in interfaceQueryTable.Operation
- Returns:
- the description of this operation
-
getLogPrefix
- Specified by:
getLogPrefix
in interfaceQueryTable.Operation
- Returns:
- the log prefix of this operation
-
initialize
Description copied from interface:QueryTable.Operation
Initialize this operation.- Specified by:
initialize
in interfaceQueryTable.Operation
- Parameters:
usePrev
- data from the previous cycle should be used (otherwise use this cycle)beforeClock
- the clock value that we captured before the function began; the function can use this value to bail out early if it notices something has gone wrong.- Returns:
- the result table / listener if successful, null if it should be retried.
-
getResultTable
-
validate
public void validate() -
deepValidation
public void deepValidation() -
dontValidateColumns
-