summaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/document/TemporaryDataType.java
blob: ea6ce9daa887688c7a9a219dd4caa327751b8180 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document;

import com.yahoo.document.datatypes.FieldValue;

/**
 * @author Einar M R Rosenvinge
 */
class TemporaryDataType extends DataType {

    private final String detailedType;
    
    TemporaryDataType(int dataTypeId, String detailedType) {
        super("temporary_" + dataTypeId, dataTypeId);
        this.detailedType = detailedType;
    }

    @Override
    public FieldValue createFieldValue() {
        return null;
    }

    @Override
    public Class getValueClass() {
        return null;
    }

    @Override
    public boolean isValueCompatible(FieldValue value) {
        return false;
    }

    String getDetailedType() { return detailedType; }

}