Package feast.proto.core
Enum StoreProto.Store.StoreType
- java.lang.Object
-
- java.lang.Enum<StoreProto.Store.StoreType>
-
- feast.proto.core.StoreProto.Store.StoreType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StoreProto.Store.StoreType>
- Enclosing class:
- StoreProto.Store
public static enum StoreProto.Store.StoreType extends Enum<StoreProto.Store.StoreType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumfeast.core.Store.StoreType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIGQUERYBigQuery stores a FeatureRow element as a row in a BigQuery table.CASSANDRAUnsupported in Feast 0.3INVALIDINVALID = 0;REDISRedis stores a FeatureRow element as a key, value pair.REDIS_CLUSTERREDIS_CLUSTER = 4;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intBIGQUERY_VALUEBigQuery stores a FeatureRow element as a row in a BigQuery table.static intCASSANDRA_VALUEUnsupported in Feast 0.3static intINVALID_VALUEINVALID = 0;static intREDIS_CLUSTER_VALUEREDIS_CLUSTER = 4;static intREDIS_VALUERedis stores a FeatureRow element as a key, value pair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StoreProto.Store.StoreTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<StoreProto.Store.StoreType>internalGetValueMap()static StoreProto.Store.StoreTypevalueOf(int value)Deprecated.static StoreProto.Store.StoreTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static StoreProto.Store.StoreTypevalueOf(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.
-
-
-
Enum Constant Detail
-
INVALID
public static final StoreProto.Store.StoreType INVALID
INVALID = 0;
-
REDIS
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;
-
BIGQUERY
public static final StoreProto.Store.StoreType BIGQUERY
BigQuery stores a FeatureRow element as a row in a BigQuery table. Table name is derived is the same as the feature set name. 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 - ingestion_id | STRING | unique id identifying groups of rows that have been ingested together - 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). 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;
-
CASSANDRA
public static final StoreProto.Store.StoreType CASSANDRA
Unsupported in Feast 0.3
CASSANDRA = 3;
-
REDIS_CLUSTER
public static final StoreProto.Store.StoreType REDIS_CLUSTER
REDIS_CLUSTER = 4;
-
UNRECOGNIZED
public static final StoreProto.Store.StoreType UNRECOGNIZED
-
-
Field Detail
-
INVALID_VALUE
public static final int INVALID_VALUE
INVALID = 0;- See Also:
- Constant Field Values
-
REDIS_VALUE
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;- See Also:
- Constant Field Values
-
BIGQUERY_VALUE
public static final int BIGQUERY_VALUE
BigQuery stores a FeatureRow element as a row in a BigQuery table. Table name is derived is the same as the feature set name. 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 - ingestion_id | STRING | unique id identifying groups of rows that have been ingested together - 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). 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;- See Also:
- Constant Field Values
-
CASSANDRA_VALUE
public static final int CASSANDRA_VALUE
Unsupported in Feast 0.3
CASSANDRA = 3;- See Also:
- Constant Field Values
-
REDIS_CLUSTER_VALUE
public static final int REDIS_CLUSTER_VALUE
REDIS_CLUSTER = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static StoreProto.Store.StoreType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StoreProto.Store.StoreType c : StoreProto.Store.StoreType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreProto.Store.StoreType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static StoreProto.Store.StoreType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static StoreProto.Store.StoreType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StoreProto.Store.StoreType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static StoreProto.Store.StoreType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-