com.sap.hana.datalake.files.utils.AbortableResultImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sap-hdlfs Show documentation
Show all versions of sap-hdlfs Show documentation
An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.
// © 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