public static enum StoreProto.Store.StoreType extends Enum<StoreProto.Store.StoreType> implements com.google.protobuf.ProtocolMessageEnum
feast.core.Store.StoreType| Enum Constant and Description |
|---|
BIGQUERY
BigQuery stores a FeatureRow element as a row in a BigQuery table.
|
CASSANDRA
Unsupported in Feast 0.3
|
INVALID
INVALID = 0; |
REDIS
Redis stores a FeatureRow element as a key, value pair.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BIGQUERY_VALUE
BigQuery stores a FeatureRow element as a row in a BigQuery table.
|
static int |
CASSANDRA_VALUE
Unsupported in Feast 0.3
|
static int |
INVALID_VALUE
INVALID = 0; |
static int |
REDIS_VALUE
Redis stores a FeatureRow element as a key, value pair.
|
| Modifier and Type | Method and Description |
|---|---|
static StoreProto.Store.StoreType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<StoreProto.Store.StoreType> |
internalGetValueMap() |
static StoreProto.Store.StoreType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static StoreProto.Store.StoreType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static StoreProto.Store.StoreType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoreProto.Store.StoreType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoreProto.Store.StoreType INVALID
INVALID = 0;public static final StoreProto.Store.StoreType REDIS
Redis stores a FeatureRow element as a key, value pair. The Redis data types used (https://redis.io/topics/data-types): - key: STRING - value: STRING Encodings: - key: byte array of RedisKey (refer to feast.storage.RedisKey) - value: byte array of FeatureRow (refer to feast.types.FeatureRow)
REDIS = 1;public static final StoreProto.Store.StoreType BIGQUERY
BigQuery stores a FeatureRow element as a row in a BigQuery table. Table name is derived from the feature set name and version as: [feature_set_name]_v[feature_set_version] For example: A feature row for feature set "driver" and version "1" will be written to table "driver_v1". The entities and features in a FeatureSetSpec corresponds to the fields in the BigQuery table (these make up the BigQuery schema). The name of the entity spec and feature spec corresponds to the column names, and the value_type of entity spec and feature spec corresponds to BigQuery standard SQL data type of the column. The following BigQuery fields are reserved for Feast internal use. Ingestion of entity or feature spec with names identical to the following field names will raise an exception during ingestion. column_name | column_data_type | description ====================|==================|================================ - event_timestamp | TIMESTAMP | event time of the FeatureRow - created_timestamp | TIMESTAMP | processing time of the ingestion of the FeatureRow - job_id | STRING | identifier for the job that writes the FeatureRow to the corresponding BigQuery table BigQuery table created will be partitioned by the field "event_timestamp" of the FeatureRow (https://cloud.google.com/bigquery/docs/partitioned-tables). Since newer version of feature set can introduce breaking, non backward- compatible BigQuery schema updates, incrementing the version of a feature set will result in the creation of a new empty BigQuery table with the new schema. The following table shows how ValueType in Feast is mapped to BigQuery Standard SQL data types (https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types): BYTES : BYTES STRING : STRING INT32 : INT64 INT64 : IN64 DOUBLE : FLOAT64 FLOAT : FLOAT64 BOOL : BOOL BYTES_LIST : ARRAY STRING_LIST : ARRAY INT32_LIST : ARRAY INT64_LIST : ARRAY DOUBLE_LIST : ARRAY FLOAT_LIST : ARRAY BOOL_LIST : ARRAY The column mode in BigQuery is set to "Nullable" such that unset Value in a FeatureRow corresponds to NULL value in BigQuery.
BIGQUERY = 2;public static final StoreProto.Store.StoreType CASSANDRA
Unsupported in Feast 0.3
CASSANDRA = 3;public static final StoreProto.Store.StoreType UNRECOGNIZED
public static final int INVALID_VALUE
INVALID = 0;public static final int REDIS_VALUE
Redis stores a FeatureRow element as a key, value pair. The Redis data types used (https://redis.io/topics/data-types): - key: STRING - value: STRING Encodings: - key: byte array of RedisKey (refer to feast.storage.RedisKey) - value: byte array of FeatureRow (refer to feast.types.FeatureRow)
REDIS = 1;public static final int BIGQUERY_VALUE
BigQuery stores a FeatureRow element as a row in a BigQuery table. Table name is derived from the feature set name and version as: [feature_set_name]_v[feature_set_version] For example: A feature row for feature set "driver" and version "1" will be written to table "driver_v1". The entities and features in a FeatureSetSpec corresponds to the fields in the BigQuery table (these make up the BigQuery schema). The name of the entity spec and feature spec corresponds to the column names, and the value_type of entity spec and feature spec corresponds to BigQuery standard SQL data type of the column. The following BigQuery fields are reserved for Feast internal use. Ingestion of entity or feature spec with names identical to the following field names will raise an exception during ingestion. column_name | column_data_type | description ====================|==================|================================ - event_timestamp | TIMESTAMP | event time of the FeatureRow - created_timestamp | TIMESTAMP | processing time of the ingestion of the FeatureRow - job_id | STRING | identifier for the job that writes the FeatureRow to the corresponding BigQuery table BigQuery table created will be partitioned by the field "event_timestamp" of the FeatureRow (https://cloud.google.com/bigquery/docs/partitioned-tables). Since newer version of feature set can introduce breaking, non backward- compatible BigQuery schema updates, incrementing the version of a feature set will result in the creation of a new empty BigQuery table with the new schema. The following table shows how ValueType in Feast is mapped to BigQuery Standard SQL data types (https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types): BYTES : BYTES STRING : STRING INT32 : INT64 INT64 : IN64 DOUBLE : FLOAT64 FLOAT : FLOAT64 BOOL : BOOL BYTES_LIST : ARRAY STRING_LIST : ARRAY INT32_LIST : ARRAY INT64_LIST : ARRAY DOUBLE_LIST : ARRAY FLOAT_LIST : ARRAY BOOL_LIST : ARRAY The column mode in BigQuery is set to "Nullable" such that unset Value in a FeatureRow corresponds to NULL value in BigQuery.
BIGQUERY = 2;public static final int CASSANDRA_VALUE
Unsupported in Feast 0.3
CASSANDRA = 3;public static StoreProto.Store.StoreType[] values()
for (StoreProto.Store.StoreType c : StoreProto.Store.StoreType.values()) System.out.println(c);
public static StoreProto.Store.StoreType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static StoreProto.Store.StoreType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static StoreProto.Store.StoreType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<StoreProto.Store.StoreType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static StoreProto.Store.StoreType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Gojek. All rights reserved.