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

io.virtdata.lib.BasicDataMappers Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package io.virtdata.lib;

import com.google.auto.service.AutoService;
import io.virtdata.api.BasicFunctionalLibrary;
import io.virtdata.api.VirtDataFunctionLibrary;
import io.virtdata.basicsmappers.from_double.to_float.DoubleToFloat;
import io.virtdata.basicsmappers.from_long.to_bigdecimal.ModuloToBigDecimal;
import io.virtdata.basicsmappers.from_long.to_bigint.ToBigInt;
import io.virtdata.basicsmappers.from_long.to_boolean.ModuloToBoolean;
import io.virtdata.basicsmappers.from_long.to_byte.ModuloToByte;
import io.virtdata.basicsmappers.from_long.to_bytebuffer.HashedToByteBuffer;
import io.virtdata.basicsmappers.from_long.to_collection.HashedLineToStringStringMap;
import io.virtdata.basicsmappers.from_long.to_double.ToDouble;
import io.virtdata.basicsmappers.from_long.to_inetaddress.ToInetAddress;
import io.virtdata.basicsmappers.from_long.to_int.Add;
import io.virtdata.basicsmappers.from_long.to_short.ModuloToShort;
import io.virtdata.basicsmappers.from_long.to_string.HashedFileExtractToString;
import io.virtdata.basicsmappers.from_long.to_string.Template;
import io.virtdata.basicsmappers.from_long.to_time_types.ToDate;
import io.virtdata.basicsmappers.from_long.to_time_types.ToEpochTimeUUID;
import io.virtdata.functionadapters.ToLongUnaryOperator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 

This is a basic data mapping library that contains a variety of functions to build from.

* *

This library simply relies on {@link VirtDataFunctionLibrary}.

*/ @AutoService(VirtDataFunctionLibrary.class) public class BasicDataMappers extends BasicFunctionalLibrary { public final static String dataDir = "data"; private static final Logger logger = LoggerFactory.getLogger(BasicDataMappers.class); @Override public String getName() { return "basics"; } @Override public List getSearchPackages() { return new ArrayList() { { add(ToLongUnaryOperator.class.getPackage()); add(Template.class.getPackage()); add(io.virtdata.basicsmappers.from_double.to_double.Add.class.getPackage()); add(io.virtdata.basicsmappers.nondeterministic.ThreadNumToLong.class.getPackage()); add(io.virtdata.basicsmappers.from_long.to_uuid.ToHashedUUID.class.getPackage()); add(DoubleToFloat.class.getPackage()); add(ModuloToBigDecimal.class.getPackage()); add(ModuloToBoolean.class.getPackage()); add(ToInetAddress.class.getPackage()); add(ToBigInt.class.getPackage()); add(ToDate.class.getPackage()); add(io.virtdata.basicsmappers.unary_string.Suffix.class.getPackage()); add(io.virtdata.basicsmappers.from_long.to_long.Add.class.getPackage()); add(Add.class.getPackage()); add(io.virtdata.basicsmappers.unary_int.Add.class.getPackage()); add(ToEpochTimeUUID.class.getPackage()); add(HashedFileExtractToString.class.getPackage()); add(HashedLineToStringStringMap.class.getPackage()); add(HashedToByteBuffer.class.getPackage()); add(ModuloToShort.class.getPackage()); add(ModuloToByte.class.getPackage()); add(ToDouble.class.getPackage()); } } .stream().distinct().collect(Collectors.toList()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy