Package org.apache.arrow.flatbuf
Class Time
java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Time
public final class Time
extends com.google.flatbuffers.Table
Time is either a 32-bit or 64-bit signed integer type representing an
elapsed time since midnight, stored in either of four units: seconds,
milliseconds, microseconds or nanoseconds.
The integer `bitWidth` depends on the `unit` and must be one of the following:
* SECOND and MILLISECOND: 32 bits
* MICROSECOND and NANOSECOND: 64 bits
The allowed values are between 0 (inclusive) and 86400 (=24*60*60) seconds
(exclusive), adjusted for the time unit (for example, up to 86400000
exclusive for the MILLISECOND unit).
This definition doesn't allow for leap seconds. Time values from
measurements with leap seconds will need to be corrected when ingesting
into Arrow (for example by replacing the value 86400 with 86399).
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__assign
(int _i, ByteBuffer _bb) void
__init
(int _i, ByteBuffer _bb) static void
addBitWidth
(com.google.flatbuffers.FlatBufferBuilder builder, int bitWidth) static void
addUnit
(com.google.flatbuffers.FlatBufferBuilder builder, short unit) int
bitWidth()
static int
createTime
(com.google.flatbuffers.FlatBufferBuilder builder, short unit, int bitWidth) static int
endTime
(com.google.flatbuffers.FlatBufferBuilder builder) static Time
getRootAsTime
(ByteBuffer _bb) static Time
getRootAsTime
(ByteBuffer _bb, Time obj) static void
startTime
(com.google.flatbuffers.FlatBufferBuilder builder) short
unit()
static void
Methods inherited from class com.google.flatbuffers.Table
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsTime
-
getRootAsTime
-
__init
-
__assign
-
unit
public short unit() -
bitWidth
public int bitWidth() -
createTime
public static int createTime(com.google.flatbuffers.FlatBufferBuilder builder, short unit, int bitWidth) -
startTime
public static void startTime(com.google.flatbuffers.FlatBufferBuilder builder) -
addUnit
public static void addUnit(com.google.flatbuffers.FlatBufferBuilder builder, short unit) -
addBitWidth
public static void addBitWidth(com.google.flatbuffers.FlatBufferBuilder builder, int bitWidth) -
endTime
public static int endTime(com.google.flatbuffers.FlatBufferBuilder builder)
-