/
DataType.java
48 lines (47 loc) · 1.32 KB
/
DataType.java
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
36
37
38
39
40
41
42
43
44
45
46
47
48
/**********************************************************************
* Copyright (c) 2020, 2023 École Polytechnique de Montréal and others
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.tracecompass.tmf.core.dataprovider;
/**
* Enumeration used to describe the type of data that a value represents. The
* data type will help decide how to format the data to be displayed to the user
*
* @author Geneviève Bastien
* @since 6.1
*/
public enum DataType {
/**
* Data represent a decimal number
*/
NUMBER,
/**
* Binary data, where the size orders are powers of 2.
*/
BINARY_NUMBER,
/**
* Data represent a timestamp in nanoseconds, can be negative
*/
TIMESTAMP,
/**
* Data represents a duration
*/
DURATION,
/**
* Data is textual data
*/
STRING,
/**
* Data representing a time range of string: [start,end], where `start` and
* `end` are timestamps in nanoseconds
*
* @since 9.0
*/
TIME_RANGE;
}