plv / azbuka Goto Github PK
View Code? Open in Web Editor NEWA simple string indexing and full text search library for Kotlin
A simple string indexing and full text search library for Kotlin
Currently, Inode
s store Tokenizable
:
Directory
stores them so that future children can inherit this tokenizer.Document
stores them because Document
is also Tokenizable
.However, this can be roundabout. As my comment in Inode.kt
explains:
// TODO: Storing a Tokenizable in each Directory and Document is a bad idea. It wastes space with no real time benefits
// (esp. if API users may supply a tokenizer that is not a singleton). Also, this can leak if we accidentally keep
// references to a Tokenizable that is also a Document, even after we remove the Document from the DocumentStore.
// I'm crunched for time as of writing this comment, but the smarter thing to do would be to dynamic dispatch
// using a map of some sort.
I wrote FileTracker
before introducing the Inode
framework, so it still works directly with raw Path
s. The code is messier compared to everything else, and untested as well. So, the list of things we need for FileTracker
is as follows:
Inode
s instead of raw Path
sRENAMED_TO
/RENAMED_FROM
watch eventsFileTracker
. Mocking this may be difficult with just JUnit tempDirectory -- using something like jimfs
is preferred.IndexManager
, refactor the event registration code so that we transact the events received from FileTracker
in batches rather than individually. This should provide better safety and keep FileTracker
better in sync with InodeStore
and TokenIndex
IndexManager
has very low test coverage, we should bring that test coverage closer to 100%.
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.