org.unipop.schema.property.NonDynamicPropertySchema Maven / Gradle / Ivy
package org.unipop.schema.property;
import org.unipop.query.predicates.PredicatesHolder;
import org.unipop.query.predicates.PredicatesHolderFactory;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
public class NonDynamicPropertySchema extends DynamicPropertySchema {
public NonDynamicPropertySchema(ArrayList otherSchemas) {
super(otherSchemas);
}
@Override
public Map toProperties(Map source) {
return Collections.emptyMap();
}
@Override
public Map toFields(Map properties) {
return Collections.emptyMap();
}
@Override
public Set toFields(Set propertyKeys) {
return Collections.emptySet();
}
@Override
public PredicatesHolder toPredicates(PredicatesHolder predicatesHolder) {
PredicatesHolder newPredicatesHolder = super.toPredicates(predicatesHolder);
if(newPredicatesHolder.notEmpty()) return PredicatesHolderFactory.abort();
return newPredicatesHolder;
}
}