|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.ars.ars.persistence.index.IndexEntryIndex
public class IndexEntryIndex
Hilfsklasse für einen Datenzeit Index.
Ein Eintrag im Datenzeit Index ist wie folgt aufgebaut:DI-Min | DI-Max | CID |
8 Byte | 8 Byte | 5 Byte |
setEntry(byte[],int,long[])
geschrieben und über die getter ausgelesen.
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
private |
IndexEntryIndex()
Rein statische Klasse, keine Instanzen -> privater Konstruktor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
private IndexEntryIndex()
Method Detail |
---|
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 soll
public static long getDIMin(byte[] buffer, int pos)
buffer
- Byte Bufferpos
- Index des Eintrags, der gelesen werden soll
public static long getDIMax(byte[] buffer, int pos)
buffer
- Byte Bufferpos
- Index des Eintrags, der gelesen werden soll
public static long getCID(byte[] buffer, int pos)
buffer
- Byte Bufferpos
- Index des Eintrags, der gelesen werden soll
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |