查看管道中表的 API:
http://www.tinkerpop.com/docs/javadocs/pipes/2.3.0/com/tinkerpop/pipes/util/structures/Table.html
以下是访问表的一些示例:
gremlin> g = TinkerGraphFactory.createTinkerGraph()
==>tinkergraph[vertices:6 edges:6]
gremlin> t=new Table();g.v(1).as('f').out.as('x').out.as('y').table(t)
==>v[5]
==>v[3]
gremlin> t
==>[f:v[1], x:v[4], y:v[5]]
==>[f:v[1], x:v[4], y:v[3]]
gremlin> t.get(0,0)
==>v[1]
gremlin> t.get(0,'x')
==>v[4]
gremlin> t.each{r->t.columnNames.each{n->println "col: " + r.getColumn(n)}}
col: v[1]
col: v[4]
col: v[5]
col: v[1]
col: v[4]
col: v[3]
==>[f:v[1], x:v[4], y:v[5]]
==>[f:v[1], x:v[4], y:v[3]]