public abstract class QueryBase<T extends QueryBase<T,T2,T3>,T2 extends FeatureGroupBase,T3> extends Object
Modifier and Type | Field and Description |
---|---|
protected FilterLogic |
filter |
protected Boolean |
hiveEngine |
protected List<Join<T>> |
joins |
protected FeatureGroupBase |
leftFeatureGroup |
protected Long |
leftFeatureGroupEndTime |
protected Long |
leftFeatureGroupStartTime |
protected List<Feature> |
leftFeatures |
protected static org.slf4j.Logger |
LOGGER |
protected QueryConstructorApi |
queryConstructorApi |
protected StorageConnectorApi |
storageConnectorApi |
Constructor and Description |
---|
QueryBase(T2 leftFeatureGroup,
List<Feature> leftFeatures) |
Modifier and Type | Method and Description |
---|---|
protected List<Feature> |
addFeatureGroupToFeatures(FeatureGroupBase featureGroupBase,
List<Feature> leftFeatures) |
T |
appendFeature(Feature feature) |
T |
asOf(String wallclockTime)
Perform time travel on the given Query.
|
T |
asOf(String wallclockTime,
String excludeUntil)
Perform time travel on the given Query.
|
T |
filter(Filter filter) |
T |
filter(FilterLogic filter) |
boolean |
isTimeTravel() |
T |
join(T subquery) |
T |
join(T subquery,
JoinType joinType) |
T |
join(T subquery,
JoinType joinType,
String prefix) |
T |
join(T subquery,
List<String> on) |
T |
join(T subquery,
List<String> on,
JoinType joinType) |
T |
join(T subquery,
List<String> on,
JoinType joinType,
String prefix) |
T |
join(T subquery,
List<String> leftOn,
List<String> rightOn) |
T |
join(T subquery,
List<String> leftOn,
List<String> rightOn,
JoinType joinType) |
T |
join(T subquery,
List<String> leftOn,
List<String> rightOn,
JoinType joinType,
String prefix) |
T |
join(T subquery,
List<String> leftOn,
List<String> rightOn,
String prefix) |
T |
join(T subquery,
String prefix) |
T |
joinFeatures(T subquery,
List<Feature> on) |
T |
joinFeatures(T subquery,
List<Feature> on,
JoinType joinType) |
T |
joinFeatures(T subquery,
List<Feature> on,
JoinType joinType,
String prefix) |
T |
joinFeatures(T subquery,
List<Feature> leftOn,
List<Feature> rightOn) |
T |
joinFeatures(T subquery,
List<Feature> leftOn,
List<Feature> rightOn,
JoinType joinType) |
T |
joinFeatures(T subquery,
List<Feature> leftOn,
List<Feature> rightOn,
JoinType joinType,
String prefix) |
T |
joinFeatures(T subquery,
List<Feature> leftOn,
List<Feature> rightOn,
String prefix) |
T |
joinFeatures(T subquery,
List<Feature> on,
String prefix) |
T |
pullChanges(String wallclockStartTime,
String wallclockEndTime)
Deprecated.
use asOf(wallclockEndTime, wallclockStartTime) instead
|
abstract Object |
read() |
abstract Object |
read(boolean online) |
abstract Object |
read(boolean online,
Map<String,String> readOptions) |
protected void |
setLeftFeatureGroup(T2 leftFeatureGroup) |
abstract void |
show(boolean online,
int numRows) |
abstract void |
show(int numRows) |
abstract String |
sql() |
abstract String |
sql(Storage storage) |
<T2> String |
sql(Storage storage,
Class<T2> fsQueryType) |
protected FeatureGroupBase leftFeatureGroup
protected Long leftFeatureGroupStartTime
protected Long leftFeatureGroupEndTime
protected FilterLogic filter
protected Boolean hiveEngine
protected static final org.slf4j.Logger LOGGER
protected QueryConstructorApi queryConstructorApi
protected StorageConnectorApi storageConnectorApi
protected void setLeftFeatureGroup(T2 leftFeatureGroup)
public abstract String sql()
public T join(T subquery, List<String> leftOn, List<String> rightOn, JoinType joinType, String prefix)
public T joinFeatures(T subquery, List<Feature> leftOn, List<Feature> rightOn, String prefix)
public T joinFeatures(T subquery, List<Feature> leftOn, List<Feature> rightOn, JoinType joinType)
public T joinFeatures(T subquery, List<Feature> leftOn, List<Feature> rightOn, JoinType joinType, String prefix)
public T asOf(String wallclockTime) throws FeatureStoreException, ParseException
wallclockTime
- point in timeFeatureStoreException
ParseException
public T asOf(String wallclockTime, String excludeUntil) throws FeatureStoreException, ParseException
wallclockTime
- point in timeexcludeUntil
- point in timeFeatureStoreException
ParseException
public T pullChanges(String wallclockStartTime, String wallclockEndTime) throws FeatureStoreException, ParseException
wallclockStartTime
- start date.wallclockEndTime
- end date.FeatureStoreException
ParseException
public T filter(FilterLogic filter)
public boolean isTimeTravel()
protected List<Feature> addFeatureGroupToFeatures(FeatureGroupBase featureGroupBase, List<Feature> leftFeatures)
public abstract Object read() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract Object read(boolean online) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract Object read(boolean online, Map<String,String> readOptions) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract void show(int numRows) throws FeatureStoreException, IOException
FeatureStoreException
IOException
public abstract void show(boolean online, int numRows) throws FeatureStoreException, IOException
FeatureStoreException
IOException
Copyright © 2023. All rights reserved.