public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
augmentHdfsPath(java.lang.String hdfsPrefix,
java.lang.String path) |
static ArrayNode |
getArrayProperty(ObjectNode properties,
java.lang.String name) |
static int |
getFreePort() |
static int |
getIntProperty(ObjectNode properties,
java.lang.String name) |
static ObjectNode |
getObjectProperty(ObjectNode properties,
java.lang.String name) |
static java.lang.String |
getStringProperty(ObjectNode properties,
java.lang.String name) |
static boolean |
isFullDay(DateTime dt) |
static boolean |
isFullHour(DateTime dt) |
static boolean |
isFullMinute(DateTime dt) |
static boolean |
isFullSecond(DateTime dt) |
static ScheduledTime |
max(ScheduledTime a,
ScheduledTime b) |
static ArrayNode |
newArrayNode() |
static ObjectNode |
newObjectNode() |
static <T> T |
requireNonNull(T object) |
static void |
setupLogging(java.io.File logDir) |
static DateTime |
toFullHour(DateTime dt) |
static DateTime |
toFullMinute(DateTime dt) |
static DateTime |
toFullSecond(DateTime dt) |
static java.lang.String |
toNominalTimeFormat(DateTime dt) |
public static <T> T requireNonNull(T object)
public static DateTime toFullHour(DateTime dt)
public static DateTime toFullMinute(DateTime dt)
public static DateTime toFullSecond(DateTime dt)
public static boolean isFullDay(DateTime dt)
public static boolean isFullHour(DateTime dt)
public static boolean isFullMinute(DateTime dt)
public static boolean isFullSecond(DateTime dt)
public static java.lang.String toNominalTimeFormat(DateTime dt)
public static ObjectNode newObjectNode()
public static ArrayNode newArrayNode()
public static java.lang.String getStringProperty(ObjectNode properties,
java.lang.String name)
public static int getIntProperty(ObjectNode properties,
java.lang.String name)
public static ArrayNode getArrayProperty(ObjectNode properties,
java.lang.String name)
public static ObjectNode getObjectProperty(ObjectNode properties,
java.lang.String name)
public static ScheduledTime max(ScheduledTime a, ScheduledTime b)
public static java.lang.String augmentHdfsPath(java.lang.String hdfsPrefix,
java.lang.String path)
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic static int getFreePort()
throws java.io.IOException
java.io.IOExceptionpublic static void setupLogging(java.io.File logDir)