2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 2001-2002
5
* Sleepycat Software. All rights reserved.
10
package com.sleepycat.db;
14
* @author David M. Krinsky
16
// DbMultipleIterator is a shared package-private base class for the three
17
// types of bulk-return Iterator; it should never be instantiated directly,
18
// but it handles the functionality shared by its subclasses.
19
class DbMultipleIterator
21
// Package-private methods and members: used by our subclasses.
23
// Called implicitly by the subclass
24
DbMultipleIterator(Dbt data)
26
buf = data.get_data();
27
size = data.get_ulen();
28
// The offset will always be zero from the front of the buffer
29
// DB returns, and the buffer is opaque, so don't bother
30
// handling an offset.
32
// The initial position is pointing at the last u_int32_t
37
// The C macros use sizeof(u_int32_t). Fortunately, java ints
38
// are always four bytes. Make this a constant just for form's sake.
39
static final int int32sz = 4;
41
// Current position within the buffer; equivalent to "pointer"
42
// in the DB_MULTIPLE macros.
45
// A reference to the encoded buffer returned from the original
46
// Db/Dbc.get call on the data Dbt, and its size.
51
// end of DbMultipleIterator.java