Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f6dd353a4c571a9a594abf6762012dfffa3550b5 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
 * Copyright (c) 2013, 2014 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Marc-Andre Laperle - Initial API and implementation
 *******************************************************************************/

package org.eclipse.tracecompass.tmf.core.trace.indexer;

import java.nio.ByteBuffer;

import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;

/**
 * A trace implementing this interface can be indexed and its index can be
 * persisted to disk.
 *
 * @author Marc-Andre Laperle
 */
public interface ITmfPersistentlyIndexable {

    /**
     * Instantiate a ITmfLocation from a ByteBuffer, typically from disk.
     *
     * @param bufferIn
     *            the buffer to read from
     * @return the instantiated location
     */
    ITmfLocation restoreLocation(ByteBuffer bufferIn);

    /**
     * Get the checkpoint size for this trace
     *
     * @return the checkpoint size
     */
    public int getCheckpointSize();
}

Back to the top