Comments (4)
Fixed. This has also been included in CQEngine 1.1.0, now released which should
sync to Maven central in the next few hours.
Original comment by [email protected]
on 16 Aug 2013 at 10:39
- Changed state: Fixed
from cqengine.
great :)
Original comment by [email protected]
on 17 Aug 2013 at 1:40
from cqengine.
I am not quite sure why you opted for the approach of only using
getDeclaredFields if an Exception is thrown.
The only reason that I can come up with is that getDeclaredFields does not
iterate up the Class hierarchy.
You will find that most models in java have private members, so using an
exception to handle this is very expensive.
If you want to make sure that you can access all members even up the class
hierarchy I would do this manually, I have included a patch that includes a
utility class witch will handle this.
Original comment by [email protected]
on 17 Aug 2013 at 2:37
Attachments:
from cqengine.
Yes the approach was to not break existing support for inherited fields,
limited as it was.
I've re-implemented it, released as CQEngine 1.1.1. It should support private
fields in superclasses now too.
BTW this code has no bearing on query performance, it's just initialization of
the attribute. The field is cached thereafter. I think there are fewer object
allocations via the getField + catch exception approach, than via getFields()
so I stuck with that approach, although I haven't benchmarked it.
Hopefully this will accommodate most use cases.
Original comment by [email protected]
on 18 Aug 2013 at 9:57
from cqengine.
Related Issues (20)
- Pagination Over data HOT 4
- Perfomance index HOT 3
- Consider exposing utility static method taking collections
- Reenable cached hashCode
- Support for java.util.Optional
- [Question] How does CQEngine pick the appropriate index to query?
- most longest prefix value exist in the column value but it doesn't intersect with other columns values in the query that we need part of query retrieval HOT 7
- Support STRICT_REPLACEMENT in ObjectLockingIndexedCollection/ConcurrentIndexedCollection
- TransactionalIndexedCollection support for UniqueIndex is broken
- Support for attribute accessors for Java record type HOT 1
- Kryo generates InaccessibleObjectException - Make Dependencies "Java 17 compatible"
- Bug in AttributeOrdersComparator HOT 5
- Offheap cache visibility HOT 1
- Support for ANTLR 4.10.1 HOT 12
- Does it support SQL statistics queries HOT 3
- Thread blocked when using Materialized View Sort For the Longest Prefix for CSV that contain more than 11 K rows HOT 3
- Error while parsing SQL NOT LIKE query HOT 1
- Error while parsing SQL LIKE '%%%' query
- java.lang.IllegalStateException thrown in the getGenericType(Member member) method of AttributeBytecodeGenerator.java
- CQNGrammar Sources missing from master 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 cqengine.