public final class SequenceFileUtil extends Object
SequenceFile.| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.io.SequenceFile.Reader |
openReader(InputStream in,
org.apache.hadoop.fs.FileStatus status,
org.apache.hadoop.conf.Configuration conf)
Creates a new reader.
|
static org.apache.hadoop.io.SequenceFile.Reader |
openReader(InputStream in,
long length,
org.apache.hadoop.conf.Configuration conf)
Creates a new reader.
|
static org.apache.hadoop.io.SequenceFile.Writer |
openWriter(OutputStream out,
org.apache.hadoop.conf.Configuration conf,
Class<?> keyClass,
Class<?> valueClass,
org.apache.hadoop.io.compress.CompressionCodec codec)
Creates a new writer.
|
public static org.apache.hadoop.io.SequenceFile.Reader openReader(InputStream in, org.apache.hadoop.fs.FileStatus status, org.apache.hadoop.conf.Configuration conf) throws IOException
in - the sourcestatus - target file statusconf - current configurationIOException - if failed to open the sequence fileIllegalArgumentException - if some parameters were nullpublic static org.apache.hadoop.io.SequenceFile.Reader openReader(InputStream in, long length, org.apache.hadoop.conf.Configuration conf) throws IOException
in - the sourcelength - the stream lengthconf - current configurationIOException - if failed to open the sequence fileIllegalArgumentException - if some parameters were nullpublic static org.apache.hadoop.io.SequenceFile.Writer openWriter(OutputStream out, org.apache.hadoop.conf.Configuration conf, Class<?> keyClass, Class<?> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec) throws IOException
out - the drainconf - current configurationkeyClass - the key typevalueClass - the value typecodec - the compression codec to block compression, or null to uncompressedIOException - if failed to create a sequence fileIllegalArgumentException - if some parameters were nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.