@Service public class PropertyKeyService extends SchemaService
USER_KEY_CREATE_TIME, USER_KEY_STYLE| Constructor and Description |
|---|
PropertyKeyService() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PropertyKeyEntity entity,
int connId) |
void |
addBatch(List<org.apache.hugegraph.structure.schema.PropertyKey> propertyKeys,
org.apache.hugegraph.driver.HugeClient client) |
ConflictDetail |
checkConflict(ConflictCheckEntity entity,
int connId,
boolean compareEachOther) |
void |
checkConflict(List<PropertyKeyEntity> entities,
ConflictDetail detail,
int connId,
boolean compareEachOther) |
void |
checkExist(String name,
int connId) |
void |
checkNotExist(String name,
int connId) |
boolean |
checkUsing(String name,
int connId)
Check the property key is being used, used means that there is
any vertex label or edge label contains the property(name)
|
static PropertyKeyEntity |
convert(org.apache.hugegraph.structure.schema.PropertyKey propertyKey) |
static org.apache.hugegraph.structure.schema.PropertyKey |
convert(PropertyKeyEntity entity,
org.apache.hugegraph.driver.HugeClient client) |
List<org.apache.hugegraph.structure.schema.PropertyKey> |
filter(ConflictDetail detail,
org.apache.hugegraph.driver.HugeClient client) |
PropertyKeyEntity |
get(String name,
int connId) |
List<PropertyKeyEntity> |
list(Collection<String> names,
int connId) |
List<PropertyKeyEntity> |
list(Collection<String> names,
int connId,
boolean emptyAsAll) |
List<PropertyKeyEntity> |
list(int connId) |
void |
remove(String name,
int connId) |
void |
removeBatch(List<org.apache.hugegraph.structure.schema.PropertyKey> propertyKeys,
org.apache.hugegraph.driver.HugeClient client) |
void |
reuse(ConflictDetail detail,
int connId) |
addBatch, addBatch, client, collectIndexLabels, collectIndexLabels, collectNames, collectProperties, collectPropertyIndexes, compareWithEachOther, compareWithOthers, config, convertIndexLabels, getCreateTime, removeBatch, removeBatch, toStringArraypublic List<PropertyKeyEntity> list(int connId)
public List<PropertyKeyEntity> list(Collection<String> names, int connId)
public List<PropertyKeyEntity> list(Collection<String> names, int connId, boolean emptyAsAll)
public PropertyKeyEntity get(String name, int connId)
public void checkExist(String name, int connId)
public void checkNotExist(String name, int connId)
public void add(PropertyKeyEntity entity, int connId)
public void remove(String name, int connId)
public boolean checkUsing(String name, int connId)
public ConflictDetail checkConflict(ConflictCheckEntity entity, int connId, boolean compareEachOther)
public void checkConflict(List<PropertyKeyEntity> entities, ConflictDetail detail, int connId, boolean compareEachOther)
public void reuse(ConflictDetail detail, int connId)
public List<org.apache.hugegraph.structure.schema.PropertyKey> filter(ConflictDetail detail, org.apache.hugegraph.driver.HugeClient client)
public void addBatch(List<org.apache.hugegraph.structure.schema.PropertyKey> propertyKeys, org.apache.hugegraph.driver.HugeClient client)
public void removeBatch(List<org.apache.hugegraph.structure.schema.PropertyKey> propertyKeys, org.apache.hugegraph.driver.HugeClient client)
public static PropertyKeyEntity convert(org.apache.hugegraph.structure.schema.PropertyKey propertyKey)
public static org.apache.hugegraph.structure.schema.PropertyKey convert(PropertyKeyEntity entity, org.apache.hugegraph.driver.HugeClient client)
Copyright © 2024 The Apache Software Foundation. All rights reserved.