Class StateStoreOperationResult

java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.driver.StateStoreOperationResult

@Private @Unstable public class StateStoreOperationResult extends Object
State store operation result with list of failed records.
  • Constructor Details

    • StateStoreOperationResult

      public StateStoreOperationResult(List<String> failedRecordsKeys, boolean isOperationSuccessful)
      State store operation result constructor with list of failed records keys and boolean to inform whether the overall operation is successful.
      Parameters:
      failedRecordsKeys - The list of failed records keys.
      isOperationSuccessful - True if the operation was successful, False otherwise.
    • StateStoreOperationResult

      public StateStoreOperationResult(String failedRecordKey)
      State store operation result constructor with a single failed record key.
      Parameters:
      failedRecordKey - The failed record key.
  • Method Details

    • getFailedRecordsKeys

      public List<String> getFailedRecordsKeys()
    • isOperationSuccessful

      public boolean isOperationSuccessful()
    • getDefaultSuccessResult

      public static StateStoreOperationResult getDefaultSuccessResult()