gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkevincr <...@git.apache.org>
Subject [GitHub] gora pull request #134: GORA-535 Add a data store for Apache Ignite
Date Mon, 20 Aug 2018 12:38:13 GMT
Github user djkevincr commented on a diff in the pull request:

    https://github.com/apache/gora/pull/134#discussion_r211245661
  
    --- Diff: gora-ignite/src/main/java/org/apache/gora/ignite/utils/IgniteSQLBuilder.java
---
    @@ -0,0 +1,353 @@
    +/*
    + * 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.gora.ignite.utils;
    +
    +import avro.shaded.com.google.common.collect.Lists;
    +import java.sql.PreparedStatement;
    +import java.sql.SQLException;
    +import java.text.MessageFormat;
    +import java.util.ArrayList;
    +import java.util.List;
    +import java.util.Locale;
    +import java.util.Map;
    +import java.util.Map.Entry;
    +import org.apache.gora.ignite.store.Column;
    +import org.apache.gora.ignite.store.IgniteMapping;
    +
    +/**
    + *
    + * SQL Builder utility for Ignite.
    + */
    +public class IgniteSQLBuilder {
    --- End diff --
    
    Since Ignite exposes SQL based database, is there any existing query builder available
construct Ignite SQL queries? Otherwise writing them by concatenating string parts etc. likely
to end up in query issues. 


---

Mime
View raw message