
org.n52.youngs.transform.MappingConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of main Show documentation
Show all versions of main Show documentation
A mapping platform to load CSW records into Elasticsearch
/*
* Copyright 2015-2016 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.n52.youngs.transform;
import java.util.Collection;
import org.n52.youngs.api.XPathConstants;
import org.w3c.dom.Document;
/**
*
* @author Daniel Nüst
*/
public interface MappingConfiguration {
public static final String DEFAULT_XPATH_VERSION = XPathConstants.XPATH_20;
public static final int DEFAULT_VERSION = 1;
public static final String DEFAULT_NAME = "";
public static final String DEFAULT_APPLICABILITY_PATH = "true()";
public static final String DEFAULT_TYPE = "record";
public static final String DEFAULT_INDEX = "elasticsearch";
public static final boolean DEFAULT_INDEX_CREATION = false;
public static final boolean DEFAULT_STORE_XML = true;
public static final String DEFAULT_STORE_XML_FIELDNAME = "xmldoc";
public static final boolean DEFAULT_DYNAMIC_MAPPING = false;
public static final String DEFAULT_INDEXPROPERTY_TYPE = "string";
/**
*
* @return a sorted list of mapping entries, ordered by the field name
*/
public Collection getEntries();
public MappingEntry getEntry(String name);
public String getName();
public int getVersion();
public String getIndex();
public String getType();
public String getIdentifierField();
public boolean hasLocationField();
public String getLocationField();
public String getXPathVersion();
public boolean isApplicable(Document doc);
public boolean isIndexCreationEnabled();
public boolean isDynamicMappingEnabled();
public boolean hasIndexCreationRequest();
public String getIndexCreationRequest();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy