pengmide commented on code in PR #19945: URL: https://github.com/apache/flink/pull/19945#discussion_r907967995
########## flink-python/pyflink/datastream/connectors/cassandra.py: ########## @@ -0,0 +1,253 @@ +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# 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. +################################################################################ +from pyflink.common import Duration +from pyflink.datastream import DataStream +from pyflink.datastream.connectors import Sink +from pyflink.java_gateway import get_gateway + + +class MapperOptions(object): + """ + This class is used to configure a Mapper after deployment. + """ + def __init__(self, j_mapper_options): + self._j_mapper_options = j_mapper_options + + +class CassandraFailureHandler(object): + """ + Handle a failed Throwable. + """ + def __init__(self, j_cassandra_failure_handler): + self._j_cassandra_failure_handler = j_cassandra_failure_handler + + +class ClusterBuilder(object): + """ + This class is used to configure a Cluster after deployment. The cluster represents the + connection that will be established to Cassandra. + """ + def __init__(self, j_cluster_builder): + self._j_cluster_builder = j_cluster_builder + Review Comment: This is the part about ClusterBuilder, I will create a new PR for easy review~ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
