The Artima Developer Community
Sponsored Link

Java Answers Forum
making indexs based upon concatenated fields

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
james

Posts: 8
Nickname: jamezz
Registered: Oct, 2003

making indexs based upon concatenated fields Posted: Nov 2, 2003 3:12 PM
Reply to this message Reply
Advertisement
Hi
im trying to make an index based upon 2 concatenated fields
firstname + " " + surname, but the database file regards them as 2 strings. Can you make the index based upon the concatenated fields but write the database file as 2 seperate fields without your offsets stuffing up. Ive done this and it seems to be possibly stuffing my offsets up.

name index file
------------------
Alison M Chappell 0
Barbara J Furza 480

displaying database according to name index file
------------------------------------------------
offset2[0] = 0
Alison M Chappell
696458
1963

offset2[3] = 80
Barbara J Furza
1504503
1962

-------------------------------------

See how the offsets for the 2nd record are wrong, its the same for several other records.

Topic: RMI version Compatibility Previous Topic   Next Topic Topic: MathOps.java from Eckel does not work

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use