return P.within((Collection) value); case "without": return P.without((Collection) value); default: return (P) P.class.getMethod(predicate, Collection.class).invoke(null, (Collection) value);
/** * Determines if a value is not within the specified list of values. * * @since 3.0.0-incubating */ public static <V> P<V> without(final V... values) { return P.without(Arrays.asList(values)); }
@Override public Traversal<Vertex, Long> get_g_V_hasIdXwithoutXemptyXX_count() { return g.V().hasId(P.without(Collections.emptyList())).count(); }
@Override public Traversal<Vertex, Long> get_g_V_hasXage_withoutX27X_count() { return g.V().has("age", P.without(27)).count(); }
@Override public Traversal<Vertex, Long> get_g_V_hasXage_withoutX27_29X_count() { return g.V().has("age", P.without(27, 29)).count(); }
return P.within((Collection) value); else if (predicate.equals("without")) return P.without((Collection) value); else return (P) P.class.getMethod(predicate, Collection.class).invoke(null, (Collection) value);
return P.within((Collection) value); else if (predicate.equals("without")) return P.without((Collection) value); else return (P) P.class.getMethod(predicate, Collection.class).invoke(null, (Collection) value);
return P.within((Collection) value); else if (predicate.equals("without")) return P.without((Collection) value); else return (P) P.class.getMethod(predicate, Collection.class).invoke(null, (Collection) value);
return P.within((Collection) value); else if (predicate.equals("without")) return P.without((Collection) value); else return (P) P.class.getMethod(predicate, Collection.class).invoke(null, (Collection) value);
@Override public Traversal<Vertex, Path> get_g_VX1X_repeatXbothEXcreatedX_whereXwithoutXeXX_aggregateXeX_otherVX_emit_path(final Object v1Id) { return g.V(v1Id).repeat(bothE("created").where(without("e")).aggregate("e").otherV()).emit().path(); }
@Override public P without(Object... values) { return P.without(values); }
/** * Determines if a value is not within the specified list of values. * * @since 3.0.0-incubating */ public static <V> P<V> without(final V... values) { return P.without(Arrays.asList(values)); }
addGraphProcessEntry(P.gt(0), "P", "", Compatibilities.UNTYPED_GRAPHSON.matchToArray()); addGraphProcessEntry(P.within(1), "P within", "", Compatibilities.UNTYPED_GRAPHSON.matchToArray()); addGraphProcessEntry(P.without(1,2), "P without", "", Compatibilities.UNTYPED_GRAPHSON.matchToArray());
@Override public P without(Object... values) { return P.without(inlineParameters(values)); }
@Override public Traversal<Vertex, Long> get_g_V_hasIdXwithoutXemptyXX_count() { return g.V().hasId(P.without(Collections.emptyList())).count(); }
@Override public Traversal<Vertex, Long> get_g_V_hasXage_withoutX27_29X_count() { return g.V().has("age", P.without(27, 29)).count(); }
@Override public Traversal<Vertex, Long> get_g_V_hasXage_withoutX27X_count() { return g.V().has("age", P.without(27)).count(); }
@Override public PredicatesHolder toPredicate(HasContainer has) { P predicate; if (has != null && !test(has.getPredicate())) { return PredicatesHolderFactory.abort(); } else if (has != null) { predicate = has.getPredicate().clone(); if (reverseAlias != null) { Object predicateValue = predicate.getValue(); if (reverseAlias.containsKey(predicateValue.toString())){ predicate.setValue(reverseAlias.get(predicateValue.toString())); } } } else if (include != null) { predicate = P.within(include); } else if (exclude != null) { predicate = P.without(exclude); } else return PredicatesHolderFactory.empty(); P translatedPredicate = type.translate(predicate); HasContainer hasContainer = new HasContainer(this.field, translatedPredicate); return PredicatesHolderFactory.predicate(hasContainer); }
@Override public Traversal<Vertex, Path> get_g_VX1X_repeatXbothEXcreatedX_whereXwithoutXeXX_aggregateXeX_otherVX_emit_path(final Object v1Id) { return g.V(v1Id).repeat(bothE("created").where(without("e")).aggregate("e").otherV()).emit().path(); }
protected void createMissingFiles() { GraphTraversalSource g = traversal(); // Loop until we can't find anymore missing files long implicitCreation = 1; while (implicitCreation > 0) { implicitCreation = g.V().hasLabel(Bdio.Class.File.name()) .as("f").values(Bdio.DataProperty.path.name()).dedup().aggregate("paths") .select("f").values(options().fileParentKey().get()).where(without("paths")) .dedup().as("path") .addV(Bdio.Class.File.name()) .property(Bdio.DataProperty.path.name(), select("path")) .property(Bdio.DataProperty.fileSystemType.name(), Bdio.FileSystemType.DIRECTORY.toString()) .sideEffect(t -> { HID.from(t.path("path")).tryParent().map(HID::toUriString).ifPresent(v -> t.get().property(options().fileParentKey().get(), v)); options().identifierKey().ifPresent(key -> t.get().property(key, BdioObject.randomId())); }) .count().next(); } }