public class InsightDAO extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
conn |
| Constructor and Description |
|---|
InsightDAO() |
| Modifier and Type | Method and Description |
|---|---|
List<Component> |
getAllComponents() |
Asset |
getAssetById(Long id) |
String |
getAssetTypeCodeById(Long id) |
String |
getDAGJson(long projectId,
long flowId) |
List<com.datastax.insight.core.entity.Datum> |
getDatum() |
List<com.datastax.insight.core.entity.DBSource> |
getDBSources() |
String |
getFlowCodeById(Long id) |
Long |
getFlowVersionId(Long flowId) |
com.datastax.insight.core.entity.Model |
getModel(String modelId) |
List<com.datastax.insight.core.entity.Model> |
getModels() |
Project |
getProjectById(Long id) |
Long |
getProjectId(Long flowId)
根据流程id查找项目id 如果查不到 则认为流程为示例流程
|
List<Component> |
getSparkComponents() |
Subject |
getSubjectById(Long id) |
Map<String,String> |
getSystemSettings(Long userId) |
int |
saveFlowResult(Long flowId,
String resultPath) |
int |
saveModel(Long flowId,
Long batchId,
Long flowVersionId,
String modelName,
String modelClass,
String path) |
int |
saveModelDebugJson(Long flowId,
String debugJson)
保存debugString组件的运行结果到数据表
|
int |
saveModelMetrics(Long flowId,
String metrics) |
void |
saveRestConfig(String name,
Long componentId) |
int |
updateFlowStatus(Long flowId,
Long batchId,
int status) |
protected Connection conn
public List<com.datastax.insight.core.entity.DBSource> getDBSources()
public List<com.datastax.insight.core.entity.Model> getModels()
public com.datastax.insight.core.entity.Model getModel(String modelId)
public List<com.datastax.insight.core.entity.Datum> getDatum()
public String getDAGJson(long projectId, long flowId)
public int saveModel(Long flowId, Long batchId, Long flowVersionId, String modelName, String modelClass, String path)
public int saveModelDebugJson(Long flowId, String debugJson)
flowId - debugJson - public Long getProjectId(Long flowId)
flowId - Copyright © 2019. All rights reserved.