![JAR search and dependency download from the Maven repository](/logo.png)
org.unipop.schema.property.FieldPropertySchema Maven / Gradle / Ivy
package org.unipop.schema.property;
import org.apache.tinkerpop.gremlin.process.traversal.Contains;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer;
import org.json.JSONObject;
import org.unipop.process.predicate.Date;
import org.unipop.query.predicates.PredicatesHolder;
import org.unipop.query.predicates.PredicatesHolderFactory;
import org.unipop.schema.property.type.PropertyType;
import org.unipop.schema.property.type.TextType;
import org.unipop.util.ConversionUtils;
import org.unipop.util.PropertyTypeFactory;
import java.util.*;
import java.util.stream.Stream;
public class FieldPropertySchema implements PropertySchema {
protected String key;
protected String field = null;
protected boolean nullable;
protected Set include;
protected Set exclude;
protected PropertyType type;
protected JSONObject alias;
protected Map reverseAlias;
public FieldPropertySchema(String key, String field, boolean nullable) {
this.key = key;
this.field = field;
this.nullable = nullable;
try {
this.type = PropertyTypeFactory.getType("STRING");
} catch (IllegalAccessException | InstantiationException e) {
e.printStackTrace();
}
this.alias = null;
this.reverseAlias = null;
}
public FieldPropertySchema(String key, JSONObject config, boolean nullable) {
this.key = key;
this.nullable = nullable;
this.field = config.getString("field");
Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy