Package dev.vortex.spark.io
Class HadoopReadable
java.lang.Object
dev.vortex.io.PooledReadable
dev.vortex.spark.io.HadoopReadable
- All Implemented Interfaces:
dev.vortex.io.NativeReadable,Closeable,AutoCloseable
public final class HadoopReadable
extends dev.vortex.io.PooledReadable
A
NativeReadable that serves Vortex's reads from a Hadoop FileSystem.-
Nested Class Summary
Nested classes/interfaces inherited from class dev.vortex.io.PooledReadable
dev.vortex.io.PooledReadable.PositionalStream, dev.vortex.io.PooledReadable.ScratchBytes -
Method Summary
Modifier and TypeMethodDescriptionstatic HadoopReadableOpens a readable overpath, stating the file for its length.static HadoopReadableOpens a readable overpath.protected dev.vortex.io.PooledReadable.PositionalStreamMethods inherited from class dev.vortex.io.PooledReadable
close, length, name, readFully
-
Method Details
-
open
Opens a readable overpath, stating the file for its length. -
open
public static HadoopReadable open(org.apache.hadoop.conf.Configuration conf, String path, long length) Opens a readable overpath. A non-negativelengthis taken as authoritative — the driver already stats every file when it plans the scan, so executors need not stat them again. -
openStream
- Specified by:
openStreamin classdev.vortex.io.PooledReadable- Throws:
IOException
-