You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by sh...@apache.org on 2015/03/24 10:14:07 UTC

incubator-lens git commit: LENS-435 : TestQueryRunner renamed to QueryRunner. (sharad)

Repository: incubator-lens
Updated Branches:
  refs/heads/master 8d185913e -> b01f726cf


LENS-435 : TestQueryRunner renamed to QueryRunner. (sharad)


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/b01f726c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/b01f726c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/b01f726c

Branch: refs/heads/master
Commit: b01f726cfbaee779be5a0b729a197a6458830a4f
Parents: 8d18591
Author: Sharad Agarwal <sh...@flipkarts-MacBook-Pro.local>
Authored: Tue Mar 24 14:37:27 2015 +0530
Committer: Sharad Agarwal <sh...@flipkarts-MacBook-Pro.local>
Committed: Tue Mar 24 14:37:27 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/lens/ml/QueryRunner.java    | 56 ++++++++++++++++++++
 .../org/apache/lens/ml/TestQueryRunner.java     | 56 --------------------
 2 files changed, 56 insertions(+), 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/b01f726c/lens-ml-lib/src/main/java/org/apache/lens/ml/QueryRunner.java
----------------------------------------------------------------------
diff --git a/lens-ml-lib/src/main/java/org/apache/lens/ml/QueryRunner.java b/lens-ml-lib/src/main/java/org/apache/lens/ml/QueryRunner.java
new file mode 100644
index 0000000..56f9a88
--- /dev/null
+++ b/lens-ml-lib/src/main/java/org/apache/lens/ml/QueryRunner.java
@@ -0,0 +1,56 @@
+/**
+ * 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.lens.ml;
+
+import org.apache.lens.api.LensException;
+import org.apache.lens.api.LensSessionHandle;
+import org.apache.lens.api.query.QueryHandle;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * Run a query against a Lens server.
+ */
+public abstract class QueryRunner {
+
+  /** The session handle. */
+  protected final LensSessionHandle sessionHandle;
+
+  @Getter @Setter
+  protected String queryName;
+
+  /**
+   * Instantiates a new query runner.
+   *
+   * @param sessionHandle the session handle
+   */
+  public QueryRunner(LensSessionHandle sessionHandle) {
+    this.sessionHandle = sessionHandle;
+  }
+
+  /**
+   * Run query.
+   *
+   * @param query the query
+   * @return the query handle
+   * @throws LensException the lens exception
+   */
+  public abstract QueryHandle runQuery(String query) throws LensException;
+}

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/b01f726c/lens-ml-lib/src/main/java/org/apache/lens/ml/TestQueryRunner.java
----------------------------------------------------------------------
diff --git a/lens-ml-lib/src/main/java/org/apache/lens/ml/TestQueryRunner.java b/lens-ml-lib/src/main/java/org/apache/lens/ml/TestQueryRunner.java
deleted file mode 100644
index 56f9a88..0000000
--- a/lens-ml-lib/src/main/java/org/apache/lens/ml/TestQueryRunner.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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.lens.ml;
-
-import org.apache.lens.api.LensException;
-import org.apache.lens.api.LensSessionHandle;
-import org.apache.lens.api.query.QueryHandle;
-
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * Run a query against a Lens server.
- */
-public abstract class QueryRunner {
-
-  /** The session handle. */
-  protected final LensSessionHandle sessionHandle;
-
-  @Getter @Setter
-  protected String queryName;
-
-  /**
-   * Instantiates a new query runner.
-   *
-   * @param sessionHandle the session handle
-   */
-  public QueryRunner(LensSessionHandle sessionHandle) {
-    this.sessionHandle = sessionHandle;
-  }
-
-  /**
-   * Run query.
-   *
-   * @param query the query
-   * @return the query handle
-   * @throws LensException the lens exception
-   */
-  public abstract QueryHandle runQuery(String query) throws LensException;
-}