Subject Re: [Firebird-Java] Re: Picture Servlet Problems possibly OT
Author Ann W. Harrison
At 03:39 PM 6/9/2003 +0000, Roman Rokytskyy wrote:

>Can actual length of one segment be bigger than segment length defined
>in DDL statement?

Yes. The ddl statement is purely descriptive and exists for the
convenience of tools. The length parameter on the call determines
the actual length of a particular segment.

>Do I understand you correctly, that each call to isc_get_segment will
>get _only one_ segment? So, when I have 16k buffer and 1k segment, I
>will need to call isc_get_segment 16 times?

Right. Not, of course, with stream blobs.

>What happens in isc_put_segment if blob has 1k segments defined and
>I'm writing 16k bytes? Will it be stored as 1 segment of 16k size, or
>will it be stored as 16 segments of 1k size?

One segment of 16K bytes. And that's how get_segment will return it -
16K at at time, or less if you pass a smaller buffer.

>What happens if the size of the segment is bigger than page size? Is
>such situation allowed?

Sure. There's no mapping between pages and segments.


Regards,

Ann