org.apache.hadoop.hdfs.server.datanode.fsdataset
Class ReplicaInputStreams

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaInputStreams
All Implemented Interfaces:
Closeable

public class ReplicaInputStreams
extends Object
implements Closeable

Contains the input streams for the data and checksum of a replica.


Constructor Summary
ReplicaInputStreams(FileDescriptor dataFd, FileDescriptor checksumFd)
          Create an object with a data input stream and a checksum input stream.
 
Method Summary
 void close()
           
 InputStream getChecksumIn()
           
 InputStream getDataIn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaInputStreams

public ReplicaInputStreams(FileDescriptor dataFd,
                           FileDescriptor checksumFd)
Create an object with a data input stream and a checksum input stream.

Method Detail

getDataIn

public InputStream getDataIn()
Returns:
the data input stream.

getChecksumIn

public InputStream getChecksumIn()
Returns:
the checksum input stream.

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2014 Apache Software Foundation. All Rights Reserved.