summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/TypedKey.java
blob: 57730202ba0f92b042d4df1dce37ed3e02209bec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;

import com.yahoo.document.DataType;

/**
 * Common interface for various typed key (or field definitions).
 * Used by code which wants to use common algorithms for dealing with typed keys, like the logical mapping
 *
 * @author bratseth
 */
public interface TypedKey {

    String getName();

    void setDataType(DataType type);

    DataType getDataType();

}