public static interface AbstractFSWALProvider.Initializer
Modifier and Type | Method and Description |
---|---|
void |
init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration c,
long startPosition)
A method to initialize a WAL reader.
|
void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration c, long startPosition) throws IOException
startPosition
- the start position you want to read from, -1 means start reading from
the first WAL entry. Notice that, the first entry is not started at
position as we have several headers, so typically you should not pass 0
here.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.