Return-Path: X-Original-To: apmail-phoenix-commits-archive@minotaur.apache.org Delivered-To: apmail-phoenix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCEB418183 for ; Fri, 26 Jun 2015 16:14:24 +0000 (UTC) Received: (qmail 26967 invoked by uid 500); 26 Jun 2015 16:14:24 -0000 Delivered-To: apmail-phoenix-commits-archive@phoenix.apache.org Received: (qmail 26929 invoked by uid 500); 26 Jun 2015 16:14:24 -0000 Mailing-List: contact commits-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list commits@phoenix.apache.org Received: (qmail 26920 invoked by uid 99); 26 Jun 2015 16:14:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2015 16:14:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8D1C1DFF07; Fri, 26 Jun 2015 16:14:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: codymarcel@apache.org To: commits@phoenix.apache.org Message-Id: <71f9b4ebee3949299926274457db52b0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: phoenix git commit: PHOENIX-2072 - (James Taylor) Fix Eclipse compiler errors in pherf module Date: Fri, 26 Jun 2015 16:14:24 +0000 (UTC) Repository: phoenix Updated Branches: refs/heads/4.4-HBase-1.1 4852cee55 -> 319bc7c55 PHOENIX-2072 - (James Taylor) Fix Eclipse compiler errors in pherf module Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/319bc7c5 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/319bc7c5 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/319bc7c5 Branch: refs/heads/4.4-HBase-1.1 Commit: 319bc7c55442392e95ff2923085942060e8805d5 Parents: 4852cee Author: cmarcel Authored: Fri Jun 26 09:14:43 2015 -0700 Committer: cmarcel Committed: Fri Jun 26 09:14:43 2015 -0700 ---------------------------------------------------------------------- .../pherf/workload/MultithreadedDiffer.java | 7 ++---- .../apache/phoenix/pherf/RuleGeneratorTest.java | 26 ++++++++++++++------ 2 files changed, 20 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/319bc7c5/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/workload/MultithreadedDiffer.java ---------------------------------------------------------------------- diff --git a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/workload/MultithreadedDiffer.java b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/workload/MultithreadedDiffer.java index 1735754..91189e2 100644 --- a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/workload/MultithreadedDiffer.java +++ b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/workload/MultithreadedDiffer.java @@ -21,20 +21,18 @@ package org.apache.phoenix.pherf.workload; import java.util.Calendar; import java.util.Date; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import org.apache.phoenix.pherf.PherfConstants; import org.apache.phoenix.pherf.configuration.Query; import org.apache.phoenix.pherf.result.RunTime; import org.apache.phoenix.pherf.result.ThreadTime; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; class MultithreadedDiffer implements Runnable { private static final Logger logger = LoggerFactory.getLogger(MultiThreadedRunner.class); private Thread t; private Query query; private ThreadTime threadTime; - private String threadName; private long numberOfExecutions; private long executionDurationInMs; private QueryVerifier queryVerifier = new QueryVerifier(true); @@ -72,7 +70,6 @@ class MultithreadedDiffer implements Runnable { MultithreadedDiffer(String threadName, Query query, ThreadTime threadTime, long numberOfExecutions, long executionDurationInMs) { this.query = query; - this.threadName = threadName; this.threadTime = threadTime; this.numberOfExecutions = numberOfExecutions; this.executionDurationInMs = executionDurationInMs; http://git-wip-us.apache.org/repos/asf/phoenix/blob/319bc7c5/phoenix-pherf/src/test/java/org/apache/phoenix/pherf/RuleGeneratorTest.java ---------------------------------------------------------------------- diff --git a/phoenix-pherf/src/test/java/org/apache/phoenix/pherf/RuleGeneratorTest.java b/phoenix-pherf/src/test/java/org/apache/phoenix/pherf/RuleGeneratorTest.java index 92604d4..936eedb 100644 --- a/phoenix-pherf/src/test/java/org/apache/phoenix/pherf/RuleGeneratorTest.java +++ b/phoenix-pherf/src/test/java/org/apache/phoenix/pherf/RuleGeneratorTest.java @@ -18,22 +18,32 @@ package org.apache.phoenix.pherf; -import org.apache.phoenix.pherf.configuration.*; -import org.apache.phoenix.pherf.workload.WriteWorkload; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Set; +import java.util.TreeSet; + +import org.apache.phoenix.pherf.configuration.Column; +import org.apache.phoenix.pherf.configuration.DataModel; +import org.apache.phoenix.pherf.configuration.DataSequence; +import org.apache.phoenix.pherf.configuration.DataTypeMapping; +import org.apache.phoenix.pherf.configuration.Scenario; +import org.apache.phoenix.pherf.configuration.XMLConfigParser; import org.apache.phoenix.pherf.rules.DataValue; import org.apache.phoenix.pherf.rules.RulesApplier; -import org.apache.phoenix.pherf.util.PhoenixUtil; +import org.apache.phoenix.pherf.workload.WriteWorkload; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.junit.Test; -import java.util.*; - -import static org.junit.Assert.*; - public class RuleGeneratorTest { - private static PhoenixUtil util = PhoenixUtil.create(true); private static final String matcherScenario = PherfConstants.SCENARIO_ROOT_PATTERN + ".xml"; @Test