Class FSBuilderSupport

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

public class FSBuilderSupport extends Object
Class to help with use of FSBuilder.
  • 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