comparison lucene/src/luan/modules/lucene/LuceneSearcher.java @ 427:dae264ad6a7b

fix LuanTable.put() to use metatables
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 May 2015 19:29:07 -0600
parents 23b99a5039b5
children 5d4a78c93383
comparison
equal deleted inserted replaced
426:23a93c118042 427:dae264ad6a7b
135 }; 135 };
136 return new Object[]{ results, scoreDocs.length, td.totalHits }; 136 return new Object[]{ results, scoreDocs.length, td.totalHits };
137 } 137 }
138 138
139 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException { 139 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException {
140 t.put( method, new LuanJavaFunction(LuceneSearcher.class.getMethod(method,parameterTypes),this) ); 140 t.rawPut( method, new LuanJavaFunction(LuceneSearcher.class.getMethod(method,parameterTypes),this) );
141 } 141 }
142 142
143 LuanTable table() { 143 LuanTable table() {
144 LuanTable tbl = new LuanTable(); 144 LuanTable tbl = new LuanTable();
145 try { 145 try {