id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
19257422_647
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test(expected = NumericException.class)\n public void testParseIntSizeOverflowNoQualifier() throws Exception {\n Numbers.parseIntSize(\"10737418240\");\n }", "class_method_signature": "NumbersTest.testParseIntSizeOverflowNoQualifier()", "constructor": false, "full_signature": "@Test(exp...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int parseIntSize(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n if (lim == 0) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(0) == '-';\n int i = 0;\n if (negative) {\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_581
{ "fields": [], "file": "core/src/test/java/io/questdb/std/OsTest.java", "identifier": "OsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCurrentTimeMicros() {\n long reference = System.currentTimeMillis();\n long actual = Os.currentTimeMicros();\n long delta = actual / 1000 - reference;\n Assert.assertTrue(delta < 200);\n }", "class_method_signature": "OsTest.testCurrentTimeMicros(...
{ "fields": [ { "declarator": "WINDOWS = 3", "modifier": "public static final", "original_string": "public static final int WINDOWS = 3;", "type": "int", "var_name": "WINDOWS" }, { "declarator": "_32Bit = -2", "modifier": "public static final", "original_str...
{ "body": "public static native long currentTimeMicros();", "class_method_signature": "Os.currentTimeMicros()", "constructor": false, "full_signature": "public static native long currentTimeMicros()", "identifier": "currentTimeMicros", "invocations": [], "modifiers": "public static native", "parameters"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_714
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" } ], "file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java...
{ "body": "@Test\n public void testPreviousOrSameDow1() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.previousOrSameDayOfWeek(micros, 3));\n TestUtils.assertEquals...
{ "fields": [ { "declarator": "WEEK_MICROS = 604800000000L", "modifier": "public static final", "original_string": "public static final long WEEK_MICROS = 604800000000L;", "type": "long", "var_name": "WEEK_MICROS" }, { "declarator": "DAY_MICROS = 86400000000L", "m...
{ "body": "public static long previousOrSameDayOfWeek(long micros, int dow) {\n int thisDow = getDayOfWeek(micros);\n if (thisDow == dow) {\n return micros;\n }\n\n if (thisDow < dow) {\n return micros - (7 + (thisDow - dow)) * DAY_MICROS;\n } else {\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_344
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/groupby/TimestampSamplerFactoryTest.java", "identifier": "TimestampSamplerFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLongQualifier() {\n try {\n TimestampSamplerFactory.getInstance(\"1sa\", 130);\n Assert.fail();\n } catch (SqlException e) {\n Assert.assertEquals(131, e.getPosition());\n TestUtils.assertContains(e.getMessage(), \"expecte...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/TimestampSamplerFactory.java", "identifier": "TimestampSamplerFactory", "interfaces": "", "methods": [ { "class_method_signature": "TimestampSamplerFactory.getInstance(CharSequence cs, int position)", "constructor": ...
{ "body": "public static TimestampSampler getInstance(CharSequence cs, int position) throws SqlException {\n int k = -1;\n\n if (cs == null) {\n throw SqlException.$(position, \"missing interval\");\n }\n\n final int len = cs.length();\n\n // look for end of digits\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_651
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testParseLongSizeMb() throws Exception {\n Assert.assertEquals(5 * 1024 * 1024L, Numbers.parseLongSize(\"5M\"));\n Assert.assertEquals(5 * 1024 * 1024L, Numbers.parseLongSize(\"5m\"));\n }", "class_method_signature": "NumbersTest.testParseLongSizeMb()", "construc...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static long parseLongSize(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n if (lim == 0) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(0) == '-';\n int i = 0;\n if (negative) {\n...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_201
{ "fields": [ { "declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }", "mo...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "BinFunctionTest.testGetSym()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "identifi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_128
{ "fields": [ { "declarator": "function = new CursorFunction(25, null)", "modifier": "private static final", "original_string": "private static final CursorFunction function = new CursorFunction(25, null);", "type": "CursorFunction", "var_name": "function" } ], "file": "core/...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "CursorFunctionTest.testLong256A()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public vo...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256A(Record rec)", "identifier": "getLong...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_578
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(DirectLongListTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(DirectLongListTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/tes...
{ "body": "@Test\n public void testResizeMemLeak() {\n // use logger so that static memory allocation happens before our control measurement\n LOG.info().$(\"testResizeMemLeak\").$();\n long expected = Unsafe.getMemUsed();\n try (DirectLongList list = new DirectLongList(1024)) {\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(DirectLongList.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(DirectLongList.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "pow2", ...
{ "body": "public void add(long x) {\n ensureCapacity();\n Unsafe.getUnsafe().putLong(pos, x);\n pos += 8;\n }", "class_method_signature": "DirectLongList.add(long x)", "constructor": false, "full_signature": "public void add(long x)", "identifier": "add", "invocations": [ "ensur...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_597
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testFormatDoubleNegZero() {\n sink.clear();\n Numbers.append(sink, -0d);\n TestUtils.assertEquals(\"-0.0\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleNegZero()", "constructor": false, "full_signature": "@Test public void testFor...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_313
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/ShortConstantTest.java", "identifier": "ShortConstantTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConstant() {\n ShortConstant constant = new ShortConstant(22, (short) 143);\n Assert.assertEquals(143, constant.getShort(null));\n Assert.assertTrue(constant.isConstant());\n }", "class_method_signature": "ShortConstantTest.testConstant()", "constructo...
{ "fields": [ { "declarator": "value", "modifier": "private final", "original_string": "private final short value;", "type": "short", "var_name": "value" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/ShortConstant.java", "identifier": "Short...
{ "body": "@Override\n public short getShort(Record rec) {\n return value;\n }", "class_method_signature": "ShortConstant.getShort(Record rec)", "constructor": false, "full_signature": "@Override public short getShort(Record rec)", "identifier": "getShort", "invocations": [], "modifiers": "@O...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_256
{ "fields": [ { "declarator": "function = new ShortFunction(25) {\n @Override\n public short getShort(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final ShortFunction function = new ShortFunction(25)...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "ShortFunctionTest.testGetBool()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void test...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java", "identifier": "ShortFunct...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.getBool(Record rec)", "constructor": false, "full_signature": "@Override public final boolean getBool(Record rec)", "identifier": "getBool"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_606
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testFormatDoubleLargeExp() {\n sink.clear();\n Numbers.append(sink, 1123338789079878978979879d);\n TestUtils.assertEquals(\"1.123338789079879E24\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleLargeExp()", "constructor": false, "fu...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_485
{ "fields": [ { "declarator": "PRODUCT = \"product\"", "modifier": "public static final", "original_string": "public static final String PRODUCT = \"product\";", "type": "String", "var_name": "PRODUCT" }, { "declarator": "FF = FilesFacadeImpl.INSTANCE", "modifier"...
{ "body": "@Test\n // tests scenario where truncate is not supported (windows) but fails on close\n // truncate on close fails once and then succeeds\n // close is expected not to fail\n public void testCannotTruncateColumnOnCloseAndNotSupported() throws Exception {\n int N = 100000;\n creat...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "public final void truncate() {\n\n if (size() == 0) {\n return;\n }\n\n writeTodo(TODO_TRUNCATE);\n for (int i = 0; i < columnCount; i++) {\n getPrimaryColumn(i).truncate();\n AppendMemory mem = getSecondaryColumn(i);\n if (mem != null...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_190
{ "fields": [ { "declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }", "mo...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetFloat() {\n function.getFloat(null);\n }", "class_method_signature": "BinFunctionTest.testGetFloat()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getFloat(Record rec)", "constructor": false, "full_signature": "@Override public final float getFloat(Record rec)", "identifier": "getFloat", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_94
{ "fields": [ { "declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }", "modifier": "private static final", "original_string": "private static final IntFunction function = new IntFunction(25) {\n ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrLen() {\n function.getStrLen(null);\n }", "class_method_signature": "IntFunctionTest.testGetStrLen()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java", "identifier": "IntFunction"...
{ "body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "IntFunction.getStrLen(Record rec)", "constructor": false, "full_signature": "@Override public final int getStrLen(Record rec)", "identifier": "getStrLen", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_108
{ "fields": [ { "declarator": "function = new SymbolFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 0;\n }\n\n @Override\n public CharSequence getSymbol(Record rec) {\n return \"XYZ\";\n }\n\n @Override\n pub...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetLong() {\n function.getLong(null);\n }", "class_method_signature": "SymbolFunctionTest.testGetLong()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java", "identifier": "SymbolFun...
{ "body": "@Override\n public final long getLong(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "SymbolFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_558
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java", "identifier": "NullColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getStr() {\n Assert.assertNull(NullColumn.INSTANCE.getStr(1234));\n }", "class_method_signature": "NullColumnTest.getStr()", "constructor": false, "full_signature": "@Test public void getStr()", "identifier": "getStr", "invocations": [ "assertNull", "getSt...
{ "fields": [ { "declarator": "INSTANCE = new NullColumn()", "modifier": "public static final", "original_string": "public static final NullColumn INSTANCE = new NullColumn();", "type": "NullColumn", "var_name": "INSTANCE" } ], "file": "core/src/main/java/io/questdb/cairo/Nul...
{ "body": "@Override\n public CharSequence getStr(long offset) {\n return null;\n }", "class_method_signature": "NullColumn.getStr(long offset)", "constructor": false, "full_signature": "@Override public CharSequence getStr(long offset)", "identifier": "getStr", "invocations": [], "modifiers"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_671
{ "fields": [], "file": "core/src/test/java/io/questdb/std/time/TimeZoneRulesImplTest.java", "identifier": "TimeZoneRulesImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPerformance() {\n Set<String> allZones = ZoneId.getAvailableZoneIds();\n List<String> zoneList = new ArrayList<>(allZones);\n Collections.sort(zoneList);\n List<ZoneId> zones = new ArrayList<>(zoneList.size());\n List<TimeZoneRulesImpl> zoneRule...
{ "fields": [ { "declarator": "SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTransitions\")", "modifier": "public static final", "original_string": "public static final long SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTr...
{ "body": "@Override\n public long getOffset(long millis, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && millis > cutoffTransition) {\n return fromRules(millis, year, leap);\n }\n\n i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_221
{ "fields": [ { "declarator": "function = new ByteFunction(25) {\n @Override\n public byte getByte(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final ByteFunction function = new ByteFunction(25) {\n ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "ByteFunctionTest.testGetMetadata()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public vo...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java", "identifier": "ByteFunctio...
{ "body": "@Override\n public final RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ByteFunction.getMetadata()", "constructor": false, "full_signature": "@Override public final RecordMetadata getMetadata()", "identifier": "getMetadata",...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_364
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testLatestByKeyValueFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"5.942010834028011\\tPEHN\\t1970-08-03T02:53:20.000000Z\\n\",\n \"select * from x latest by b where b = 'PEHN'...
{ "fields": [ { "declarator": "GKK_VANILLA_INT = 0", "modifier": "public static final", "original_string": "public static final int GKK_VANILLA_INT = 0;", "type": "int", "var_name": "GKK_VANILLA_INT" }, { "declarator": "GKK_HOUR_INT = 1", "modifier": "public stati...
{ "body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }", "class_method_signature": "SqlCodeGenerator.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "@Override publi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_276
{ "fields": [ { "declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }", "modifier": "private static final", "original_string": "private static final DateFunction function = new DateFunction(25) {\...
{ "body": "@Test\n public void testGetFloat() {\n Assert.assertEquals(163, function.getFloat(null), 0.1);\n }", "class_method_signature": "DateFunctionTest.testGetFloat()", "constructor": false, "full_signature": "@Test public void testGetFloat()", "identifier": "testGetFloat", "invocations": [...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java", "identifier": "DateFunctio...
{ "body": "@Override\n public final float getFloat(Record rec) {\n return Numbers.longToFloat(getDate(rec));\n }", "class_method_signature": "DateFunction.getFloat(Record rec)", "constructor": false, "full_signature": "@Override public final float getFloat(Record rec)", "identifier": "getFloat", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_626
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testParseInt() throws Exception {\n Assert.assertEquals(567963, Numbers.parseInt(\"567963\"));\n Assert.assertEquals(-23346346, Numbers.parseInt(\"-23346346\"));\n }", "class_method_signature": "NumbersTest.testParseInt()", "constructor": false, "full_signature...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int parseInt(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n\n return parseInt0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseInt(CharSequence sequence)", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_333
{ "fields": [ { "declarator": "FACTORY = ExpressionNode.FACTORY", "modifier": "public static final", "original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;", "type": "ObjectFactory<ExpressionNode>", "var_name": "FACTORY" } ], "...
{ "body": "@Test\n public void testNodeTraversal20() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.args.add(FACTORY.newInstance());\n n1.args.add(FACTORY.newInstance...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_299
{ "fields": [ { "declarator": "function = new Long256Function(25) {\n @Override\n public Long256 getLong256A(Record rec) {\n return Long256Impl.NULL_LONG256;\n }\n\n @Override\n public Long256 getLong256B(Record rec) {\n return Long256Impl.NULL_LONG25...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetDouble() {\n function.getDouble(null);\n }", "class_method_signature": "Long256FunctionTest.testGetDouble()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public v...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final double getDouble(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getDouble(Record rec)", "constructor": false, "full_signature": "@Override public final double getDouble(Record rec)", "identifier": "ge...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_149
{ "fields": [ { "declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n...
{ "body": "@Test\n public void testGetLong() {\n Assert.assertEquals(1, functionA.getLong(null));\n Assert.assertEquals(0, functionB.getLong(null));\n }", "class_method_signature": "BooleanFunctionTest.testGetLong()", "constructor": false, "full_signature": "@Test public void testGetLong()",...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final long getLong(Record rec) {\n return getBool(rec) ? 0 : 1;\n }", "class_method_signature": "BooleanFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "invocations":...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_519
{ "fields": [ { "declarator": "CONFIGURATION", "modifier": "private static final", "original_string": "private static final DefaultCairoConfiguration CONFIGURATION;", "type": "DefaultCairoConfiguration", "var_name": "CONFIGURATION" } ], "file": "core/src/test/java/io/questdb/...
{ "body": "@Test\n public void testGetAndCloseRace() throws Exception {\n\n try (TableModel model = new TableModel(configuration, \"xyz\", PartitionBy.NONE).col(\"ts\", ColumnType.DATE)) {\n CairoTestUtils.create(model);\n }\n\n for (int i = 0; i < 100; i++) {\n assertWit...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(WriterPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(WriterPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "ENTRY_OWNER = Un...
{ "body": "@Override\n public TableWriter get(CharSequence tableName) {\n\n checkClosed();\n\n long thread = Thread.currentThread().getId();\n\n Entry e = entries.get(tableName);\n if (e == null) {\n // We are racing to create new writer!\n e = new Entry(clock.getT...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_630
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test(expected = NumericException.class)\n public void testParseIntOverflow2() throws Exception {\n Numbers.parseInt(\"2147483648\");\n }", "class_method_signature": "NumbersTest.testParseIntOverflow2()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) p...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int parseInt(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n\n return parseInt0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseInt(CharSequence sequence)", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_260
{ "fields": [ { "declarator": "function = new ShortFunction(25) {\n @Override\n public short getShort(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final ShortFunction function = new ShortFunction(25)...
{ "body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "ShortFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "invocatio...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java", "identifier": "ShortFunct...
{ "body": "@Override\n public int getPosition() {\n return position;\n }", "class_method_signature": "ShortFunction.getPosition()", "constructor": false, "full_signature": "@Override public int getPosition()", "identifier": "getPosition", "invocations": [], "modifiers": "@Override public", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_325
{ "fields": [ { "declarator": "FACTORY = ExpressionNode.FACTORY", "modifier": "public static final", "original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;", "type": "ObjectFactory<ExpressionNode>", "var_name": "FACTORY" } ], "...
{ "body": "@Test\n public void testNodeTraversal13() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.rhs = FACTORY.newInstance();\n n1.rhs.type = LITERAL;\n n1....
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_82
{ "fields": [ { "declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }", "modifier": "private static final", "original_string": "private static final IntFunction function = new IntFunction(25) {\n ...
{ "body": "@Test\n public void testGetTimestamp() {\n Assert.assertEquals(150, function.getTimestamp(null));\n }", "class_method_signature": "IntFunctionTest.testGetTimestamp()", "constructor": false, "full_signature": "@Test public void testGetTimestamp()", "identifier": "testGetTimestamp", "i...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java", "identifier": "IntFunction"...
{ "body": "@Override\n public long getTimestamp(Record rec) {\n return getInt(rec);\n }", "class_method_signature": "IntFunction.getTimestamp(Record rec)", "constructor": false, "full_signature": "@Override public long getTimestamp(Record rec)", "identifier": "getTimestamp", "invocations": [ ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_237
{ "fields": [ { "declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final FloatFunction function = new FloatFunction(25)...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetDate() {\n function.getDate(null);\n }", "class_method_signature": "FloatFunctionTest.testGetDate()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void test...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getDate(Record rec)", "constructor": false, "full_signature": "@Override public final long getDate(Record rec)", "identifier": "getDate", "i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_667
{ "fields": [ { "declarator": "compiler = new DateFormatCompiler()", "modifier": "private static final", "original_string": "private static final DateFormatCompiler compiler = new DateFormatCompiler();", "type": "DateFormatCompiler", "var_name": "compiler" }, { "declara...
{ "body": "@Test\n public void testBasicParserCompiler() throws Exception {\n DateFormat fmt = compiler.compile(\"E, dd MMM yyyy a KK:m:s.S Z\");\n String utcPattern = \"yyyy-MM-ddTHH:mm:ss.SSSz\";\n DateFormat utc = compiler.compile(utcPattern);\n long millis = fmt.parse(\"Mon, 08 Apr ...
{ "fields": [ { "declarator": "OP_ERA = 1", "modifier": "static final", "original_string": "static final int OP_ERA = 1;", "type": "int", "var_name": "OP_ERA" }, { "declarator": "OP_YEAR_ONE_DIGIT = 2", "modifier": "static final", "original_string": "static ...
{ "body": "public DateFormat compile(CharSequence pattern) {\n return compile(pattern, false);\n }", "class_method_signature": "DateFormatCompiler.compile(CharSequence pattern)", "constructor": false, "full_signature": "public DateFormat compile(CharSequence pattern)", "identifier": "compile", "in...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_372
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testLatestByMissingKeyValuesIndexedFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"54.55175324785665\\tHYRX\\t1970-02-02T07:00:00.000000Z\\n\",\n \"select * from x latest by b w...
{ "fields": [ { "declarator": "GKK_VANILLA_INT = 0", "modifier": "public static final", "original_string": "public static final int GKK_VANILLA_INT = 0;", "type": "int", "var_name": "GKK_VANILLA_INT" }, { "declarator": "GKK_HOUR_INT = 1", "modifier": "public stati...
{ "body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }", "class_method_signature": "SqlCodeGenerator.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "@Override publi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_688
{ "fields": [], "file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java", "identifier": "TimestampLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShortMonth() throws Exception {\n String date = \"23 Sep 2010\";\n long result = TimestampLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n Assert.assertEquals(3, Numbers.decodeHighInt(result));\n Assert.assertEquals(8, ...
{ "fields": [ { "declarator": "months = new IntObjHashMap<>()", "modifier": "private final", "original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();", "type": "IntObjHashMap<ObjList<CharSequence>>", "var_name": "months" }, { ...
{ "body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }", "class_method_signature": "TimestampLocale.matchMonth(CharSequence content, int lo, int hi)", "constructor": false, "full_signature": "public long matchM...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_535
{ "fields": [ { "declarator": "SIZE_4M = 4 * 1024 * 1024L", "modifier": "public static final", "original_string": "public static final long SIZE_4M = 4 * 1024 * 1024L;", "type": "long", "var_name": "SIZE_4M" }, { "declarator": "asm = new BytecodeAssembler()", "mod...
{ "body": "@Test\n public void testClear() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n CairoTestUtils.createTestTable(10000, new Rnd(), new TestRecord.ArrayBinarySequence());\n try (TableReader reader = new TableReader(configuration, \"x\")) {\n entityColum...
{ "fields": [ { "declarator": "columnOffsets", "modifier": "private final", "original_string": "private final long[] columnOffsets;", "type": "long[]", "var_name": "columnOffsets" }, { "declarator": "mem", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public void clear() {\n close();\n }", "class_method_signature": "RecordChain.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "close" ], "modifiers": "@Override public", "parameters": "()...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_165
{ "fields": [ { "declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }", "modifier": "private static final", "original_string": "private static final TimestampFunction function = new ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "TimestampFunctionTest.testGetBool()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getBool(Record rec)", "constructor": false, "full_signature": "@Override public final boolean getBool(Record rec)", "identifier": "getB...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_16
{ "fields": [ { "declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }", "modifier": ...
{ "body": "@Test\n public void testGetSym() {\n TestUtils.assertEquals(\"a\", function.getSymbol(null));\n }", "class_method_signature": "StrFunctionTest.testGetSym()", "constructor": false, "full_signature": "@Test public void testGetSym()", "identifier": "testGetSym", "invocations": [ "as...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n return getStr(rec);\n }", "class_method_signature": "StrFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "identifier": "getSymbol", "in...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_470
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/VirtualMemoryTest.java", "identifier": "VirtualMemoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSkip() {\n try (VirtualMemory mem = new VirtualMemory(11, Integer.MAX_VALUE)) {\n mem.putByte((byte) 1);\n int n = 999;\n for (int i = n; i > 0; i--) {\n mem.putLong(i);\n mem.skip(3);\n }\n\n ...
{ "fields": [ { "declarator": "STRING_LENGTH_BYTES = 4", "modifier": "static final", "original_string": "static final int STRING_LENGTH_BYTES = 4;", "type": "int", "var_name": "STRING_LENGTH_BYTES" }, { "declarator": "LOG = LogFactory.getLog(VirtualMemory.class)", ...
{ "body": "public void skip(long bytes) {\n assert bytes >= 0;\n if (pageHi - appendPointer > bytes) {\n appendPointer += bytes;\n } else {\n skip0(bytes);\n }\n }", "class_method_signature": "VirtualMemory.skip(long bytes)", "constructor": false, "full_signa...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_309
{ "fields": [ { "declarator": "function = new Long256Function(25) {\n @Override\n public Long256 getLong256A(Record rec) {\n return Long256Impl.NULL_LONG256;\n }\n\n @Override\n public Long256 getLong256B(Record rec) {\n return Long256Impl.NULL_LONG25...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrLen() {\n function.getStrLen(null);\n }", "class_method_signature": "Long256FunctionTest.testGetStrLen()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public v...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getStrLen(Record rec)", "constructor": false, "full_signature": "@Override public final int getStrLen(Record rec)", "identifier": "getStrLe...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_132
{ "fields": [ { "declarator": "function = new CursorFunction(25, null)", "modifier": "private static final", "original_string": "private static final CursorFunction function = new CursorFunction(25, null);", "type": "CursorFunction", "var_name": "function" } ], "file": "core/...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetLong() {\n function.getLong(null);\n }", "class_method_signature": "CursorFunctionTest.testGetLong()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final long getLong(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_562
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java", "identifier": "NullColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeleted() {\n Assert.assertTrue(NullColumn.INSTANCE.isDeleted());\n }", "class_method_signature": "NullColumnTest.testDeleted()", "constructor": false, "full_signature": "@Test public void testDeleted()", "identifier": "testDeleted", "invocations": [ "asse...
{ "fields": [ { "declarator": "INSTANCE = new NullColumn()", "modifier": "public static final", "original_string": "public static final NullColumn INSTANCE = new NullColumn();", "type": "NullColumn", "var_name": "INSTANCE" } ], "file": "core/src/main/java/io/questdb/cairo/Nul...
{ "body": "@Override\n public boolean isDeleted() {\n return true;\n }", "class_method_signature": "NullColumn.isDeleted()", "constructor": false, "full_signature": "@Override public boolean isDeleted()", "identifier": "isDeleted", "invocations": [], "modifiers": "@Override public", "parame...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_427
{ "fields": [ { "declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b", "modifier": "private static final", "original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;", "type": "ByteManipulator", "var_name": "ENTITY_MANIPULATOR" }, ...
{ "body": "@Test\n public void testDanglingQuote() throws Exception {\n assertNoLeak(textLoader -> {\n final String expected = \"f0\\tf1\\tf2\\tf3\\tf4\\tf5\\tf6\\n\" +\n \"123\\tabc\\t2015-01-20T21:00:00.000Z\\t3.1415\\ttrue\\tLorem ipsum dolor sit amet.\\t122\\n\" +\n ...
{ "fields": [ { "declarator": "LOAD_JSON_METADATA = 0", "modifier": "public static final", "original_string": "public static final int LOAD_JSON_METADATA = 0;", "type": "int", "var_name": "LOAD_JSON_METADATA" }, { "declarator": "ANALYZE_STRUCTURE = 1", "modifier":...
{ "body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }", "class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)", "constructor": false, "full_signature": "public void setForceHeaders(boolean forceHeaders)", "identifier": "setForceH...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_41
{ "fields": [ { "declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }", "modifier": "private static final", "original_string": "private static final LongFunction function = new LongFunction(25) {\...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256B() {\n function.getLong256B(null);\n }", "class_method_signature": "LongFunctionTest.testLong256B()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java", "identifier": "LongFunctio...
{ "body": "@Override\n public final Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getLong256B(Record rec)", "constructor": false, "full_signature": "@Override public final Long256 getLong256B(Record rec)", "identifier"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_574
{ "fields": [ { "declarator": "extractor = new FileNameExtractorCharSequence()", "modifier": "private static final", "original_string": "private static final FileNameExtractorCharSequence extractor = new FileNameExtractorCharSequence();", "type": "FileNameExtractorCharSequence", "var...
{ "body": "@Test\n public void testPathListUnclosedQuote() {\n assertThat(\"[abc,c cd]\", Chars.splitLpsz(\"abc \\\"c cd\"));\n }", "class_method_signature": "CharsTest.testPathListUnclosedQuote()", "constructor": false, "full_signature": "@Test public void testPathListUnclosedQuote()", "identifi...
{ "fields": [ { "declarator": "CHAR_SEQUENCE_COMPARATOR = Chars::compare", "modifier": "public static final", "original_string": "public static final Comparator<CharSequence> CHAR_SEQUENCE_COMPARATOR = Chars::compare;", "type": "Comparator<CharSequence>", "var_name": "CHAR_SEQUENCE_C...
{ "body": "public static ObjList<Path> splitLpsz(CharSequence args) {\n final ObjList<Path> paths = new ObjList<>();\n int n = args.length();\n int lastLen = 0;\n int lastIndex = 0;\n boolean inQuote = false;\n for (int i = 0; i < n; i++) {\n char b = args.charAt(i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_124
{ "fields": [ { "declarator": "function = new CursorFunction(25, null)", "modifier": "private static final", "original_string": "private static final CursorFunction function = new CursorFunction(25, null);", "type": "CursorFunction", "var_name": "function" } ], "file": "core/...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetDate() {\n function.getDate(null);\n }", "class_method_signature": "CursorFunctionTest.testGetDate()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getDate(Record rec)", "constructor": false, "full_signature": "@Override public final long getDate(Record rec)", "identifier": "getDate", "...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_57
{ "fields": [ { "declarator": "function = new DoubleFunction(25) {\n @Override\n public double getDouble(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final DoubleFunction function = new DoubleFunctio...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrB() {\n function.getStrB(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetStrB()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.getStrB(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStrB(Record rec)", "identifier"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_431
{ "fields": [ { "declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b", "modifier": "private static final", "original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;", "type": "ByteManipulator", "var_name": "ENTITY_MANIPULATOR" }, ...
{ "body": "@Test\n public void testImportOneColumn() throws Exception {\n final TextConfiguration textConfiguration = new DefaultTextConfiguration() {\n @Override\n public double getMaxRequiredLineLengthStdDev() {\n return 2.0;\n }\n };\n\n Cairo...
{ "fields": [ { "declarator": "LOAD_JSON_METADATA = 0", "modifier": "public static final", "original_string": "public static final int LOAD_JSON_METADATA = 0;", "type": "int", "var_name": "LOAD_JSON_METADATA" }, { "declarator": "ANALYZE_STRUCTURE = 1", "modifier":...
{ "body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }", "class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)", "constructor": false, "full_signature": "public void setForceHeaders(boolean forceHeaders)", "identifier": "setForceH...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_348
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testBindVariableInSelect2() throws Exception {\n assertMemoryLeak(() -> {\n final CairoConfiguration configuration = new DefaultCairoConfiguration(root);\n try (\n CairoEngine engine = new CairoEngine(configuration);\n ...
{ "fields": [ { "declarator": "GKK_VANILLA_INT = 0", "modifier": "public static final", "original_string": "public static final int GKK_VANILLA_INT = 0;", "type": "int", "var_name": "GKK_VANILLA_INT" }, { "declarator": "GKK_HOUR_INT = 1", "modifier": "public stati...
{ "body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }", "class_method_signature": "SqlCodeGenerator.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "@Override publi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_718
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" } ], "file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java...
{ "body": "@Test\n public void testYearsBetween2() throws NumericException {\n long micros1 = TimestampFormatUtils.parseDateTime(\"2020-04-24T01:49:12.005Z\");\n long micros2 = TimestampFormatUtils.parseDateTime(\"2025-04-24T01:49:12.005Z\");\n Assert.assertEquals(5, Timestamps.getYearsBetween...
{ "fields": [ { "declarator": "WEEK_MICROS = 604800000000L", "modifier": "public static final", "original_string": "public static final long WEEK_MICROS = 604800000000L;", "type": "long", "var_name": "WEEK_MICROS" }, { "declarator": "DAY_MICROS = 86400000000L", "m...
{ "body": "public static long getYearsBetween(long a, long b) {\n return getMonthsBetween(a, b) / 12;\n }", "class_method_signature": "Timestamps.getYearsBetween(long a, long b)", "constructor": false, "full_signature": "public static long getYearsBetween(long a, long b)", "identifier": "getYearsBet...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_173
{ "fields": [ { "declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }", "modifier": "private static final", "original_string": "private static final TimestampFunction function = new ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "TimestampFunctionTest.testGetMetadata()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) publ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getMetadata()", "constructor": false, "full_signature": "@Override public RecordMetadata getMetadata()", "identifier": "getMetadata", "inv...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_489
{ "fields": [ { "declarator": "PRODUCT = \"product\"", "modifier": "public static final", "original_string": "public static final String PRODUCT = \"product\";", "type": "String", "var_name": "PRODUCT" }, { "declarator": "FF = FilesFacadeImpl.INSTANCE", "modifier"...
{ "body": "@Test\n public void testFailureToOpenArchiveFile() throws Exception {\n testCommitRetryAfterFailure(new CountingFilesFacade() {\n @Override\n public long openAppend(LPSZ name) {\n if (--count < 1L) {\n return -1;\n }\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "private long openAppend(LPSZ name) {\n long fd = ff.openAppend(name);\n if (fd == -1) {\n throw CairoException.instance(Os.errno()).put(\"Cannot open for append: \").put(name);\n }\n return fd;\n }", "class_method_signature": "TableWriter.openAppend(LPSZ name)", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_523
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testAllocateAndClear() throws Exception {\n\n assertWithPool(pool -> {\n int n = 2;\n final CyclicBarrier barrier = new CyclicBarrier(n);\n final CountDownLatch halt = new CountDownLatch(n);\n final AtomicInteger errors = new AtomicI...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_466
{ "fields": [ { "declarator": "temp = new TemporaryFolder()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final TemporaryFolder temp = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "temp" } ], "file": "core/src/test/java/io/q...
{ "body": "@Test\n public void testSetZeroKeepAlive() throws IOException, ServerConfigurationException, JsonException {\n try (InputStream is = PropServerConfigurationTest.class.getResourceAsStream(\"/server-keep-alive.conf\")) {\n Properties properties = new Properties();\n properties...
{ "fields": [ { "declarator": "CONFIG_DIRECTORY = \"conf\"", "modifier": "public static final", "original_string": "public static final String CONFIG_DIRECTORY = \"conf\";", "type": "String", "var_name": "CONFIG_DIRECTORY" }, { "declarator": "httpIODispatcherConfigurati...
{ "body": "@Override\n public HttpServerConfiguration getHttpServerConfiguration() {\n return httpServerConfiguration;\n }", "class_method_signature": "PropServerConfiguration.getHttpServerConfiguration()", "constructor": false, "full_signature": "@Override public HttpServerConfiguration getHttpSer...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_528
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testCloseWithInactiveReader() throws Exception {\n assertWithPool(pool -> {\n TableReader reader = pool.get(\"u\");\n Assert.assertNotNull(reader);\n reader.close();\n Assert.assertTrue(reader.isOpen());\n pool.close();\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_178
{ "fields": [ { "declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }", "modifier": "private static final", "original_string": "private static final TimestampFunction function = new ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "TimestampFunctionTest.testGetStr2()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_482
{ "fields": [ { "declarator": "PRODUCT = \"product\"", "modifier": "public static final", "original_string": "public static final String PRODUCT = \"product\";", "type": "String", "var_name": "PRODUCT" }, { "declarator": "FF = FilesFacadeImpl.INSTANCE", "modifier"...
{ "body": "@Test\n public void testAddColumnRepairFail2() throws Exception {\n class X extends FilesFacadeImpl {\n int counter = 2;\n\n @Override\n public long openRO(LPSZ name) {\n if (Chars.endsWith(name, TableUtils.META_FILE_NAME) && --counter == 0) {\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "private int rename(int retries) {\n try {\n int index = 0;\n other.concat(META_PREV_FILE_NAME).$();\n path.concat(META_FILE_NAME).$();\n int l = other.length();\n\n do {\n if (index > 0) {\n other.trimTo(l);\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_197
{ "fields": [ { "declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }", "mo...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "BinFunctionTest.testGetStr()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetSt...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "get...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_314
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/FloatConstantTest.java", "identifier": "FloatConstantTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConstant() {\n FloatConstant constant = new FloatConstant(0, 123.45f);\n Assert.assertTrue(constant.isConstant());\n Assert.assertEquals(123.45f, constant.getFloat(null), 0.00001);\n }", "class_method_signature": "FloatConstantTest.testConstant()", "co...
{ "fields": [ { "declarator": "value", "modifier": "private final", "original_string": "private final float value;", "type": "float", "var_name": "value" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/FloatConstant.java", "identifier": "Float...
{ "body": "@Override\n public float getFloat(Record rec) {\n return value;\n }", "class_method_signature": "FloatConstant.getFloat(Record rec)", "constructor": false, "full_signature": "@Override public float getFloat(Record rec)", "identifier": "getFloat", "invocations": [], "modifiers": "@O...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_251
{ "fields": [ { "declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final FloatFunction function = new FloatFunction(25)...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }", "class_method_signature": "FloatFunctionTest.testLong256()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getLong256(Record rec, CharSink sink)", "constructor": false, "full_signature": "@Override public void getLong256(Record rec, CharSi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_601
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testFormatDouble2() {\n sink.clear();\n Numbers.append(sink, 0.8998893432);\n TestUtils.assertEquals(\"0.8998893432\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDouble2()", "constructor": false, "full_signature": "@Test public void te...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_590
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testFormatByte() {\n for (int i = 0; i < 1000; i++) {\n byte n = (byte) rnd.nextInt();\n\n sink.clear();\n Numbers.append(sink, n);\n Assert.assertEquals(Byte.toString(n), sink.toString());\n }\n }", "class_method_signatu...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_713
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" } ], "file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java...
{ "body": "@Test\n public void testOverflowDate() {\n Assert.assertEquals(\"6477-07-27T03:15:50.400Z\", Timestamps.toString(142245170150400000L));\n }", "class_method_signature": "TimestampsTest.testOverflowDate()", "constructor": false, "full_signature": "@Test public void testOverflowDate()", "...
{ "fields": [ { "declarator": "WEEK_MICROS = 604800000000L", "modifier": "public static final", "original_string": "public static final long WEEK_MICROS = 604800000000L;", "type": "long", "var_name": "WEEK_MICROS" }, { "declarator": "DAY_MICROS = 86400000000L", "m...
{ "body": "public static String toString(long micros) {\n CharSink sink = Misc.getThreadLocalBuilder();\n TimestampFormatUtils.appendDateTime(sink, micros);\n return sink.toString();\n }", "class_method_signature": "Timestamps.toString(long micros)", "constructor": false, "full_signature...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_343
{ "fields": [ { "declarator": "FACTORY = ExpressionNode.FACTORY", "modifier": "public static final", "original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;", "type": "ObjectFactory<ExpressionNode>", "var_name": "FACTORY" } ], "...
{ "body": "@Test\n public void testNodeTraversal9() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.rhs = FACTORY.newInstance();\n n1.rhs.type = LITERAL;\n //\n n2.type = FUNCTION;\n ...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_656
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test(expected = NumericException.class)\n public void testParseWrongHexInt() throws Exception {\n Numbers.parseHexInt(\"0N\");\n }", "class_method_signature": "NumbersTest.testParseWrongHexInt()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public v...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int parseHexInt(CharSequence sequence) throws NumericException {\n return parseHexInt(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseHexInt(CharSequence sequence)", "constructor": false, "full_signature": "public static int parseHexInt(CharSeque...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_206
{ "fields": [ { "declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }", "mo...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256B() {\n function.getLong256B(null);\n }", "class_method_signature": "BinFunctionTest.testLong256B()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getLong256B(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256B(Record rec)", "identifier": "getLong256...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_569
{ "fields": [ { "declarator": "extractor = new FileNameExtractorCharSequence()", "modifier": "private static final", "original_string": "private static final FileNameExtractorCharSequence extractor = new FileNameExtractorCharSequence();", "type": "FileNameExtractorCharSequence", "var...
{ "body": "@Test\n public void testPathList() {\n assertThat(\"[abc,d1]\", Chars.splitLpsz(\"abc d1\"));\n }", "class_method_signature": "CharsTest.testPathList()", "constructor": false, "full_signature": "@Test public void testPathList()", "identifier": "testPathList", "invocations": [ "as...
{ "fields": [ { "declarator": "CHAR_SEQUENCE_COMPARATOR = Chars::compare", "modifier": "public static final", "original_string": "public static final Comparator<CharSequence> CHAR_SEQUENCE_COMPARATOR = Chars::compare;", "type": "Comparator<CharSequence>", "var_name": "CHAR_SEQUENCE_C...
{ "body": "public static ObjList<Path> splitLpsz(CharSequence args) {\n final ObjList<Path> paths = new ObjList<>();\n int n = args.length();\n int lastLen = 0;\n int lastIndex = 0;\n boolean inQuote = false;\n for (int i = 0; i < n; i++) {\n char b = args.charAt(i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_139
{ "fields": [ { "declarator": "function = new CursorFunction(25, null)", "modifier": "private static final", "original_string": "private static final CursorFunction function = new CursorFunction(25, null);", "type": "CursorFunction", "var_name": "function" } ], "file": "core/...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "CursorFunctionTest.testGetSym()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "ident...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_586
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testCeilPow2() {\n Assert.assertEquals(16, Numbers.ceilPow2(15));\n Assert.assertEquals(16, Numbers.ceilPow2(16));\n Assert.assertEquals(32, Numbers.ceilPow2(17));\n }", "class_method_signature": "NumbersTest.testCeilPow2()", "constructor": false, "full_...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int ceilPow2(int value) {\n int i = value;\n if ((i != 0) && (i & (i - 1)) > 0) {\n i |= (i >>> 1);\n i |= (i >>> 2);\n i |= (i >>> 4);\n i |= (i >>> 8);\n i |= (i >>> 16);\n i++;\n\n if (i < 0) {\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_355
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testFilterOnIndexAndExpression() throws Exception {\n\n TestMatchFunctionFactory.clear();\n\n assertQuery(\"contactId\\n\" +\n \"KOJSOLDYRO\\n\" +\n \"SKEDJ\\n\",\n \"SELECT\\n\" +\n \" ...
{ "fields": [ { "declarator": "GKK_VANILLA_INT = 0", "modifier": "public static final", "original_string": "public static final int GKK_VANILLA_INT = 0;", "type": "int", "var_name": "GKK_VANILLA_INT" }, { "declarator": "GKK_HOUR_INT = 1", "modifier": "public stati...
{ "body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }", "class_method_signature": "SqlCodeGenerator.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "@Override publi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_705
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" } ], "file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java...
{ "body": "@Test\n public void testFloorDD() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.floorDD(micros));\n TestUtils.assertEquals(\"2008-05-12T00:00:00.000Z\", sink);\n }", "c...
{ "fields": [ { "declarator": "WEEK_MICROS = 604800000000L", "modifier": "public static final", "original_string": "public static final long WEEK_MICROS = 604800000000L;", "type": "long", "var_name": "WEEK_MICROS" }, { "declarator": "DAY_MICROS = 86400000000L", "m...
{ "body": "public static long floorDD(long micros) {\n return micros - getTimeMicros(micros);\n }", "class_method_signature": "Timestamps.floorDD(long micros)", "constructor": false, "full_signature": "public static long floorDD(long micros)", "identifier": "floorDD", "invocations": [ "getTime...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_210
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/functions/eq/EqDoubleFunctionFactoryTest.java", "identifier": "EqDoubleFunctionFactoryTest", "interfaces": "", "superclass": "extends AbstractFunctionFactoryTest" }
{ "body": "@Test\n public void testRightNaNTimestamp() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new TimestampConstant(1, 20000L));\n args.add(new DoubleConstant(2, Double.NaN));\n Function funct...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/functions/eq/EqDoubleFunctionFactory.java", "identifier": "EqDoubleFunctionFactory", "interfaces": "implements FunctionFactory", "methods": [ { "class_method_signature": "EqDoubleFunctionFactory.getSignature()", "constructor...
{ "body": "@Override\n public Function newInstance(ObjList<Function> args, int position, CairoConfiguration configuration) {\n // this is probably a special case factory\n // NaN is always a double, so this could lead comparisons of all primitive types\n // to NaN route to this factory. Obviou...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_640
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test(expected = NumericException.class)\n public void testParseLongSignOnly() throws Exception {\n Numbers.parseLong(\"-\");\n }", "class_method_signature": "NumbersTest.testParseLongSignOnly()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public vo...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static long parseLong(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n return parseLong0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseLong(CharSequence sequence)"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_494
{ "fields": [ { "declarator": "PRODUCT = \"product\"", "modifier": "public static final", "original_string": "public static final String PRODUCT = \"product\";", "type": "String", "var_name": "PRODUCT" }, { "declarator": "FF = FilesFacadeImpl.INSTANCE", "modifier"...
{ "body": "@Test\n public void testRemoveColumnCannotRemoveSomeMetadataPrev() throws Exception {\n removeColumn(new TestFilesFacade() {\n int count = 5;\n\n @Override\n public boolean exists(LPSZ path) {\n if (Chars.contains(path, TableUtils.META_PREV_FILE_NAM...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "public void removeColumn(CharSequence name) {\n\n checkDistressed();\n\n final int index = getColumnIndex(name);\n final int type = metadata.getColumnType(index);\n\n LOG.info().$(\"removing column '\").utf8(name).$(\"' from \").$(path).$();\n\n // check if we are moving ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_181
{ "fields": [ { "declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }", "modifier": "private static final", "original_string": "private static final TimestampFunction function = new ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "TimestampFunctionTest.testGetSym()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "id...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_302
{ "fields": [ { "declarator": "function = new Long256Function(25) {\n @Override\n public Long256 getLong256A(Record rec) {\n return Long256Impl.NULL_LONG256;\n }\n\n @Override\n public Long256 getLong256B(Record rec) {\n return Long256Impl.NULL_LONG25...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "Long256FunctionTest.testGetMetadata()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getMetadata()", "constructor": false, "full_signature": "@Override public final RecordMetadata getMetadata()", "identifier": "getMetadat...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_617
{ "fields": [ { "declarator": "sink = new StringSink()", "modifier": "private final", "original_string": "private final StringSink sink = new StringSink();", "type": "StringSink", "var_name": "sink" }, { "declarator": "rnd", "modifier": "private", "original_...
{ "body": "@Test\n public void testLongToHex() {\n long value = -8372462554923253491L;\n StringSink sink = new StringSink();\n Numbers.appendHex(sink, value, false);\n TestUtils.assertEquals(Long.toHexString(value), sink);\n }", "class_method_signature": "NumbersTest.testLongToHex(...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void appendHex(CharSink sink, final int value) {\n int i = value;\n if (i < 0) {\n if (i == Integer.MIN_VALUE) {\n sink.put(\"NaN\");\n return;\n }\n sink.put('-');\n i = -i;\n }\n int c;\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_247
{ "fields": [ { "declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }", "modifier": "private static final", "original_string": "private static final FloatFunction function = new FloatFunction(25)...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrLen() {\n function.getStrLen(null);\n }", "class_method_signature": "FloatFunctionTest.testGetStrLen()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public voi...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getStrLen(Record rec)", "constructor": false, "full_signature": "@Override public final int getStrLen(Record rec)", "identifier": "getStrLen"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_66
{ "fields": [ { "declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }", "modifier": "private static final", "original_string": "private static final CharFunction function = new CharFunction(25) {...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "CharFunctionTest.testGetBool()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "sinkA = new StringSink()", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CharFunction.getBool(Record rec)", "constructor": false, "full_signature": "@Override public final boolean getBool(Record rec)", "identifier": "getBool",...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_400
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testPassNaNAsShort() {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x(E)\";\n }\n\n @Override\n public Function newInstance(ObjList<Function> args, int posi...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(FunctionParser.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "MATCH_NO...
{ "body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_115
{ "fields": [ { "declarator": "function = new SymbolFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 0;\n }\n\n @Override\n public CharSequence getSymbol(Record rec) {\n return \"XYZ\";\n }\n\n @Override\n pub...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrSink() {\n function.getStr(null, null);\n }", "class_method_signature": "SymbolFunctionTest.testGetStrSink()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) publ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java", "identifier": "SymbolFun...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "SymbolFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_545
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/map/RecordValueSinkFactoryTest.java", "identifier": "RecordValueSinkFactoryTest", "interfaces": "", "superclass": "extends AbstractCairoTest" }
{ "body": "@Test\n public void testAllSupportedTypes() {\n SingleColumnType keyTypes = new SingleColumnType(ColumnType.INT);\n try (TableModel model = new TableModel(configuration, \"all\", PartitionBy.NONE)\n .col(\"int\", ColumnType.INT)\n .col(\"short\", ColumnType.SH...
{ "fields": [], "file": "core/src/main/java/io/questdb/cairo/map/RecordValueSinkFactory.java", "identifier": "RecordValueSinkFactory", "interfaces": "", "methods": [ { "class_method_signature": "RecordValueSinkFactory.getInstance(BytecodeAssembler asm, ColumnTypes columnTypes, @Transient ColumnFilte...
{ "body": "public static RecordValueSink getInstance(BytecodeAssembler asm, ColumnTypes columnTypes, @Transient ColumnFilter columnFilter) {\n asm.init(RecordSink.class);\n asm.setupPool();\n int thisClassIndex = asm.poolClass(asm.poolUtf8(\"io/questdb/cairo/valuesink\"));\n int interfaceC...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_89
{ "fields": [ { "declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }", "modifier": "private static final", "original_string": "private static final IntFunction function = new IntFunction(25) {\n ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "IntFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOpe...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java", "identifier": "IntFunction"...
{ "body": "@Override\n public RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "IntFunction.getRecordCursorFactory()", "constructor": false, "full_signature": "@Override public RecordCursorFactory getRecordCursorFactory()", ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_396
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantStr() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjList<...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(FunctionParser.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "MATCH_NO...
{ "body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_379
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testBooleanFunctions() throws SqlException {\n\n functions.add(new NotFunctionFactory());\n functions.add(new OrFunctionFactory());\n\n final Record record = new Record() {\n @Override\n public boolean getBool(int col) {\n // ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(FunctionParser.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "MATCH_NO...
{ "body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_683
{ "fields": [], "file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java", "identifier": "TimestampLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NumericException.class)\n public void testBadMonth() throws Exception {\n String date = \"23 Dek 2010\";\n TimestampLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n }", "class_method_signature": "TimestampLocaleTest.testBadMonth()", ...
{ "fields": [ { "declarator": "months = new IntObjHashMap<>()", "modifier": "private final", "original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();", "type": "IntObjHashMap<ObjList<CharSequence>>", "var_name": "months" }, { ...
{ "body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }", "class_method_signature": "TimestampLocale.matchMonth(CharSequence content, int lo, int hi)", "constructor": false, "full_signature": "public long matchM...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_457
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(PGJobContextTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(PGJobContextTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/ja...
{ "body": "@Test\n public void testThatTableOidIsSetToZero() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(\...
{ "fields": [ { "declarator": "PG_VARCHAR = 1043", "modifier": "public static final", "original_string": "public static final int PG_VARCHAR = 1043;", "type": "int", "var_name": "PG_VARCHAR" }, { "declarator": "PG_TIMESTAMP = 1114", "modifier": "public static fina...
{ "body": "@Override\n public void close() {\n Misc.free(compiler);\n }", "class_method_signature": "PGJobContext.close()", "constructor": false, "full_signature": "@Override public void close()", "identifier": "close", "invocations": [ "free" ], "modifiers": "@Override public", "para...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_31
{ "fields": [ { "declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }", "modifier": "private static final", "original_string": "private static final LongFunction function = new LongFunction(25) {\...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetShort() {\n function.getShort(null);\n }", "class_method_signature": "LongFunctionTest.testGetShort()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void te...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java", "identifier": "LongFunctio...
{ "body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getShort(Record rec)", "constructor": false, "full_signature": "@Override public final short getShort(Record rec)", "identifier": "getShort",...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_512
{ "fields": [ { "declarator": "path = new Path()", "modifier": "private final static", "original_string": "private final static Path path = new Path();", "type": "Path", "var_name": "path" }, { "declarator": "otherPath = new Path()", "modifier": "private final sta...
{ "body": "@Test\n public void testRemoveNonExisting() throws Exception {\n createY(); // this will create root dir at least\n TestUtils.assertMemoryLeak(() -> {\n try (CairoEngine engine = new CairoEngine(configuration)) {\n try {\n engine.remove(AllowAll...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(CairoEngine.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(CairoEngine.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "writerPool", ...
{ "body": "public void remove(\n CairoSecurityContext securityContext,\n Path path,\n CharSequence tableName\n ) {\n securityContext.checkWritePermission();\n if (lock(securityContext, tableName)) {\n try {\n path.of(configuration.getRoot())....
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_142
{ "fields": [ { "declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBin() {\n functionA.getBin(null);\n }", "class_method_signature": "BooleanFunctionTest.testGetBin()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void test...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BooleanFunction.getBin(Record rec)", "constructor": false, "full_signature": "@Override public final BinarySequence getBin(Record rec)", "identifie...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_284
{ "fields": [ { "declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }", "modifier": "private static final", "original_string": "private static final DateFunction function = new DateFunction(25) {\...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "DateFunctionTest.testGetStr2()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java", "identifier": "DateFunctio...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "ge...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_7
{ "fields": [ { "declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }", "modifier": ...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetDouble() {\n function.getDouble(null);\n }", "class_method_signature": "StrFunctionTest.testGetDouble()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final double getDouble(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.getDouble(Record rec)", "constructor": false, "full_signature": "@Override public final double getDouble(Record rec)", "identifier": "getDou...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_27
{ "fields": [ { "declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }", "modifier": "private static final", "original_string": "private static final LongFunction function = new LongFunction(25) {\...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetInt() {\n function.getInt(null);\n }", "class_method_signature": "LongFunctionTest.testGetInt()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetI...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java", "identifier": "LongFunctio...
{ "body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getInt(Record rec)", "constructor": false, "full_signature": "@Override public final int getInt(Record rec)", "identifier": "getInt", "invocati...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_441
{ "fields": [ { "declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b", "modifier": "private static final", "original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;", "type": "ByteManipulator", "var_name": "ENTITY_MANIPULATOR" }, ...
{ "body": "@Test\n public void testSimplePipe() throws Exception {\n assertNoLeak(textLoader -> {\n final String expected = \"f0\\tf1\\tf2\\tf3\\tf4\\tf5\\tf6\\n\" +\n \"123\\tabc\\t2015-01-20T21:00:00.000Z\\t3.1415\\ttrue\\tLorem ipsum dolor sit amet.\\t122\\n\" +\n ...
{ "fields": [ { "declarator": "LOAD_JSON_METADATA = 0", "modifier": "public static final", "original_string": "public static final int LOAD_JSON_METADATA = 0;", "type": "int", "var_name": "LOAD_JSON_METADATA" }, { "declarator": "ANALYZE_STRUCTURE = 1", "modifier":...
{ "body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }", "class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)", "constructor": false, "full_signature": "public void setForceHeaders(boolean forceHeaders)", "identifier": "setForceH...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_154
{ "fields": [ { "declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n...
{ "body": "@Test\n public void testGetStr() {\n Assert.assertEquals(\"false\", functionA.getStr(null));\n Assert.assertEquals(\"true\", functionB.getStr(null));\n }", "class_method_signature": "BooleanFunctionTest.testGetStr()", "constructor": false, "full_signature": "@Test public void test...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n return getStr0(rec);\n }", "class_method_signature": "BooleanFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "getStr", "invocatio...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_504
{ "fields": [ { "declarator": "MUST_SWITCH = 1", "modifier": "public static final", "original_string": "public static final int MUST_SWITCH = 1;", "type": "int", "var_name": "MUST_SWITCH" }, { "declarator": "MUST_NOT_SWITCH = 2", "modifier": "public static final",...
{ "body": "@Test\n public void testReloadNonPartitioned() throws Exception {\n testReload(PartitionBy.NONE, 10, 60L * 60000, DONT_CARE);\n }", "class_method_signature": "TableReaderTest.testReloadNonPartitioned()", "constructor": false, "full_signature": "@Test public void testReloadNonPartitioned(...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableReader.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableReader.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "YEAR_GEN = Tab...
{ "body": "private boolean reloadNonPartitioned() {\n // calling readTxn will set \"rowCount\" member variable\n if (readTxn()) {\n reloadStruct();\n if (getPartitionRowCount(0) > -1) {\n reloadPartition(0, rowCount);\n } else {\n openPartit...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_292
{ "fields": [ { "declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }", "modifier": "private static final", "original_string": "private static final DateFunction function = new DateFunction(25) {\...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "DateFunctionTest.testLong256A()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java", "identifier": "DateFunctio...
{ "body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256A(Record rec)", "identifier": "getLong25...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_338
{ "fields": [ { "declarator": "FACTORY = ExpressionNode.FACTORY", "modifier": "public static final", "original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;", "type": "ObjectFactory<ExpressionNode>", "var_name": "FACTORY" } ], "...
{ "body": "@Test\n public void testNodeTraversal4() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.lhs = FACTORY.newInstance();\n n1.lhs.type = LITERAL;\n //\n n2.type = FUNCTION;\n ...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_416
{ "fields": [ { "declarator": "path = new Path()", "modifier": "private final static", "original_string": "private final static Path path = new Path();", "type": "Path", "var_name": "path" }, { "declarator": "LOG = LogFactory.getLog(SqlCompilerTest.class)", "modif...
{ "body": "@Test\n public void testRemoveTimestampColumn() throws Exception {\n assertMemoryLeak(() -> {\n compiler.compile(\"create table x1 (a int, b double, t timestamp) timestamp(t)\", sqlExecutionContext);\n\n try (TableReader reader = engine.getReader(sqlExecutionContext.getCairo...
{ "fields": [ { "declarator": "sqlControlSymbols = new ObjList<>(8)", "modifier": "public static final", "original_string": "public static final ObjList<String> sqlControlSymbols = new ObjList<>(8);", "type": "ObjList<String>", "var_name": "sqlControlSymbols" }, { "decl...
{ "body": "@NotNull\n public CompiledQuery compile(@NotNull CharSequence query, @NotNull SqlExecutionContext executionContext) throws SqlException {\n clear();\n //\n // these are quick executions that do not require building of a model\n //\n lexer.of(query);\n\n final Ch...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_70
{ "fields": [ { "declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }", "modifier": "private static final", "original_string": "private static final CharFunction function = new CharFunction(25) {...
{ "body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "CharFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "invocation...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "sinkA = new StringSink()", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public int getPosition() {\n return position;\n }", "class_method_signature": "CharFunction.getPosition()", "constructor": false, "full_signature": "@Override public int getPosition()", "identifier": "getPosition", "invocations": [], "modifiers": "@Override public", "...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_553
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java", "identifier": "NullColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getFd() {\n Assert.assertEquals(-1, NullColumn.INSTANCE.getFd());\n }", "class_method_signature": "NullColumnTest.getFd()", "constructor": false, "full_signature": "@Test public void getFd()", "identifier": "getFd", "invocations": [ "assertEquals", "getFd"...
{ "fields": [ { "declarator": "INSTANCE = new NullColumn()", "modifier": "public static final", "original_string": "public static final NullColumn INSTANCE = new NullColumn();", "type": "NullColumn", "var_name": "INSTANCE" } ], "file": "core/src/main/java/io/questdb/cairo/Nul...
{ "body": "@Override\n public long getFd() {\n return -1;\n }", "class_method_signature": "NullColumn.getFd()", "constructor": false, "full_signature": "@Override public long getFd()", "identifier": "getFd", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return":...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...