org.unipop.schema.element.ElementSchema Maven / Gradle / Ivy
package org.unipop.schema.element;
import org.apache.tinkerpop.gremlin.structure.Element;
import org.unipop.query.predicates.PredicatesHolder;
import org.unipop.structure.UniGraph;
import java.util.*;
public interface ElementSchema {
Collection fromFields(Map fields);
Map toFields(E element);
Set toFields(Set propertyKeys);
PredicatesHolder toPredicates(PredicatesHolder predicatesHolder);
String getFieldByPropertyKey(String key);
default Set getChildSchemas() { return Collections.emptySet(); }
}