@InterfaceAudience.Private public class ReaderContextBuilder extends Object
| Constructor and Description |
|---|
ReaderContextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ReaderContext |
build() |
static ReaderContextBuilder |
newBuilder(ReaderContext readerContext) |
ReaderContextBuilder |
withFilePath(org.apache.hadoop.fs.Path filePath) |
ReaderContextBuilder |
withFileSize(long fileSize) |
ReaderContextBuilder |
withFileSystem(org.apache.hadoop.fs.FileSystem fs) |
ReaderContextBuilder |
withFileSystem(HFileSystem hfs) |
ReaderContextBuilder |
withFileSystemAndPath(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path filePath) |
ReaderContextBuilder |
withInputStreamWrapper(FSDataInputStreamWrapper fsdis) |
ReaderContextBuilder |
withPrimaryReplicaReader(boolean primaryReplicaReader) |
ReaderContextBuilder |
withReaderType(ReaderContext.ReaderType type) |
public static ReaderContextBuilder newBuilder(ReaderContext readerContext)
public ReaderContextBuilder withFilePath(org.apache.hadoop.fs.Path filePath)
public ReaderContextBuilder withFileSize(long fileSize)
public ReaderContextBuilder withInputStreamWrapper(FSDataInputStreamWrapper fsdis)
public ReaderContextBuilder withFileSystem(HFileSystem hfs)
public ReaderContextBuilder withFileSystem(org.apache.hadoop.fs.FileSystem fs)
public ReaderContextBuilder withPrimaryReplicaReader(boolean primaryReplicaReader)
public ReaderContextBuilder withReaderType(ReaderContext.ReaderType type)
public ReaderContextBuilder withFileSystemAndPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path filePath) throws IOException
IOExceptionpublic ReaderContext build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.