Re: Are there any databases that can store multidiimensional boolean arrays?
- From: lordy <spam@xxxxxxxxxxxx>
- Date: Sun, 09 Jul 2006 01:13:21 GMT
On 2006-07-04, Oliver Wong <owong@xxxxxxxxxxxxxx> wrote:
"Rhino" <no.offline.contact.please@xxxxxxxxxx> wrote in messageYou may also want to consider what this array represents in the design.
news:e8e2ub$pfd$1@xxxxxxxxxxxxxxxx
I'd never noticed the BitSet class before in several years of coding Java
but I just took a look at it in the API. Is there any particular reason
why it is better than just turning a boolean array into a String of T's
and F's. I assume it uses less space since bits are smaller than Strings
but wouldn't it get a bit cumbersome to have to have a Bitset within a
Bitset within a Bitset within a Bitset just to represent this array?
It will probably use significantly less space. 200'000 * 53'000 bits =
10600000000 bits, or around 1.2 GBs.
If you represent each bit with a single 16 bit character, you're
multiplying the size requirements by 16, i.e. around 19.7GBs.
- Oliver
Is is a sparse array? Could it be better represented in another way?
Lordy
.
- References:
- Are there any databases that can store multidiimensional boolean arrays?
- From: Rhino
- Re: Are there any databases that can store multidiimensional boolean arrays?
- From: Robert Klemme
- Re: Are there any databases that can store multidiimensional boolean arrays?
- From: Rhino
- Re: Are there any databases that can store multidiimensional boolean arrays?
- From: Oliver Wong
- Are there any databases that can store multidiimensional boolean arrays?
- Prev by Date: Re: Apache Derby and Eclipse 3.2
- Next by Date: prepareCall creating database connections
- Previous by thread: Re: Are there any databases that can store multidiimensional boolean arrays?
- Next by thread: Re: Are there any databases that can store multidiimensional boolean arrays?
- Index(es):
Relevant Pages
|
|