public interface GetHelper
Modifier and Type | Interface and Description |
---|---|
static interface |
GetHelper.RemoteGetFunction |
static interface |
GetHelper.RemotePGetFunction |
Modifier and Type | Method and Description |
---|---|
default TKeyData |
createGetSearchTerm(SDatabaseEntry key,
SDatabaseEntryBase data)
This method helps to create the TKeyData argument used in a remote get
call.
|
default TKeyDataWithPKey |
createPGetSearchTerm(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData)
This method helps to create the TKeyDataWithPKey argument used in a
remote pGet call.
|
default <V> V |
handleRuntimeExceptions(com.sleepycat.client.RemoteServiceCallable<V> remote) |
default <V> V |
remoteCall(com.sleepycat.client.RemoteServiceCallable<V> remote) |
default <V> V |
remoteCallWithIOException(com.sleepycat.client.RemoteServiceCallable<V> remote) |
default SOperationStatus |
remoteGet(SDatabaseEntry key,
SDatabaseEntryBase data,
GetHelper.RemoteGetFunction getFunc) |
default SOperationStatus |
remotePGet(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
GetHelper.RemotePGetFunction pGetFunc) |
default void |
updateKeyData(SDatabaseEntry key,
SDatabaseEntryBase data,
java.util.List<TKeyData> pairs)
This method helps to update the output arguments of a get call, using
values returned from a remote get call.
|
default void |
updateTuple(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
TKeyDataWithPKey tuple)
This method helps to update the output arguments of a pGet call, using
values returned from a remote pGet call.
|
default TKeyData createGetSearchTerm(SDatabaseEntry key, SDatabaseEntryBase data)
key
- the key argumentdata
- the data argumentdefault TKeyDataWithPKey createPGetSearchTerm(SDatabaseEntry sKey, SDatabaseEntry pKey, SDatabaseEntry pData)
sKey
- the sKey argumentpKey
- the pKey argumentpData
- the pData argumentdefault void updateKeyData(SDatabaseEntry key, SDatabaseEntryBase data, java.util.List<TKeyData> pairs)
key
- the key argumentdata
- the data argumentpairs
- the key / data pairs retrieved from a remote get calldefault void updateTuple(SDatabaseEntry sKey, SDatabaseEntry pKey, SDatabaseEntry pData, TKeyDataWithPKey tuple)
sKey
- the sKey argumentpKey
- the pKey argumentpData
- the pData argumenttuple
- the tuple returned from a remote pGet calldefault SOperationStatus remoteGet(SDatabaseEntry key, SDatabaseEntryBase data, GetHelper.RemoteGetFunction getFunc) throws SDatabaseException
SDatabaseException
default SOperationStatus remotePGet(SDatabaseEntry sKey, SDatabaseEntry pKey, SDatabaseEntry pData, GetHelper.RemotePGetFunction pGetFunc) throws SDatabaseException
SDatabaseException
default <V> V remoteCallWithIOException(com.sleepycat.client.RemoteServiceCallable<V> remote) throws java.io.IOException
java.io.IOException
default <V> V remoteCall(com.sleepycat.client.RemoteServiceCallable<V> remote)
default <V> V handleRuntimeExceptions(com.sleepycat.client.RemoteServiceCallable<V> remote) throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.