1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.segmentstore
.core
;
12 import org
.eclipse
.tracecompass
.datastore
.core
.interval
.HTInterval
;
13 import org
.eclipse
.tracecompass
.datastore
.core
.interval
.IHTIntervalReader
;
16 * Extension of the BasicSegment, to implement ISegment2 so that it can be
17 * stored in a history tree backend.
21 public class BasicSegment2
extends HTInterval
implements ISegment2
{
24 * The factory to read an object from a buffer
26 public static final IHTIntervalReader
<BasicSegment2
> BASIC_SEGMENT_READ_FACTORY
= buffer
-> {
27 return new BasicSegment2(buffer
.getLong(), buffer
.getLong());
34 * start of the segment
38 public BasicSegment2(long start
, long end
) {
45 private static final long serialVersionUID
= -3083730702354275357L;