public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
static Long |
MAX_TIME |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hashEntry(StoreEntry entry,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry)
Tuples are hashed by sorting them by their keys, normalized values, and visibilities.
|
static Long |
reverseTimestamp(long timestamp) |
static Long |
reverseTimestampToNormalTime(long timestamp) |
static Long |
truncatedReverseTimestamp(long timestamp,
BucketSize bucketSize)
Defaults to 15 mins.
|
static String |
tupleToString(org.calrissian.mango.domain.Tuple tuple,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry) |
public static final Long MAX_TIME
public static final String DATE_FORMAT
public static byte[] hashEntry(StoreEntry entry, org.calrissian.mango.types.TypeRegistry<String> typeRegistry)
entry - public static Long truncatedReverseTimestamp(long timestamp, BucketSize bucketSize)
timestamp - public static Long reverseTimestampToNormalTime(long timestamp)
public static Long reverseTimestamp(long timestamp)
Copyright © 2014 Calrissian. All Rights Reserved.