You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/10/12 20:07:51 UTC

[4/5] incubator-tinkerpop git commit: removed the comment regarding Element select(keys)/select(values).

removed the comment regarding Element select(keys)/select(values).


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/30852969
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/30852969
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/30852969

Branch: refs/heads/master
Commit: 308529690af0f5cafb23cda09e48ff64f196d3ca
Parents: 59ab3bc
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon Oct 12 10:32:03 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon Oct 12 12:07:10 2015 -0600

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/map/SelectColumnStep.java | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/30852969/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java
index 4cb2087..9b9cafa 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java
@@ -50,16 +50,12 @@ public final class SelectColumnStep<S, E> extends MapStep<S, Collection<E>> {
         final S start = traverser.get();
         if (start instanceof Map)
             return this.column.equals(Column.keys) ? ((Map<E, ?>) start).keySet() : ((Map<?, E>) start).values();
-        /*
-        else if (start instanceof Element)
-            return (Collection<E>) (this.column.equals(Column.keys) ? ((Element) start).keys() : IteratorUtils.asList(((Element) start).properties()));
-         */
         else if (start instanceof Path)
             return (Collection<E>) (this.column.equals(Column.keys) ? ((Path) start).labels() : ((Path) start).objects());
-        else if (start instanceof Map.Entry)
+        else if (start instanceof Map.Entry)   // TODO: remove support for this?
             return Collections.singleton(this.column.equals(Column.keys) ? ((Map.Entry<E, ?>) start).getKey() : ((Map.Entry<?, E>) start).getValue());
         else
-            throw new IllegalStateException("The traverser does not reference a map-like object: " + traverser);
+            throw new IllegalStateException("The traverser does not reference a map or path: " + traverser);
     }
 
     @Override