public class InsertRecordsRandomRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.insertRecordsRandom(InsertRecordsRandomRequest)
.
Modifier and Type | Class and Description |
---|---|
static class |
InsertRecordsRandomRequest.Options
Optional parameter to pass in specifications for the randomness of the values.
|
Constructor and Description |
---|
InsertRecordsRandomRequest()
Constructs an InsertRecordsRandomRequest object with default parameters.
|
InsertRecordsRandomRequest(String tableName,
long count,
Map<String,Map<String,Double>> options)
Constructs an InsertRecordsRandomRequest object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
long |
getCount() |
Map<String,Map<String,Double>> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getTableName() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called directly by the user.
|
InsertRecordsRandomRequest |
setCount(long count) |
InsertRecordsRandomRequest |
setOptions(Map<String,Map<String,Double>> options) |
InsertRecordsRandomRequest |
setTableName(String tableName) |
String |
toString() |
public InsertRecordsRandomRequest()
public InsertRecordsRandomRequest(String tableName, long count, Map<String,Map<String,Double>> options)
tableName
- Table to which random records will be added. Must be an existing table. Also, must be an individual table,
not a collection of tables, nor a view of a table.count
- Number of records to generate.options
- Optional parameter to pass in specifications for the randomness of the values. This map is different from
the *options* parameter of most other endpoints in that it is a map of string to map of string to doubles,
while most others are maps of string to string. In this map, the top level keys represent which column's
parameters are being specified, while the internal keys represents which parameter is being specified. The
parameters that can be specified are: *min*, *max*, and *interval*. These parameters take on different
meanings depending on the type of the column. Below follows a more detailed description of the map:
all
parameter judiciously.
all
parameter judiciously.
all
.
all
parameter judiciously.
all
parameter judiciously.
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public InsertRecordsRandomRequest setTableName(String tableName)
tableName
- Table to which random records will be added. Must be an existing table. Also, must be an individual table,
not a collection of tables, nor a view of a table.this
to mimic the builder pattern.public long getCount()
public InsertRecordsRandomRequest setCount(long count)
count
- Number of records to generate.this
to mimic the builder pattern.public Map<String,Map<String,Double>> getOptions()
all
parameter judiciously.
all
parameter judiciously.
all
.
all
parameter judiciously.
all
parameter judiciously.
public InsertRecordsRandomRequest setOptions(Map<String,Map<String,Double>> options)
options
- Optional parameter to pass in specifications for the randomness of the values. This map is different from
the *options* parameter of most other endpoints in that it is a map of string to map of string to doubles,
while most others are maps of string to string. In this map, the top level keys represent which column's
parameters are being specified, while the internal keys represents which parameter is being specified. The
parameters that can be specified are: *min*, *max*, and *interval*. These parameters take on different
meanings depending on the type of the column. Below follows a more detailed description of the map:
all
parameter judiciously.
all
parameter judiciously.
all
.
all
parameter judiciously.
all
parameter judiciously.
this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2016. All rights reserved.