diff options
author | Julien Le Dem <julien@ledem.net> | 2015-10-15 10:59:18 -0700 |
---|---|---|
committer | Jacques Nadeau <jacques@apache.org> | 2015-10-26 08:40:17 -0700 |
commit | dbcab0fee8ff416724b770ca08018cf0f17d0035 (patch) | |
tree | 26bf3a86831bb9ca7c5a200a0f8ae220e0ba1558 /exec/java-exec/src/test/java/org/apache/drill/exec/memory | |
parent | 6576123d5351219fc2c5bd3af1676ccb77a51e34 (diff) |
DRILL-3742: Classpath scanning and build improvement
Makes the classpath scanning a build time class discovery
Makes the fmpp generation incremental
Removes some slowness in DrillBit closing
Reduces the build time by 30%
This closes #148
Diffstat (limited to 'exec/java-exec/src/test/java/org/apache/drill/exec/memory')
-rw-r--r-- | exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java b/exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java index 18aae2cca..d52266331 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java @@ -21,8 +21,6 @@ package org.apache.drill.exec.memory; import static org.junit.Assert.fail; -import io.netty.buffer.DrillBuf; - import java.util.Iterator; import java.util.List; import java.util.Properties; @@ -38,8 +36,8 @@ import org.apache.drill.exec.ops.OperatorStats; import org.apache.drill.exec.physical.PhysicalPlan; import org.apache.drill.exec.physical.base.PhysicalOperator; import org.apache.drill.exec.planner.PhysicalPlanReader; +import org.apache.drill.exec.planner.PhysicalPlanReaderTestFactory; import org.apache.drill.exec.proto.BitControl; -import org.apache.drill.exec.proto.CoordinationProtos; import org.apache.drill.exec.proto.UserBitShared; import org.apache.drill.exec.server.Drillbit; import org.apache.drill.exec.server.DrillbitContext; @@ -50,6 +48,8 @@ import org.junit.Test; import com.google.common.base.Charsets; import com.google.common.io.Files; +import io.netty.buffer.DrillBuf; + public class TestAllocators { private static final Properties TEST_CONFIGURATIONS = new Properties() { @@ -109,7 +109,7 @@ public class TestAllocators { FragmentContext fragmentContext2 = new FragmentContext(bitContext, pf2, null, functionRegistry); // Get a few physical operators. Easiest way is to read a physical plan. - PhysicalPlanReader planReader = new PhysicalPlanReader(config, config.getMapper(), CoordinationProtos.DrillbitEndpoint.getDefaultInstance(), storageRegistry); + PhysicalPlanReader planReader = PhysicalPlanReaderTestFactory.defaultPhysicalPlanReader(bitContext, storageRegistry); PhysicalPlan plan = planReader.readPhysicalPlan(Files.toString(FileUtils.getResourceAsFile(planFile), Charsets.UTF_8)); List<PhysicalOperator> physicalOperators = plan.getSortedOperators(); Iterator<PhysicalOperator> physicalOperatorIterator = physicalOperators.iterator(); |