KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > rolap > agg > SegmentDataset


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/rolap/agg/SegmentDataset.java#6 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2002-2002 Kana Software, Inc.
7 // Copyright (C) 2002-2007 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 21 March, 2002
12 */

13 package mondrian.rolap.agg;
14
15 import mondrian.rolap.CellKey;
16
17 import java.util.Map JavaDoc;
18
19 /**
20  * A <code>SegmentDataset</code> holds the values in a segment.
21  *
22  * @author jhyde
23  * @since 21 March, 2002
24  * @version $Id: //open/mondrian/src/main/mondrian/rolap/agg/SegmentDataset.java#6 $
25  */

26 interface SegmentDataset extends Iterable JavaDoc<Map.Entry JavaDoc<CellKey,Object JavaDoc>> {
27     /**
28      * Returns the value at a given coordinate.
29      *
30      * @param pos Coordinate position
31      * @return Value
32      */

33     Object JavaDoc get(CellKey pos);
34
35     /**
36      * Returns the number of bytes occupied by this dataset.
37      *
38      * @return number of bytes
39      */

40     double getBytes();
41
42     void put(CellKey key, Object JavaDoc value);
43 }
44
45 // End SegmentDataset.java
46
Popular Tags