• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Class design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class design question


  • Subject: Re: Class design question
  • From: Andy Armstrong <email@hidden>
  • Date: Sun, 13 Feb 2005 19:11:38 +0000

On 13 Feb 2005, at 18:44, Ken Tozier wrote:
Sort of. I'm writing a database app (for a learning experience among other "better" reasons) and so need much finer control of the disk reads and writes than "initWithContentsOfFile" permits. I need to be able to access any chunk of data anywhere in a file that could potentially be terabytes in size, so need a way to jump to spots in a file, read a chunk of data and decode it correctly. Although I'm factoring the data by size and type, I want to support all of the SQL types in addition to some richer types and capabilities than SQL can do natively. This means that I need either a class for each SQL type, or a function pointer array arrangement to correctly decode the saved data.

Unless you're going for fixed length records you're going to need to work out an internal structure for your file which allows you to allocate chunks of space in the database and an index that tells you where to seek to for a given record number. And you'll have to implement indexes most likely. Those would seem to be the real design issues.


--
Andy Armstrong, hexten.net

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Class design question
      • From: Ken Tozier <email@hidden>
References: 
 >Class design question (From: Ken Tozier <email@hidden>)
 >Re: Class design question (From: Jason Jobe <email@hidden>)
 >Re: Class design question (From: Ken Tozier <email@hidden>)
 >Re: Class design question (From: Jason Jobe <email@hidden>)
 >Re: Class design question (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Class design question
  • Next by Date: Re: Class design question
  • Previous by thread: Re: Class design question
  • Next by thread: Re: Class design question
  • Index(es):
    • Date
    • Thread