Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:23:37+00:00 2026-06-07T08:23:37+00:00

I have a collection, a List of Map, the map is Map<String, String> .

  • 0

I have a collection, a List of Map, the map is Map<String, String>. I need to query this collection with comparison, logical, like, not in operators. Something like SQL.

I will be populating the list from a database stored procedure, so I am not sure about the size. But, I guess the size should not be more than 10,000 records.

While posting this I am having a look at Apache functors, I don’t know if they will help here.

Other way that I am thinking of is using the in-memory database Derby to achieve this.

Please let me know of any Java library or any other way of doing this.

The maps in the list will be like below:

Map<String, String> m1 = new Map<String, String>();
m1.put("name","Mark");
m1.put("age","21");
m1.put("city","some city");

Map<String, String> m1 = new Map<String, String>();
m1.put("name","David");
m1.put("age","25");
m1.put("city","other city");

I need to query the list to get Map which has:

  1. name=Mark
  2. name=Mark and age > 30
  3. city not in "other city"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:23:39+00:00Added an answer on June 7, 2026 at 8:23 am

    I found JFilter which helps you with filtering in-memory data (java objects ). Below is the description from JFilter website.

    JFilter is a simple and high performance open source library to filter (query), map (select) and reduce (aggregate) objects in a Java collection. Query is given in json format like Mongodb queries.

    I have written a post on using JFilter with Maps, which I am using as a generic way of storing data and querying/filtering using JFilter

    Here is the link to the post Using JFilter to query/filter in-memory data

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a collection like this List<int> {1,15,17,8,3}; how to get a flat string
i need a thread safe map, i have something like this: (i'm very new
I have a collection of the form: map<key, list<object> > I only ever insert
I have Collection List<Car> . How to compare each item from this collection with
This is a long shot, I know... Let's say I have a collection List<MyClass>
I have a list/collection of objects that may or may not have the same
I have a method that returns an instance of Map<String, List<Foo>> x(); and another
I have a ViewModel that looks like this: public class CreateReviewViewModel { public string
I have a collection: List<Car> cars = new List<Car>(); Cars are uniquely identified by
I have a collection (or list or array list) in which I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.