Class Time


public final class Time extends
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

    Nested Classes
    Modifier and Type
    static final class 
  • Field Summary

    Fields inherited from class

    bb, bb_pos
  • Constructor Summary

  • Method Summary

    Modifier and Type
    __assign(int _i, ByteBuffer _bb)
    __init(int _i, ByteBuffer _bb)
    static void
    addBitWidth( builder, int bitWidth)
    static void
    addUnit( builder, short unit)
    static int
    createTime( builder, short unit, int bitWidth)
    static int
    endTime( builder)
    static Time
    static Time
    static void
    startTime( builder)
    static void

    Methods inherited from class

    __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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Time

      public Time()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsTime

      public static Time getRootAsTime(ByteBuffer _bb)
    • getRootAsTime

      public static Time getRootAsTime(ByteBuffer _bb, Time obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Time __assign(int _i, ByteBuffer _bb)
    • unit

      public short unit()
    • bitWidth

      public int bitWidth()
    • createTime

      public static int createTime( builder, short unit, int bitWidth)
    • startTime

      public static void startTime( builder)
    • addUnit

      public static void addUnit( builder, short unit)
    • addBitWidth

      public static void addBitWidth( builder, int bitWidth)
    • endTime

      public static int endTime( builder)