1 /***
2 *
3 */
4 package hu.elte.tribus.util.idx;
5
6 import java.io.IOException;
7
8 import org.apache.lucene.store.Directory;
9 import org.apache.lucene.store.IndexInput;
10 import org.apache.lucene.store.IndexOutput;
11 import org.apache.lucene.store.Lock;
12
13 /***
14 * @author kocka
15 *
16 */
17 public class DaoDirectory extends Directory {
18
19 IdxDao dao = null;
20
21 @Override
22 public void close() throws IOException {
23
24 }
25
26 @Override
27 public IndexOutput createOutput(String arg0) throws IOException {
28
29 return null;
30 }
31
32 @Override
33 public void deleteFile(String name) throws IOException {
34 dao.deleteIndexFile(name);
35 }
36
37 @Override
38 public boolean fileExists(String name) throws IOException {
39 return dao.fileExists(name);
40 }
41
42 @Override
43 public long fileLength(String arg0) throws IOException {
44 return 0;
45 }
46
47 @Override
48 public long fileModified(String arg0) throws IOException {
49
50 return 0;
51 }
52
53 @Override
54 public String[] list() throws IOException {
55
56 return null;
57 }
58
59 @Override
60 public Lock makeLock(String arg0) {
61
62 return null;
63 }
64
65 @Override
66 public IndexInput openInput(String arg0) throws IOException {
67
68 return null;
69 }
70
71 @Override
72 public void renameFile(String arg0, String arg1) throws IOException {
73
74
75 }
76
77 @Override
78 public void touchFile(String arg0) throws IOException {
79
80
81 }
82
83 public IdxDao getDao() {
84 return dao;
85 }
86
87 public void setDao(IdxDao dao) {
88 this.dao = dao;
89 }
90
91 }