Package org.apache.hadoop.fs.impl
Class FSBuilderSupport
java.lang.Object
org.apache.hadoop.fs.impl.FSBuilderSupport
Class to help with use of FSBuilder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet a long value with resilience to unparseable values.longgetPositiveLong(String key, long defVal) Get a long value with resilience to unparseable values.
-
Field Details
-
LOG_PARSE_ERROR
-
-
Constructor Details
-
FSBuilderSupport
Constructor.- Parameters:
options- the configuration options from the builder.
-
-
Method Details
-
getOptions
-
getPositiveLong
Get a long value with resilience to unparseable values. Negative values are replaced with the default.- Parameters:
key- key to logdefVal- default value- Returns:
- long value
-
getLong
Get a long value with resilience to unparseable values.- Parameters:
key- key to logdefVal- default value- Returns:
- long value
-