Class PlainParquetConfiguration

java.lang.Object
org.apache.parquet.conf.PlainParquetConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, ParquetConfiguration

public class PlainParquetConfiguration extends Object implements ParquetConfiguration
Configuration for Parquet without Hadoop dependency.
  • Constructor Details

    • PlainParquetConfiguration

      public PlainParquetConfiguration()
    • PlainParquetConfiguration

      public PlainParquetConfiguration(Map<String,String> properties)
  • Method Details

    • set

      public void set(String s, String s1)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property.
      Specified by:
      set in interface ParquetConfiguration
      Parameters:
      s - the property to set
      s1 - the value to set the property to
    • setLong

      public void setLong(String name, long value)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property to a long.
      Specified by:
      setLong in interface ParquetConfiguration
      Parameters:
      name - the property to set
      value - the value to set the property to
    • setInt

      public void setInt(String name, int value)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property to an integer.
      Specified by:
      setInt in interface ParquetConfiguration
      Parameters:
      name - the property to set
      value - the value to set the property to
    • setBoolean

      public void setBoolean(String name, boolean value)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property to a boolean.
      Specified by:
      setBoolean in interface ParquetConfiguration
      Parameters:
      name - the property to set
      value - the value to set the property to
    • setStrings

      public void setStrings(String name, String... value)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property to an array of comma delimited values.
      Specified by:
      setStrings in interface ParquetConfiguration
      Parameters:
      name - the property to set
      value - the values to set the property to
    • setClass

      public void setClass(String name, Class<?> value, Class<?> xface)
      Description copied from interface: ParquetConfiguration
      Sets the value of the name property to a class.
      Specified by:
      setClass in interface ParquetConfiguration
      Parameters:
      name - the property to set
      value - the value to set the property to
      xface - the interface implemented by the value
    • get

      public String get(String name)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property. Returns null if no such value exists.
      Specified by:
      get in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      Returns:
      the value of the property, or null if it does not exist
    • get

      public String get(String name, String defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property. Returns the default value if no such value exists.
      Specified by:
      get in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property, or the default value if it does not exist
    • getLong

      public long getLong(String name, long defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as a long. Returns the default value if no such value exists.
      Specified by:
      getLong in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as a long, or the default value if it does not exist
    • getInt

      public int getInt(String name, int defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as an integer. Returns the default value if no such value exists.
      Specified by:
      getInt in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as an integer, or the default value if it does not exist
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as a boolean. Returns the default value if no such value exists.
      Specified by:
      getBoolean in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as a boolean, or the default value if it does not exist
    • getTrimmed

      public String getTrimmed(String name)
      Description copied from interface: ParquetConfiguration
      Gets the trimmed value of the name property. Returns null if no such value exists.
      Specified by:
      getTrimmed in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      Returns:
      the trimmed value of the property, or null if it does not exist
    • getTrimmed

      public String getTrimmed(String name, String defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the trimmed value of the name property as a boolean. Returns the default value if no such value exists.
      Specified by:
      getTrimmed in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the trimmed value of the property, or the default value if it does not exist
    • getStrings

      public String[] getStrings(String name, String[] defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as an array of Strings. Returns the default value if no such value exists. Interprets the stored value as a comma delimited array.
      Specified by:
      getStrings in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as an array, or the default value if it does not exist
    • getClass

      public Class<?> getClass(String name, Class<?> defaultValue)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as a class. Returns the default value if no such value exists.
      Specified by:
      getClass in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as a class, or the default value if it does not exist
    • getClass

      public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
      Description copied from interface: ParquetConfiguration
      Gets the value of the name property as a class implementing the xface interface. Returns the default value if no such value exists.
      Specified by:
      getClass in interface ParquetConfiguration
      Parameters:
      name - the property to retrieve the value of
      defaultValue - the default return if no value is set for the property
      Returns:
      the value of the property as a class, or the default value if it does not exist
    • getClassByName

      public Class<?> getClassByName(String name) throws ClassNotFoundException
      Description copied from interface: ParquetConfiguration
      Load a class by name.
      Specified by:
      getClassByName in interface ParquetConfiguration
      Parameters:
      name - the name of the Class to load
      Returns:
      the loaded class
      Throws:
      ClassNotFoundException - when the specified class cannot be found
    • iterator

      public Iterator<Map.Entry<String,String>> iterator()
      Specified by:
      iterator in interface Iterable<Map.Entry<String,String>>