tmf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / tmf / core / trace / indexer / IBTreeVisitor.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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 * Contributors:
10 * Marc-Andre Laperle - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.internal.tmf.core.trace.indexer;
14
15 import org.eclipse.tracecompass.tmf.core.trace.indexer.checkpoint.ITmfCheckpoint;
16
17 /**
18 * A BTree visitor goes through the tree using a comparator for
19 * optimal searches.
20 *
21 * @author Marc-Andre Laperle
22 */
23 public interface IBTreeVisitor {
24
25 /**
26 * The current checkpoint being compared against an internally held key.
27 *
28 * @param checkpoint
29 * the current checkpoint
30 * @return -1 if checkpoint < key, 0 if checkpoint == key, 1 if checkpoint >
31 * key
32 */
33 int compare(ITmfCheckpoint checkpoint);
34 }
This page took 0.034238 seconds and 5 git commands to generate.