it.bancaditalia.oss.vtl.impl.environment.spark.LineageSparkUDT$ Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vtl-envs Show documentation
Show all versions of vtl-envs Show documentation
Implementation of several environments
/*
* Copyright © 2020 Banca D'Italia
*
* Licensed under the EUPL, Version 1.2 (the "License");
* You may not use this work except in compliance with the
* License.
* You may obtain a copy of the License at:
*
* https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/2020-03/EUPL-1.2%20EN.txt
*
* 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.
*/
package it.bancaditalia.oss.vtl.impl.environment.spark;
import com.esotericsoftware.kryo.Kryo;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageCall;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageExternal;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageGroup;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageImpl;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageNode;
import it.bancaditalia.oss.vtl.impl.types.lineage.LineageSet;
import it.bancaditalia.oss.vtl.model.data.Lineage;
/**
* Emulate scala companion object
*
*/
public class LineageSparkUDT$ extends LineageSparkUDT
{
public static final LineageSparkUDT$ MODULE$ = new LineageSparkUDT$();
public static final Kryo KRYO;
private static final long serialVersionUID = 1L;
static {
KRYO = new Kryo();
LineageSerializer lineageSerializer = new LineageSerializer();
KRYO.register(LineageExternal.class, lineageSerializer);
KRYO.register(LineageGroup.class, lineageSerializer);
KRYO.register(LineageCall.class, lineageSerializer);
KRYO.register(LineageNode.class, lineageSerializer);
KRYO.register(LineageImpl.class, lineageSerializer);
KRYO.register(LineageSet.class, lineageSerializer);
KRYO.register(Lineage.class, lineageSerializer);
}
public static LineageSparkUDT$ apply()
{
return MODULE$;
}
@Override
protected Kryo getKryoInstance()
{
return KRYO;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy