Package com.marklogic.mapreduce
Class StreamLocator
- java.lang.Object
-
- com.marklogic.mapreduce.StreamLocator
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class StreamLocator extends Object implements org.apache.hadoop.io.Writable
Writable used to describe how to create and read from an input stream.
-
-
Constructor Summary
Constructors Constructor Description StreamLocator()StreamLocator(org.apache.hadoop.fs.Path path, CompressionCodec codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionCodecgetCodec()org.apache.hadoop.fs.PathgetPath()voidreadFields(DataInput in)voidsetCodec(CompressionCodec codec)voidsetPath(org.apache.hadoop.fs.Path path)StringtoString()voidwrite(DataOutput out)
-
-
-
Constructor Detail
-
StreamLocator
public StreamLocator()
-
StreamLocator
public StreamLocator(org.apache.hadoop.fs.Path path, CompressionCodec codec)
-
-
Method Detail
-
getPath
public org.apache.hadoop.fs.Path getPath()
-
setPath
public void setPath(org.apache.hadoop.fs.Path path)
-
getCodec
public CompressionCodec getCodec()
-
setCodec
public void setCodec(CompressionCodec codec)
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-