Package | Description |
---|---|
com.gpudb |
Modifier and Type | Method and Description |
---|---|
static <T> TypeObjectMap<T> |
TypeObjectMap.fromClass(Class<T> objectClass)
Creates a
TypeObjectMap based on the specified class. |
static <T> TypeObjectMap<T> |
TypeObjectMap.fromClass(Class<T> objectClass,
String label,
Map<String,Type.Column> columnOverrides)
Creates a
TypeObjectMap based on the specified class with the
specified type label and overrides. |
static <T> TypeObjectMap<T> |
TypeObjectMap.fromType(Type type,
Class<T> objectClass)
Creates a
TypeObjectMap based on the specified Type and
class. |
static <T> TypeObjectMap<T> |
TypeObjectMap.fromType(Type type,
Class<T> objectClass,
Map<String,String> columnOverrides)
Creates a
TypeObjectMap based on the specified Type and
class with the specified overrides. |
protected <T> TypeObjectMap<T> |
GPUdbBase.getTypeObjectMap(Class<T> objectClass) |
Modifier and Type | Method and Description |
---|---|
<T> void |
GPUdbBase.addKnownType(String typeId,
Class<T> objectClass,
TypeObjectMap<T> typeObjectMap)
Adds a type object map for the specified class as a type descriptor for
a GPUdb type, identified by a type ID, to the known type list, and also
adds the type object map to the known type object map list.
|
<T> void |
GPUdbBase.addKnownTypeFromTable(String tableName,
Class<T> objectClass,
TypeObjectMap<T> typeObjectMap)
Adds a type object map for the specified class as a type descriptor for
the GPUdb type stored in the specified table to the known type list, and
also adds the type object map to the known type object map list.
|
<T> void |
GPUdbBase.addKnownTypeObjectMap(Class<T> objectClass,
TypeObjectMap<T> typeObjectMap)
Adds a type object map for the specified class to the known type object
map list.
|
protected <T> List<ByteBuffer> |
GPUdbBase.encode(TypeObjectMap<T> typeObjectMap,
List<T> data) |
static <T> List<ByteBuffer> |
Avro.encode(TypeObjectMap<T> typeObjectMap,
List<T> objects)
Encodes a list of non-Avro-compatible objects into Avro binary format
using the specified type object map.
|
static <T> List<ByteBuffer> |
Avro.encode(TypeObjectMap<T> typeObjectMap,
List<T> objects,
int threadCount,
ExecutorService executor)
Encodes a list of non-Avro-compatible objects into Avro binary format
using the specified type object map, optionally using multiple threads,
with or without a supplied executor.
|
static <T> List<ByteBuffer> |
Avro.encode(TypeObjectMap<T> typeObjectMap,
List<T> objects,
int start,
int count)
Encodes a portion of list of non-Avro-compatible objects into Avro binary
format using the specified type object map.
|
static <T> List<ByteBuffer> |
Avro.encode(TypeObjectMap<T> typeObjectMap,
List<T> objects,
int start,
int count,
int threadCount,
ExecutorService executor)
Encodes a portion of list of Avro-compatible objects into Avro binary
format using the specified type object map, optionally using multiple
threads, with or without a supplied executor.
|
static <T> ByteBuffer |
Avro.encode(TypeObjectMap<T> typeObjectMap,
T object)
Encodes a non-Avro-compatible object into Avro binary format using the
specified type object map.
|
<TRequest> InsertRecordsResponse |
GPUdb.insertRecords(TypeObjectMap<TRequest> typeObjectMap,
InsertRecordsRequest<TRequest> request)
Adds multiple records to the specified table.
|
<TRequest> InsertRecordsResponse |
GPUdb.insertRecords(TypeObjectMap<TRequest> typeObjectMap,
String tableName,
List<TRequest> data,
Map<String,String> options)
Adds multiple records to the specified table.
|
<TRequest> UpdateRecordsResponse |
GPUdb.updateRecords(TypeObjectMap<TRequest> typeObjectMap,
String tableName,
List<String> expressions,
List<Map<String,String>> newValuesMaps,
List<TRequest> data,
Map<String,String> options)
Runs multiple predicate-based updates in a single call.
|
<TRequest> UpdateRecordsResponse |
GPUdb.updateRecords(TypeObjectMap<TRequest> typeObjectMap,
UpdateRecordsRequest<TRequest> request)
Runs multiple predicate-based updates in a single call.
|
Constructor and Description |
---|
BulkInserter(GPUdb gpudb,
String tableName,
TypeObjectMap<T> typeObjectMap,
int batchSize,
Map<String,String> options)
Creates a
BulkInserter with the specified parameters. |
BulkInserter(GPUdb gpudb,
String tableName,
TypeObjectMap<T> typeObjectMap,
int batchSize,
Map<String,String> options,
WorkerList workers)
Creates a
BulkInserter with the specified parameters. |
RecordRetriever(GPUdb gpudb,
String tableName,
TypeObjectMap<T> typeObjectMap)
Creates a
RecordRetriever with the specified parameters. |
RecordRetriever(GPUdb gpudb,
String tableName,
TypeObjectMap<T> typeObjectMap,
WorkerList workers)
Creates a
RecordRetriever with the specified parameters. |
Copyright © 2019. All rights reserved.