@Service public class SchemaService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_KEY_CREATE_TIME |
static String |
USER_KEY_STYLE |
| Constructor and Description |
|---|
SchemaService() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.apache.hugegraph.structure.SchemaElement> |
addBatch(List<T> schemas,
org.apache.hugegraph.driver.HugeClient client,
BiConsumer<org.apache.hugegraph.driver.HugeClient,T> func,
SchemaType type) |
static <T extends org.apache.hugegraph.structure.SchemaElement> |
addBatch(List<T> schemas,
org.apache.hugegraph.driver.HugeClient client,
BiFunction<org.apache.hugegraph.driver.HugeClient,T,Long> func,
SchemaType type) |
org.apache.hugegraph.driver.HugeClient |
client(int connId) |
static List<org.apache.hugegraph.structure.schema.IndexLabel> |
collectIndexLabels(List<String> names,
org.apache.hugegraph.driver.HugeClient client) |
static List<org.apache.hugegraph.structure.schema.IndexLabel> |
collectIndexLabels(SchemaLabelEntity entity,
org.apache.hugegraph.driver.HugeClient client) |
static <T extends org.apache.hugegraph.structure.SchemaElement> |
collectNames(List<T> schemas) |
static Set<Property> |
collectProperties(org.apache.hugegraph.structure.schema.SchemaLabel schemaLabel) |
static List<PropertyIndex> |
collectPropertyIndexes(org.apache.hugegraph.structure.schema.SchemaLabel schemaLabel,
List<org.apache.hugegraph.structure.schema.IndexLabel> indexLabels) |
static <T extends SchemaEntity> |
compareWithEachOther(ConflictDetail detail,
SchemaType type) |
static <T extends SchemaEntity> |
compareWithOthers(int currentIdx,
List<SchemaConflict<T>> conflicts) |
org.apache.hugegraph.config.HugeConfig |
config() |
static List<org.apache.hugegraph.structure.schema.IndexLabel> |
convertIndexLabels(List<PropertyIndex> entities,
org.apache.hugegraph.driver.HugeClient client,
boolean isVertex,
String baseValue) |
static Date |
getCreateTime(org.apache.hugegraph.structure.SchemaElement element) |
static void |
removeBatch(List<String> names,
org.apache.hugegraph.driver.HugeClient client,
BiConsumer<org.apache.hugegraph.driver.HugeClient,String> func,
SchemaType type) |
static List<Long> |
removeBatch(List<String> names,
org.apache.hugegraph.driver.HugeClient client,
BiFunction<org.apache.hugegraph.driver.HugeClient,String,Long> func,
SchemaType type) |
static String[] |
toStringArray(Collection<String> collection) |
public static final String USER_KEY_CREATE_TIME
public static final String USER_KEY_STYLE
public org.apache.hugegraph.config.HugeConfig config()
public org.apache.hugegraph.driver.HugeClient client(int connId)
public static <T extends org.apache.hugegraph.structure.SchemaElement> List<String> collectNames(List<T> schemas)
public static Set<Property> collectProperties(org.apache.hugegraph.structure.schema.SchemaLabel schemaLabel)
public static List<PropertyIndex> collectPropertyIndexes(org.apache.hugegraph.structure.schema.SchemaLabel schemaLabel, List<org.apache.hugegraph.structure.schema.IndexLabel> indexLabels)
public static List<org.apache.hugegraph.structure.schema.IndexLabel> collectIndexLabels(List<String> names, org.apache.hugegraph.driver.HugeClient client)
public static List<org.apache.hugegraph.structure.schema.IndexLabel> collectIndexLabels(SchemaLabelEntity entity, org.apache.hugegraph.driver.HugeClient client)
public static List<org.apache.hugegraph.structure.schema.IndexLabel> convertIndexLabels(List<PropertyIndex> entities, org.apache.hugegraph.driver.HugeClient client, boolean isVertex, String baseValue)
public static <T extends SchemaEntity> void compareWithEachOther(ConflictDetail detail, SchemaType type)
public static <T extends SchemaEntity> ConflictStatus compareWithOthers(int currentIdx, List<SchemaConflict<T>> conflicts)
public static <T extends org.apache.hugegraph.structure.SchemaElement> void addBatch(List<T> schemas, org.apache.hugegraph.driver.HugeClient client, BiConsumer<org.apache.hugegraph.driver.HugeClient,T> func, SchemaType type)
public static <T extends org.apache.hugegraph.structure.SchemaElement> List<Long> addBatch(List<T> schemas, org.apache.hugegraph.driver.HugeClient client, BiFunction<org.apache.hugegraph.driver.HugeClient,T,Long> func, SchemaType type)
public static List<Long> removeBatch(List<String> names, org.apache.hugegraph.driver.HugeClient client, BiFunction<org.apache.hugegraph.driver.HugeClient,String,Long> func, SchemaType type)
public static void removeBatch(List<String> names, org.apache.hugegraph.driver.HugeClient client, BiConsumer<org.apache.hugegraph.driver.HugeClient,String> func, SchemaType type)
public static Date getCreateTime(org.apache.hugegraph.structure.SchemaElement element)
public static String[] toStringArray(Collection<String> collection)
Copyright © 2024 The Apache Software Foundation. All rights reserved.