Class Plead_splittingBuilder

java.lang.Object
org.openprovenance.prov.template.library.plead.client.common.Plead_splittingBuilder
All Implemented Interfaces:
Builder, SQL

public class Plead_splittingBuilder extends Object implements Builder, SQL
Builder class for plead_splitting
  • Field Details

    • propertyOrder

      public static final String[] propertyOrder
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateFieldPropertyOrder()
    • __integrator

      public static final Plead_splittingIntegratorBuilder __integrator
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateCommonLib_aux()
    • outputs

      public static final String[] outputs
    • inputs

      public static final String[] inputs
    • compulsoryInputs

      public static final String[] compulsoryInputs
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateFieldCompulsoryInputs()
    • foreignTables

      public static final String[] foreignTables
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateFieldForeignTables()
    • __successors

      public static final Map<Integer,int[]> __successors
    • __successors2

      public static final Map<Integer,int[]> __successors2
    • __nodes

      public static final int[] __nodes
    • __relations

      public static final Map<String,Map<String,int[]>> __relations
    • aArgs2BeanConverter

      public final Plead_splittingProcessor<Plead_splittingBean> aArgs2BeanConverter
    • aRecord2BeanConverter

      public final ProcessorArgsInterface<Plead_splittingBean> aRecord2BeanConverter
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateField4aBeanConverter2()
    • aBean2SqlConverter

      public final Plead_splittingProcessor<String> aBean2SqlConverter
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateField4aSQLConverter2()
    • aArgs2CsVConverter

      public final Plead_splittingProcessor<String> aArgs2CsVConverter
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateField4aArgs2CsvConverter()
    • aRecord2SqlConverter

      public final ProcessorArgsInterface<String> aRecord2SqlConverter
    • aRecord2CsvConverter

      public final ProcessorArgsInterface<String> aRecord2CsvConverter
      Generated by method org.openprovenance.prov.template.compiler.common.CompilerCommon.generateField4aRecord2CsvConverter()
  • Constructor Details

    • Plead_splittingBuilder

      public Plead_splittingBuilder()
      Default constructor for builder for template plead_splitting
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Builder
    • getPropertyOrder

      public String[] getPropertyOrder()
      Null method for composite
      Specified by:
      getPropertyOrder in interface Builder
      Returns:
      the array of properties in order
    • getNodes

      public int[] getNodes()
      Specified by:
      getNodes in interface Builder
    • getSuccessors

      public Map<Integer,int[]> getSuccessors()
      Specified by:
      getSuccessors in interface Builder
    • getTypedSuccessors

      public Map<Integer,int[]> getTypedSuccessors()
      Specified by:
      getTypedSuccessors in interface Builder
    • record2csv

      public ProcessorArgsInterface<String> record2csv(Object[] record)
      Specified by:
      record2csv in interface Builder
    • getSQLInsert

      public String getSQLInsert()
      Specified by:
      getSQLInsert in interface SQL
    • getSQLInsertStatement

      public String getSQLInsertStatement()
      Specified by:
      getSQLInsertStatement in interface SQL
    • getIntegrator

      public final Plead_splittingIntegratorBuilder getIntegrator()
      Generated by class org.openprovenance.prov.template.compiler.common.CompilerCommon, method generateCommonLib_auxin file CompilerCommon.java, at line 126
    • args2csv

      public Plead_splittingProcessor<String> args2csv()
      logPlead_splitting client side logging method
      Returns:
      Plead_splittingProcessor
    • bean2sql

      public Plead_splittingProcessor<String> bean2sql()
      logPlead_splitting client side logging method
      Returns:
      Plead_splittingProcessor
    • aArgs2RecordConverter

      public Plead_splittingProcessor<Object[]> aArgs2RecordConverter()
      Returns a converter from arguments to record
      Returns:
      Plead_splittingProcessor
    • processorConverter

      public <T> Plead_splittingProcessor<T> processorConverter(ProcessorArgsInterface<T> __processor)
      Returns a converter from Processor taking arguments to Processor taking record
      Type Parameters:
      T - type variable for the result of processor
      Parameters:
      __processor - a transformer for this template
      Returns:
      Plead_splittingProcessor<T>
    • processorConverter

      public <T> ProcessorArgsInterface<T> processorConverter(Plead_splittingProcessor<T> processor)
      Returns a converter from Processor taking arguments to Processor taking record
      Type Parameters:
      T - type variable for the result of processor
      Parameters:
      processor - a transformer for this template
      Returns:
      ProcessorArgsInterface<T>
    • apply

      public <T> T apply(Plead_splittingProcessor<T> processor, Object[] record)
      Apply method
      Type Parameters:
      T - type variable for the result of processor
      Parameters:
      processor - a transformer for this template
      record - as an array of Objects
      Returns:
      an object of type T
    • logPlead_splitting_impure

      public void logPlead_splitting_impure(StringBuffer sb, Integer __split_file1, String __filename1, Integer __split_file2, String __filename2, Integer __file, Integer __organization, Integer __engineer, Integer __splitting, Integer __n_rows1, Integer __n_cols1, String __path1, Integer __n_rows2, Integer __n_cols2, String __path2, String __time, String __start, String __end)
      Logger method
      Parameters:
      sb - a StringBuffer
      __split_file1 - The first file resulting from the split
      __filename1 - The first filename resulting from the split
      __split_file2 - The second file resulting from the split
      __filename2 - The second filename resulting from the split
      __file - The file before splitting
      __organization - An organization aiming managing the ML pipeline
      __engineer - The engineer developing the ML pipeline
      __splitting - The activity of transforming the file
      __n_rows1 - The number of rows in the file
      __n_cols1 - The number of columns in the file
      __path1 - The actual path of the file
      __n_rows2 - The number of rows in the file
      __n_cols2 - The number of columns in the file
      __path2 - The actual path of the file
      __time - Time when the transformed file is created
      __start - Time when the transformation starts
      __end - Time when the transformation ends
    • logPlead_splitting

      public void logPlead_splitting(StringBuffer sb, Integer __split_file1, String __filename1, Integer __split_file2, String __filename2, Integer __file, Integer __organization, Integer __engineer, Integer __splitting, Integer __n_rows1, Integer __n_cols1, String __path1, Integer __n_rows2, Integer __n_cols2, String __path2, String __time, String __start, String __end)
      Logger method
      Parameters:
      sb - a StringBuffer
      __split_file1 - The first file resulting from the split
      __filename1 - The first filename resulting from the split
      __split_file2 - The second file resulting from the split
      __filename2 - The second filename resulting from the split
      __file - The file before splitting
      __organization - An organization aiming managing the ML pipeline
      __engineer - The engineer developing the ML pipeline
      __splitting - The activity of transforming the file
      __n_rows1 - The number of rows in the file
      __n_cols1 - The number of columns in the file
      __path1 - The actual path of the file
      __n_rows2 - The number of rows in the file
      __n_cols2 - The number of columns in the file
      __path2 - The actual path of the file
      __time - Time when the transformed file is created
      __start - Time when the transformation starts
      __end - Time when the transformation ends
    • __getNodes

      public static int[] __getNodes()
    • __getSuccessors

      public static Map<Integer,int[]> __getSuccessors()
    • __getRelations

      public static Map<String,Map<String,int[]>> __getRelations()
    • __getTypedSuccessors

      public static Map<Integer,int[]> __getTypedSuccessors()
    • __getAllTypes

      public static String[] __getAllTypes()
    • getOutputs

      public String[] getOutputs()
      Null method for composite
      Returns:
      null
    • getCompulsoryInputs

      public String[] getCompulsoryInputs()
      Null method for composite
      Returns:
      null
    • getInputs

      public String[] getInputs()
      Null method for composite
      Returns:
      null
    • toBean

      public Plead_splittingBean toBean(Object[] record)
      Converter to bean of type Plead_splittingBean for template plead_splitting.
      Parameters:
      record - an array of objects
      Returns:
      a bean
    • toBean

      public static Plead_splittingBean toBean(Integer __split_file1, String __filename1, Integer __split_file2, String __filename2, Integer __file, Integer __organization, Integer __engineer, Integer __splitting, Integer __n_rows1, Integer __n_cols1, String __path1, Integer __n_rows2, Integer __n_cols2, String __path2, String __time, String __start, String __end)
    • newBean

      public Plead_splittingBean newBean()
    • examplar

      public static Plead_splittingBean examplar()
    • sqlTuple

      public void sqlTuple(StringBuffer sb, Integer __split_file1, String __filename1, Integer __split_file2, String __filename2, Integer __file, Integer __organization, Integer __engineer, Integer __splitting, Integer __n_rows1, Integer __n_cols1, String __path1, Integer __n_rows2, Integer __n_cols2, String __path2, String __time, String __start, String __end)