Class DynamoDbDistanceWithMetrics
java.lang.Object
org.evomaster.client.java.controller.internal.db.dynamodb.DynamoDbDistanceWithMetrics
Result of evaluating one DynamoDB predicate against the items of one table.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamoDbDistanceWithMetrics(double distance, int numberOfEvaluatedItems, boolean evaluationFailure) Creates a DynamoDB heuristic result. -
Method Summary
Modifier and TypeMethodDescriptiondoubleintboolean
-
Constructor Details
-
DynamoDbDistanceWithMetrics
public DynamoDbDistanceWithMetrics(double distance, int numberOfEvaluatedItems, boolean evaluationFailure) Creates a DynamoDB heuristic result.- Parameters:
distance- normalized distance to satisfying the predicatenumberOfEvaluatedItems- number of table items consideredevaluationFailure- whether the evaluation failed
-
-
Method Details
-
getDistance
public double getDistance()- Returns:
- normalized distance to satisfying the predicate
-
getNumberOfEvaluatedItems
public int getNumberOfEvaluatedItems()- Returns:
- number of table items considered
-
isEvaluationFailure
public boolean isEvaluationFailure()- Returns:
- whether the evaluation failed
-