Package com.stardog.stark.util
Class DateTimeInlineUtils
- java.lang.Object
-
- com.stardog.stark.util.DateTimeInlineUtils
-
public final class DateTimeInlineUtils extends java.lang.ObjectInlining logic for datetime values. Moved here to be accessible to CalendarLiteral- Since:
- 0.7
- Version:
- 7.9
- Author:
- Pavel Klinov, Simon Gratzer
-
-
Field Summary
Fields Modifier and Type Field Description static intDATE_LENstatic intDAYstatic intDAY_LENstatic intHOURstatic intHOUR_LENstatic intMAX_YEARSstatic intMILLIstatic intMILLI_LENstatic intMINUTESstatic intMINUTES_LENstatic intMONTHstatic intMONTH_LENstatic longNOT_INLINABLEstatic intTIME_LENstatic intTZstatic intTZ_LENstatic intTZ_NONEstatic intTZ_OFFSET_PRECISIONstatic intTZ_Zstatic intYEARstatic intYEAR_LEN
-
Constructor Summary
Constructors Constructor Description DateTimeInlineUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intadjustTZafterExtraction(int theTZ)static intextractDays(long theLong)static intextractHours(long theLong)static intextractMillis(long theLong)static intextractMinutes(long theLong)static intextractMonths(long theLong)static intextractTimezone(long theLong)static intextractYears(long theLong)static longinline(XMLCalendar aXMLCal, long aInlined)Encode a calendar value into the ID
-
-
-
Field Detail
-
DATE_LEN
public static final int DATE_LEN
- See Also:
- Constant Field Values
-
TIME_LEN
public static final int TIME_LEN
- See Also:
- Constant Field Values
-
MILLI
public static final int MILLI
- See Also:
- Constant Field Values
-
MILLI_LEN
public static final int MILLI_LEN
- See Also:
- Constant Field Values
-
MINUTES
public static final int MINUTES
- See Also:
- Constant Field Values
-
MINUTES_LEN
public static final int MINUTES_LEN
- See Also:
- Constant Field Values
-
HOUR
public static final int HOUR
- See Also:
- Constant Field Values
-
HOUR_LEN
public static final int HOUR_LEN
- See Also:
- Constant Field Values
-
DAY
public static final int DAY
- See Also:
- Constant Field Values
-
DAY_LEN
public static final int DAY_LEN
- See Also:
- Constant Field Values
-
MONTH
public static final int MONTH
- See Also:
- Constant Field Values
-
MONTH_LEN
public static final int MONTH_LEN
- See Also:
- Constant Field Values
-
YEAR
public static final int YEAR
- See Also:
- Constant Field Values
-
YEAR_LEN
public static final int YEAR_LEN
- See Also:
- Constant Field Values
-
MAX_YEARS
public static final int MAX_YEARS
- See Also:
- Constant Field Values
-
TZ
public static final int TZ
- See Also:
- Constant Field Values
-
TZ_LEN
public static final int TZ_LEN
- See Also:
- Constant Field Values
-
TZ_Z
public static final int TZ_Z
- See Also:
- Constant Field Values
-
TZ_NONE
public static final int TZ_NONE
- See Also:
- Constant Field Values
-
TZ_OFFSET_PRECISION
public static final int TZ_OFFSET_PRECISION
- See Also:
- Constant Field Values
-
NOT_INLINABLE
public static final long NOT_INLINABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractYears
public static int extractYears(long theLong)
-
extractMonths
public static int extractMonths(long theLong)
-
extractDays
public static int extractDays(long theLong)
-
extractHours
public static int extractHours(long theLong)
-
extractMinutes
public static int extractMinutes(long theLong)
-
extractMillis
public static int extractMillis(long theLong)
-
extractTimezone
public static int extractTimezone(long theLong)
-
adjustTZafterExtraction
public static int adjustTZafterExtraction(int theTZ)
-
inline
public static long inline(XMLCalendar aXMLCal, long aInlined)
Encode a calendar value into the ID- Parameters:
aXMLCal- calendar valueaInlined- long with the encoded datatype
-
-