public static final class CreateTypeRequest.Properties extends Object
DATA
: Default property for all numeric and string type columns; makes
the column available for GPU queries.
TEXT_SEARCH
: Valid only for 'string' columns. Enables full text search
for string columns. Can be set independently of data
and store_only
.
STORE_ONLY
:
Persist the column value but do not make it available to queries (e.g.
GPUdb.filter(FilterRequest)
)-i.e. it is mutually
exclusive to the data
property. Any 'bytes' type column must
have a store_only
property. This property reduces system memory
usage.
DISK_OPTIMIZED
: Works in conjunction with the data
property for
string columns. This property reduces system disk usage by disabling
reverse string lookups. Queries like GPUdb.filter(FilterRequest)
, GPUdb.filterByList(FilterByListRequest)
, and GPUdb.filterByValue(FilterByValueRequest)
work as usual but
GPUdb.aggregateUniqueRaw(AggregateUniqueRequest)
,
GPUdb.aggregateGroupByRaw(AggregateGroupByRequest)
and
GPUdb.getRecordsByColumnRaw(GetRecordsByColumnRequest)
are not allowed on columns with this property.
TIMESTAMP
:
Valid only for 'long' columns. Indicates that this field represents a
timestamp and will be provided in milliseconds since the Unix epoch:
00:00:00 Jan 1 1970. Dates represented by a timestamp must fall between
the year 1000 and the year 2900.
DECIMAL
: Valid
only for 'string' columns. It represents a SQL type NUMERIC(19, 4) data
type. There can be up to 15 digits before the decimal point and up to
four digits in the fractional part. The value can be positive or
negative (indicated by a minus sign at the beginning). This property is
mutually exclusive with the text_search
property.
DATE
: Valid only for 'string' columns. Indicates that this field
represents a date and will be provided in the format 'YYYY-MM-DD'. The
allowable range is 1000-01-01 through 2900-01-01. This property is
mutually exclusive with the text_search
property.
TIME
: Valid only for 'string' columns. Indicates that this field
represents a time-of-day and will be provided in the format
'HH:MM:SS.mmm'. The allowable range is 00:00:00.000 through
23:59:59.999. This property is mutually exclusive with the text_search
property.
DATETIME
:
Valid only for 'string' columns. Indicates that this field represents a
datetime and will be provided in the format 'YYYY-MM-DD HH:MM:SS.mmm'.
The allowable range is 1000-01-01 00:00:00.000 through 2900-01-01
23:59:59.999. This property is mutually exclusive with the text_search
property.
CHAR1
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 1
character.
CHAR2
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 2
characters.
CHAR4
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 4
characters.
CHAR8
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 8
characters.
CHAR16
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 16
characters.
CHAR32
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 32
characters.
CHAR64
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 64
characters.
CHAR128
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 128
characters.
CHAR256
: This
property provides optimized memory, disk and query performance for
string columns. Strings with this property must be no longer than 256
characters.
INT8
: This property provides optimized memory and query performance for
int columns. Ints with this property must be between -128 and +127
(inclusive)
INT16
: This
property provides optimized memory and query performance for int
columns. Ints with this property must be between -32768 and +32767
(inclusive)
IPV4
: This property provides optimized memory, disk and query
performance for string columns representing IPv4 addresses (i.e.
192.168.1.1). Strings with this property must be of the form: A.B.C.D
where A, B, C and D are in the range of 0-255.
WKT
: Valid only for 'string' and 'bytes' columns. Indicates that this
field contains geospatial geometry objects in Well-Known Text (WKT) or
Well-Known Binary (WKB) format.
PRIMARY_KEY
: This property indicates that this column will be part of
(or the entire) primary key.
SHARD_KEY
:
This property indicates that this column will be part of (or the entire)
shard key.
NULLABLE
: This
property indicates that this column is nullable. However, setting this
property is insufficient for making the column nullable. The user must
declare the type of the column as a union between its regular type and
'null' in the avro schema for the record type in typeDefinition
.
For example, if a column is of type integer and is nullable, then the
entry for the column in the avro schema must be: ['int', 'null'].
The C++, C#, Java, and Python APIs have built-in convenience for bypassing setting the avro schema by hand. For those languages, one can use this property as usual and not have to worry about the avro schema for the record.
DICT
: This property indicates that this column should be dictionary
encoded. It can only be used in conjunction with string columns marked
with a charN or date property or with int or long columns. This property
is appropriate for columns where the cardinality (the number of unique
values) is expected to be low, and can save a large amount of memory.
INIT_WITH_NOW
: For columns with attributes of date, time, datetime or
timestamp, at insert time, replace empty strings and invalid timestamps
with NOW()
properties
.Modifier and Type | Field and Description |
---|---|
static String |
CHAR1
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR128
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR16
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR2
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR256
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR32
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR4
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR64
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
CHAR8
This property provides optimized memory, disk and query performance
for string columns.
|
static String |
DATA
Default property for all numeric and string type columns; makes the
column available for GPU queries.
|
static String |
DATE
Valid only for 'string' columns.
|
static String |
DATETIME
Valid only for 'string' columns.
|
static String |
DECIMAL
Valid only for 'string' columns.
|
static String |
DICT
This property indicates that this column should be dictionary
encoded.
|
static String |
DISK_OPTIMIZED
Works in conjunction with the
data property for string
columns. |
static String |
INIT_WITH_NOW
For columns with attributes of date, time, datetime or timestamp, at
insert time, replace empty strings and invalid timestamps with NOW()
|
static String |
INT16
This property provides optimized memory and query performance for
int columns.
|
static String |
INT8
This property provides optimized memory and query performance for
int columns.
|
static String |
IPV4
This property provides optimized memory, disk and query performance
for string columns representing IPv4 addresses (i.e.
|
static String |
NULLABLE
This property indicates that this column is nullable.
|
static String |
PRIMARY_KEY
This property indicates that this column will be part of (or the
entire) primary key.
|
static String |
SHARD_KEY
This property indicates that this column will be part of (or the
entire) shard key.
|
static String |
STORE_ONLY
Persist the column value but do not make it available to queries
(e.g.
|
static String |
TEXT_SEARCH
Valid only for 'string' columns.
|
static String |
TIME
Valid only for 'string' columns.
|
static String |
TIMESTAMP
Valid only for 'long' columns.
|
static String |
WKT
Valid only for 'string' and 'bytes' columns.
|
public static final String DATA
public static final String TEXT_SEARCH
data
and store_only
.public static final String STORE_ONLY
GPUdb.filter(FilterRequest)
)-i.e. it is
mutually exclusive to the data
property. Any 'bytes' type
column must have a store_only
property. This property
reduces system memory usage.public static final String DISK_OPTIMIZED
data
property for string
columns. This property reduces system disk usage by disabling
reverse string lookups. Queries like GPUdb.filter(FilterRequest)
, GPUdb.filterByList(FilterByListRequest)
, and GPUdb.filterByValue(FilterByValueRequest)
work as usual
but GPUdb.aggregateUniqueRaw(AggregateUniqueRequest)
, GPUdb.aggregateGroupByRaw(AggregateGroupByRequest)
and
GPUdb.getRecordsByColumnRaw(GetRecordsByColumnRequest)
are not allowed on columns with this property.public static final String TIMESTAMP
public static final String DECIMAL
text_search
property.public static final String DATE
text_search
property.public static final String TIME
text_search
property.public static final String DATETIME
text_search
property.public static final String CHAR1
public static final String CHAR2
public static final String CHAR4
public static final String CHAR8
public static final String CHAR16
public static final String CHAR32
public static final String CHAR64
public static final String CHAR128
public static final String CHAR256
public static final String INT8
public static final String INT16
public static final String IPV4
public static final String WKT
public static final String PRIMARY_KEY
public static final String SHARD_KEY
public static final String NULLABLE
typeDefinition
. For example, if a column is
of type integer and is nullable, then the entry for the column in
the avro schema must be: ['int', 'null'].
The C++, C#, Java, and Python APIs have built-in convenience for bypassing setting the avro schema by hand. For those languages, one can use this property as usual and not have to worry about the avro schema for the record.
public static final String DICT
public static final String INIT_WITH_NOW
Copyright © 2019. All rights reserved.