Package | Description |
---|---|
org.dataloader |
Modifier and Type | Method and Description |
---|---|
static DataLoaderOptions |
DataLoaderOptions.newOptions() |
DataLoaderOptions |
DataLoaderOptions.setBatchingEnabled(boolean batchingEnabled)
Sets the option that determines whether batch loading is enabled.
|
DataLoaderOptions |
DataLoaderOptions.setBatchLoaderContextProvider(BatchLoaderContextProvider contextProvider)
Sets the batch loader environment provider that will be used to give context to batch load functions
|
DataLoaderOptions |
DataLoaderOptions.setCacheKeyFunction(CacheKey cacheKeyFunction)
Sets the function to use for creating the cache key, if caching is enabled.
|
DataLoaderOptions |
DataLoaderOptions.setCacheMap(CacheMap cacheMap)
Sets the cache map implementation to use for caching, if caching is enabled.
|
DataLoaderOptions |
DataLoaderOptions.setCachingEnabled(boolean cachingEnabled)
Sets the option that determines whether caching is enabled.
|
DataLoaderOptions |
DataLoaderOptions.setCachingExceptionsEnabled(boolean cachingExceptionsEnabled)
Sets the option that determines whether exceptional values are cachedis enabled.
|
DataLoaderOptions |
DataLoaderOptions.setMaxBatchSize(int maxBatchSize)
Sets the maximum number of keys that will be presented to the
BatchLoader function
before they are split into multiple class |
DataLoaderOptions |
DataLoaderOptions.setStatisticsCollector(Supplier<StatisticsCollector> statisticsCollector)
Sets the statistics collector supplier that will be used with these data loader options.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoader(BatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoader(BatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoader<K,Try<V>> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function and with the provided options
where the batch loader function returns a list of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoaderWithContext<K,Try<V>> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function and with the provided options
where the batch loader function returns a list of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoader<K,Try<V>> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function and with the provided options
where the batch loader function returns a list of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K,Try<V>> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function and with the provided options
where the batch loader function returns a list of
Try objects. |
Constructor and Description |
---|
DataLoader(BatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates a new data loader with the provided batch load function and options.
|
DataLoaderOptions(DataLoaderOptions other)
Clones the provided data loader options.
|
Copyright © 2017–2020. All rights reserved.