public final class StreamIntegration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANALYTICS
Enum/config name of the analytics input stream: "analytics".
|
static String |
CLASSIC
Enum/config name of a classic S3AInputStream: "classic".
|
static String |
CUSTOM
Reads in a classname : "custom".
|
static String |
DEFAULT
Special string for configuration only; is
mapped to the default stream type: "default".
|
static InputStreamType |
DEFAULT_STREAM_TYPE
What is the default type?
|
static String |
E_EMPTY_CUSTOM_CLASSNAME |
static String |
E_INVALID_STREAM_TYPE |
static String |
PREFETCH
Enum/config name of of the Pinterest S3APrefetchingInputStream: "prefetch".
|
| Modifier and Type | Method and Description |
|---|---|
static InputStreamType |
determineInputStreamType(org.apache.hadoop.conf.Configuration conf)
Determine the input stream type for the supplied configuration.
|
static ObjectInputStreamFactory |
factoryFromConfig(org.apache.hadoop.conf.Configuration conf)
Create the input stream factory the configuration asks for.
|
static VectoredIOContext |
populateVectoredIOContext(org.apache.hadoop.conf.Configuration conf)
Populates the configurations related to vectored IO operations.
|
public static final String CLASSIC
public static final String PREFETCH
public static final String ANALYTICS
public static final String CUSTOM
public static final String DEFAULT
public static final InputStreamType DEFAULT_STREAM_TYPE
public static final String E_EMPTY_CUSTOM_CLASSNAME
public static final String E_INVALID_STREAM_TYPE
public static ObjectInputStreamFactory factoryFromConfig(org.apache.hadoop.conf.Configuration conf)
This does not initialize the factory.
See determineInputStreamType(Configuration) for the
resolution algorithm.
conf - configurationRuntimeException - any binding/loading/instantiation problempublic static InputStreamType determineInputStreamType(org.apache.hadoop.conf.Configuration conf)
This does not perform any instantiation.
If the option "fs.s3a.prefetch.enabled" is set, the
prefetch stream is selected, after printing a
warning the first time this happens.
If the input stream type is declared as "default", then whatever
the current default stream type is returned, as defined by
DEFAULT_STREAM_TYPE.
conf - configurationpublic static VectoredIOContext populateVectoredIOContext(org.apache.hadoop.conf.Configuration conf)
conf - configuration object.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.