public final class DataBlocks
extends java.lang.Object
Implementation of DataBlocks taken from HADOOP-13560 to support huge file uploads in S3A with different options rather than one.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DataBlocks.BlockFactory |
Base class for block factories.
|
static class |
DataBlocks.BlockUploadData |
The output information for an upload.
|
static class |
DataBlocks.DataBlock |
This represents a block being uploaded.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DATA_BLOCKS_BUFFER_ARRAY |
Use an in-memory array.
|
static java.lang.String |
DATA_BLOCKS_BUFFER_DISK |
Buffer blocks to disk.
|
static java.lang.String |
DATA_BLOCKS_BYTEBUFFER |
Use a byte buffer.
|
| Modifier and Type | Method | Description |
|---|---|---|
static DataBlocks.BlockFactory |
createFactory(java.lang.String keyToBufferDir,
Configuration configuration,
java.lang.String name) |
Create a factory.
|
static void |
validateWriteArgs(byte[] b,
int off,
int len) |
Validate args to a write command.
|
public static final java.lang.String DATA_BLOCKS_BUFFER_DISK
public static final java.lang.String DATA_BLOCKS_BYTEBUFFER
public static final java.lang.String DATA_BLOCKS_BUFFER_ARRAY
public static void validateWriteArgs(byte[] b,
int off,
int len)
throws java.io.IOException
OutputStream.write().b - byte array containing data.off - offset in array where to start.len - number of bytes to be written.java.lang.NullPointerException - for a null bufferjava.lang.IndexOutOfBoundsException - if indices are out of rangejava.io.IOException - raised on errors performing I/O.public static DataBlocks.BlockFactory createFactory(java.lang.String keyToBufferDir, Configuration configuration, java.lang.String name)
keyToBufferDir - Key to buffer directory config for a FS.configuration - factory configurations.name - factory name -the option from CommonConfigurationKeys.java.lang.IllegalArgumentException - if the name is unknown.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.