Comments (17)
from nitrite-java.
Honestly, I don't have any experience with geospatial operations. Care to contribute?
from nitrite-java.
from nitrite-java.
I did not understand what is the "placement" you are referring to.
By the way what is the error you are facing currently with gradle?
from nitrite-java.
from nitrite-java.
For query, you need to create different filters like WithinFilter
, NearFilter
etc. Take a look into other filters likeAndFilter
, EqualFilter
etc. You need to create functions like within
, near
in Filters
class also. For special treatment in query you need to modify general query logic in SearchService
and IndexedSearchService
class. For indexing, take a look into IndexingService
class.
For pojos, you need to work on similar classes under objects
package.
from nitrite-java.
from nitrite-java.
from nitrite-java.
Can you please run this below command in the project root dir?
./gradlew clean assemble -x test --info --stacktrace
If it fails, check if you are behind proxy firewall or not. If you are, then provide the proxy information in the command line
./gradlew -Dhttp.proxyHost=<http proxy host> -Dhttp.proxyPort=<http proxy port> -Dhttps.proxyHost=<https proxy host> -Dhttps.proxyPort=<http proxy port> clean assemble -x test --info --stacktrace
If it still fails then let me know the error details here. If the build passes, then you should open your project in either IntelliJ or eclipse. If you face any problem in just opening the project in IDE, you can go through numerous resource on net on how to do that or let me know here.
from nitrite-java.
Are you still pursuing this?
from nitrite-java.
from nitrite-java.
Indices in nitrite are just maps stored in database for reverse lookup. These maps are basically MVMap
s which implements B+ trees. The same MVMap
also stores documents and objects in nitrite. So it is just more maps for indices. You should look at these 3 files to understand its inner working
- https://github.com/dizitart/nitrite-database/blob/master/nitrite/src/main/java/org/dizitart/no2/internals/IndexingService.java
- https://github.com/dizitart/nitrite-database/blob/master/nitrite/src/main/java/org/dizitart/no2/internals/IndexedSearchService.java
- https://github.com/dizitart/nitrite-database/blob/master/nitrite/src/main/java/org/dizitart/no2/internals/IndexMetaService.java
IndexingService
is for indexing the collections. IndexedSearchService
is used to search on indexed fields and IndexMetaService
stores metadata for indices for easy lookup.
I don't know how indexing works for geospatial data also don't know if it is possible to implement geospatial indexes using maps. But if it helps you can also take a look at the full-text indexing logic here
- Nitrite's own
NitriteTextIndexingService
https://github.com/dizitart/nitrite-database/blob/master/nitrite/src/main/java/org/dizitart/no2/internals/NitriteTextIndexingService.java - Lucene based text indexing https://github.com/dizitart/nitrite-database/blob/master/nitrite/src/test/java/org/dizitart/no2/services/LuceneService.java
Let me know if you need anything specific.
from nitrite-java.
from nitrite-java.
I hope things are going well for you. Just wanted to check if you have done any progress on this. Have you considered geohash for the implementation?
from nitrite-java.
from nitrite-java.
Fair enough.
from nitrite-java.
Spatial indexing support has been added to 4.0.0-SNAPSHOTS
from nitrite-java.
Related Issues (20)
- nitriteMapper is null? HOT 1
- Add 4.x.x+ to maven repository
- NitriteMapper does not give enough info about the type HOT 4
- IndexingException: indexing on arrays or collections for field formula are not supported HOT 1
- Longs become Integers after export/import HOT 7
- Migrating from 3.x to 4.x: Database file is corrupted HOT 7
- possible memory leak HOT 1
- org.h2.mvstore.Chunk.accountForRemovedPage NPE HOT 2
- MVStore claims to have unsaved changes after calling nitriteDatabase.getCollection(...) HOT 5
- NitriteCollection.update slow when unrelated properties in document are indexed HOT 6
- EntityConverter toDocument HOT 3
- KotlinXSerializationMapper decodes lists to be size 1 always HOT 1
- Invalid repository type for entity where all fields are nullable (with JacksonMapperModule) HOT 3
- Possibiltity to index a field with both text and non-unique/unique filter HOT 3
- Incorrect result when searching indexed column HOT 1
- Support JPMS HOT 6
- Feature request: method for retrieving all document ids in a collection faster HOT 1
- Search for _id always returns an iterator with an element HOT 2
- org.dizitart.no2.common.tuples.Pair cannot be cast to class java.lang.Comparable HOT 4
- @Indices is not neccessary to use, multiple @Index annotations on class are allowed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nitrite-java.