UNPKG

@finos/legend-graph

Version:
104 lines 3 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * 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. * See the License for the specific language governing permissions and * limitations under the License. */ import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.js'; import { hashArray } from '@finos/legend-shared'; export class V1_Runtime { } export class V1_IdentifiedConnection { id; connection; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.IDENTIFIED_CONNECTION, this.id, this.connection, ]); } } export class V1_StoreConnections { store; storeConnections = []; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.STORE_CONNECTIONS, this.store, hashArray(this.storeConnections), ]); } } export class V1_ConnectionStores { connectionPointer; storePointers = []; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.STORE_CONNECTIONS, this.connectionPointer, hashArray(this.storePointers), ]); } } export class V1_EngineRuntime extends V1_Runtime { mappings = []; connectionStores = []; connections = []; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.ENGINE_RUNTIME, hashArray(this.mappings), hashArray(this.connectionStores), hashArray(this.connections), ]); } } export class V1_SingleConnectionEngineRuntime extends V1_EngineRuntime { get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.SINGLE_ENGINE_RUNTIME, hashArray(this.mappings), hashArray(this.connectionStores), hashArray(this.connections), ]); } } export class V1_LakehouseRuntime extends V1_EngineRuntime { ingestEnv; warehouse; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.LAKEHOUSE_RUNTIME, this.ingestEnv, this.warehouse, ]); } } export class V1_LegacyRuntime extends V1_Runtime { mappings = []; connections = []; get hashCode() { return hashArray([ CORE_HASH_STRUCTURE.LEGACY_RUNTIME, hashArray(this.mappings), hashArray(this.connections), ]); } } export class V1_RuntimePointer extends V1_Runtime { runtime; get hashCode() { return hashArray([CORE_HASH_STRUCTURE.RUNTIME_POINTER, this.runtime]); } } //# sourceMappingURL=V1_Runtime.js.map