org.apache.hadoop.hdfs.server.datanode.fsdataset
Class ReplicaInputStreams
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicaInputStreams
public ReplicaInputStreams(FileDescriptor dataFd,
FileDescriptor checksumFd)
- Create an object with a data input stream and a checksum input stream.
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.