forked from opensci/piflow
add next phase class
`product distinct part` `foreign key wash`
This commit is contained in:
parent
c62215120c
commit
aab8b7854d
|
@ -1,5 +1,25 @@
|
|||
package cn.piflow.bundle.nsfc.distinct
|
||||
|
||||
class HivePRDDistinct {
|
||||
import cn.piflow.{JobContext, JobInputStream, JobOutputStream, ProcessContext}
|
||||
import cn.piflow.conf.{ConfigurableStop, PortEnum}
|
||||
import cn.piflow.conf.bean.PropertyDescriptor
|
||||
|
||||
class HivePRDDistinct extends ConfigurableStop {
|
||||
override val authorEmail: String = "xiaomeng7890@gmail.com"
|
||||
override val description: String = ""
|
||||
//
|
||||
override val inportList: List[String] = List("productTable","productSpecTable")
|
||||
override val outportList: List[String] = List("Relation", "Entity")
|
||||
|
||||
override def setProperties(map: Map[String, Any]): Unit = ???
|
||||
|
||||
override def getPropertyDescriptor(): List[PropertyDescriptor] = ???
|
||||
|
||||
override def getIcon(): Array[Byte] = ???
|
||||
|
||||
override def getGroup(): List[String] = ???
|
||||
|
||||
override def initialize(ctx: ProcessContext): Unit = ???
|
||||
|
||||
override def perform(in: JobInputStream, out: JobOutputStream, pec: JobContext): Unit = ???
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.apache.spark.sql.types.{StringType, StructField, StructType}
|
|||
import org.apache.spark.sql.{Column, DataFrame, Row, SparkSession}
|
||||
import redis.clients.jedis.HostAndPort
|
||||
|
||||
class HivePSNDistinct extends ConfigurableStop{
|
||||
class HivePSNDistinct extends ConfigurableStop {
|
||||
override val authorEmail: String = "xiaomeng7890@gmail.com"
|
||||
override val description: String = "person table distinct"
|
||||
override val inportList: List[String] = List(PortEnum.DefaultPort.toString)
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package cn.piflow.bundle.nsfc.distinct
|
||||
|
||||
import cn.piflow.{JobContext, JobInputStream, JobOutputStream, ProcessContext}
|
||||
import cn.piflow.conf.{ConfigurableStop, PortEnum}
|
||||
import cn.piflow.conf.bean.PropertyDescriptor
|
||||
|
||||
class foreignKeyWash extends ConfigurableStop {
|
||||
override val authorEmail: String = "xiaomeng7890@gmail.com"
|
||||
override val description: String = ""
|
||||
//
|
||||
override val inportList: List[String] = List(PortEnum.DefaultPort.toString)
|
||||
override val outportList: List[String] = List(PortEnum.DefaultPort.toString)
|
||||
|
||||
override def setProperties(map: Map[String, Any]): Unit = ???
|
||||
|
||||
override def getPropertyDescriptor(): List[PropertyDescriptor] = ???
|
||||
|
||||
override def getIcon(): Array[Byte] = ???
|
||||
|
||||
override def getGroup(): List[String] = ???
|
||||
|
||||
override def initialize(ctx: ProcessContext): Unit = ???
|
||||
|
||||
override def perform(in: JobInputStream, out: JobOutputStream, pec: JobContext): Unit = ???
|
||||
}
|
Loading…
Reference in New Issue