Hi everyone,
I have some questions about calculating the number of records in the data file.
I calculate the number in this way:
( [Length of this file] � [header size] � [schema size] ) / [size of one record with a flag] For length calculation of my file I use length() method from RandomAccessFile. And the return value of length is long. Does it mean that I need to use long?
The problem is that my DB interface has e.g.
read Method with int argument. Do I need to use int instead of long? Or can I change my DB interface? When I use int the precision will be lost when the size of the file is bigger than int.
Do you have some idea how to solve this problem?
Thanks for your help!!!
p.s. sorry for my bad English!
[ February 14, 2005: Message edited by: Olena Golub ]