flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-3311] Add a connector for streaming dat...
Date Wed, 17 Feb 2016 22:23:52 GMT
Github user rmetzger commented on a diff in the pull request:

    --- Diff: flink-streaming-connectors/flink-connector-cassandra/src/test/java/org/apache/flink/connectors/cassandra/CassandraConnectorTest.java
    @@ -0,0 +1,307 @@
    + * 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.
    + */
    +package org.apache.flink.connectors.cassandra;
    +import java.io.*;
    +import java.util.ArrayList;
    +import java.util.Arrays;
    +import java.util.Scanner;
    +import com.datastax.driver.core.Session;
    +import org.apache.cassandra.service.CassandraDaemon;
    +import org.apache.flink.api.java.DataSet;
    +import org.apache.flink.api.java.ExecutionEnvironment;
    +import org.apache.flink.api.java.tuple.Tuple2;
    +import org.apache.flink.connectors.cassandra.batch.CassandraInputFormat;
    +import org.apache.flink.connectors.cassandra.batch.CassandraOutputFormat;
    +import org.apache.flink.connectors.cassandra.streaming.CassandraMapperSink;
    +import org.apache.flink.connectors.cassandra.streaming.CassandraSink;
    +import org.apache.flink.runtime.client.JobExecutionException;
    +import org.apache.flink.runtime.testutils.CommonTestUtils;
    +import org.apache.flink.streaming.api.datastream.DataStream;
    +import org.apache.flink.streaming.api.datastream.DataStreamSource;
    +import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
    +import org.apache.flink.streaming.api.functions.source.SourceFunction;
    +import org.apache.flink.streaming.util.StreamingMultipleProgramsTestBase;
    +import com.datastax.driver.core.Cluster;
    +import com.datastax.driver.core.Cluster.Builder;
    +import com.datastax.driver.core.ResultSet;
    +import org.apache.zookeeper.KeeperException;
    +import org.junit.*;
    +import org.junit.runner.RunWith;
    +import org.powermock.core.classloader.annotations.PowerMockIgnore;
    +import org.powermock.core.classloader.annotations.PrepareForTest;
    +import org.powermock.modules.junit4.PowerMockRunner;
    +public class CassandraConnectorTest extends StreamingMultipleProgramsTestBase {
    +	private static File tmpDir;
    +    private static EmbeddedCassandraService cassandra;
    --- End diff --
    The indentation here is done using spaces. Can you switch to tabs?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message