diff --git a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/CreateUniqueAcceptanceTest.scala b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/CreateUniqueAcceptanceTest.scala
index 36d1959eedf55..31152107be82f 100644
--- a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/CreateUniqueAcceptanceTest.scala
+++ b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/CreateUniqueAcceptanceTest.scala
@@ -20,6 +20,7 @@
package org.neo4j.internal.cypher.acceptance
import org.neo4j.cypher._
+import org.neo4j.cypher.internal.QueryStatistics
import org.neo4j.graphdb.{Node, Path, Relationship}
import scala.collection.JavaConverters._
diff --git a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/LoadCsvAcceptanceTest.scala b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/LoadCsvAcceptanceTest.scala
index ce311f9cc999a..549897c0f62a7 100644
--- a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/LoadCsvAcceptanceTest.scala
+++ b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/LoadCsvAcceptanceTest.scala
@@ -22,6 +22,7 @@ package org.neo4j.internal.cypher.acceptance
import java.io.{File, PrintWriter}
import java.net.{URLConnection, URLStreamHandler, URLStreamHandlerFactory, URL}
import org.neo4j.cypher._
+import org.neo4j.cypher.internal.ExecutionEngine
import org.neo4j.cypher.internal.compiler.v3_0.test_helpers.CreateTempFileTestSupport
import org.neo4j.cypher.internal.frontend.v3_0.helpers.StringHelper.RichString
import org.neo4j.graphdb.factory.GraphDatabaseSettings
diff --git a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/MatchLongPatternAcceptanceTest.scala b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/MatchLongPatternAcceptanceTest.scala
index 8e14b18436056..9ce713cd45c25 100644
--- a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/MatchLongPatternAcceptanceTest.scala
+++ b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/MatchLongPatternAcceptanceTest.scala
@@ -22,6 +22,7 @@ package org.neo4j.internal.cypher.acceptance
import java.util
import org.neo4j.cypher._
+import org.neo4j.cypher.internal.{PlanDescription, ExecutionEngine}
import org.neo4j.cypher.internal.compiler.v3_0.planner.logical.idp.IDPSolverMonitor
import org.neo4j.graphdb.GraphDatabaseService
import org.neo4j.graphdb.config.Setting
diff --git a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/PreParsingAcceptanceTest.scala b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/PreParsingAcceptanceTest.scala
index 384693b739525..b43ea7613b600 100644
--- a/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/PreParsingAcceptanceTest.scala
+++ b/community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/PreParsingAcceptanceTest.scala
@@ -19,9 +19,10 @@
*/
package org.neo4j.internal.cypher.acceptance
+import org.neo4j.cypher.internal.ExtendedExecutionResult
import org.neo4j.cypher.internal.compatibility.CompatibilityPlanDescriptionFor3_0
import org.neo4j.cypher.internal.compiler.v3_0._
-import org.neo4j.cypher.{ExecutionEngineFunSuite, ExtendedExecutionResult}
+import org.neo4j.cypher.ExecutionEngineFunSuite
import org.scalatest.matchers.{MatchResult, Matcher}
class PreParsingAcceptanceTest extends ExecutionEngineFunSuite {
diff --git a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/Description.java b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/Description.java
similarity index 86%
rename from community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/Description.java
rename to community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/Description.java
index 4605886e94e68..bf4a739915427 100644
--- a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/Description.java
+++ b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/Description.java
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package org.neo4j.cypher.javacompat;
+package org.neo4j.cypher.javacompat.internal;
import scala.collection.JavaConversions;
@@ -28,17 +28,18 @@
import java.util.NoSuchElementException;
import java.util.Set;
-import org.neo4j.cypher.ExtendedPlanDescription;
+import org.neo4j.cypher.internal.ExtendedPlanDescription;
import org.neo4j.cypher.ProfilerStatisticsNotReadyException;
+import org.neo4j.cypher.internal.PlanDescription;
import org.neo4j.graphdb.ExecutionPlanDescription;
import static org.neo4j.helpers.Exceptions.withCause;
class Description implements ExecutionPlanDescription
{
- private final org.neo4j.cypher.PlanDescription description;
+ private final org.neo4j.cypher.internal.PlanDescription description;
- public Description( org.neo4j.cypher.PlanDescription description )
+ public Description( PlanDescription description )
{
this.description = description;
}
@@ -59,7 +60,7 @@ public String getName()
public List getChildren()
{
List result = new ArrayList<>();
- for ( org.neo4j.cypher.PlanDescription child : JavaConversions.asJavaIterable( description.children() ) )
+ for ( PlanDescription child : JavaConversions.asJavaIterable( description.children() ) )
{
result.add( new Description( child ) );
}
@@ -91,7 +92,7 @@ public boolean hasProfilerStatistics()
@Override
public ProfilerStatistics getProfilerStatistics()
{
- final org.neo4j.cypher.javacompat.ProfilerStatistics statistics;
+ final org.neo4j.cypher.javacompat.internal.ProfilerStatistics statistics;
try
{
statistics = description.asJava().getProfilerStatistics();
diff --git a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionEngine.java b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionEngine.java
similarity index 92%
rename from community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionEngine.java
rename to community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionEngine.java
index b85f26a8a7173..f301394a5f1b3 100644
--- a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionEngine.java
+++ b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionEngine.java
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package org.neo4j.cypher.javacompat;
+package org.neo4j.cypher.javacompat.internal;
import java.util.Map;
@@ -33,12 +33,10 @@
* This class construct and initialize both the cypher compiler and the cypher runtime, which is a very expensive
* operation so please make sure this will be constructed only once and properly reused.
*
- * @deprecated use {@link org.neo4j.graphdb.GraphDatabaseService#execute(String)} instead.
*/
-@Deprecated
public class ExecutionEngine
{
- private org.neo4j.cypher.ExecutionEngine inner;
+ private org.neo4j.cypher.internal.ExecutionEngine inner;
/**
* Creates an execution engine around the give graph database
@@ -59,10 +57,9 @@ public ExecutionEngine( GraphDatabaseService database, LogProvider logProvider )
inner = createInnerEngine( database, logProvider );
}
- protected
- org.neo4j.cypher.ExecutionEngine createInnerEngine( GraphDatabaseService database, LogProvider logProvider )
+ protected org.neo4j.cypher.internal.ExecutionEngine createInnerEngine( GraphDatabaseService database, LogProvider logProvider )
{
- return new org.neo4j.cypher.ExecutionEngine( database, logProvider );
+ return new org.neo4j.cypher.internal.ExecutionEngine( database, logProvider );
}
/**
diff --git a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionResult.java b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionResult.java
similarity index 97%
rename from community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionResult.java
rename to community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionResult.java
index b3533bc1ad3f3..c00d708711986 100644
--- a/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/ExecutionResult.java
+++ b/community/cypher/cypher/src/main/java/org/neo4j/cypher/javacompat/internal/ExecutionResult.java
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package org.neo4j.cypher.javacompat;
+package org.neo4j.cypher.javacompat.internal;
import scala.collection.JavaConversions;
@@ -28,6 +28,7 @@
import java.util.stream.Stream;
import org.neo4j.cypher.CypherException;
+import org.neo4j.cypher.internal.ExtendedExecutionResult;
import org.neo4j.graphdb.ExecutionPlanDescription;
import org.neo4j.graphdb.Notification;
import org.neo4j.graphdb.QueryExecutionException;
@@ -49,14 +50,10 @@
* Either iterate directly over the ExecutionResult to retrieve each row of the result
* set, or use columnAs()
to access a single column with result objects
* cast to a type.
- *
- * @deprecated See {@link org.neo4j.graphdb.Result}, and use
- * {@link org.neo4j.graphdb.GraphDatabaseService#execute(String, Map)} instead.
*/
-@Deprecated
public class ExecutionResult implements ResourceIterable