Class QueryBase<T extends QueryBase<T,T2,T3>,T2 extends FeatureGroupBase,T3>
java.lang.Object
com.logicalclocks.hsfs.constructor.QueryBase<T,T2,T3>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FilterLogicprotected Booleanprotected FeatureGroupBaseprotected Longprotected Longprotected Integerprotected static final org.slf4j.Loggerprotected QueryConstructorApiprotected StorageConnectorApi -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendFeature(Feature feature) Perform time travel on the given Query.Perform time travel on the given Query.filter(FilterLogic filter) booleanjoinFeatures(T subquery, List<Feature> on) joinFeatures(T subquery, List<Feature> on, JoinType joinType) joinFeatures(T subquery, List<Feature> on, String prefix) joinFeatures(T subquery, List<Feature> leftOn, List<Feature> rightOn, JoinType joinType, String prefix) limit(int n) Limit the number of rows returned by the query.pullChanges(String wallclockStartTime, String wallclockEndTime) Deprecated.use asOf(wallclockEndTime, wallclockStartTime) insteadprotected voidsetLeftFeatureGroup(T2 leftFeatureGroup) <T2> String
-
Field Details
-
leftFeatureGroup
-
leftFeatures
-
leftFeatureGroupStartTime
-
leftFeatureGroupEndTime
-
joins
-
filter
-
hiveEngine
-
limit
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
queryConstructorApi
-
storageConnectorApi
-
-
Constructor Details
-
QueryBase
-
-
Method Details
-
setLeftFeatureGroup
-
sql
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
joinFeatures
-
asOf
Perform time travel on the given Query. This method returns a new Query object at the specified point in time. This can then either be read into a Dataframe or used further to perform joins or construct a training dataset.- Parameters:
wallclockTime- point in time- Returns:
- Query
- Throws:
FeatureStoreExceptionParseException
-
asOf
public T asOf(String wallclockTime, String excludeUntil) throws FeatureStoreException, ParseException Perform time travel on the given Query. This method returns a new Query object at the specified point in time. This can then either be read into a Dataframe or used further to perform joins or construct a training dataset.- Parameters:
wallclockTime- point in timeexcludeUntil- point in time- Returns:
- Query
- Throws:
FeatureStoreExceptionParseException
-
pullChanges
public T pullChanges(String wallclockStartTime, String wallclockEndTime) throws FeatureStoreException, ParseException Deprecated.use asOf(wallclockEndTime, wallclockStartTime) insteadReads changes that occurred between specified points in time.- Parameters:
wallclockStartTime- start date.wallclockEndTime- end date.- Returns:
- Query
- Throws:
FeatureStoreExceptionParseException
-
filter
-
filter
-
appendFeature
-
limit
Limit the number of rows returned by the query.- Parameters:
n- maximum number of rows to return- Returns:
- Query
-
isTimeTravel
public boolean isTimeTravel()
-