@Override public HugeFeatures features() { // Can't verifyPermission() here, will be called by rollbackAll() return this.hugegraph.features(); }
@Override public HugeFeatures features() { return this.graph.features(); }
public static void showFeatures(final HugeGraph graph) { LOG.info("SupportsPersistence: {}", graph.features().graph().supportsPersistence()); }
private VertexLabel checkVertexLabel(Object label, boolean verifyLabel) { HugeVertexFeatures features = graph().features().vertex(); // Check Vertex label if (label == null && features.supportsDefaultLabel()) { label = features.defaultLabel(); } if (label == null) { throw Element.Exceptions.labelCanNotBeNull(); } E.checkArgument(label instanceof String || label instanceof VertexLabel, "Expect a string or a VertexLabel object " + "as the vertex label argument, but got: '%s'", label); // The label must be an instance of String or VertexLabel if (label instanceof String) { if (verifyLabel) { ElementHelper.validateLabel((String) label); } label = graph().vertexLabel((String) label); } assert (label instanceof VertexLabel); return (VertexLabel) label; }
private VertexLabel checkVertexLabel(Object label, boolean verifyLabel) { HugeVertexFeatures features = graph().features().vertex(); // Check Vertex label if (label == null && features.supportsDefaultLabel()) { label = features.defaultLabel(); } if (label == null) { throw Element.Exceptions.labelCanNotBeNull(); } E.checkArgument(label instanceof String || label instanceof VertexLabel, "Expect a string or a VertexLabel object " + "as the vertex label argument, but got: '%s'", label); // The label must be an instance of String or VertexLabel if (label instanceof String) { if (verifyLabel) { ElementHelper.validateLabel((String) label); } label = graph().vertexLabel((String) label); } assert (label instanceof VertexLabel); return (VertexLabel) label; }