public class HoodieHFileUtils extends Object
| Constructor and Description |
|---|
HoodieHFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.io.hfile.HFile.Reader |
createHFileReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dummyPath,
byte[] content)
Creates HFile reader for byte array with default `primaryReplicaReader` as true.
|
static org.apache.hadoop.hbase.io.hfile.HFile.Reader |
createHFileReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration configuration)
Creates HFile reader for a file with default `primaryReplicaReader` as true.
|
public static org.apache.hadoop.hbase.io.hfile.HFile.Reader createHFileReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration configuration)
throws IOException
fs - File system.path - Path to file to read.cacheConfig - Cache configuration.configuration - ConfigurationIOException - Upon error.public static org.apache.hadoop.hbase.io.hfile.HFile.Reader createHFileReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dummyPath,
byte[] content)
throws IOException
fs - File system.dummyPath - Dummy path to file to read.content - Content in byte array.IOException - Upon error.Copyright © 2022 The Apache Software Foundation. All rights reserved.