org.hsqldb.lib.LongLookup

Here are the examples of the java api org.hsqldb.lib.LongLookup taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

9 Examples 7

19 Source : RowAVLDisk.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    out.writeSize(storageSize);
    NodeAVL rownode = nPrimaryNode;
    while (rownode != null) {
        rownode.write(out, lookup);
        rownode = rownode.nNext;
    }
    out.writeData(this, table.colTypes);
    out.writeEnd();
}

19 Source : Row.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
}

19 Source : IntArrayCachedObject.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    int capacity = values.length;
    out.setStorageSize(storageSize);
    for (int i = 0; i < capacity; i++) {
        out.writeInt(values[i]);
    }
    out.writeEnd();
}

19 Source : DirectoryBlockCachedObject.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    int capacity = tableIds.length;
    out.setStorageSize(storageSize);
    for (int i = 0; i < capacity; i++) {
        out.writeInt(tableIds[i]);
    }
    for (int i = 0; i < capacity; i++) {
        out.writeInt(bitmapAddress[i]);
    }
    for (int i = 0; i < capacity; i++) {
        out.writeChar(freeSpace[i]);
    }
    for (int i = 0; i < capacity; i++) {
        out.writeChar(freeSpaceBlock[i]);
    }
    out.writeEnd();
}

19 Source : BitMapCachedObject.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    int[] array = bitMap.getIntArray();
    int capacity = array.length;
    out.setStorageSize(storageSize);
    for (int i = 0; i < capacity; i++) {
        out.writeInt(array[i]);
    }
    out.writeEnd();
}

19 Source : NodeAVLDiskLarge.java
with Apache License 2.0
from SERG-Delft

private static long getTranslatePointer(long pointer, LongLookup lookup) {
    long newPointer = 0;
    if (pointer != NodeAVL.NO_POS) {
        if (lookup == null) {
            newPointer = pointer;
        } else {
            newPointer = lookup.lookup(pointer);
        }
    }
    return newPointer;
}

19 Source : NodeAVLDiskLarge.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    long leftTemp = getTranslatePointer(iLeft, lookup);
    long rightTemp = getTranslatePointer(iRight, lookup);
    long parentTemp = getTranslatePointer(iParent, lookup);
    int ext = 0;
    ext |= (int) ((parentTemp & 0xff00000000L) >> 8);
    ext |= (int) ((leftTemp & 0xff00000000L) >> 16);
    ext |= (int) ((rightTemp & 0xff00000000L) >> 24);
    if (ext == 0) {
        ext = iBalance;
    } else {
        ext |= (iBalance & 0xff);
    }
    out.writeInt(ext);
    out.writeInt((int) leftTemp);
    out.writeInt((int) rightTemp);
    out.writeInt((int) parentTemp);
}

19 Source : NodeAVLDisk.java
with Apache License 2.0
from SERG-Delft

public void write(RowOutputInterface out, LongLookup lookup) {
    out.writeInt(iBalance);
    out.writeInt(getTranslatePointer(iLeft, lookup));
    out.writeInt(getTranslatePointer(iRight, lookup));
    out.writeInt(getTranslatePointer(iParent, lookup));
}

19 Source : NodeAVLDisk.java
with Apache License 2.0
from SERG-Delft

private static int getTranslatePointer(int pointer, LongLookup lookup) {
    int newPointer = 0;
    if (pointer != NodeAVL.NO_POS) {
        if (lookup == null) {
            newPointer = pointer;
        } else {
            newPointer = (int) lookup.lookup(pointer);
        }
    }
    return newPointer;
}