-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d4b2f5
commit 5d0dd22
Showing
10 changed files
with
899 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,166 +1 @@ | ||
################# | ||
## Eclipse | ||
################# | ||
|
||
*.pydevproject | ||
.project | ||
.metadata | ||
bin/ | ||
tmp/ | ||
*.class | ||
*/*.class | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
.class | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
|
||
################# | ||
## Visual Studio | ||
################# | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Rr]elease/ | ||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.vspscc | ||
.builds | ||
*.dotCover | ||
|
||
## TODO: If you have NuGet Package Restore enabled, uncomment this | ||
#packages/ | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper* | ||
|
||
# Installshield output folder | ||
[Ee]xpress | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish | ||
|
||
# Others | ||
[Bb]in | ||
[Oo]bj | ||
sql | ||
TestResults | ||
*.Cache | ||
ClientBin | ||
stylecop.* | ||
~$* | ||
*.dbmdl | ||
Generated_Code #added for RIA/Silverlight projects | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
|
||
|
||
|
||
############ | ||
## Windows | ||
############ | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
|
||
############# | ||
## Python | ||
############# | ||
|
||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
|
||
# Mac crap | ||
.DS_Store | ||
*.class |
Binary file not shown.
75 changes: 75 additions & 0 deletions
75
classes/com/bizosys/hsearch/treetable/compiler/templates/HSearchPlugin.tmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package --PACKAGE--; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
import com.bizosys.hsearch.treetable.client.IHSearchPlugin; | ||
import com.bizosys.hsearch.treetable.client.L; | ||
|
||
public class HSearchPlugin implements IHSearchPlugin { | ||
|
||
static boolean DEBUG_ENABLED = false; | ||
|
||
//Take care of Thread Safety | ||
Map<String, --KEY_DATATYPE--> ids = new ConcurrentHashMap<String, --KEY_DATATYPE-->(); | ||
|
||
/** | ||
* For each row, this is invoked. This is called if the findIds is called | ||
* @return TRUE/FALSE whether it will be included in the result or not. | ||
*/ | ||
public boolean onRowKey(--KEY_DATATYPE-- id) { | ||
if ( DEBUG_ENABLED ) System.out.println( Thread.currentThread().getName() + " > Found Row" + id); | ||
if ( ids.containsKey(id.toString())) return true; | ||
ids.put(id.toString(), id); | ||
return true; | ||
} | ||
|
||
/** | ||
* For each row, this is invoked. This is called if the findColumns is called | ||
* @return TRUE/FALSE whether it will be included in the result or not. | ||
*/ | ||
public boolean onRowCols(--ALL-COLS--) { | ||
String cell--CELL-MAX-MINUS-1--Str = cell--CELL-MAX-MINUS-1--.toString(); | ||
if ( ids.containsKey(cell--CELL-MAX-MINUS-1--Str)) return true; | ||
ids.put(cell--CELL-MAX-MINUS-1--Str, cell--CELL-MAX-MINUS-1--); | ||
return true; | ||
} | ||
|
||
/** | ||
* For each row, this is invoked. This is called if the findKVs is called | ||
* @return TRUE/FALSE whether it will be included in the result or not. | ||
*/ | ||
public boolean onRowKeyValue(--KEY_DATATYPE-- k, --VAL_DATATYPE-- value) { | ||
return true; | ||
} | ||
|
||
/** | ||
* For each row, this is invoked. This is called if the findValues is called | ||
* @return TRUE/FALSE whether it will be included in the result or not. | ||
*/ | ||
public boolean onRowValue(--VAL_DATATYPE-- value) { | ||
return true; | ||
} | ||
|
||
/** | ||
* Called when all items are processed | ||
*/ | ||
public void onComplete() { | ||
} | ||
|
||
/** | ||
* The intersection happens on the final matching ids. | ||
* Currently integer and long values are supported. If there are any other | ||
* values like string, it should be converted to integer / long and passed. | ||
* @return | ||
*/ | ||
public Collection<--KEY_DATATYPE--> getAllRowKeysInSequence() throws Exception{ | ||
return this.ids.values(); | ||
} | ||
|
||
public Collection<--KEY_DATATYPE--> getUniqueRowKeys() throws Exception{ | ||
return this.ids.values(); | ||
} | ||
|
||
} |
Oops, something went wrong.