All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unipop.schema.property.NonDynamicPropertySchema Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy