OmniSciDB
a5dc49c757
|
Classes | |
enum | DateAddUnit |
enum | DateDiffUnit |
enum | DateExtractUnit |
enum | DateTruncUnit |
enum | Encoding |
enum | Fuzzy |
Static Public Member Functions | |
static LocalDateTime | testDateTrunc (LocalDateTime d, DateTruncUnit f, HeavyDBTestClient client, Encoding enc) throws Exception |
static LocalDateTime | testDateTruncTable (LocalDateTime d, DateTruncUnit f, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testDateExtract (LocalDateTime d, DateExtractUnit f, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testDateExtractTable (LocalDateTime d, DateExtractUnit f, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testDiff (String fn, LocalDateTime d0, LocalDateTime d1, DateDiffUnit f, HeavyDBTestClient client, Encoding enc0, Encoding enc1) throws Exception |
static void | testDiffTable (String fn, LocalDateTime d0, LocalDateTime d1, DateDiffUnit f, HeavyDBTestClient client, Encoding enc0, Encoding enc1) throws Exception |
static void | testDateAdd (String fn, LocalDateTime d, DateAddUnit f, long units, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testDateAddTable (String fn, LocalDateTime d, DateAddUnit f, long units, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testAdd (LocalDateTime d, DateAddUnit f, long units, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | testSub (LocalDateTime d, DateAddUnit f, long units, HeavyDBTestClient client, Encoding enc) throws Exception |
static void | createTestTable (HeavyDBTestClient client) throws Exception |
static void | main (String[] args) throws Exception |
Static Package Functions | |
static LocalDateTime | createRandomDateTime (Random r) |
static LocalDateTime | getDateTimeFromQuery (HeavyDBTestClient client, String sql) throws Exception |
static long | getLongFromQuery (HeavyDBTestClient client, String sql) throws Exception |
[static initializer] | |
Static Package Attributes | |
static EnumSet | resultsToDump = EnumSet.of(Fuzzy.failed, Fuzzy.okish) |
static EnumSet | addAllowed = EnumSet.allOf(DateAddUnit.class) |
Static Private Member Functions | |
static void | updateValues (HeavyDBTestClient client, LocalDateTime a, Encoding aEnc) throws Exception |
static void | updateValues (HeavyDBTestClient client, LocalDateTime a, Encoding aEnc, LocalDateTime b, Encoding bEnc) throws Exception |
a (hopefully) complete test case for date/time functions in OmniSci.
Definition at line 21 of file DateTimeTest.java.
|
inlinestaticpackage |
|
inlinestaticpackage |
Definition at line 555 of file DateTimeTest.java.
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 1052 of file DateTimeTest.java.
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestaticpackage |
Definition at line 672 of file DateTimeTest.java.
References MIN, and run_benchmark_import.res.
Referenced by com.mapd.tests.DateTimeTest.testAdd(), com.mapd.tests.DateTimeTest.testDateAdd(), com.mapd.tests.DateTimeTest.testDateAddTable(), com.mapd.tests.DateTimeTest.testDateTrunc(), com.mapd.tests.DateTimeTest.testDateTruncTable(), and com.mapd.tests.DateTimeTest.testSub().
|
inlinestaticpackage |
Definition at line 705 of file DateTimeTest.java.
References run_benchmark_import.res.
Referenced by com.mapd.tests.DateTimeTest.testDateExtract(), com.mapd.tests.DateTimeTest.testDateExtractTable(), com.mapd.tests.DateTimeTest.testDiff(), and com.mapd.tests.DateTimeTest.testDiffTable().
|
inlinestatic |
Definition at line 1072 of file DateTimeTest.java.
References run_benchmark_import.args, com.mapd.tests.DateTimeTest.createRandomDateTime(), com.mapd.tests.DateTimeTest.createTestTable(), f(), com.mapd.tests.DateTimeTest.Fuzzy.failed, com.mapd.tests.DateTimeTest.Fuzzy.okish, com.mapd.tests.DateTimeTest.resultsToDump, com.mapd.tests.DateTimeTest.testAdd(), com.mapd.tests.DateTimeTest.testDateAdd(), com.mapd.tests.DateTimeTest.testDateExtract(), com.mapd.tests.DateTimeTest.testDateTrunc(), com.mapd.tests.DateTimeTest.testDiff(), and com.mapd.tests.DateTimeTest.testSub().
|
inlinestatic |
Definition at line 941 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.addAllowed, f(), com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), and com.mapd.tests.DateTimeTest.resultsToDump.
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 882 of file DateTimeTest.java.
References f(), com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.testDateAddTable().
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 904 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.updateValues().
Referenced by com.mapd.tests.DateTimeTest.testDateAdd().
|
inlinestatic |
Definition at line 791 of file DateTimeTest.java.
References f(), com.mapd.tests.DateTimeTest.getLongFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.testDateExtractTable().
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 809 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.getLongFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.updateValues().
Referenced by com.mapd.tests.DateTimeTest.testDateExtract().
|
inlinestatic |
Definition at line 725 of file DateTimeTest.java.
References f(), com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.testDateTruncTable().
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 772 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.updateValues().
Referenced by com.mapd.tests.DateTimeTest.testDateTrunc().
|
inlinestatic |
Definition at line 831 of file DateTimeTest.java.
References f(), com.mapd.tests.DateTimeTest.getLongFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.testDiffTable().
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestatic |
Definition at line 855 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.getLongFromQuery(), com.mapd.tests.DateTimeTest.resultsToDump, and com.mapd.tests.DateTimeTest.updateValues().
Referenced by com.mapd.tests.DateTimeTest.testDiff().
|
inlinestatic |
Definition at line 964 of file DateTimeTest.java.
References com.mapd.tests.DateTimeTest.addAllowed, f(), com.mapd.tests.DateTimeTest.getDateTimeFromQuery(), and com.mapd.tests.DateTimeTest.resultsToDump.
Referenced by com.mapd.tests.DateTimeTest.main().
|
inlinestaticprivate |
Definition at line 746 of file DateTimeTest.java.
References anonymous_namespace{Utm.h}.a.
Referenced by com.mapd.tests.DateTimeTest.testDateAddTable(), com.mapd.tests.DateTimeTest.testDateExtractTable(), com.mapd.tests.DateTimeTest.testDateTruncTable(), and com.mapd.tests.DateTimeTest.testDiffTable().
|
inlinestaticprivate |
|
staticpackage |
Definition at line 931 of file DateTimeTest.java.
Referenced by com.mapd.tests.DateTimeTest.testAdd(), and com.mapd.tests.DateTimeTest.testSub().
|
staticpackage |
Definition at line 929 of file DateTimeTest.java.
Referenced by com.mapd.tests.DateTimeTest.main(), com.mapd.tests.DateTimeTest.testAdd(), com.mapd.tests.DateTimeTest.testDateAdd(), com.mapd.tests.DateTimeTest.testDateAddTable(), com.mapd.tests.DateTimeTest.testDateExtract(), com.mapd.tests.DateTimeTest.testDateExtractTable(), com.mapd.tests.DateTimeTest.testDateTrunc(), com.mapd.tests.DateTimeTest.testDateTruncTable(), com.mapd.tests.DateTimeTest.testDiff(), com.mapd.tests.DateTimeTest.testDiffTable(), and com.mapd.tests.DateTimeTest.testSub().