public class RetryableLookupFunctionDelegator extends LookupFunction
LookupFunction
to handle retries.Constructor and Description |
---|
RetryableLookupFunctionDelegator(LookupFunction userLookupFunction,
ResultRetryStrategy retryStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Tear-down method for user-defined function.
|
Collection<RowData> |
lookup(RowData keyRow)
Synchronously lookup rows matching the lookup keys.
|
void |
open(FunctionContext context)
Setup method for user-defined function.
|
eval
collect, finish, getKind, getParameterTypes, getResultType, getTypeInference, setCollector
functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic, supportsConstantFolding
public RetryableLookupFunctionDelegator(@Nonnull LookupFunction userLookupFunction, @Nonnull ResultRetryStrategy retryStrategy)
public Collection<RowData> lookup(RowData keyRow) throws IOException
LookupFunction
Please note that the returning collection of RowData shouldn't be reused across invocations.
lookup
in class LookupFunction
keyRow
- - A RowData
that wraps lookup keys.IOException
public void open(FunctionContext context) throws Exception
UserDefinedFunction
open
in class UserDefinedFunction
Exception
public void close() throws Exception
UserDefinedFunction
close
in class UserDefinedFunction
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.