Package com.stardog.stark.util
Class DateTimeInlineUtils
- java.lang.Object
-
- com.stardog.stark.util.DateTimeInlineUtils
-
public final class DateTimeInlineUtils extends java.lang.Object
Inlining 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 int
DATE_LEN
static int
DAY
static int
DAY_LEN
static int
HOUR
static int
HOUR_LEN
static int
MAX_YEARS
static int
MILLI
static int
MILLI_LEN
static int
MINUTES
static int
MINUTES_LEN
static int
MONTH
static int
MONTH_LEN
static long
NOT_INLINABLE
static int
TIME_LEN
static int
TZ
static int
TZ_LEN
static int
TZ_NONE
static int
TZ_OFFSET_PRECISION
static int
TZ_Z
static int
YEAR
static int
YEAR_LEN
-
Constructor Summary
Constructors Constructor Description DateTimeInlineUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
adjustTZafterExtraction(int theTZ)
static int
extractDays(long theLong)
static int
extractHours(long theLong)
static int
extractMillis(long theLong)
static int
extractMinutes(long theLong)
static int
extractMonths(long theLong)
static int
extractTimezone(long theLong)
static int
extractYears(long theLong)
static long
inline(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
-
-