org.apache.arrow.flatbuf.FloatingPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arrow-format Show documentation
Show all versions of arrow-format Show documentation
Generated Java files from the IPC Flatbuffer definitions.
// automatically generated by the FlatBuffers compiler, do not modify
package org.apache.arrow.flatbuf;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class FloatingPoint extends Table {
public static FloatingPoint getRootAsFloatingPoint(ByteBuffer _bb) { return getRootAsFloatingPoint(_bb, new FloatingPoint()); }
public static FloatingPoint getRootAsFloatingPoint(ByteBuffer _bb, FloatingPoint obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public FloatingPoint __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public short precision() { int o = __offset(4); return o != 0 ? bb.getShort(o + bb_pos) : 0; }
public static int createFloatingPoint(FlatBufferBuilder builder,
short precision) {
builder.startObject(1);
FloatingPoint.addPrecision(builder, precision);
return FloatingPoint.endFloatingPoint(builder);
}
public static void startFloatingPoint(FlatBufferBuilder builder) { builder.startObject(1); }
public static void addPrecision(FlatBufferBuilder builder, short precision) { builder.addShort(0, precision, 0); }
public static int endFloatingPoint(FlatBufferBuilder builder) {
int o = builder.endObject();
return o;
}
}