@InterfaceAudience.Public @InterfaceStability.Unstable public class FixedBlockResolver extends BlockResolver implements Configurable
Modifier and Type | Field and Description |
---|---|
static String |
BLOCKSIZE |
static long |
BLOCKSIZE_DEFAULT |
static String |
START_BLOCK |
Constructor and Description |
---|
FixedBlockResolver() |
Modifier and Type | Method and Description |
---|---|
protected List<Long> |
blockLengths(FileStatus s) |
Configuration |
getConf()
Return the configuration used by this object.
|
int |
getReplication(FileStatus s) |
long |
lastId() |
long |
nextId() |
long |
preferredBlockSize(FileStatus s) |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
buildBlock, buildBlock, resolve
public static final String BLOCKSIZE
public static final String START_BLOCK
public static final long BLOCKSIZE_DEFAULT
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
protected List<Long> blockLengths(FileStatus s)
blockLengths
in class BlockResolver
s
- the external reference.public long nextId()
nextId
in class BlockResolver
public long lastId()
lastId
in class BlockResolver
public long preferredBlockSize(FileStatus s)
preferredBlockSize
in class BlockResolver
s
- the external reference.public int getReplication(FileStatus s)
getReplication
in class BlockResolver
s
- the external reference.Copyright © 2021 Apache Software Foundation. All rights reserved.