@Override public <E extends Element> void dropKeyIndex(String key, Class<E> elementClass) { checkIndexableKey(key, elementClass); baseGraph.dropKeyIndex(key, elementClass); }
public <T extends Element> void dropKeyIndex(final String key, final Class<T> elementClass) { if (elementClass == null) throw ExceptionFactory.classForElementCannotBeNull(); boolean v = isVertexClass(elementClass); boolean supported = ((v && supportVertexIds) || (!v && supportEdgeIds)); if (supported && key.equals(ID)) { throw new IllegalArgumentException("index key " + ID + " is reserved by IdGraph"); } else { baseGraph.dropKeyIndex(key, elementClass); } }
@Override public <T extends Element> void dropKeyIndex(final String key, final Class<T> elementClass) { if (isNaturalIds()) { if (key.equals(VEProps.NATURAL_VERTEX_ID_PROP_KEY) || key.equals(VEProps.NATURAL_EDGE_ID_PROP_KEY)) { throw new IllegalArgumentException(String.format("Key [%s] is reserved and cannot be dropped.", VEProps.NATURAL_VERTEX_ID_PROP_KEY)); } } getEventableGraph().getBaseGraph().dropKeyIndex(key, elementClass); }