Skip to content

Commit

Permalink
Reverting abstract method change
Browse files Browse the repository at this point in the history
  • Loading branch information
LizaMo committed Mar 14, 2023
1 parent 48db359 commit d540213
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ case class CassandraSinkConfig[ADT <: FlinkEvent](

/** Don't convert to single abstract method...flink will complain
*/
val clusterBuilder: ClusterBuilder = (builder: Cluster.Builder) =>
builder
.addContactPoint(host)
.withPort(port)
.withoutJMXReporting()
.withCodecRegistry(
new CodecRegistry().register(InstantCodec.instance)
)
.build()
val clusterBuilder: ClusterBuilder = new ClusterBuilder {
override def buildCluster(builder: Cluster.Builder): Cluster =
builder
.addContactPoint(host)
.withPort(port)
.withoutJMXReporting()
.withCodecRegistry(
new CodecRegistry().register(InstantCodec.instance)
)
.build()
}

def getSink[E <: ADT: TypeInformation](
stream: DataStream[E]): DataStreamSink[E] = {
Expand Down

0 comments on commit d540213

Please sign in to comment.