public abstract class AbstractTreeNode extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
AbstractTreeNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte |
getType() |
abstract int |
predict(de.jungblut.math.DoubleVector features) |
static AbstractTreeNode |
read(DataInput in) |
abstract void |
transformToByteCode(org.objectweb.asm.MethodVisitor visitor,
org.objectweb.asm.Label returnLabel)
Transforms this node to byte code, given a visitor that already starts
containing the methods and a label that must be jumped to in case of a
return.
|
void |
write(DataOutput out) |
protected abstract void |
writeInternal(DataOutput out)
serialize internal state.
|
public abstract int predict(de.jungblut.math.DoubleVector features)
public abstract void transformToByteCode(org.objectweb.asm.MethodVisitor visitor,
org.objectweb.asm.Label returnLabel)
public abstract byte getType()
protected abstract void writeInternal(DataOutput out) throws IOException
IOExceptionpublic final void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic static AbstractTreeNode read(DataInput in) throws IOException
IOExceptionCopyright © 2016. All rights reserved.