Package org.apache.flink.api.common.io
Class FileInputFormat.InputSplitOpenThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.flink.api.common.io.FileInputFormat.InputSplitOpenThread
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- FileInputFormat<OT>
public static class FileInputFormat.InputSplitOpenThread extends Thread
Obtains a DataInputStream in an thread that is not interrupted. This is a necessary hack around the problem that the HDFS client is very sensitive to InterruptedExceptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description InputSplitOpenThread(FileInputSplit split, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
FSDataInputStream
waitForCompletion()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
InputSplitOpenThread
public InputSplitOpenThread(FileInputSplit split, long timeout)
-
-