xml: Add the Host ID as event field
[deliverable/tracecompass.git] / statesystem / org.eclipse.tracecompass.segmentstore.core / src / org / eclipse / tracecompass / internal / provisional / segmentstore / core / BasicSegment2.java
1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10 package org.eclipse.tracecompass.internal.provisional.segmentstore.core;
11
12 import org.eclipse.tracecompass.datastore.core.interval.HTInterval;
13 import org.eclipse.tracecompass.datastore.core.interval.IHTIntervalReader;
14
15 /**
16 * Extension of the BasicSegment, to implement ISegment2 so that it can be
17 * stored in a history tree backend.
18 *
19 * @since 1.2
20 */
21 public class BasicSegment2 extends HTInterval implements ISegment2 {
22
23 /**
24 * The factory to read an object from a buffer
25 */
26 public static final IHTIntervalReader<BasicSegment2> BASIC_SEGMENT_READ_FACTORY = buffer -> {
27 return new BasicSegment2(buffer.getLong(), buffer.getLong());
28 };
29
30 /**
31 * Constructor
32 *
33 * @param start
34 * start of the segment
35 * @param end
36 * end of the segment
37 */
38 public BasicSegment2(long start, long end) {
39 super(start, end);
40 }
41
42 /**
43 *
44 */
45 private static final long serialVersionUID = -3083730702354275357L;
46
47 }
This page took 0.030968 seconds and 5 git commands to generate.