org.apache.hadoop.hdfs.server.datanode.fsdataset
Class ReplicaOutputStreams
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaOutputStreams
- All Implemented Interfaces:
- Closeable
public class ReplicaOutputStreams
- extends Object
- implements Closeable
Contains the output streams for the data and checksum of a replica.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicaOutputStreams
public ReplicaOutputStreams(OutputStream dataOut,
OutputStream checksumOut,
org.apache.hadoop.util.DataChecksum checksum)
- Create an object with a data output stream, a checksum output stream
and a checksum.
getDataOut
public OutputStream getDataOut()
- Returns:
- the data output stream.
getChecksumOut
public OutputStream getChecksumOut()
- Returns:
- the checksum output stream.
getChecksum
public org.apache.hadoop.util.DataChecksum getChecksum()
- Returns:
- the checksum.
close
public void close()
- Specified by:
close in interface Closeable
Copyright © 2013 Apache Software Foundation. All Rights Reserved.