public abstract class GridGgfsInputStreamJobAdapter extends GridGgfsJobAdapter
GridGgfsJob adapter. It limits data returned from GridGgfsInputStream to bytes within
the GridGgfsFileRange assigned to the job.
Under the covers it simply puts job's GridGgfsInputStream position to range start and wraps in into
GridFixedSizeInputStream limited to range length.
| Constructor and Description |
|---|
GridGgfsInputStreamJobAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(GridGgfs ggfs,
GridGgfsFileRange range,
GridGgfsInputStream in)
Executes this job.
|
abstract Object |
execute(GridGgfs ggfs,
GridGgfsRangeInputStream in)
Executes this job.
|
cancelpublic final Object execute(GridGgfs ggfs, GridGgfsFileRange range, GridGgfsInputStream in) throws GridException, IOException
ggfs - GGFS instance.range - File range aligned to record boundaries.in - Input stream for split file. This input stream is not aligned to range and points to file start
by default.GridException - If execution failed.IOException - If file system operation resulted in IO exception.public abstract Object execute(GridGgfs ggfs, GridGgfsRangeInputStream in) throws GridException, IOException
ggfs - GGFS instance.in - Input stream.GridException - If execution failed.IOException - If IO exception encountered while working with stream.Copyright © 2014. All rights reserved.