@Private
@Unstable
@Deprecated
public final class FutureIOSupport
extends java.lang.Object
FutureIO.
The methods here are retained but all marked as deprecated.
This is to ensure that any external
filesystem implementations can still use these methods
without linkage problems surfacing.| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
awaitFuture(java.util.concurrent.Future<T> future) |
Deprecated.
|
static <T> T |
awaitFuture(java.util.concurrent.Future<T> future,
long timeout,
java.util.concurrent.TimeUnit unit) |
Deprecated.
|
static <T> java.util.concurrent.CompletableFuture<T> |
eval(CallableRaisingIOE<T> callable) |
Deprecated.
Evaluate a CallableRaisingIOE in the current thread,
converting IOEs to RTEs and propagating.
|
static void |
propagateOptions(FSBuilder<?,?> builder,
Configuration conf,
java.lang.String prefix,
boolean mandatory) |
Deprecated.
|
static <T,U extends FSBuilder<T,U>> |
propagateOptions(FSBuilder<T,U> builder,
Configuration conf,
java.lang.String optionalPrefix,
java.lang.String mandatoryPrefix) |
Deprecated.
|
static <T> T |
raiseInnerCause(java.util.concurrent.CompletionException e) |
Deprecated.
|
static <T> T |
raiseInnerCause(java.util.concurrent.ExecutionException e) |
Deprecated.
|
@Deprecated
public static <T> T awaitFuture(java.util.concurrent.Future<T> future)
throws java.io.InterruptedIOException,
java.io.IOException,
java.lang.RuntimeException
FutureIO.awaitFuture(Future, long, TimeUnit).T - type of the result.future - future to evaluatejava.io.InterruptedIOException - future was interruptedjava.io.IOException - if something went wrongjava.lang.RuntimeException - any nested RTE thrown@Deprecated
public static <T> T awaitFuture(java.util.concurrent.Future<T> future,
long timeout,
java.util.concurrent.TimeUnit unit)
throws java.io.InterruptedIOException,
java.io.IOException,
java.lang.RuntimeException,
java.util.concurrent.TimeoutException
FutureIO.awaitFuture(Future, long, TimeUnit).T - type of the result.future - future to evaluatetimeout - timeout.unit - unit.java.io.InterruptedIOException - future was interruptedjava.io.IOException - if something went wrongjava.lang.RuntimeException - any nested RTE thrownjava.util.concurrent.TimeoutException - the future timed out.@Deprecated
public static <T> T raiseInnerCause(java.util.concurrent.ExecutionException e)
throws java.io.IOException
FutureIO.raiseInnerCause(ExecutionException).T - type of return value.e - exception.java.io.IOException - either the inner IOException, or a wrapper around
any non-Runtime-Exceptionjava.lang.RuntimeException - if that is the inner cause.@Deprecated
public static <T> T raiseInnerCause(java.util.concurrent.CompletionException e)
throws java.io.IOException
FutureIO.raiseInnerCause(CompletionException).T - type of return value.e - exception.java.io.IOException - either the inner IOException, or a wrapper around
any non-Runtime-Exceptionjava.lang.RuntimeException - if that is the inner cause.@Deprecated public static <T,U extends FSBuilder<T,U>> FSBuilder<T,U> propagateOptions(FSBuilder<T,U> builder, Configuration conf, java.lang.String optionalPrefix, java.lang.String mandatoryPrefix)
FutureIO.propagateOptions(FSBuilder, Configuration, String, String)T - type of resultU - type of builderbuilder - builder to modifyconf - configuration to readoptionalPrefix - prefix for optional settingsmandatoryPrefix - prefix for mandatory settings@Deprecated public static void propagateOptions(FSBuilder<?,?> builder, Configuration conf, java.lang.String prefix, boolean mandatory)
FutureIO.propagateOptions(FSBuilder, Configuration, String, boolean)builder - builder to modifyconf - configuration to readprefix - prefix to scan/stripmandatory - are the options to be mandatory or optional?public static <T> java.util.concurrent.CompletableFuture<T> eval(CallableRaisingIOE<T> callable)
FutureIO.eval(CallableRaisingIOE).T - Return type.callable - callable to invokejava.lang.UnsupportedOperationException - fail fast if unsupportedjava.lang.IllegalArgumentException - invalid argumentCopyright © 2008–2025 Apache Software Foundation. All rights reserved.