Date
1 - 4 of 4
Modify Column.keys in projection query
HadoopMarc <bi...@...>
Hi Alexander, Readers of this list can help you better if you provide the query you tried on one of the example graphs or a sample graph you provide yourself. The Column.keys and Column.values are not useful for the project() step. If the properties of your vertices are called time and capacity you can do something like (not tested): project('time','capacity).by(values('time).map{it.get().substring(1,4)}).by(values('capacity).map{it.get().substring(1,4)}) The time and capacity args in the project step are used as keys in the resulting Map. Best wishes, Marc Op maandag 19 oktober 2020 om 06:42:41 UTC+2 schreef Александр Петраки:
|
|
Александр Петраки <snuchib...@...>
But map() can not be applied to Column.keys structure вс, 18 окт. 2020 г. в 13:21, HadoopMarc <bi...@...>:
|
|
HadoopMarc <bi...@...>
Hi Alexander, See: https://groups.google.com/g/gremlin-users/c/OqpJwd2WWdk/m/3cKVp8iYDQAJ Best wishes, Marc Op donderdag 15 oktober 2020 om 13:26:36 UTC+2 schreef Александр Петраки:
|
|
Александр Петраки <snuchib...@...>
Hello Everyone, I am having a simple projection query which ends with project('time','capacity).by(keys).by(values) Query itself works fine, but I need to make a substring of each key. Is there a way to do this? |
|