Hi Harsh,

Yes, it's possible. But, in my case, I have to follow a custom built
serialization and hence, I get a serialized object and I have to store and
return it in the same state.
So, if I just use a TFile.Writer, I will write all the <K,V> pairs as it is
and using TFile.Reader I can read them as it is.

But, the problem is the data is very huge and I want the retrieval time to
be very lower.
Hence, I thought, I would go for the named Meta Blocks approach, where in I
can maintain a map of Key Bounds (as the TFiles in my case are sorted) and
hence I can reduce the search scope.
I wont be knowing, what kind of objects I will be dealing with. All I am
sure is that they follow the custom serialization and they have equals()
method implemented.

Hence, if I take a TFile.Reader.Scanner, I can scan the entries. Is there a
similar apporach with DataInputStream, where in I can scan the entries
instead of bytes.

Thanks
Dayakar

Reply via email to