public final class Utils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_STREAM_ID |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
deserialize(byte[] serialized) |
static <S,T> T |
get(java.util.Map<S,T> m,
S key,
T defaultValue) |
static boolean |
getBoolean(java.lang.Object o,
boolean defaultValue) |
static java.lang.Integer |
getInt(java.lang.Object o) |
static java.lang.Object |
newInstance(java.lang.String klass) |
static java.util.Map<java.lang.String,java.lang.String> |
readCommandLineOpts() |
static byte[] |
serialize(java.lang.Object obj) |
static void |
sleep(long millis) |
static byte[] |
toByteArray(java.nio.ByteBuffer buffer) |
static java.util.List<java.lang.Object> |
tuple(java.lang.Object... values) |
public static final java.lang.String DEFAULT_STREAM_ID
public static java.lang.Object newInstance(java.lang.String klass)
public static java.util.List<java.lang.Object> tuple(java.lang.Object... values)
public static void sleep(long millis)
public static java.util.Map<java.lang.String,java.lang.String> readCommandLineOpts()
public static byte[] serialize(java.lang.Object obj)
public static java.lang.Object deserialize(byte[] serialized)
public static java.lang.Integer getInt(java.lang.Object o)
public static boolean getBoolean(java.lang.Object o, boolean defaultValue)
public static byte[] toByteArray(java.nio.ByteBuffer buffer)
public static <S,T> T get(java.util.Map<S,T> m, S key, T defaultValue)