All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.tree.isoforextended.isolationtree.AbstractCompressedNode Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.tree.isoforextended.isolationtree;

import water.AutoBuffer;
import water.Iced;

/**
 * Upper class for {@link CompressedNode} and {@link CompressedLeaf} used to access both types from array.
 */
public abstract class AbstractCompressedNode extends Iced {
    private final int _height;

    public AbstractCompressedNode(int height) {
        _height = height;
    }

    public int getHeight() {
        return _height;
    }

    /**
     * Serialize Node to the byte buffer
     */
    public abstract void toBytes(AutoBuffer ab);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy