public List < HivePartitionDataset > findDatasets ( ) throws IOException { Preconditions . checkArgument ( this . state . contains ( ComplianceConfigurationKeys . RESTORE_DATASET ) , "Missing required property " + ComplianceConfigurationKeys . RESTORE_DATASET ) ; HivePartitionDataset hivePartitionDataset = HivePartitionFinder . findDataset ( this . state . getProp ( ComplianceConfigurationKeys . RESTORE_DATASET ) , this . state ) ; Preconditions . checkNotNull ( hivePartitionDataset , "No dataset to restore" ) ; return Collections . singletonList ( hivePartitionDataset ) ; }
Will return a Singleton list of HivePartitionDataset to be restored .