@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class BlockResolver extends Object
| Constructor and Description | 
|---|
| BlockResolver() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract List<Long> | blockLengths(FileStatus status) | 
| protected org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto | buildBlock(long blockId,
          long bytes) | 
| protected org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto | buildBlock(long blockId,
          long bytes,
          long genstamp) | 
| abstract int | getReplication(FileStatus status) | 
| protected abstract long | lastId() | 
| abstract long | nextId() | 
| long | preferredBlockSize(FileStatus status) | 
| Iterable<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto> | resolve(FileStatus s) | 
protected org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto buildBlock(long blockId,
                                                                                 long bytes)
protected org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto buildBlock(long blockId,
                                                                                 long bytes,
                                                                                 long genstamp)
public Iterable<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockProto> resolve(FileStatus s)
s - the external reference.public abstract long nextId()
protected abstract long lastId()
protected abstract List<Long> blockLengths(FileStatus status)
status - the external reference.public long preferredBlockSize(FileStatus status)
status - the external reference.public abstract int getReplication(FileStatus status)
status - the external reference.Copyright © 2019 Apache Software Foundation. All rights reserved.