public static final class BulkInserter.WorkerList extends ArrayList<URL>
modCount
Constructor and Description |
---|
BulkInserter.WorkerList()
Creates an empty
BulkInserter.WorkerList that can be populated manually
with worker URLs to support multi-head ingest. |
BulkInserter.WorkerList(GPUdb gpudb)
Creates a
BulkInserter.WorkerList and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. |
BulkInserter.WorkerList(GPUdb gpudb,
Pattern ipRegex)
Creates a
BulkInserter.WorkerList and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. |
BulkInserter.WorkerList(GPUdb gpudb,
String ipPrefix)
Creates a
BulkInserter.WorkerList and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public BulkInserter.WorkerList()
BulkInserter.WorkerList
that can be populated manually
with worker URLs to support multi-head ingest. Note that worker URLs
must be added in rank order, starting with rank 1, and all worker
ranks must be included; otherwise insertion may fail for certain
data types.public BulkInserter.WorkerList(GPUdb gpudb) throws GPUdbException
BulkInserter.WorkerList
and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. (If the
specified GPUdb instance has multi-head ingest disabled, the worker
list will be empty and multi-head ingest will not be used.) Note that
in some cases, workers may be configured to use more than one IP
address, not all of which may be accessible to the client; this
constructor uses the first IP returned by the server for each worker.
To override this behavior, use one of the alternate constructors that
accepts an IP regex
or an IP prefix
.gpudb
- the GPUdb
instance from which to obtain the
worker URLsGPUdbException
- if an error occurs during the request for
worker URLspublic BulkInserter.WorkerList(GPUdb gpudb, Pattern ipRegex) throws GPUdbException
BulkInserter.WorkerList
and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. (If the
specified GPUdb instance has multi-head ingest disabled, the worker
list will be empty and multi-head ingest will not be used.) Note that
in some cases, workers may be configured to use more than one IP
address, not all of which may be accessible to the client; the
optional ipRegex
parameter can be used in such cases to
filter for an IP range that is accessible, e.g., a regex of
"192\.168\..*"
will use worker IP addresses in the 192.168.*
range.gpudb
- the GPUdb
instance from which to obtain the
worker URLsipRegex
- optional IP regex to matchGPUdbException
- if an error occurs during the request for
worker URLs or no IP addresses matching the IP regex could be found
for one or more workerspublic BulkInserter.WorkerList(GPUdb gpudb, String ipPrefix) throws GPUdbException
BulkInserter.WorkerList
and automatically populates it with the
worker URLs from GPUdb to support multi-head ingest. (If the
specified GPUdb instance has multi-head ingest disabled, the worker
list will be empty and multi-head ingest will not be used.) Note that
in some cases, workers may be configured to use more than one IP
address, not all of which may be accessible to the client; the
optional ipprefix
parameter can be used in such cases to
filter for an IP range that is accessible, e.g., a prefix of
"192.168."
will use worker IP addresses in the 192.168.*
range.gpudb
- the GPUdb
instance from which to obtain the
worker URLsipPrefix
- optional IP prefix to matchGPUdbException
- if an error occurs during the request for
worker URLs or no IP addresses matching the IP prefix could be found
for one or more workersCopyright © 2017. All rights reserved.