public class HHCODEFUNC extends NamedWarpScriptFunction implements WarpScriptStackFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
HHCODEFUNC.HHCodeAction |
| Constructor and Description |
|---|
HHCODEFUNC(java.lang.String name,
HHCODEFUNC.HHCodeAction action) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(WarpScriptStack stack) |
static long[] |
hhAndRes(java.lang.Object hhcode)
Convert a HHCode representation to a long hhcode and an int resolution.
|
getName, refSnapshot, setName, toStringpublic HHCODEFUNC(java.lang.String name,
HHCODEFUNC.HHCodeAction action)
public java.lang.Object apply(WarpScriptStack stack) throws WarpScriptException
apply in interface WarpScriptStackFunctionWarpScriptExceptionpublic static long[] hhAndRes(java.lang.Object hhcode)
throws WarpScriptException
hhcode - The HHCode representation, which may be a String, a byte[] or a Long.WarpScriptException - if the given Object is not a Long, a byte[] of length <= 8 or a String or length <= 16.