bupthcp / concurrent-trees Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/concurrent-trees
Automatically exported from code.google.com/p/concurrent-trees
Deploy to Maven Central per:
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage
+Guide
Original issue reported on code.google.com by [email protected]
on 4 Jul 2012 at 2:46
Please add support for querying the longest prefix match (this is not currently
exposed in the public API). A variation of this which only matches if the key
is in fact truly a prefix would be useful, otherwise the caller would have to
run an additional prefix.startsWith(key). For example, if the tree only
contains "foo", it's the longest prefix match for anything. But in the use-case
I have, I would only want to match "foo*".
Original issue reported on code.google.com by phraktle
on 19 Nov 2012 at 10:33
Deploy to Maven Central per:
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage
+Guide
Original issue reported on code.google.com by [email protected]
on 4 Jul 2012 at 2:46
It would be useful to support wildcard queries.
Two approaches to be investigated (both of which will be tracked in this issue):
(1) A permuterm index on top of the ConcurrentRadixTree. This would support
queries such as "<prefix>*<suffix>" on a single tree. It may be more memory
efficient than a hash-dictionary approach. See:
http://nlp.stanford.edu/IR-book/html/htmledition/permuterm-indexes-1.html
(2) A composite of a ConcurrentRadixTree and a ConcurrentReversedRadixTree. One
tree would support prefix lookup, the other suffix lookup. Query
"prefix*suffix" may return the intersection of the results from both trees,
after some post-filtering. This second approach however, is near the territory
of a query engine on top of multiple indexes, so if implemented would not
belong in this project, but in http://code.google.com/p/cqengine/
Example usage for (1) would be:
public static void main(String[] args) {
PermutermTree<Integer> tree = new ConcurrentPermutermTree<Integer>(new DefaultCharArrayNodeFactory());
tree.put("TEST", 1);
tree.put("TOAST", 2);
tree.put("TEAM", 3);
System.out.println("Keys matching 'T*T': " + Iterables.toString(tree.getKeysMatching("T", "T"))); // prefix, suffix
}
Output would be:
Keys matching 'T*T': [TOAST, TEST]
Original issue reported on code.google.com by [email protected]
on 24 Mar 2013 at 10:19
The current implementation is not serializable. If we load a huge amount of
data each time when starting, this may limit the usage. However, if it is
serializable, we can load it once and serialize the entire tree onto the disk.
During the start-up time, we only have to de-serialize it to load the whole
tree quickly.
Original issue reported on code.google.com by [email protected]
on 25 Mar 2013 at 2:29
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.