blob: 20e02914a07cd183c8af0c3bfe8e4c013aca641e (
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
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document;
import com.yahoo.vespa.objects.Ids;
/**
* @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
*/
public class NumericDataType extends PrimitiveDataType {
// The global class identifier shared with C++.
public static int classId = registerClass(Ids.document + 52, NumericDataType.class);
/**
* Creates a datatype
*
* @param name the name of the type
* @param code the code (id) of the type
* @param type the field value used for this type
*/
protected NumericDataType(java.lang.String name, int code, Class type, Factory factory) {
super(name, code, type, factory);
}
@Override
public NumericDataType clone() {
return (NumericDataType) super.clone();
}
}
|