Package aQute.lib.index
Class Index.Page
java.lang.Object
aQute.lib.index.Index.Page
- Enclosing class:
- Index
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final MappedByteBuffer
(package private) static final int
(package private) boolean
(package private) boolean
(package private) int
(package private) final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long
c
(int i) (package private) int
compare
(byte[] key, int i) (package private) void
copy
(ByteBuffer src, int srcPos, ByteBuffer dst, int dstPos, int length) (package private) void
copyFrom
(Index.Page page, int start, int length) private String
hex
(byte[] k, int i, int j) (package private) void
insert
(byte[] k, long v) (package private) void
insertNonFull
(byte[] k, long v) (package private) Iterator<byte[]>
iterator()
(package private) byte[]
k
(int i) private char
nibble
(int i) (package private) int
pos
(int i) (package private) long
search
(byte[] k) (package private) void
set
(int i, byte[] k, long v) (package private) int
size
(int n) toString()
void
toString
(StringBuilder sb, String indent) (package private) void
write()
-
Field Details
-
TYPE_OFFSET
static final int TYPE_OFFSET- See Also:
-
COUNT_OFFSET
static final int COUNT_OFFSET- See Also:
-
START_OFFSET
static final int START_OFFSET- See Also:
-
number
final int number -
leaf
boolean leaf -
buffer
-
n
int n -
dirty
boolean dirty
-
-
Constructor Details
-
Page
Page(int number) throws IOException - Throws:
IOException
-
Page
Page(int number, boolean leaf) throws IOException - Throws:
IOException
-
-
Method Details
-
iterator
Iterator<byte[]> iterator() -
write
- Throws:
IOException
-
compare
int compare(byte[] key, int i) -
pos
int pos(int i) -
size
int size(int n) -
copyFrom
-
copy
-
search
- Throws:
Exception
-
insert
- Throws:
IOException
-
k
byte[] k(int i) -
c
long c(int i) -
set
void set(int i, byte[] k, long v) -
insertNonFull
- Throws:
IOException
-
toString
-
toString
- Throws:
IOException
-
hex
-
nibble
private char nibble(int i)
-