public class ConfigHelpers
extends Object
Constructor and Description |
---|
ConfigHelpers() |
Modifier and Type | Method and Description |
---|---|
static long |
byteFromString(String str,
org.apache.spark.network.util.ByteUnit unit) |
static String |
byteToString(long v,
org.apache.spark.network.util.ByteUnit unit) |
static <T> String |
seqToString(scala.collection.Seq<T> v,
scala.Function1<T,String> stringConverter) |
static <T> scala.collection.Seq<T> |
stringToSeq(String str,
scala.Function1<String,T> converter) |
static long |
timeFromString(String str,
java.util.concurrent.TimeUnit unit) |
static String |
timeToString(long v,
java.util.concurrent.TimeUnit unit) |
static boolean |
toBoolean(String s,
String key) |
static <T> T |
toNumber(String s,
scala.Function1<String,T> converter,
String key,
String configType) |
public static <T> T toNumber(String s, scala.Function1<String,T> converter, String key, String configType)
public static boolean toBoolean(String s, String key)
public static <T> scala.collection.Seq<T> stringToSeq(String str, scala.Function1<String,T> converter)
public static <T> String seqToString(scala.collection.Seq<T> v, scala.Function1<T,String> stringConverter)
public static long timeFromString(String str, java.util.concurrent.TimeUnit unit)
public static String timeToString(long v, java.util.concurrent.TimeUnit unit)
public static long byteFromString(String str, org.apache.spark.network.util.ByteUnit unit)
public static String byteToString(long v, org.apache.spark.network.util.ByteUnit unit)