diff options
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/document/TypedKey.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/document/TypedKey.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/document/TypedKey.java b/config-model/src/main/java/com/yahoo/schema/document/TypedKey.java new file mode 100644 index 00000000000..8de8c7b64fd --- /dev/null +++ b/config-model/src/main/java/com/yahoo/schema/document/TypedKey.java @@ -0,0 +1,20 @@ +// Copyright Yahoo. 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(); + +} |