public class IndexEntryIndex extends Object
| DI-Min | DI-Max | CID |
| 8 Byte | 8 Byte | 5 Byte |
setEntry(byte[],int,long[]) geschrieben und über die getter ausgelesen.| Modifier and Type | Field and Description |
|---|---|
private static int |
CONTID_POS |
private static int |
DI_MAX_POS |
private static int |
DI_MIN_POS |
static int |
ENTRY_LEN
Länge eines Eintrages im Index
|
| Modifier | Constructor and Description |
|---|---|
private |
IndexEntryIndex()
Rein statische Klasse, keine Instanzen -> privater Konstruktor
|
| Modifier and Type | Method and Description |
|---|---|
static long |
getCID(byte[] buffer,
int pos)
Liefert die Container-ID.
|
static long |
getDIMax(byte[] buffer,
int pos)
Liefert den Max-Wert des Datenindex.
|
static long |
getDIMin(byte[] buffer,
int pos)
Liefert den Min-Wert des Datenindex.
|
static long[] |
getEntry(byte[] buffer,
int pos)
Liefert den gesammten Eintrag an der Stelle pos im Puffer buffer.
|
static void |
setEntry(byte[] buffer,
int pos,
long[] entry)
Schreibt einen Eintrag an die Stelle pos im ByteBuffer buffer
|
private static final int DI_MIN_POS
private static final int DI_MAX_POS
private static final int CONTID_POS
public static final int ENTRY_LEN
private IndexEntryIndex()
public static void setEntry(byte[] buffer,
int pos,
long[] entry)
buffer - Puffer, in den der Eintrag geschrieben wirdpos - Index der Stelle, an der der Eintrag geschrieben wirdentry - Long Array mit Min-Wert des DatenIndex und der Container idpublic static long[] getEntry(byte[] buffer,
int pos)
buffer - Byte Bufferpos - Index des Eintrags, der gelesen werden sollpublic static long getDIMin(byte[] buffer,
int pos)
buffer - Byte Bufferpos - Index des Eintrags, der gelesen werden sollpublic static long getDIMax(byte[] buffer,
int pos)
buffer - Byte Bufferpos - Index des Eintrags, der gelesen werden sollpublic static long getCID(byte[] buffer,
int pos)
buffer - Byte Bufferpos - Index des Eintrags, der gelesen werden soll