com.aliyun.openservices.paifeaturestore.domain.HologresOnlinestore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paifeaturestore-sdk Show documentation
Show all versions of paifeaturestore-sdk Show documentation
SDK for PAI-FeatureStore service
package com.aliyun.openservices.paifeaturestore.domain;
import com.aliyun.openservices.paifeaturestore.model.Datasource;
import com.aliyun.openservices.paifeaturestore.model.Project;
public class HologresOnlinestore implements OnlineStore {
Datasource datasource;
public Datasource getDatasource() {
return datasource;
}
public void setDatasource(Datasource datasource) {
this.datasource = datasource;
}
@Override
public String getDatasourceName() {
return this.datasource.getName();
}
@Override
public String getTableName(FeatureView featureView) {
return String.format("%s_%s_online", featureView.getProject().getProject().getProjectName(),
featureView.getFeatureView().getName());
}
@Override
public String getSeqOfflineTableName(SequenceFeatureView sequenceFeatureView){
com.aliyun.openservices.paifeaturestore.model.Project p =sequenceFeatureView.getProject().getProject();
return String.format("%s_%s_seq_offline",p.getProjectName(),sequenceFeatureView.getFeatureView().getName());
}
@Override
public String getSeqOnlineTableName(SequenceFeatureView sequenceFeatureView) {
Project p =sequenceFeatureView.getProject().getProject();
return String.format("%s_%s_seq",p.getProjectName(),sequenceFeatureView.getFeatureView().getName());
}
}