org.unipop.schema.property.MultiPropertySchema Maven / Gradle / Ivy
package org.unipop.schema.property;
import org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer;
import org.json.JSONArray;
import org.unipop.query.predicates.PredicatesHolder;
import org.unipop.query.predicates.PredicatesHolderFactory;
import org.unipop.schema.property.type.PropertyType;
import org.unipop.util.PropertySchemaFactory;
import java.util.*;
import java.util.stream.Collectors;
/**
* Created by sbarzilay on 7/28/16.
*/
public class MultiPropertySchema implements ParentSchemaProperty {
private String key;
private List schemas;
public MultiPropertySchema(String key, List schemas) {
this.key = key;
this.schemas = schemas;
}
@Override
public String getKey() {
return key;
}
@Override
public Map toProperties(Map source) {
List