java.io.Closeable, java.lang.AutoCloseablepublic abstract static class DataBlocks.BlockFactory
extends java.lang.Object
implements java.io.Closeable
| Modifier | Constructor | Description |
|---|---|---|
protected |
BlockFactory(java.lang.String keyToBufferDir,
Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Implement any close/cleanup operation.
|
abstract DataBlocks.DataBlock |
create(long index,
int limit,
BlockUploadStatistics statistics) |
Create a block.
|
protected Configuration |
getConf() |
Configuration.
|
java.lang.String |
getKeyToBufferDir() |
Key to Buffer Directory config for a FS instance.
|
protected BlockFactory(java.lang.String keyToBufferDir,
Configuration conf)
public abstract DataBlocks.DataBlock create(long index, int limit, BlockUploadStatistics statistics) throws java.io.IOException
index - index of blocklimit - limit of the block.statistics - stats to work withjava.io.IOException - raised on errors performing I/O.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - Inherited exception; implementations should
avoid raising it.protected Configuration getConf()
public java.lang.String getKeyToBufferDir()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.