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

org.opensearch.index.mapper.NoOpDerivedFieldResolver Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 */

package org.opensearch.index.mapper;

import java.util.Collections;
import java.util.Set;

/**
 * Used when the derived field feature is disabled
 */
public class NoOpDerivedFieldResolver implements DerivedFieldResolver {

    @Override
    public Set resolvePattern(String pattern) {
        return Collections.emptySet();
    }

    @Override
    public MappedFieldType resolve(String fieldName) {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy