Skip to content

Commit

Permalink
:show imports really isn't relevant anymore
Browse files Browse the repository at this point in the history
TinkerPop imports can't be shown that way anymore since performance enhancement were introduced in how classes are referenced.
  • Loading branch information
spmallette committed Jan 16, 2025
1 parent 808b394 commit 2ad0c86
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions book/Section-Moving-Beyond.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -547,82 +547,6 @@ The 'DT' Enum provides constants representing units of time for the 'dateAdd' st
|day | Date.day | dateAdd(Date.second, 10)
|==============================================================================

Another useful tip, that was shared on the Gremlin Users mailing list, is that you
can ask the Gremlin Console to show you a list of everything that has been imported
on your behalf "behind the scenes" using the command ':show imports'. What might
typically be returned is shown below and may change from version to version.

Here is the list of imports that the Gremlin Console has setup for us quietly behind
the scenes when we started it. Take particular note of the ones that are 'static'
imports as those are the ones that contain the definitions we discussed above.

[source,groovy]
----
gremlin> :show imports
Custom imports:
org.apache.tinkerpop.gremlin.structure.*
org.apache.tinkerpop.gremlin.structure.util.*
org.apache.tinkerpop.gremlin.structure.util.reference.*
org.apache.tinkerpop.gremlin.process.traversal.*
org.apache.tinkerpop.gremlin.process.traversal.step.*
org.apache.tinkerpop.gremlin.process.traversal.step.util.*
org.apache.tinkerpop.gremlin.process.remote.*
org.apache.tinkerpop.gremlin.structure.util.empty.*
org.apache.tinkerpop.gremlin.structure.io.*
org.apache.tinkerpop.gremlin.structure.io.graphml.*
org.apache.tinkerpop.gremlin.structure.io.graphson.*
org.apache.tinkerpop.gremlin.structure.io.gryo.*
org.apache.commons.configuration.*
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.*
org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.*
org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.*
org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.*
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.*
org.apache.tinkerpop.gremlin.process.traversal.util.*
org.apache.tinkerpop.gremlin.process.computer.*
org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.*
org.apache.tinkerpop.gremlin.process.computer.clustering.connected.*
org.apache.tinkerpop.gremlin.process.computer.clone.*
org.apache.tinkerpop.gremlin.process.computer.bulkdumping.*
org.apache.tinkerpop.gremlin.process.computer.bulkloading.*
org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure.*
org.apache.tinkerpop.gremlin.process.computer.traversal.*
org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank.*
org.apache.tinkerpop.gremlin.process.computer.search.path.*
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization.*
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.*
org.apache.tinkerpop.gremlin.util.*
org.apache.tinkerpop.gremlin.util.iterator.*
org.apache.tinkerpop.gremlin.util.function.*
java.util.*
java.sql.*
static org.apache.tinkerpop.gremlin.structure.io.IoCore.*
static org.apache.tinkerpop.gremlin.process.traversal.P.*
static org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource.*
static org.apache.tinkerpop.gremlin.process.traversal.TextP.*
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*
static org.apache.tinkerpop.gremlin.process.computer.Computer.*
static org.apache.tinkerpop.gremlin.util.TimeUtil.*
static org.apache.tinkerpop.gremlin.util.function.Lambda.*
static org.apache.tinkerpop.gremlin.process.traversal.SackFunctions.Barrier.*
static org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality.*
static org.apache.tinkerpop.gremlin.structure.Column.*
static org.apache.tinkerpop.gremlin.structure.Direction.*
static org.apache.tinkerpop.gremlin.process.traversal.Operator.*
static org.apache.tinkerpop.gremlin.process.traversal.Order.*
static org.apache.tinkerpop.gremlin.process.traversal.Pop.*
static org.apache.tinkerpop.gremlin.process.traversal.Scope.*
static org.apache.tinkerpop.gremlin.structure.T.*
static org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParent.Pick.*
org.apache.tinkerpop.gremlin.driver.*
org.apache.tinkerpop.gremlin.driver.exception.*
org.apache.tinkerpop.gremlin.driver.message.*
org.apache.tinkerpop.gremlin.driver.ser.*
org.apache.tinkerpop.gremlin.driver.remote.*
org.apache.tinkerpop.gremlin.tinkergraph.structure.*
org.apache.tinkerpop.gremlin.tinkergraph.process.computer.*
----

As discussed earlier, you can always use the 'getClass' method or simply '.class'
while using the Gremlin Console to, in many cases, find out where something is
defined. As we saw in the examples earlier in this section, lot of the keywords such
Expand Down

0 comments on commit 2ad0c86

Please sign in to comment.