public void convertElementsToIds() {
        if (null != this.ids) {
            // if this is going to OLAP, convert to ids so you don't serialize elements
            for (int i = 0; i < this.ids.length; i++) {
                final GValue<?> current = this.ids[i];
                if (current.get() instanceof Element) {
                    this.ids[i] = GValue.of(current.getName(), ((Element) current.get()).id());
                }
            }
        }
    }
Gets the ids associated with this step as literal values rather than {@link GValue} objects.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java