Spring for Apache Hadoop

org.springframework.data.hadoop.store.support
Class SequenceFileWriterHolder<T extends java.io.Closeable>

java.lang.Object
  extended by org.springframework.data.hadoop.store.support.SequenceFileWriterHolder<T>
Type Parameters:
T - a type of a writer
All Implemented Interfaces:
java.io.Closeable

public class SequenceFileWriterHolder<T extends java.io.Closeable>
extends java.lang.Object
implements java.io.Closeable

Holder object for SequenceFile writer.

Author:
Janne Valkealahti

Constructor Summary
SequenceFileWriterHolder()
          Instantiates a new sequence file writer holder.
SequenceFileWriterHolder(T writer)
          Instantiates a new sequence file writer holder.
SequenceFileWriterHolder(T writer, org.apache.hadoop.fs.Path path)
          Instantiates a new sequence file writer holder.
 
Method Summary
 void close()
           
 org.apache.hadoop.fs.Path getPath()
          Gets the path.
 T getWriter()
          Gets the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceFileWriterHolder

public SequenceFileWriterHolder()
Instantiates a new sequence file writer holder.


SequenceFileWriterHolder

public SequenceFileWriterHolder(T writer)
Instantiates a new sequence file writer holder.

Parameters:
writer - the writer

SequenceFileWriterHolder

public SequenceFileWriterHolder(T writer,
                                org.apache.hadoop.fs.Path path)
Instantiates a new sequence file writer holder.

Parameters:
writer - the writer
path - the path
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException

getWriter

public T getWriter()
Gets the writer.

Returns:
the writer

getPath

public org.apache.hadoop.fs.Path getPath()
Gets the path.

Returns:
the path

Spring for Apache Hadoop