Package org.apache.hadoop.fs.s3a.impl.streams
Enum Class InputStreamType
- All Implemented Interfaces:
Serializable,Comparable<InputStreamType>,Constable
Enum of input stream types.
Each enum value contains the factory function actually used to create the factory.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGet the capability string for this stream type.Function<Configuration,org.apache.hadoop.fs.s3a.impl.streams.ObjectInputStreamFactory> factory()Factory constructor.getName()String name.intstreamID()Get the ID of this stream.static InputStreamTypeReturns the enum constant of this class with the specified name.static InputStreamType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Classic
The classic input stream. -
Prefetch
The prefetching input stream. -
Analytics
The analytics input stream. -
Custom
The a custom input stream.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
String name.- Returns:
- the name
-
streamID
public int streamID()Get the ID of this stream. Isolated from the enum ID in case it ever needs to be tuned.- Returns:
- the numeric ID of the stream.
-
capability
Get the capability string for this stream type.- Returns:
- the name of a string to probe for.
-
factory
public Function<Configuration,org.apache.hadoop.fs.s3a.impl.streams.ObjectInputStreamFactory> factory()Factory constructor.- Returns:
- the factory function associated with this stream type.
-