use of org.finra.herd.model.api.xml.PartitionValueRange in project herd by FINRAOS.
the class ExpectedPartitionValueRestController method getExpectedPartitionValues.
/**
* Retrieves a range of existing expected partition values.
*
* @param partitionKeyGroupName the partition key group name
* @param startExpectedPartitionValue the start expected partition value for the expected partition value range
* @param endExpectedPartitionValue the end expected partition value for the expected partition value range
*
* @return the expected partition values
*/
@RequestMapping(value = EXPECTED_PARTITION_VALUES_URI_PREFIX + "/partitionKeyGroups/{partitionKeyGroupName}", method = RequestMethod.GET)
@Secured(SecurityFunctions.FN_EXPECTED_PARTITION_VALUES_GET)
public ExpectedPartitionValuesInformation getExpectedPartitionValues(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName, @RequestParam(value = "startExpectedPartitionValue", required = false) String startExpectedPartitionValue, @RequestParam(value = "endExpectedPartitionValue", required = false) String endExpectedPartitionValue) {
PartitionKeyGroupKey partitionKeyGroupKey = new PartitionKeyGroupKey();
partitionKeyGroupKey.setPartitionKeyGroupName(partitionKeyGroupName);
PartitionValueRange partitionValueRange = new PartitionValueRange();
partitionValueRange.setStartPartitionValue(startExpectedPartitionValue);
partitionValueRange.setEndPartitionValue(endExpectedPartitionValue);
return expectedPartitionValueService.getExpectedPartitionValues(partitionKeyGroupKey, partitionValueRange);
}
Aggregations