List of usage examples for org.apache.hadoop.fs PositionedReadable interface-usage
From source file org.apache.parquet.hadoop.util.MockHadoopInputStream.java
class MockHadoopInputStream extends ByteArrayInputStream implements Seekable, PositionedReadable { static final byte[] TEST_ARRAY = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; private int[] lengths; private int current = 0;
From source file org.apache.parquet.hadoop.util.MockInputStream.java
class MockInputStream extends ByteArrayInputStream implements Seekable, PositionedReadable { static final byte[] TEST_ARRAY = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; private int[] lengths; private int current = 0;
From source file org.commoncrawl.util.FSByteBufferInputStream.java
/**
* ByteBuffer based input stream that also implements Seekable and Positionable,
* thus allowing it to emulate FSDataInputStream
*
* @author rana
*
From source file org.commoncrawl.util.shared.BoundedRangeFileInputStream.java
/**
* BoundedRangeFIleInputStream abstracts a contiguous region of a Hadoop
* FSDataInputStream as a regular input stream. One can create multiple
* BoundedRangeFileInputStream on top of the same FSDataInputStream and they
* would not interfere with each other.
* Copied from hadoop-335 tfile.
From source file org.gridgain.grid.kernal.ggfs.hadoop.GridGgfsHadoopInputStream.java
/** * GGFS input stream wrapper for hadoop interfaces. */ @SuppressWarnings("FieldAccessedSynchronizedAndUnsynchronized") public final class GridGgfsHadoopInputStream extends InputStream implements Seekable, PositionedReadable, GridGgfsHadoopStreamEventListener {
From source file org.gridgain.grid.kernal.ggfs.hadoop.GridGgfsHadoopProxyInputStream.java
/** * Secondary Hadoop file system input stream wrapper. */ public class GridGgfsHadoopProxyInputStream extends InputStream implements Seekable, PositionedReadable { /** Actual input stream to the secondary file system. */ private final FSDataInputStream is;
From source file org.lafs.hdfs.LAFSInputStream.java
public class LAFSInputStream extends InputStream implements Seekable, PositionedReadable { private long pos; private InputStream stream; private URL url; private boolean closed = true;
From source file stargate.client.hdfs.FSChunkInputStream.java
/** * * @author iychoi */ public class FSChunkInputStream extends HTTPChunkInputStream implements Seekable, PositionedReadable {
From source file tachyon.hadoop.HdfsFileInputStream.java
public class HdfsFileInputStream extends InputStream implements Seekable, PositionedReadable { private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE); private long mCurrentPosition; private TachyonFS mTFS; private long mFileId;