org.springframework.data.hadoop.store.support
Class SequenceFileWriterHolder<T extends 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:
Closeable

public class SequenceFileWriterHolder<T extends Closeable>
extends Object
implements 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, Path path)
          Instantiates a new sequence file writer holder.
 
Method Summary
 void close()
           
 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,
                                Path path)
Instantiates a new sequence file writer holder.

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

close

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

getWriter

public T getWriter()
Gets the writer.

Returns:
the writer

getPath

public Path getPath()
Gets the path.

Returns:
the path