id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
19257422_605
{ "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 testFormatDoubleAsRandomFloat() {\n Random random = new Random();\n for (int i = 0; i < 1_000_000; i++) {\n float d1 = random.nextFloat();\n float d2 = (float) random.nextGaussian();\n float d3 = random.nextFloat() * Float.MAX_VALUE;\n ...
{ "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_310
{ "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 testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "Long256FunctionTest.testGetSym()", "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/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "iden...
{ "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_469
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/VirtualMemoryTest.java", "identifier": "VirtualMemoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testJumpTo() {\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 }\n\n assertEquals(1, mem.get...
{ "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 jumpTo(long offset) {\n assert offset > -1;\n final long p = offset - baseOffset;\n if (p > pageLo && p < pageHi) {\n appendPointer = p;\n } else {\n jumpTo0(offset);\n }\n }", "class_method_signature": "VirtualMemory.jumpTo(long off...
{ "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_193
{ "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 testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "BinFunctionTest.testGetMetadata()", "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/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getMetadata()", "constructor": false, "full_signature": "@Override public RecordMetadata getMetadata()", "identifier": "getMetadata", "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_486
{ "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 all the time\n public void testCannotTruncateColumnOnCloseAndNotSupported2() throws Exception {\n int N = 100000;\n create(FF, PartitionBy.NONE, N);\n testTrunca...
{ "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_468
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/VirtualMemoryTest.java", "identifier": "VirtualMemoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLong256() {\n try (VirtualMemory mem = new VirtualMemory(256, Integer.MAX_VALUE)) {\n mem.putLong256(\"0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8\");\n mem.putLong256(\"0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8\");\n }\n }", "class_method...
{ "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 putLong256(long offset, Long256 value) {\n putLong256(\n offset,\n value.getLong0(),\n value.getLong1(),\n value.getLong2(),\n value.getLong3()\n );\n }", "class_method_signature": "VirtualMemory.putLo...
{ "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_192
{ "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 testGetLong() {\n function.getLong(null);\n }", "class_method_signature": "BinFunctionTest.testGetLong()", "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 long getLong(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "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_487
{ "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 testDayPartitionTruncateError() throws Exception {\n testTruncate(new CountingFilesFacade() {\n @Override\n public boolean truncate(long fd, long size) {\n return --count != 0 && super.truncate(fd, size);\n }\n }, true);\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": "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_254
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "ShortFunctionTest.testGetBin()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGet...
{ "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 BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.getBin(Record rec)", "constructor": false, "full_signature": "@Override public final BinarySequence getBin(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_604
{ "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 testFormatDoubleRandom() {\n Random random = new Random();\n for (int i = 0; i < 1_000_000; i++) {\n double d1 = random.nextDouble();\n double d2 = random.nextGaussian();\n double d3 = random.nextDouble() * Double.MAX_VALUE;\n ...
{ "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_311
{ "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 testTimestamp() {\n function.getTimestamp(null);\n }", "class_method_signature": "Long256FunctionTest.testTimestamp()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) publi...
{ "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 long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getTimestamp(Record rec)", "constructor": false, "full_signature": "@Override public final long getTimestamp(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_59
{ "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 testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "DoubleFunctionTest.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" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.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_595
{ "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 testFormatDoubleRound() {\n sink.clear();\n Numbers.append(sink, 4455630333333333333333334444d);\n TestUtils.assertEquals(\"4.4556303333333335E27\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleRound()", "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 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_653
{ "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 testParseLongSizeOverflowAtK() throws Exception {\n Numbers.parseLongSize(\"45035996273704960000K\");\n }", "class_method_signature": "NumbersTest.testParseLongSizeOverflowAtK()", "constructor": false, "full_signature": "@Test(expect...
{ "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_203
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "BinFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()",...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public char getChar(Record rec)", "identifier": "getChar", "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_716
{ "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 testPreviousOrSameDow3() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.previousOrSameDayOfWeek(micros, 4));\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_346
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/groupby/TimestampSamplerFactoryTest.java", "identifier": "TimestampSamplerFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSeconds() throws NumericException, SqlException {\n StringSink sink = new StringSink();\n for (int k = 0; k < 61; k++) {\n sink.clear();\n if (k > 0) {\n sink.put(k).put('s');\n } else {\n sink.put('s');...
{ "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_429
{ "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 testDelimiterPriority2() throws Exception {\n assertNoLeak(textLoader -> {\n final String expected = \"f0\\tf1\\tf2\\n\" +\n \" \\t \\t \\n\" +\n \" \\t \\t \\n\";\n\n String csv = \" | | \\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_583
{ "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 parseExplicitDouble2() throws Exception {\n Numbers.parseDouble(\"1234dx\");\n }", "class_method_signature": "NumbersTest.parseExplicitDouble2()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) publ...
{ "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 double parseDouble(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;\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_215
{ "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 testRightNaNDateNaN() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new DateConstant(1, Numbers.LONG_NaN));\n args.add(new DoubleConstant(2, Double.NaN));\n Function fu...
{ "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_645
{ "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 testParseIntSizeOverflowAtK() throws Exception {\n Numbers.parseIntSize(\"4194304K\");\n }", "class_method_signature": "NumbersTest.testParseIntSizeOverflowAtK()", "constructor": false, "full_signature": "@Test(expected = NumericExce...
{ "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_350
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testBindVariableInWhere() throws Exception {\n assertMemoryLeak(() -> {\n\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_700
{ "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 testCeilDD() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.ceilDD(micros));\n TestUtils.assertEquals(\"2008-05-12T23:59:59.999Z\", sink);\n }", "cla...
{ "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 ceilDD(long micros) {\n int y, m;\n boolean l;\n return yearMicros(y = getYear(micros), l = isLeapYear(y))\n + monthOfYearMicros(m = getMonthOfYear(micros, y, l), l)\n + (getDayOfMonth(micros, y, m, l) - 1) * DAY_MICROS\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_18
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "StrFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()",...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public final char getChar(Record rec)", "identifier": "getChar", "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_184
{ "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 testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "TimestampFunctionTest.testLong256A()", "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 Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256A(Record rec)", "identifier": "getL...
{ "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_491
{ "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 testGetColumnIndex() {\n CairoTestUtils.createAllTable(configuration, PartitionBy.NONE);\n try (TableWriter writer = new TableWriter(configuration, \"all\")) {\n Assert.assertEquals(1, writer.getColumnIndex(\"short\"));\n try {\n wri...
{ "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 int getColumnIndex(CharSequence name) {\n int index = metadata.getColumnIndexQuiet(name);\n if (index > -1) {\n return index;\n }\n throw CairoException.instance(0).put(\"Invalid column name: \").put(name);\n }", "class_method_signature": "TableWriter.getC...
{ "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_612
{ "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 testFormatDoubleExp100() {\n sink.clear();\n Numbers.append(sink, 1.23E105);\n TestUtils.assertEquals(\"1.23E105\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleExp100()", "constructor": false, "full_signature": "@Test public void ...
{ "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_242
{ "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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "FloatFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = UnsupportedO...
{ "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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.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_307
{ "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 testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "Long256FunctionTest.testGetStr2()", "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/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.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_110
{ "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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "SymbolFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "invocati...
{ "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 int getPosition() {\n return position;\n }", "class_method_signature": "SymbolFunction.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_540
{ "fields": [ { "declarator": "reader = new BitmapIndexFwdNullReader()", "modifier": "private static final", "original_string": "private static final BitmapIndexFwdNullReader reader = new BitmapIndexFwdNullReader();", "type": "BitmapIndexFwdNullReader", "var_name": "reader" } ]...
{ "body": "@Test\n public void testAlwaysOpen() {\n Assert.assertTrue(reader.isOpen());\n }", "class_method_signature": "BitmapIndexFwdNullReaderTest.testAlwaysOpen()", "constructor": false, "full_signature": "@Test public void testAlwaysOpen()", "identifier": "testAlwaysOpen", "invocations": [...
{ "fields": [ { "declarator": "cursor = new NullCursor()", "modifier": "private final", "original_string": "private final NullCursor cursor = new NullCursor();", "type": "NullCursor", "var_name": "cursor" } ], "file": "core/src/main/java/io/questdb/cairo/BitmapIndexFwdNullRea...
{ "body": "@Override\n public boolean isOpen() {\n return true;\n }", "class_method_signature": "BitmapIndexFwdNullReader.isOpen()", "constructor": false, "full_signature": "@Override public boolean isOpen()", "identifier": "isOpen", "invocations": [], "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_63
{ "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 testLong256B() {\n function.getLong256B(null);\n }", "class_method_signature": "DoubleFunctionTest.testLong256B()", "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/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.getLong256B(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256B(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_405
{ "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 testCannotCreateTable() {\n\n FilesFacade ff = new FilesFacadeImpl() {\n @Override\n public int mkdirs(LPSZ path, int mode) {\n return -1;\n }\n };\n\n CairoConfiguration configuration = new DefaultCairoConfiguratio...
{ "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_686
{ "fields": [], "file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java", "identifier": "TimestampLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLowCaseLongMonth() throws Exception {\n String date = \"23 december 2010\";\n long result = TimestampLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n Assert.assertEquals(8, Numbers.decodeHighInt(result));\n Assert.asser...
{ "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_669
{ "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 testNegativeYear() throws Exception {\n assertThat(\"yyyy MMM dd\", \"-2010-09-01T00:00:00.000Z\", \"-2010 Sep 01\");\n\n DateFormat fmt1 = compiler.compile(\"G yyyy MMM\", true);\n DateFormat fmt2 = compiler.compile(\"yyyy MMM dd\", true);\n\n long millis...
{ "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_393
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantNull() 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_239
{ "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 testGetLong() {\n function.getLong(null);\n }", "class_method_signature": "FloatFunctionTest.testGetLong()", "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 getLong(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "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_517
{ "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 testBasicCharSequence() throws Exception {\n\n try (TableModel model = new TableModel(configuration, \"x\", PartitionBy.NONE).col(\"ts\", ColumnType.DATE)) {\n CairoTestUtils.create(model);\n }\n\n assertWithPool(pool -> {\n sink.clear();\n ...
{ "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_147
{ "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 testGetFloat() {\n Assert.assertEquals(1.0, functionA.getFloat(null), 0.000001);\n Assert.assertEquals(0.0, functionB.getFloat(null), 0.000001);\n }", "class_method_signature": "BooleanFunctionTest.testGetFloat()", "constructor": false, "full_signature": "@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 float getFloat(Record rec) {\n return getBool(rec) ? 0 : 1;\n }", "class_method_signature": "BooleanFunction.getFloat(Record rec)", "constructor": false, "full_signature": "@Override public final float getFloat(Record rec)", "identifier": "getFloat", "invocat...
{ "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_452
{ "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 testPreparedStatementTextParams() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServ...
{ "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_34
{ "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 testGetStrB() {\n function.getStrB(null);\n }", "class_method_signature": "LongFunctionTest.testGetStrB()", "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" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java", "identifier": "LongFunctio...
{ "body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.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_2
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "StrFunctionTest.testGetBin()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetBi...
{ "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 BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.getBin(Record rec)", "constructor": false, "full_signature": "@Override public final BinarySequence getBin(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_281
{ "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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "DateFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOp...
{ "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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.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_151
{ "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 testGetPosition() {\n Assert.assertEquals(25, functionA.getPosition());\n }", "class_method_signature": "BooleanFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "invoca...
{ "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 int getPosition() {\n return position;\n }", "class_method_signature": "BooleanFunction.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_501
{ "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 testCharAsString() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n\n try (TableModel model = new TableModel(\n configuration,\n \"char_test\",\n PartitionBy.NONE\n ).col(\"cc\", ColumnType...
{ "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": "public TableReaderRecordCursor getCursor() {\n recordCursor.toTop();\n return recordCursor;\n }", "class_method_signature": "TableReader.getCursor()", "constructor": false, "full_signature": "public TableReaderRecordCursor getCursor()", "identifier": "getCursor", "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_22
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "LongFunctionTest.testGetBin()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetB...
{ "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 BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getBin(Record rec)", "constructor": false, "full_signature": "@Override public final BinarySequence getBin(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_444
{ "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 testReduceLinesForStats() throws Exception {\n final TextConfiguration textConfiguration = new DefaultTextConfiguration() {\n @Override\n public int getTextAnalysisMaxLines() {\n return 3;\n }\n };\n\n final CairoCo...
{ "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_297
{ "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 testGetByte() {\n function.getByte(null);\n }", "class_method_signature": "Long256FunctionTest.testGetByte()", "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/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getByte(Record rec)", "constructor": false, "full_signature": "@Override public final byte getByte(Record rec)", "identifier": "getByte", ...
{ "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_628
{ "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 testParseIntNull() throws Exception {\n Numbers.parseInt(null);\n }", "class_method_signature": "NumbersTest.testParseIntNull()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public void testParse...
{ "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_278
{ "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 testGetLong() {\n Assert.assertEquals(163, function.getLong(null));\n }", "class_method_signature": "DateFunctionTest.testGetLong()", "constructor": false, "full_signature": "@Test public void testGetLong()", "identifier": "testGetLong", "invocations": [ "asse...
{ "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 long getLong(Record rec) {\n return getDate(rec);\n }", "class_method_signature": "DateFunction.getLong(Record rec)", "constructor": false, "full_signature": "@Override public final long getLong(Record rec)", "identifier": "getLong", "invocations": [ "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_556
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java", "identifier": "NullColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getLong() {\n Assert.assertEquals(Numbers.LONG_NaN, NullColumn.INSTANCE.getLong(1234));\n }", "class_method_signature": "NullColumnTest.getLong()", "constructor": false, "full_signature": "@Test public void getLong()", "identifier": "getLong", "invocations": [ ...
{ "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 getLong(long offset) {\n return Numbers.LONG_NaN;\n }", "class_method_signature": "NullColumn.getLong(long offset)", "constructor": false, "full_signature": "@Override public long getLong(long offset)", "identifier": "getLong", "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_106
{ "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 testGetDouble() {\n function.getDouble(null);\n }", "class_method_signature": "SymbolFunctionTest.testGetDouble()", "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/SymbolFunction.java", "identifier": "SymbolFun...
{ "body": "@Override\n public final double getDouble(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "SymbolFunction.getDouble(Record rec)", "constructor": false, "full_signature": "@Override public final double getDouble(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_413
{ "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 testInsertAsSelectFewerSelectColumns() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n try {\n compiler.compile(\"create table y as (select x, cast(2*((x-1)/2) as int)+2 m, abs(rnd_int() % 100) b from long_sequence(10))\", sqlExecutionContex...
{ "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_75
{ "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 testGetStrLen() {\n Assert.assertEquals(1, function.getStrLen(null));\n }", "class_method_signature": "CharFunctionTest.testGetStrLen()", "constructor": false, "full_signature": "@Test public void testGetStrLen()", "identifier": "testGetStrLen", "invocations": [ ...
{ "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 int getStrLen(Record rec) {\n final char value = getChar(rec);\n if (value == 0) {\n return TableUtils.NULL_LEN;\n }\n return 1;\n }", "class_method_signature": "CharFunction.getStrLen(Record rec)", "constructor": false, "full_sign...
{ "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_690
{ "fields": [], "file": "core/src/test/java/io/questdb/std/microtime/TimeZoneRulesImplTest.java", "identifier": "TimeZoneRulesImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompatibility() {\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> zoneRu...
{ "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 micros, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && micros > cutoffTransition) {\n return fromRules(micros, 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_385
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantBin() throws SqlException {\n BinFunction function = new BinFunction(0) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen...
{ "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_608
{ "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 testFormatDoubleExp10() {\n sink.clear();\n Numbers.append(sink, 1.23E3);\n TestUtils.assertEquals(\"1230.0\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleExp10()", "constructor": false, "full_signature": "@Test public void testFo...
{ "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_258
{ "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 testGetDate() {\n function.getDate(null);\n }", "class_method_signature": "ShortFunctionTest.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/ShortFunction.java", "identifier": "ShortFunct...
{ "body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.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_464
{ "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 testHttpDisabled() throws IOException, ServerConfigurationException, JsonException {\n try (InputStream is = PropServerConfigurationTest.class.getResourceAsStream(\"/server-http-disabled.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_171
{ "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 testGetInt() {\n function.getInt(null);\n }", "class_method_signature": "TimestampFunctionTest.testGetInt()", "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/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getInt(Record rec)", "constructor": false, "full_signature": "@Override public final int getInt(Record rec)", "identifier": "getInt", "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_521
{ "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 testUnlockNonExisting() throws Exception {\n assertWithPool(pool -> {\n class X implements PoolListener {\n short ev = -1;\n\n @Override\n public void onEvent(byte factoryType, long thread, CharSequence name, short event,...
{ "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": "public void unlock(CharSequence name) {\n unlock(name, null);\n }", "class_method_signature": "WriterPool.unlock(CharSequence name)", "constructor": false, "full_signature": "public void unlock(CharSequence name)", "identifier": "unlock", "invocations": [ "unlock" ], "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_433
{ "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 testImportTimestampPartitionByDay() throws Exception {\n final TextConfiguration textConfiguration = new DefaultTextConfiguration() {\n @Override\n public int getTextAnalysisMaxLines() {\n return 3;\n }\n };\n\n Cai...
{ "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_599
{ "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 testFormatDoubleHugeZero() {\n sink.clear();\n Numbers.append(sink, -0.000000000000001);\n TestUtils.assertEquals(\"-1.0E-15\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleHugeZero()", "constructor": false, "full_signature": "@Tes...
{ "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_55
{ "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 testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetStr()", "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/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.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_576
{ "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" }, { "declarator": "path = new ...
{ "body": "@Test\n public void testSimple() {\n TestUtils.assertEquals(\"xyz\", path.of(\"xyz\").$());\n }", "class_method_signature": "PathTest.testSimple()", "constructor": false, "full_signature": "@Test public void testSimple()", "identifier": "testSimple", "invocations": [ "assertEqual...
{ "fields": [ { "declarator": "OVERHEAD = 4", "modifier": "private static final", "original_string": "private static final int OVERHEAD = 4;", "type": "int", "var_name": "OVERHEAD" }, { "declarator": "ptr", "modifier": "private", "original_string": "private ...
{ "body": "public Path of(CharSequence str) {\n if (str == this) {\n this.len = str.length();\n this.wptr = ptr + len;\n return this;\n } else {\n this.wptr = ptr;\n this.len = 0;\n return concat(str);\n }\n }", "class_method_...
{ "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_126
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "CursorFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar(...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public char getChar(Record rec)", "identifier": "getChar", "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_649
{ "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 testParseLongSizeGb() throws Exception {\n Assert.assertEquals(7 * 1024 * 1024L * 1024L, Numbers.parseLongSize(\"7G\"));\n Assert.assertEquals(7 * 1024 * 1024L * 1024L, Numbers.parseLongSize(\"7g\"));\n }", "class_method_signature": "NumbersTest.testParseLongSizeGb...
{ "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_219
{ "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 testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "ByteFunctionTest.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" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java", "identifier": "ByteFunctio...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ByteFunction.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_43
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetBin()", "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/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.getBin(Record rec)", "constructor": false, "full_signature": "@Override public final BinarySequence getBin(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_425
{ "fields": [ { "declarator": "request = \"GET /status?x=1&a=%26b&c&d=x HTTP/1.1\\r\\n\" +\n \"Host: localhost:9000\\r\\n\" +\n \"Connection: keep-alive\\r\\n\" +\n \"Cache-Control: max-age=0\\r\\n\" +\n \"Accept: text/html,application/xhtml+xml,application/xml;q=...
{ "body": "@Test\n public void testWrite() {\n try (HttpHeaderParser hp = new HttpHeaderParser(4 * 1024, pool)) {\n long p = TestUtils.toMemory(request);\n try {\n hp.parse(p, p + request.length(), true);\n assertHeaders(hp);\n } finally {\n ...
{ "fields": [ { "declarator": "CONTENT_DISPOSITION_HEADER = \"Content-Disposition\"", "modifier": "private static final", "original_string": "private static final String CONTENT_DISPOSITION_HEADER = \"Content-Disposition\";", "type": "String", "var_name": "CONTENT_DISPOSITION_HEADER"...
{ "body": "public long parse(long ptr, long hi, boolean _method) {\n long p;\n if (_method && needMethod) {\n int l = parseMethod(ptr, hi);\n p = ptr + l;\n } else {\n p = ptr;\n }\n\n DirectByteCharSequence v;\n\n while (p < hi) {\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_130
{ "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 testGetFloat() {\n function.getFloat(null);\n }", "class_method_signature": "CursorFunctionTest.testGetFloat()", "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" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.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_560
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java", "identifier": "NullColumnTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getStrLen() {\n Assert.assertEquals(TableUtils.NULL_LEN, NullColumn.INSTANCE.getStrLen(1234));\n }", "class_method_signature": "NullColumnTest.getStrLen()", "constructor": false, "full_signature": "@Test public void getStrLen()", "identifier": "getStrLen", "invoca...
{ "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 int getStrLen(long offset) {\n return TableUtils.NULL_LEN;\n }", "class_method_signature": "NullColumn.getStrLen(long offset)", "constructor": false, "full_signature": "@Override public int getStrLen(long offset)", "identifier": "getStrLen", "invocations": [], "m...
{ "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_472
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/TableReaderMetadataTest.java", "identifier": "TableReaderMetadataTest", "interfaces": "", "superclass": "extends AbstractCairoTest" }
{ "body": "@Test\n public void testFreeNullAddressAsIndex() {\n TableReaderMetadata.freeTransitionIndex(0);\n }", "class_method_signature": "TableReaderMetadataTest.testFreeNullAddressAsIndex()", "constructor": false, "full_signature": "@Test public void testFreeNullAddressAsIndex()", "identifier...
{ "fields": [ { "declarator": "metaMem", "modifier": "private final", "original_string": "private final ReadOnlyColumn metaMem;", "type": "ReadOnlyColumn", "var_name": "metaMem" }, { "declarator": "path", "modifier": "private final", "original_string": "priv...
{ "body": "public static void freeTransitionIndex(long address) {\n if (address == 0) {\n return;\n }\n Unsafe.free(address, Unsafe.getUnsafe().getInt(address));\n }", "class_method_signature": "TableReaderMetadata.freeTransitionIndex(long address)", "constructor": false, "ful...
{ "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_188
{ "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 testGetDate() {\n function.getDate(null);\n }", "class_method_signature": "BinFunctionTest.testGetDate()", "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 long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getDate(Record rec)", "constructor": false, "full_signature": "@Override public final long getDate(Record rec)", "identifier": "getDate", "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_14
{ "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 testGetShort() {\n function.getShort(null);\n }", "class_method_signature": "StrFunctionTest.testGetShort()", "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/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.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_537
{ "fields": [ { "declarator": "reader = new BitmapIndexBwdNullReader()", "modifier": "private static final", "original_string": "private static final BitmapIndexBwdNullReader reader = new BitmapIndexBwdNullReader();", "type": "BitmapIndexBwdNullReader", "var_name": "reader" } ]...
{ "body": "@Test\n public void testAlwaysOpen() {\n Assert.assertTrue(reader.isOpen());\n }", "class_method_signature": "BitmapIndexBwdNullReaderTest.testAlwaysOpen()", "constructor": false, "full_signature": "@Test public void testAlwaysOpen()", "identifier": "testAlwaysOpen", "invocations": [...
{ "fields": [ { "declarator": "cursor = new NullCursor()", "modifier": "private final", "original_string": "private final NullCursor cursor = new NullCursor();", "type": "NullCursor", "var_name": "cursor" } ], "file": "core/src/main/java/io/questdb/cairo/BitmapIndexBwdNullRea...
{ "body": "@Override\n public boolean isOpen() {\n return true;\n }", "class_method_signature": "BitmapIndexBwdNullReader.isOpen()", "constructor": false, "full_signature": "@Override public boolean isOpen()", "identifier": "isOpen", "invocations": [], "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_167
{ "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\n public void testGetDate() {\n Assert.assertEquals(145, function.getDate(null));\n }", "class_method_signature": "TimestampFunctionTest.testGetDate()", "constructor": false, "full_signature": "@Test public void testGetDate()", "identifier": "testGetDate", "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/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final long getDate(Record rec) {\n final long value = getTimestamp(rec);\n return value == Numbers.LONG_NaN ? value : value / 1000L;\n }", "class_method_signature": "TimestampFunction.getDate(Record rec)", "constructor": false, "full_signature": "@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_370
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testLatestByMissingKeyValueIndexedFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(null,\n \"select * from x latest by b where b in ('XYZ') and a < 60 and test_match()\",\n \"create table x as \" +\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_720
{ "fields": [], "file": "core/src/test/java/io/questdb/std/ObjIntHashMapTest.java", "identifier": "ObjIntHashMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClassBehaviour() {\n ObjIntHashMap<Class<?>> map = new ObjIntHashMap<>();\n Assert.assertEquals(-1, map.get(Object.class));\n }", "class_method_signature": "ObjIntHashMapTest.testClassBehaviour()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "MIN_INITIAL_CAPACITY = 16", "modifier": "private static final", "original_string": "private static final int MIN_INITIAL_CAPACITY = 16;", "type": "int", "var_name": "MIN_INITIAL_CAPACITY" }, { "declarator": "noEntryValue = new Object()", ...
{ "body": "public int get(K key) {\n return valueAt(keyIndex(key));\n }", "class_method_signature": "ObjIntHashMap.get(K key)", "constructor": false, "full_signature": "public int get(K key)", "identifier": "get", "invocations": [ "valueAt", "keyIndex" ], "modifiers": "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_235
{ "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 testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "FloatFunctionTest.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/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.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_665
{ "fields": [], "file": "core/src/test/java/io/questdb/std/LongMatrixTest.java", "identifier": "LongMatrixTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testResize() {\n LongMatrix<String> m = new LongMatrix<>(2);\n for (int i = 0; i < 1000; i++) {\n int r = m.addRow();\n m.set(r, 0, i);\n m.set(r, 1, i);\n m.set(r, \"s\" + i);\n }\n Assert.assertEquals(1000, m.s...
{ "fields": [ { "declarator": "bits", "modifier": "private final", "original_string": "private final int bits;", "type": "int", "var_name": "bits" }, { "declarator": "pos", "modifier": "private", "original_string": "private int pos;", "type": "int", ...
{ "body": "@SuppressWarnings(\"unchecked\")\n private int resize() {\n long[] _data = new long[rows << (bits + 1)];\n T[] _payload = (T[]) new Object[rows << 1];\n System.arraycopy(data, 0, _data, 0, rows << bits);\n System.arraycopy(payload, 0, _payload, 0, rows);\n this.data = ...
{ "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_80
{ "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 testLong256B() {\n function.getLong256B(null);\n }", "class_method_signature": "CharFunctionTest.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" }, { "declarator": "sinkA = new StringSink()", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CharFunction.getLong256B(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256B(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_409
{ "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 testCreateTableFail() throws Exception {\n\n FilesFacade ff = new FilesFacadeImpl() {\n int count = 8; // this count is very deliberately coincidental with\n\n // number of rows we are appending\n @Override\n public long mmap(long fd...
{ "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_327
{ "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 testNodeTraversal15() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.lhs = FACTORY.newInstance();\n n1.lhs.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_632
{ "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 testParseIntSignOnly() throws Exception {\n Numbers.parseInt(\"-\");\n }", "class_method_signature": "NumbersTest.testParseIntSignOnly()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public void ...
{ "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_262
{ "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 testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "ShortFunctionTest.testGetStr()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGet...
{ "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 CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "g...
{ "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_38
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "LongFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()"...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public final char getChar(Record rec)", "identifier": "getChar", "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_331
{ "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 testNodeTraversal19() {\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 //\n n2.type = FUNCTION;...
{ "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_274
{ "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 testGetByte() {\n function.getByte(null);\n }", "class_method_signature": "DateFunctionTest.testGetByte()", "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" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java", "identifier": "DateFunctio...
{ "body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.getByte(Record rec)", "constructor": false, "full_signature": "@Override public final byte getByte(Record rec)", "identifier": "getByte", "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_624
{ "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 testParseExplicitFloat2() throws Exception {\n Numbers.parseFloat(\"12345.02fx\");\n }", "class_method_signature": "NumbersTest.testParseExplicitFloat2()", "constructor": false, "full_signature": "@Test(expected = NumericException.cl...
{ "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 float parseFloat(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n int p = 0;\n if (lim == p) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(p) == '-';\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_448
{ "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 testLargeOutput() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n\n final String expected = \"1[INTEGER],2[INTEGER],3[INTEGER]\\n\" +\n \"1,2,3\\n\" +\n \"1,2,3\\n\" +\n \"1,2,3\\n\" +\n ...
{ "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_366
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testLatestByKeyValueIndexedFiltered() 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 =...
{ "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_673
{ "fields": [], "file": "core/src/test/java/io/questdb/std/time/DateLocaleTest.java", "identifier": "DateLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NumericException.class)\n public void testBadMonth() throws Exception {\n String date = \"23 Dek 2010\";\n DateLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n }", "class_method_signature": "DateLocaleTest.testBadMonth()", "construct...
{ "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": "DateLocale.matchMonth(CharSequence content, int lo, int hi)", "constructor": false, "full_signature": "public long matchMonth(...
{ "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_389
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantDouble() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjLi...
{ "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_223
{ "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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "ByteFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOp...
{ "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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ByteFunction.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_96
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "IntFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()",...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "IntFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public char getChar(Record rec)", "identifier": "getChar", "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_79
{ "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 testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "CharFunctionTest.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" }, { "declarator": "sinkA = new StringSink()", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CharFunction.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...
158704131_0
{ "fields": [], "file": "spring-boot-2.0-samples/formatter-spring-boot-starter/src/test/java/thinking/in/spring/boot/samples/autoconfigure/formatter/JsonFormatterTest.java", "identifier": "JsonFormatterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFormat() {\n JsonFormatter formatter = new JsonFormatter();\n Assert.assertEquals(\"{\\\"id\\\":1,\\\"name\\\":\\\"小马哥\\\"}\", formatter.format(new User()));\n }", "class_method_signature": "JsonFormatterTest.testFormat()", "constructor": false, "full_signa...
{ "fields": [ { "declarator": "objectMapper", "modifier": "private final", "original_string": "private final ObjectMapper objectMapper;", "type": "ObjectMapper", "var_name": "objectMapper" } ], "file": "spring-boot-2.0-samples/formatter-spring-boot-starter/src/main/java/think...
{ "body": "@Override\n public String format(Object object) {\n try {\n return objectMapper.writeValueAsString(object);\n } catch (JsonProcessingException e) {\n // 解析失败返回非法参数异常\n throw new IllegalArgumentException(e);\n }\n }", "class_method_signature": "J...
{ "created": null, "fork": null, "fork_count": 575, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 158704131, "size": 346, "stargazer_count": 1489, "stars": null, "updates": null, "url": "https://github.com/mercyblitz/thinking-in-spring-boot-samples" }
1459953_8
{ "fields": [ { "declarator": "exception = new Exception(\"bug\")", "modifier": "private final", "original_string": "private final Exception exception = new Exception(\"bug\");", "type": "Exception", "var_name": "exception" } ], "file": "20140214-Try/src/test/java/com/zenika/...
{ "body": "@Test(expected = ArithmeticException.class)\n public void ofRuntimeExceptionsShouldBeThrownTest() {\n Function<Integer, Try<Integer>> of = Try.of(i -> i / 0);\n Try<Integer> result = of.apply(1);\n }", "class_method_signature": "TryTest.ofRuntimeExceptionsShouldBeThrownTest()", "con...
{ "fields": [], "file": "20140214-Try/src/main/java/com/zenika/util/Try.java", "identifier": "Try", "interfaces": "", "methods": [ { "class_method_signature": "Try.of(ThrowingFunction<I, O> function)", "constructor": false, "full_signature": "public static Function<I, Try<O>> of(Throwing...
{ "body": "public static <I, O> Function<I, Try<O>> of(ThrowingFunction<I, O> function) {\n return input -> {\n try {\n O result = function.apply(input);\n return new Success<>(result);\n } catch (RuntimeException e) {\n throw e; // we don't wa...
{ "created": null, "fork": null, "fork_count": 29, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1459953, "size": 5455, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/Zenika/Blogs" }
1459953_4
{ "fields": [ { "declarator": "exception = new Exception(\"bug\")", "modifier": "private final", "original_string": "private final Exception exception = new Exception(\"bug\");", "type": "Exception", "var_name": "exception" } ], "file": "20140214-Try/src/test/java/com/zenika/...
{ "body": "@Test\n public void ofSuccessTest() {\n Function<Integer,Try<Integer>> fn = Try.<Integer, Integer>of(i -> i + 1);\n assertEquals(new Success(2), fn.apply(1));\n }", "class_method_signature": "TryTest.ofSuccessTest()", "constructor": false, "full_signature": "@Test public void ofSu...
{ "fields": [], "file": "20140214-Try/src/main/java/com/zenika/util/Try.java", "identifier": "Try", "interfaces": "", "methods": [ { "class_method_signature": "Try.of(ThrowingFunction<I, O> function)", "constructor": false, "full_signature": "public static Function<I, Try<O>> of(Throwing...
{ "body": "public static <I, O> Function<I, Try<O>> of(ThrowingFunction<I, O> function) {\n return input -> {\n try {\n O result = function.apply(input);\n return new Success<>(result);\n } catch (RuntimeException e) {\n throw e; // we don't wa...
{ "created": null, "fork": null, "fork_count": 29, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1459953, "size": 5455, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/Zenika/Blogs" }