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 7954603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:28:43+00:00 2026-06-04T03:28:43+00:00

So, here’s my problem. I have objects like this public class FooClass{ private int

  • 0

So, here’s my problem. I have objects like this

public class FooClass{
    private int fooInt;
    private String fooString, fooString_2;
}

and I have to search through them, differentiating them by either one of their parameters. Also, I am required to store them as binary files (ObjectOutputStream etc). So far I thought of using multiple ArrayList,or multiple HashMap but the problem with the latter would be that I need to perform partial String match, (beginsWith), so HashMap would be pretty useless I think.. Anyway having multiple lists of the same objects seems horrible in terms of implementations, and at this point I’m really stuck and out of ideas. Any help would be greatly appreciated!

  • 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-04T03:28:45+00:00Added an answer on June 4, 2026 at 3:28 am

    I found this article: Use search engine technology for object persistence (I haven’t read it entirely) but I think it’s the solution you are looking for. The solution is base on Lucene.

    If you will decide to use Lucene, then you should look at those tutorials. Part of this tutorials also talks about Basic Concepts which will help you to decide whether this solution works for you.

    If you want your data to be represented as Java objects (I think it’s a solution you are really looking for), it would be better to use Compass (built on top of Lucene). It supports automatic marshalling, which means that Compass extract the required property from the Object model at run-time and inserts the required meta-data into the Search Engine index.. Take a look at the OSEM – Object/Search Engine Mapping in the Compass reference.

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

Sidebar

Related Questions

Here is my class: public class A{ private void doIt(int[] X, int[] Y){ //change
Here is what I am trying to achieve in PHP: I have this string:
Here's a coding problem for those that like this kind of thing. Let's see
here's my code private void make_Book(int x, int y, string name) { #region Creating
Here's a Clone() implementation for my class: MyClass^ Clone(){ return gcnew MyClass(this->member1, this->member2); }
Here is my problem : I have a post controller with the action create.
Here is my simplified data structure: Object1.h template <class T> class Object1 { private:
Here's a problem I ran into recently. I have attributes strings of the form
Here is the problem that I am trying to solve. I have two folders
Here's my proposed (very simplified to illustrate the problem space) design for a C#

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.