All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.hana.datalake.files.utils.AbortableResultImpl Maven / Gradle / Ivy

Go to download

An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.

There is a newer version: 3.0.27
Show newest version
// © 2023 SAP SE or an SAP affiliate company. All rights reserved.
package com.sap.hana.datalake.files.utils;

import com.sap.hana.datalake.files.classification.InterfaceAudience;
import org.apache.hadoop.fs.Abortable;

import java.io.IOException;

@InterfaceAudience.Private
public class AbortableResultImpl implements Abortable.AbortableResult {

  private final boolean alreadyClosed;
  private final IOException cleanupException;

  public AbortableResultImpl(final boolean alreadyClosed, final IOException cleanupException) {
    this.alreadyClosed = alreadyClosed;
    this.cleanupException = cleanupException;
  }

  @Override
  public boolean alreadyClosed() {
    return this.alreadyClosed;
  }

  @Override
  public IOException anyCleanupException() {
    return this.cleanupException;
  }

}

// © 2023 SAP SE or an SAP affiliate company. All rights reserved.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy