vpro / jcr-criteria Goto Github PK
View Code? Open in Web Editor NEWJCR queries using Java code
License: Apache License 2.0
JCR queries using Java code
License: Apache License 2.0
With that you can restrict the results to a items with certain jcr:uuid.
Btw, naively doing Restrictions.in(attr('jcr:uuid'), '') doest work. I don't quite get why. Probably the jcr:uuid is not indexed like that, and whhen simply using 'eq' jackrabbit is smart enough to get them by id directly.
anyways, this implementation can hide all these kind of implementation details.
This log seems misleading as the queryCount is always executed.
ro.jcr.criteria.advanced.impl.AdvancedCriteriaImpl: Total size was not available, determining it took 1341 ms
There isn't an alternative path that doesn't execute the queryCount.
In order to be able to compare Criteria
objects, they should implement equals()
and hashCode()
methods.
Calling criteria.setBasePath("/site/news")
results in this XPath expression: //site/news//*
This could match multiple 'base' paths, like /a/site/news/test
and /b/site/news/test
, but even if /site/news/test
is the only path that matches this query, it would be more efficient to query /jcr:root/site/news//*
than //site/news//*
.
Performance, especialy when using SQL seems to be bad.
In cases where there is no ordering it is possible for the counting of the query to return -1 causing an infinite loop of the count query.
XPath is deprecated long time. I think it would not be hard to support doing things via SQL2.
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.