All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.pure.binding.extension.pure Maven / Gradle / Ivy

There is a newer version: 4.57.1
Show newest version
// Copyright 2021 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 meta::external::format::shared::executionPlan::toString::*;
import meta::pure::extension::*;

// TO BE REMOVED

import meta::external::format::shared::executionPlan::*;
import meta::external::format::shared::binding::*;

function meta::external::format::shared::externalFormatExtension(): Extension[1]
{
  meta::external::format::shared::externalFormatExtension('externalFormat')
}

function <> meta::external::format::shared::externalFormatExtension(type:String[1]) : Extension[1]
{
   let shared = ^Extension(
      type = $type,
      availableStores            = meta::pure::extension::defaultExtensions().availableStores,
      availableFeatures          = ^FeatureExtension
                                   (
                                     id = 'ExternalFormat',
                                     printPlanNodeToString = {space:String[1], extensions:Extension[*] | printPlanNodeToString($space, $extensions)}
                                  ),
      serializerExtension      = meta::external::format::shared::serializerExtensionName_String_1__String_1_
   )
}

function <> meta::external::format::shared::serializerExtensionName(version:String[1]): String[1]
{
   'meta::protocols::pure::' + $version + '::external::shared::format::serializerExtension_String_1__SerializerExtension_1_'
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy