@InterfaceAudience.Private public class ReaderContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReaderContext.ReaderType |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.fs.Path |
filePath |
private long |
fileSize |
private FSDataInputStreamWrapper |
fsdis |
private HFileSystem |
hfs |
private boolean |
preadAllBytes |
private boolean |
primaryReplicaReader |
private ReaderContext.ReaderType |
type |
Constructor and Description |
---|
ReaderContext(org.apache.hadoop.fs.Path filePath,
FSDataInputStreamWrapper fsdis,
long fileSize,
HFileSystem hfs,
boolean primaryReplicaReader,
ReaderContext.ReaderType type) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
getFilePath() |
long |
getFileSize() |
HFileSystem |
getFileSystem() |
FSDataInputStreamWrapper |
getInputStreamWrapper() |
ReaderContext.ReaderType |
getReaderType() |
boolean |
isPreadAllBytes() |
boolean |
isPrimaryReplicaReader() |
private final org.apache.hadoop.fs.Path filePath
private final FSDataInputStreamWrapper fsdis
private final long fileSize
private final HFileSystem hfs
private final boolean primaryReplicaReader
private final ReaderContext.ReaderType type
private final boolean preadAllBytes
public ReaderContext(org.apache.hadoop.fs.Path filePath, FSDataInputStreamWrapper fsdis, long fileSize, HFileSystem hfs, boolean primaryReplicaReader, ReaderContext.ReaderType type)
public org.apache.hadoop.fs.Path getFilePath()
public FSDataInputStreamWrapper getInputStreamWrapper()
public long getFileSize()
public HFileSystem getFileSystem()
public boolean isPrimaryReplicaReader()
public ReaderContext.ReaderType getReaderType()
public boolean isPreadAllBytes()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.