public final class ArchiveUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
fatalException(Exception e)
Log a fatal exception and exit.
|
static Long |
getLongField(org.apache.storm.tuple.ITuple tuple,
String field,
Long defaultValue) |
static Integer |
getMandatoryIntegerField(org.apache.storm.tuple.ITuple tuple,
String field)
Fast fail if a mandatory integer field is missing.
|
static Long |
getMandatoryLongField(org.apache.storm.tuple.ITuple tuple,
String field)
Fast fail if a mandatory long field is missing.
|
public static Long getMandatoryLongField(org.apache.storm.tuple.ITuple tuple, String field)
tuple - the incoming tuplefield - the required fieldpublic static Long getLongField(org.apache.storm.tuple.ITuple tuple, String field, Long defaultValue)
public static Integer getMandatoryIntegerField(org.apache.storm.tuple.ITuple tuple, String field)
tuple - the incoming tuplefield - the required fieldpublic static void fatalException(Exception e)
e - Exception raisedCopyright © 2022. All rights reserved.