This project has retired. For details please refer to its
Attic page .
XSTimePointable (VXQuery 0.6 API)
JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
java.lang.Object
org.apache.hyracks.data.std.api.AbstractPointable
org.apache.vxquery.datamodel.accessors.atomic.XSTimePointable
All Implemented Interfaces:
org.apache.hyracks.data.std.api.IPointable
, org.apache.hyracks.data.std.api.IValueReference
, ITime
, ITimezone
public class XSTimePointable
extends org.apache.hyracks.data.std.api.AbstractPointable
implements ITime , ITimezone
The time is split up into five sections. Due to leap year, we have decided to keep the
storage simple by saving each date section separately. For calculations you can access
DayTime (milliseconds) values.
Author:
prestoncarman
Field Summary
Fields inherited from class org.apache.hyracks.data.std.api.AbstractPointable
bytes, length, start
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
long
getDayTime ()
static long
getDayTime (byte[] bytes,
int start)
long
getHour ()
static long
getHour (byte[] bytes,
int start)
long
getMilliSecond ()
static long
getMilliSecond (byte[] bytes,
int start)
long
getMinute ()
static long
getMinute (byte[] bytes,
int start)
long
getTimezone ()
static long
getTimezone (byte[] bytes,
int start)
long
getTimezoneHour ()
static long
getTimezoneHour (byte[] bytes,
int start)
long
getTimezoneMinute ()
static long
getTimezoneMinute (byte[] bytes,
int start)
long
getYearMonth ()
static long
getYearMonth (byte[] bytes,
int start)
static void
setTime (byte[] bytes,
int start,
long hour,
long minute,
long second,
long timezoneHour,
long timezoneMinute)
void
setTime (long hour,
long minute,
long second,
long timezoneHour,
long timezoneMinute)
Methods inherited from class org.apache.hyracks.data.std.api.AbstractPointable
getByteArray, getLength, getStartOffset, set, set
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Detail
XSTimePointable
public XSTimePointable()
Method Detail
setTime
public void setTime(long hour,
long minute,
long second,
long timezoneHour,
long timezoneMinute)
setTime
public static void setTime(byte[] bytes,
int start,
long hour,
long minute,
long second,
long timezoneHour,
long timezoneMinute)
getHour
public long getHour()
Specified by:
getHour
in interface ITime
getMinute
public long getMinute()
Specified by:
getMinute
in interface ITime
JavaScript is disabled on your browser.
Copyright © 2019 Apache Software Foundation . All rights reserved.