mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-31 05:18:18 +00:00
51 lines
1.4 KiB
Java
51 lines
1.4 KiB
Java
![]() |
/**
|
||
|
* Copyright 2015 LinkedIn Corp. All rights reserved.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
*/
|
||
|
package models;
|
||
|
|
||
|
/**
|
||
|
* Created by zechen on 9/4/15.
|
||
|
*/
|
||
|
public enum EtlJobName {
|
||
|
AZKABAN_EXECUTION_METADATA_ETL(EtlType.OPERATION, RefIdType.APP),
|
||
|
OOZIE_EXECUTION_METADATA_ETL(EtlType.OPERATION, RefIdType.APP),
|
||
|
HADOOP_DATASET_METADATA_ETL(EtlType.DATASET, RefIdType.DB),
|
||
|
TERADATA_DATASET_METADATA_ETL(EtlType.DATASET, RefIdType.DB),
|
||
|
AZKABAN_LINEAGE_METADATA_ETL(EtlType.LINEAGE, RefIdType.APP),
|
||
|
;
|
||
|
|
||
|
EtlType etlType;
|
||
|
RefIdType refIdType;
|
||
|
|
||
|
EtlJobName(EtlType etlType, RefIdType refIdType) {
|
||
|
this.etlType = etlType;
|
||
|
this.refIdType = refIdType;
|
||
|
}
|
||
|
|
||
|
public EtlType getEtlType() {
|
||
|
return etlType;
|
||
|
}
|
||
|
|
||
|
public RefIdType getRefIdType() {
|
||
|
return refIdType;
|
||
|
}
|
||
|
|
||
|
public boolean affectDataset() {
|
||
|
return this.getEtlType().equals(EtlType.DATASET);
|
||
|
}
|
||
|
|
||
|
public boolean affectFlow() {
|
||
|
return this.getEtlType().equals(EtlType.OPERATION);
|
||
|
}
|
||
|
}
|