1
2
3
4 package net.obsearch.index.pyramid.impl;
5
6 import java.io.File;
7
8 import net.obsearch.example.OBSlice;
9 import net.obsearch.example.OBSliceFactory;
10 import net.obsearch.index.pyramid.imp.ExtendedPyramidIndexShort;
11 import net.obsearch.index.utils.Directory;
12 import net.obsearch.index.utils.IndexSmokeTUtil;
13 import net.obsearch.index.utils.TUtils;
14 import net.obsearch.pivots.AcceptAll;
15 import net.obsearch.pivots.bustos.impl.IncrementalBustosNavarroChavezShort;
16
17 import net.obsearch.storage.bdb.BDBFactoryJe;
18 import net.obsearch.storage.bdb.Utils;
19
20 import org.apache.log4j.Logger;
21 import junit.framework.TestCase;
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 public class TestExtentedPyramidIndex
48 extends TestCase {
49
50
51
52
53 private static transient final Logger logger = Logger
54 .getLogger(TestExtentedPyramidIndex.class);
55
56
57
58
59
60 public void testPyramid() throws Exception {
61
62
63 IncrementalBustosNavarroChavezShort<OBSlice> sel = new IncrementalBustosNavarroChavezShort<OBSlice>(new AcceptAll(),
64 100, 100);
65
66
67 BDBFactoryJe fact = Utils.getFactoryJe();
68
69 ExtendedPyramidIndexShort<OBSlice> d = new ExtendedPyramidIndexShort<OBSlice>(OBSlice.class, sel, 12, (short) 0, (short) (OBSliceFactory.maxSliceSize * 2) );
70 d.init(fact);
71 IndexSmokeTUtil<OBSlice> t = new IndexSmokeTUtil<OBSlice>(new OBSliceFactory());
72 t.tIndex(d);
73 }
74
75 }