I am trying to fetch vertices that start with a specific prefixes in JAVA. I have used the between predicate. Is there a better way to do the same. For example if I need the vertices starting with 'a'. I would use
.has(label, propertyKey, P.between("a", "b"))