public class ReserveNSequence extends org.apache.pig.EvalFunc<Long>
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_SEQUENCE_NAME_MESSAGE |
static String |
EMPTY_ZK_MESSAGE |
static String |
INVALID_NUMBER_MESSAGE |
static String |
INVALID_TUPLE_MESSAGE |
| Constructor and Description |
|---|
ReserveNSequence(String zkQuorum,
String tenantId) |
| Modifier and Type | Method and Description |
|---|---|
Long |
exec(org.apache.pig.data.Tuple input)
Reserve N next sequences for a sequence name.
|
void |
finish()
Cleanup to be performed at the end.
|
public static final String INVALID_TUPLE_MESSAGE
public static final String EMPTY_SEQUENCE_NAME_MESSAGE
public static final String EMPTY_ZK_MESSAGE
public static final String INVALID_NUMBER_MESSAGE
public Long exec(org.apache.pig.data.Tuple input) throws IOException
exec in class org.apache.pig.EvalFunc<Long>IOExceptionpublic void finish()
finish in class org.apache.pig.EvalFunc<Long>Copyright © 2021 Apache Software Foundation. All rights reserved.