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