FSBuilderSupport (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs.impl, class: FSBuilderSupport

Package org.apache.hadoop.fs.impl

# Class FSBuilderSupport

java.lang.Object
org.apache.hadoop.fs.impl.FSBuilderSupport

public class FSBuilderSupport extends Object
Class to help with use of FSBuilder.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final LogExactlyOnce`
  `LOG_PARSE_ERROR`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FSBuilderSupport(Configuration options)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getLong(String key, long defVal)`
  Get a long value with resilience to unparseable values.
  `Configuration`
  `getOptions()`
  `long`
  `getPositiveLong(String key, long defVal)`
  Get a long value with resilience to unparseable values.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LOG_PARSE_ERROR

    public static final LogExactlyOnce LOG_PARSE_ERROR

- ## Constructor Details

  - ### FSBuilderSupport

    public FSBuilderSupport(Configuration options)
    Constructor.
    Parameters:
      `options` - the configuration options from the builder.

- ## Method Details

  - ### getOptions

    public Configuration getOptions()

  - ### getPositiveLong

    public long getPositiveLong(String key, long defVal)
    Get a long value with resilience to unparseable values. Negative values are replaced with the default.
    Parameters:
      `key` - key to log
      `defVal` - default value
    Returns:
      long value

  - ### getLong

    public long getLong(String key, long defVal)
    Get a long value with resilience to unparseable values.
    Parameters:
      `key` - key to log
      `defVal` - default value
    Returns:
      long value