public class Feature extends Object
Constructor and Description |
---|
Feature(@NonNull String name) |
Feature(@NonNull String name,
@NonNull FeatureGroupBase featureGroup) |
Feature(@NonNull String name,
@NonNull int featureGroupId) |
Feature(@NonNull String name,
@NonNull String type) |
Feature(String name,
String type,
Boolean primary,
Boolean partition) |
Feature(@NonNull String name,
@NonNull String type,
@NonNull String defaultValue) |
Feature(String name,
String type,
String onlineType,
Boolean primary,
Boolean partition,
String defaultValue,
String description) |
Modifier and Type | Method and Description |
---|---|
Filter |
eq(Feature value) |
Filter |
eq(Object value) |
Filter |
ge(Feature value) |
Filter |
ge(Object value) |
Filter |
gt(Feature value) |
Filter |
gt(Object value) |
Filter |
in(Collection<?> collection)
Deprecated.
`in` method is deprecated. Use `isin` instead.
|
boolean |
isComplex()
Returns true if the feature has a complex type.
|
Filter |
isin(Collection<?> collection) |
Filter |
le(Feature value) |
Filter |
le(Object value) |
Filter |
like(Object value) |
Filter |
lt(Feature value) |
Filter |
lt(Object value) |
Filter |
ne(Feature value) |
Filter |
ne(Object value) |
void |
setName(String name) |
String |
toJson() |
public Feature(@NonNull @NonNull String name)
public Feature(@NonNull @NonNull String name, @NonNull @NonNull FeatureGroupBase featureGroup)
public Feature(@NonNull @NonNull String name, @NonNull @NonNull int featureGroupId)
public Feature(@NonNull @NonNull String name, @NonNull @NonNull String type, @NonNull @NonNull String defaultValue)
public Feature(String name, String type, Boolean primary, Boolean partition) throws FeatureStoreException
FeatureStoreException
public Feature(String name, String type, String onlineType, Boolean primary, Boolean partition, String defaultValue, String description) throws FeatureStoreException
FeatureStoreException
public boolean isComplex()
// get feature store handle
FeatureStore fs = ...;
// get feature group handle
FeatureGroup fg = ...;
// get feature
Feature ft = fg.getFeature("feature_name");
// check if the feature has a complex type.
ft.isComplex();
public void setName(String name)
@Deprecated public Filter in(Collection<?> collection)
collection
- collection of values to filter on SqlFilterCondition.INpublic Filter isin(Collection<?> collection)
public String toJson()
Copyright © 2023. All rights reserved.