aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/document/TypedKey.java
blob: 652d21d7f7d1e7f4e02abd8b8a69859ad86a3116 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.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();

}