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.
StreamLocator
public StreamLocator()
StreamLocator
public StreamLocator(org.apache.hadoop.fs.Path path,
CompressionCodec codec)
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:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com