1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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
10 * Marc-Andre Laperle - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
;
15 import java
.nio
.ByteBuffer
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.location
.ITmfLocation
;
20 * A trace implementing this interface can be indexed and its index can be
23 * @author Marc-Andre Laperle
26 public interface ITmfPersistentlyIndexable
{
29 * Instantiate a ITmfLocation from a ByteBuffer, typically from disk.
32 * the buffer to read from
33 * @return the instantiated location
37 ITmfLocation
restoreLocation(ByteBuffer bufferIn
);
40 * Get the checkpoint size for this trace
42 * @return the checkpoint size
46 public int getCheckpointSize();