Skip to content

Commit

Permalink
Renamed all remaining occurrences of EnterpriseInterpreted to Slotted
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaPeukert committed Oct 11, 2017
1 parent d095c05 commit 6dfab05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -149,7 +149,7 @@ public static class CostCompiledSourceCode extends Base
tags = { "~@pending" },
strict = true
)
public static class CostInterpretedEnterprise extends Base
public static class CostSlotted extends Base
{
}

Expand Down
Expand Up @@ -39,7 +39,7 @@ import org.neo4j.cypher.internal.spi.v3_3.QueryContext
import org.neo4j.cypher.internal.v3_3.logical.plans.{IndexUsage, LogicalPlan, LogicalPlanId}
import org.neo4j.values.virtual.MapValue

object BuildEnterpriseInterpretedExecutionPlan extends Phase[EnterpriseRuntimeContext, LogicalPlanState, CompilationState] {
object BuildSlottedExecutionPlan extends Phase[EnterpriseRuntimeContext, LogicalPlanState, CompilationState] {
override def phase: CompilationPhaseTracer.CompilationPhase = PIPE_BUILDING

override def description = "create interpreted execution plan"
Expand Down
Expand Up @@ -31,7 +31,7 @@ object EnterpriseRuntimeBuilder extends RuntimeBuilder[Transformer[EnterpriseRun
def create(runtimeName: Option[RuntimeName], useErrorsOverWarnings: Boolean): Transformer[EnterpriseRuntimeContext, LogicalPlanState, CompilationState] = {

def pickInterpretedExecutionPlan() =
BuildEnterpriseInterpretedExecutionPlan andThen
BuildSlottedExecutionPlan andThen
If[EnterpriseRuntimeContext, LogicalPlanState, CompilationState](_.maybeExecutionPlan.isEmpty) {
BuildInterpretedExecutionPlan
}
Expand All @@ -47,13 +47,13 @@ object EnterpriseRuntimeBuilder extends RuntimeBuilder[Transformer[EnterpriseRun
BuildInterpretedExecutionPlan

case Some(SlottedRuntimeName) if useErrorsOverWarnings =>
BuildEnterpriseInterpretedExecutionPlan andThen
BuildSlottedExecutionPlan andThen
If[EnterpriseRuntimeContext, LogicalPlanState, CompilationState](_.maybeExecutionPlan.isEmpty) {
Do((_, _) => throw new InvalidArgumentException("The given query is not currently supported in the selected runtime"))
}

case Some(SlottedRuntimeName) =>
BuildEnterpriseInterpretedExecutionPlan andThen
BuildSlottedExecutionPlan andThen
If[EnterpriseRuntimeContext, LogicalPlanState, CompilationState](_.maybeExecutionPlan.isEmpty) {
Do((_: EnterpriseRuntimeContext).notificationLogger.log(RuntimeUnsupportedNotification)) andThen
BuildInterpretedExecutionPlan
Expand Down
Expand Up @@ -20,7 +20,7 @@
package org.neo4j.cypher.internal.compatibility.v3_3.runtime.slotted

import org.mockito.Mockito._
import org.neo4j.cypher.internal.BuildEnterpriseInterpretedExecutionPlan.EnterprisePipeBuilderFactory
import org.neo4j.cypher.internal.BuildSlottedExecutionPlan.EnterprisePipeBuilderFactory
import org.neo4j.cypher.internal.compatibility.v3_3.runtime._
import org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.convert.{CommunityExpressionConverter, ExpressionConverters}
import org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.{Literal, Property, Variable}
Expand Down

0 comments on commit 6dfab05

Please sign in to comment.