MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Class StreamLocator

java.lang.Object
  extended by 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
StreamLocator()
           
StreamLocator(org.apache.hadoop.fs.Path path, CompressionCodec codec)
           
 
Method Summary
 CompressionCodec getCodec()
           
 org.apache.hadoop.fs.Path getPath()
           
 void readFields(DataInput in)
           
 void setCodec(CompressionCodec codec)
           
 void setPath(org.apache.hadoop.fs.Path path)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
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

MarkLogic Connector for Hadoop 1.1-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com