Package org.apache.hadoop.hbase.io.hfile
Class ReaderContextBuilder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.ReaderContextBuilder
A builder that helps in building up the ReaderContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.fs.Path
private long
private FSDataInputStreamWrapper
private HFileSystem
private boolean
private ReaderContext.ReaderType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ReaderContextBuilder
newBuilder
(ReaderContext readerContext) private void
withFilePath
(org.apache.hadoop.fs.Path filePath) withFileSize
(long fileSize) withFileSystem
(org.apache.hadoop.fs.FileSystem fs) withFileSystemAndPath
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path filePath) withPrimaryReplicaReader
(boolean primaryReplicaReader)
-
Field Details
-
filePath
-
fsdis
-
fileSize
-
hfs
-
-
type
-
-
Constructor Details
-
ReaderContextBuilder
public ReaderContextBuilder() -
ReaderContextBuilder
-
-
Method Details
-
newBuilder
-
withFilePath
-
withFileSize
-
withInputStreamWrapper
-
withFileSystem
-
withFileSystem
-
withPrimaryReplicaReader
-
withReaderType
-
withFileSystemAndPath
public ReaderContextBuilder withFileSystemAndPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path filePath) throws IOException - Throws:
IOException
-
build
-
validateFields
- Throws:
IllegalArgumentException
-