id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
19257422_398
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantTimestamp() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(Ob...
{ "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_13
{ "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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "StrFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOpe...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.getRecordCursorFactory()", "constructor": false, "full_signature": "@Override public final RecordCursorFactory getRecordCursor...
{ "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_475
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/ContiguousVirtualMemoryTest.java", "identifier": "ContiguousVirtualMemoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSkip() {\n try (ContiguousVirtualMemory mem = new ContiguousVirtualMemory(11, Integer.MAX_VALUE)) {\n mem.putByte((byte) 1);\n int n = 999;\n for (int i = n; i > 0; i--) {\n mem.putLong(i);\n mem.skip(3);\n ...
{ "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(ContiguousVirtualMemory.clas...
{ "body": "public void skip(long bytes) {\n checkLimits(bytes);\n appendAddress += bytes;\n }", "class_method_signature": "ContiguousVirtualMemory.skip(long bytes)", "constructor": false, "full_signature": "public void skip(long bytes)", "identifier": "skip", "invocations": [ "checkLimi...
{ "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_530
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testConcurrentRead() throws Exception {\n final int readerCount = 5;\n int threadCount = 2;\n final int iterations = 1000000;\n Rnd dataRnd = new Rnd();\n\n\n final String[] names = new String[readerCount];\n final String[] expectedRows = new...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_160
{ "fields": [ { "declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n functionA.getLong256(null, null);\n }", "class_method_signature": "BooleanFunctionTest.testLong256()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) publ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BooleanFunction.getLong256(Record rec, CharSink sink)", "constructor": false, "full_signature": "@Override public final void getLong256(Reco...
{ "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_249
{ "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 testGetTimestamp() {\n function.getTimestamp(null);\n }", "class_method_signature": "FloatFunctionTest.testGetTimestamp()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) p...
{ "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 long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getTimestamp(Record rec)", "constructor": false, "full_signature": "@Override public long getTimestamp(Record rec)", "identifier": "getTimestam...
{ "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_619
{ "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 testLongToHex3() {\n long value = 0xbfbca5da8f0645L;\n StringSink sink = new StringSink();\n Numbers.appendHex(sink, value, false);\n TestUtils.assertEquals(Long.toHexString(value), sink);\n }", "class_method_signature": "NumbersTest.testLongToHex3()"...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void appendHex(CharSink sink, final int value) {\n int i = value;\n if (i < 0) {\n if (i == Integer.MIN_VALUE) {\n sink.put(\"NaN\");\n return;\n }\n sink.put('-');\n i = -i;\n }\n int c;\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_588
{ "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 testEmptyFloat() throws Exception {\n Numbers.parseFloat(\"f\");\n }", "class_method_signature": "NumbersTest.testEmptyFloat()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public void testEmptyF...
{ "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_422
{ "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 testMethodTooLarge() {\n String v = \"GET /xyzadadadjlkjqeljqasdqweqeasdasdasdawqeadadsqweqeweqdadsasdadadasdadasdqadqw HTTP/1.1\";\n long p = TestUtils.toMemory(v);\n try (HttpHeaderParser hp = new HttpHeaderParser(64, pool)) {\n hp.parse(p, p + v.len...
{ "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_44
{ "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 testGetBinLen() {\n function.getBinLen(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetBinLen()", "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 long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.getBinLen(Record rec)", "constructor": false, "full_signature": "@Override public long getBinLen(Record rec)", "identifier": "getBinLen", "invo...
{ "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_137
{ "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 testGetStrB() {\n function.getStrB(null);\n }", "class_method_signature": "CursorFunctionTest.testGetStrB()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.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_567
{ "fields": [], "file": "core/src/test/java/io/questdb/std/ObjHashSetTest.java", "identifier": "ObjHashSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRemove() {\n\n Rnd rnd = new Rnd();\n ObjHashSet<CharSequence> set = new ObjHashSet<>();\n final int N = 1000;\n for (int i = 0; i < N; i++) {\n CharSequence cs = rnd.nextChars(15);\n Assert.assertTrue(set.add(cs.toString()));\n ...
{ "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": "noEntryKey = new Object()", ...
{ "body": "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean remove(Object key) {\n int keyIndex = keyIndex((T) key);\n if (keyIndex < 0) {\n list.remove(keys[-keyIndex - 1]);\n removeAt(keyIndex);\n return true;\n }\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_52
{ "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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "DoubleFunctionTest.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/DoubleFunction.java", "identifier": "DoubleFun...
{ "body": "@Override\n public int getPosition() {\n return position;\n }", "class_method_signature": "DoubleFunction.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_434
{ "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 testMissingFirstColumn() throws Exception {\n assertNoLeak(textLoader -> {\n String expected = \"StrSym\\tIntSym\\tIntCol\\tDoubleCol\\tIsoDate\\tFmt1Date\\tFmt2Date\\tPhone\\tboolean\\tlong\\n\" +\n \"CMP1\\t7\\t8284\\t3.2045788760297\\t2015-01-1...
{ "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_571
{ "fields": [ { "declarator": "extractor = new FileNameExtractorCharSequence()", "modifier": "private static final", "original_string": "private static final FileNameExtractorCharSequence extractor = new FileNameExtractorCharSequence();", "type": "FileNameExtractorCharSequence", "var...
{ "body": "@Test\n public void testPathListQuotedSpace() {\n assertThat(\"[abc,d1 cd,x]\", Chars.splitLpsz(\"abc \\\"d1 cd\\\" x\"));\n }", "class_method_signature": "CharsTest.testPathListQuotedSpace()", "constructor": false, "full_signature": "@Test public void testPathListQuotedSpace()", "iden...
{ "fields": [ { "declarator": "CHAR_SEQUENCE_COMPARATOR = Chars::compare", "modifier": "public static final", "original_string": "public static final Comparator<CharSequence> CHAR_SEQUENCE_COMPARATOR = Chars::compare;", "type": "Comparator<CharSequence>", "var_name": "CHAR_SEQUENCE_C...
{ "body": "public static ObjList<Path> splitLpsz(CharSequence args) {\n final ObjList<Path> paths = new ObjList<>();\n int n = args.length();\n int lastLen = 0;\n int lastIndex = 0;\n boolean inQuote = false;\n for (int i = 0; i < n; i++) {\n char b = args.charAt(i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_121
{ "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 testGetBinLen() {\n function.getBinLen(null);\n }", "class_method_signature": "CursorFunctionTest.testGetBinLen()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public vo...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.getBinLen(Record rec)", "constructor": false, "full_signature": "@Override public long getBinLen(Record rec)", "identifier": "getBinLen", "invo...
{ "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_208
{ "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 testRightNaNFloat() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new DoubleConstant(2, Double.NaN));\n args.add(new FloatConstant(1, 5.1f) {\n @Override\n ...
{ "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_658
{ "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 testRoundDown() throws Exception {\n Rnd rnd = new Rnd();\n for (int i = 0; i < 1000; i++) {\n double d = rnd.nextDouble();\n double n = Numbers.roundDown(d, 8);\n Assert.assertTrue(d + \" \" + n + \" \" + (d - n - 1E-8), d - n - 1E-8 < ...
{ "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 roundDown(double value, int scale) throws NumericException {\n if (scale < pow10max && scale > -pow10max) {\n return roundDown0(value, scale);\n }\n throw NumericException.INSTANCE;\n }", "class_method_signature": "Numbers.roundDown(double value, 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_463
{ "fields": [], "file": "core/src/test/java/io/questdb/cutlass/line/LineProtoMilliTimestampAdapterTest.java", "identifier": "LineProtoMilliTimestampAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRounding() throws NumericException {\n Assert.assertEquals(5679000L, LineProtoMilliTimestampAdapter.INSTANCE.getMicros(\"5679\"));\n }", "class_method_signature": "LineProtoMilliTimestampAdapterTest.testRounding()", "constructor": false, "full_signature": "@Test p...
{ "fields": [ { "declarator": "INSTANCE = new LineProtoMilliTimestampAdapter()", "modifier": "public static final", "original_string": "public static final LineProtoMilliTimestampAdapter INSTANCE = new LineProtoMilliTimestampAdapter();", "type": "LineProtoMilliTimestampAdapter", "var...
{ "body": "@Override\n public long getMicros(CharSequence value) throws NumericException {\n return Numbers.parseLong(value) * 1000L;\n }", "class_method_signature": "LineProtoMilliTimestampAdapter.getMicros(CharSequence value)", "constructor": false, "full_signature": "@Override public long getMic...
{ "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_199
{ "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 testGetStrB() {\n function.getStrB(null);\n }", "class_method_signature": "BinFunctionTest.testGetStrB()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.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_176
{ "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 testGetShort() {\n function.getShort(null);\n }", "class_method_signature": "TimestampFunctionTest.testGetShort()", "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/TimestampFunction.java", "identifier": "Timest...
{ "body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getShort(Record rec)", "constructor": false, "full_signature": "@Override public final short getShort(Record rec)", "identifier": "getSh...
{ "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_526
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testCloseReaderWhenPoolClosed() throws Exception {\n assertWithPool(pool -> {\n TableReader reader = pool.get(\"u\");\n Assert.assertNotNull(reader);\n pool.close();\n Assert.assertTrue(reader.isOpen());\n reader.close();\...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_462
{ "fields": [], "file": "core/src/test/java/io/questdb/cutlass/line/LineProtoNanoTimestampAdapterTest.java", "identifier": "LineProtoNanoTimestampAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRounding() throws NumericException {\n Assert.assertEquals(56799L, LineProtoNanoTimestampAdapter.INSTANCE.getMicros(\"56799000\"));\n }", "class_method_signature": "LineProtoNanoTimestampAdapterTest.testRounding()", "constructor": false, "full_signature": "@Test p...
{ "fields": [ { "declarator": "INSTANCE = new LineProtoNanoTimestampAdapter()", "modifier": "public static final", "original_string": "public static final LineProtoNanoTimestampAdapter INSTANCE = new LineProtoNanoTimestampAdapter();", "type": "LineProtoNanoTimestampAdapter", "var_nam...
{ "body": "@Override\n public long getMicros(CharSequence value) throws NumericException {\n return Numbers.parseLong(value) / 1000L;\n }", "class_method_signature": "LineProtoNanoTimestampAdapter.getMicros(CharSequence value)", "constructor": false, "full_signature": "@Override public long getMicr...
{ "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_198
{ "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 testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "BinFunctionTest.testGetStr2()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void t...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "get...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_177
{ "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 testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "TimestampFunctionTest.testGetStr()", "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 CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_527
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testCloseWithActiveReader() throws Exception {\n assertWithPool(pool -> {\n TableReader reader = pool.get(\"u\");\n Assert.assertNotNull(reader);\n pool.close();\n Assert.assertTrue(reader.isOpen());\n reader.close();\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_209
{ "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 testLeftNaNFloatNaN() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new FloatConstant(1, Float.NaN));\n args.add(new DoubleConstant(2, Double.NaN));\n Function function...
{ "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_659
{ "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 testRoundHalfDown() throws Exception {\n Assert.assertEquals(-1.235, Numbers.roundHalfDown(-1.2346, 3), Numbers.TOLERANCE);\n Assert.assertEquals(-1.23489, Numbers.roundHalfDown(-1.234895, 5), Numbers.TOLERANCE);\n Assert.assertEquals(1.23489, Numbers.roundHalfDo...
{ "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 roundHalfDown(double value, int scale) throws NumericException {\n if (scale + 2 < pow10max && scale > -pow10max) {\n return value > 0 ? roundHalfDown0(value, scale) : -roundHalfDown0(-value, scale);\n }\n throw NumericException.INSTANCE;\n }", "cla...
{ "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_53
{ "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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }", "class_method_signature": "DoubleFunctionTest.testGetRecordCursorFactory()", "constructor": false, "full_signature": "@Test(expected = Unsupported...
{ "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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.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_435
{ "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 testOverrideDoubleWithFloat() throws Exception {\n assertNoLeak(textLoader -> {\n String expected = \"f0\\tf1\\tf2\\tf3\\tf4\\tf5\\tf6\\tf7\\tf8\\tf9\\n\" +\n \"\\\"CMP2\\t8\\t8000\\t2.2764\\t2015-01-29T19:15:09.000Z\\t2015-01-29T19:15:09.000Z\\t2...
{ "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 setState(int state) {\n LOG.debug().$(\"state change [old=\").$(this.state).$(\", new=\").$(state).$(']').$();\n this.state = state;\n jsonLexer.clear();\n }", "class_method_signature": "TextLoader.setState(int state)", "constructor": false, "full_signature": "publ...
{ "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_570
{ "fields": [ { "declarator": "extractor = new FileNameExtractorCharSequence()", "modifier": "private static final", "original_string": "private static final FileNameExtractorCharSequence extractor = new FileNameExtractorCharSequence();", "type": "FileNameExtractorCharSequence", "var...
{ "body": "@Test\n public void testPathListLeadingSpaces() {\n assertThat(\"[abc,d1]\", Chars.splitLpsz(\" abc d1\"));\n }", "class_method_signature": "CharsTest.testPathListLeadingSpaces()", "constructor": false, "full_signature": "@Test public void testPathListLeadingSpaces()", "identifier": ...
{ "fields": [ { "declarator": "CHAR_SEQUENCE_COMPARATOR = Chars::compare", "modifier": "public static final", "original_string": "public static final Comparator<CharSequence> CHAR_SEQUENCE_COMPARATOR = Chars::compare;", "type": "Comparator<CharSequence>", "var_name": "CHAR_SEQUENCE_C...
{ "body": "public static ObjList<Path> splitLpsz(CharSequence args) {\n final ObjList<Path> paths = new ObjList<>();\n int n = args.length();\n int lastLen = 0;\n int lastIndex = 0;\n boolean inQuote = false;\n for (int i = 0; i < n; i++) {\n char b = args.charAt(i...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_120
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "CursorFunctionTest.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" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.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_589
{ "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 testEmptyLong() throws Exception {\n Numbers.parseLong(\"L\");\n }", "class_method_signature": "NumbersTest.testEmptyLong()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public void testEmptyLong...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static long parseLong(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n return parseLong0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseLong(CharSequence sequence)"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_423
{ "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 testQueryDanglingEncoding() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n String v = \"GET /status?x=1&a=% HTTP/1.1\\r\\n\" +\n \"\\r\\n\";\n long p = TestUtils.toMemory(v);\n try (HttpHeaderParser hp = new HttpHe...
{ "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_45
{ "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 testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetBool()", "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 boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.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_136
{ "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 testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "CursorFunctionTest.testGetStr2()", "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" }, { "declarator": "factory", "modifier": "private final", "original_string": "private final Record...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CursorFunction.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_566
{ "fields": [ { "declarator": "FF = FilesFacadeImpl.INSTANCE", "modifier": "private final static", "original_string": "private final static FilesFacade FF = FilesFacadeImpl.INSTANCE;", "type": "FilesFacade", "var_name": "FF" }, { "declarator": "temp = new TemporaryFolde...
{ "body": "@Test\n public void testUnknownTodo() {\n TestUtils.assertEquals(\"unknown\", TableUtils.getTodoText(7879797987L));\n }", "class_method_signature": "TableUtilsTest.testUnknownTodo()", "constructor": false, "full_signature": "@Test public void testUnknownTodo()", "identifier": "testUnkn...
{ "fields": [ { "declarator": "TABLE_EXISTS = 0", "modifier": "public static final", "original_string": "public static final int TABLE_EXISTS = 0;", "type": "int", "var_name": "TABLE_EXISTS" }, { "declarator": "TABLE_DOES_NOT_EXIST = 1", "modifier": "public static...
{ "body": "static String getTodoText(long code) {\n switch ((int) (code & 0xff)) {\n case TODO_TRUNCATE:\n return \"truncate\";\n case TODO_RESTORE_META:\n return \"restore meta\";\n default:\n // really impossible to happen, but we ...
{ "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_248
{ "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 testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "FloatFunctionTest.testGetSym()", "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 CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "identi...
{ "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_618
{ "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 testLongToHex2() {\n long value = 0x5374f5fbcef4819L;\n StringSink sink = new StringSink();\n Numbers.appendHex(sink, value, false);\n TestUtils.assertEquals(\"0\" + Long.toHexString(value), sink);\n }", "class_method_signature": "NumbersTest.testLong...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void appendHex(CharSink sink, final int value) {\n int i = value;\n if (i < 0) {\n if (i == Integer.MIN_VALUE) {\n sink.put(\"NaN\");\n return;\n }\n sink.put('-');\n i = -i;\n }\n int c;\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_12
{ "fields": [ { "declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }", "modifier": ...
{ "body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "StrFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "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/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public int getPosition() {\n return position;\n }", "class_method_signature": "StrFunction.getPosition()", "constructor": false, "full_signature": "@Override public int getPosition()", "identifier": "getPosition", "invocations": [], "modifiers": "@Override public", "p...
{ "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_474
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/ContiguousVirtualMemoryTest.java", "identifier": "ContiguousVirtualMemoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testJumpTo() {\n try (ContiguousVirtualMemory mem = new ContiguousVirtualMemory(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 ass...
{ "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(ContiguousVirtualMemory.clas...
{ "body": "public void jumpTo(long offset) {\n checkLimits(offset, 0);\n appendAddress = baseAddress + offset;\n }", "class_method_signature": "ContiguousVirtualMemory.jumpTo(long offset)", "constructor": false, "full_signature": "public void jumpTo(long offset)", "identifier": "jumpTo", "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_531
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPoolTest.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPoolTest.class);", "type": "Log", "var_name": "LOG" } ], "file": "core/src/test/java/i...
{ "body": "@Test\n public void testGetAndCloseRace() throws Exception {\n\n try (TableModel model = new TableModel(configuration, \"xyz\", PartitionBy.NONE).col(\"ts\", ColumnType.DATE)) {\n CairoTestUtils.create(model);\n }\n\n for (int i = 0; i < 100; i++) {\n assertWit...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(ReaderPool.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(ReaderPool.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "UNLOCKED = -1L",...
{ "body": "@Override\n public TableReader get(CharSequence name) {\n\n Entry e = getEntry(name);\n\n long lockOwner = e.lockOwner;\n long thread = Thread.currentThread().getId();\n\n if (lockOwner != UNLOCKED) {\n LOG.info().$('\\'').utf8(name).$(\"' is locked [owner=\").$(lo...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_161
{ "fields": [ { "declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n...
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256A() {\n functionA.getLong256A(null);\n }", "class_method_signature": "BooleanFunctionTest.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/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BooleanFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public final Long256 getLong256A(Record rec)", "identifi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_376
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testLatestBySubQueryIndexedFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"23.90529010846525\\tRXGZ\\t1970-01-03T07:33:20.000000Z\\n\" +\n \"12.026122412833129\\tHYRX\\t...
{ "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_233
{ "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 testGetBin() {\n function.getBin(null);\n }", "class_method_signature": "FloatFunctionTest.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/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.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_663
{ "fields": [], "file": "core/src/test/java/io/questdb/std/LongMatrixTest.java", "identifier": "LongMatrixTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBinarySearch() {\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\n int r = m.binarySearc...
{ "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": "public int binarySearch(long v, int index) {\n int low = 0;\n int high = pos;\n\n while (low < high) {\n\n if (high - low < 65) {\n return scanSearch(v, index);\n }\n\n int mid = (low + high - 1) >>> 1;\n long midVal = get(mid,...
{ "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_399
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testNoArgFunction() throws SqlException {\n functions.add(new SysdateFunctionFactory());\n functions.add(new ToStrDateFunctionFactory());\n FunctionParser functionParser = new FunctionParser(\n new DefaultCairoConfiguration(root) {\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(FunctionParser.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "MATCH_NO...
{ "body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_86
{ "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 testGetByte() {\n function.getByte(null);\n }", "class_method_signature": "IntFunctionTest.testGetByte()", "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/IntFunction.java", "identifier": "IntFunction"...
{ "body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "IntFunction.getByte(Record rec)", "constructor": false, "full_signature": "@Override public final byte getByte(Record rec)", "identifier": "getByte", "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_69
{ "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 testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "CharFunctionTest.testGetMetadata()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public vo...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" }, { "declarator": "sinkA = new StringSink()", "modifier": "private final", "original_string": "pri...
{ "body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CharFunction.getMetadata()", "constructor": false, "full_signature": "@Override public RecordMetadata getMetadata()", "identifier": "getMetadata", "invocati...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_8
{ "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 testGetFloat() {\n function.getFloat(null);\n }", "class_method_signature": "StrFunctionTest.testGetFloat()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.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_321
{ "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 testNodeTraversal1() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n n1.type = FUNCTION;\n n2.type = LITERAL;\n assertFalse(GroupByUtils.compareNodes(n1, n2));\n }", "class_method_signature": "Group...
{ "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_634
{ "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 testParseIntWrongChars() throws Exception {\n Numbers.parseInt(\"123ab\");\n }", "class_method_signature": "NumbersTest.testParseIntWrongChars()", "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 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_264
{ "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 testGetStrB() {\n function.getStrB(null);\n }", "class_method_signature": "ShortFunctionTest.testGetStrB()", "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 CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.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_458
{ "fields": [], "file": "core/src/test/java/io/questdb/cutlass/line/LineProtoHourTimestampAdapterTest.java", "identifier": "LineProtoHourTimestampAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRounding() throws NumericException {\n Assert.assertEquals(20444400000000L, LineProtoHourTimestampAdapter.INSTANCE.getMicros(\"5679\"));\n }", "class_method_signature": "LineProtoHourTimestampAdapterTest.testRounding()", "constructor": false, "full_signature": "@T...
{ "fields": [ { "declarator": "INSTANCE = new LineProtoHourTimestampAdapter()", "modifier": "public static final", "original_string": "public static final LineProtoHourTimestampAdapter INSTANCE = new LineProtoHourTimestampAdapter();", "type": "LineProtoHourTimestampAdapter", "var_nam...
{ "body": "@Override\n public long getMicros(CharSequence value) throws NumericException {\n return Numbers.parseLong(value) * Timestamps.HOUR_MICROS;\n }", "class_method_signature": "LineProtoHourTimestampAdapter.getMicros(CharSequence value)", "constructor": false, "full_signature": "@Override 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_337
{ "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 testNodeTraversal3() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n n1.type = FUNCTION;\n n2.type = FUNCTION;\n n1.lhs = FACTORY.newInstance();\n assertFalse(GroupByUtils.compareNodes(n1, n2));\n...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_272
{ "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 testGetBinLen() {\n function.getBinLen(null);\n }", "class_method_signature": "DateFunctionTest.testGetBinLen()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java", "identifier": "DateFunctio...
{ "body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.getBinLen(Record rec)", "constructor": false, "full_signature": "@Override public long getBinLen(Record rec)", "identifier": "getBinLen", "invoca...
{ "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_622
{ "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 testParseExplicitDouble() throws Exception {\n Assert.assertEquals(1234.123d, Numbers.parseDouble(\"1234.123d\"), 0.000001);\n }", "class_method_signature": "NumbersTest.testParseExplicitDouble()", "constructor": false, "full_signature": "@Test public void testParseEx...
{ "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_28
{ "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 testGetMetadata() {\n function.getMetadata();\n }", "class_method_signature": "LongFunctionTest.testGetMetadata()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public vo...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java", "identifier": "LongFunctio...
{ "body": "@Override\n public final RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getMetadata()", "constructor": false, "full_signature": "@Override public final RecordMetadata getMetadata()", "identifier": "getMetadata",...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_360
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testFilterOnSubQueryIndexedFilteredEmpty() throws Exception {\n\n TestMatchFunctionFactory.clear();\n\n final String expected = \"a\\tb\\tk\\n\";\n\n assertQuery(expected,\n \"select * from x where b in (select list('RXGZ', 'HYRX', null, 'ABC') a f...
{ "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_675
{ "fields": [], "file": "core/src/test/java/io/questdb/std/time/DateLocaleTest.java", "identifier": "DateLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLongMonth() throws Exception {\n String date = \"23 December 2010\";\n long result = DateLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n Assert.assertEquals(8, Numbers.decodeHighInt(result));\n Assert.assertEquals(11, ...
{ "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_225
{ "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 testGetStr2() {\n function.getStr(null, null);\n }", "class_method_signature": "ByteFunctionTest.testGetStr2()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java", "identifier": "ByteFunctio...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ByteFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "ge...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_90
{ "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 testGetShort() {\n function.getShort(null);\n }", "class_method_signature": "IntFunctionTest.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/IntFunction.java", "identifier": "IntFunction"...
{ "body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "IntFunction.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_419
{ "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 testContentDispositionUnclosedQuote() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n String v = \"Content-Disposition: form-data; name=\\\"hello\\r\\n\" +\n \"\\r\\n\";\n long p = TestUtils.toMemory(v);\n try (Http...
{ "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_194
{ "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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }", "class_method_signature": "BinFunctionTest.testGetPosition()", "constructor": false, "full_signature": "@Test public void testGetPosition()", "identifier": "testGetPosition", "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/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public int getPosition() {\n return position;\n }", "class_method_signature": "BinFunction.getPosition()", "constructor": false, "full_signature": "@Override public int getPosition()", "identifier": "getPosition", "invocations": [], "modifiers": "@Override public", "p...
{ "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_481
{ "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 testAddColumnMetaSwapRenameFail2() throws Exception {\n testUnrecoverableAddColumn(new FilesFacadeImpl() {\n int count = 1;\n\n @Override\n public boolean remove(LPSZ name) {\n return !(Chars.endsWith(name, TableUtils.TODO_FILE_N...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "private int rename(int retries) {\n try {\n int index = 0;\n other.concat(META_PREV_FILE_NAME).$();\n path.concat(META_FILE_NAME).$();\n int l = other.length();\n\n do {\n if (index > 0) {\n other.trimTo(l);\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_252
{ "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 testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "FloatFunctionTest.testLong256A()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public voi...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256A(Record rec)", "identifier": "getLong2...
{ "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_602
{ "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 testFormatDoubleNoExponentNeg() {\n sink.clear();\n Numbers.append(sink, -0.2213323334);\n TestUtils.assertEquals(\"-0.2213323334\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleNoExponentNeg()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_317
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/IntConstantTest.java", "identifier": "IntConstantTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConstant() {\n IntConstant constant = new IntConstant(10, 200);\n Assert.assertTrue(constant.isConstant());\n Assert.assertEquals(200, constant.getInt(null));\n }", "class_method_signature": "IntConstantTest.testConstant()", "constructor": false, "fu...
{ "fields": [ { "declarator": "value", "modifier": "private final", "original_string": "private final int value;", "type": "int", "var_name": "value" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/IntConstant.java", "identifier": "IntConstant...
{ "body": "@Override\n public int getInt(Record rec) {\n return value;\n }", "class_method_signature": "IntConstant.getInt(Record rec)", "constructor": false, "full_signature": "@Override public int getInt(Record rec)", "identifier": "getInt", "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_593
{ "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 testFormatDoubleNoExponent() {\n sink.clear();\n Numbers.append(sink, 0.2213323334);\n TestUtils.assertEquals(\"0.2213323334\", sink);\n }", "class_method_signature": "NumbersTest.testFormatDoubleNoExponent()", "constructor": false, "full_signature": "@T...
{ "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_439
{ "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 testOverrideStringWithSymbol() throws Exception {\n assertNoLeak(textLoader -> {\n String expected = \"f0\\tf1\\tf2\\tf3\\tf4\\tf5\\tf6\\tf7\\tf8\\tf9\\n\" +\n \"\\\"CMP2\\t8\\t8000\\t2.27636352181435\\t2015-01-29T19:15:09.000Z\\t2015-01-29T19:15:...
{ "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 setState(int state) {\n LOG.debug().$(\"state change [old=\").$(this.state).$(\", new=\").$(state).$(']').$();\n this.state = state;\n jsonLexer.clear();\n }", "class_method_signature": "TextLoader.setState(int state)", "constructor": false, "full_signature": "publ...
{ "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_655
{ "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 testParseLongSizeOverflowNoQualifier() throws Exception {\n Numbers.parseLongSize(\"45035996273704960000000\");\n }", "class_method_signature": "NumbersTest.testParseLongSizeOverflowNoQualifier()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static 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_205
{ "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 testLong256A() {\n function.getLong256A(null);\n }", "class_method_signature": "BinFunctionTest.testLong256A()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java", "identifier": "BinFunction"...
{ "body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "BinFunction.getLong256A(Record rec)", "constructor": false, "full_signature": "@Override public Long256 getLong256A(Record rec)", "identifier": "getLong256...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_710
{ "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 testNExtOrSameDow3() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.nextOrSameDayOfWeek(micros, 4));\n TestUtils.assertEquals(\"2017-...
{ "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 nextOrSameDayOfWeek(long millis, int dow) {\n int thisDow = getDayOfWeek(millis);\n if (thisDow == dow) {\n return millis;\n }\n\n if (thisDow < dow) {\n return millis + (dow - thisDow) * DAY_MICROS;\n } else {\n return ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_340
{ "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 testNodeTraversal6() {\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 //\n...
{ "fields": [], "file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java", "identifier": "GroupByUtils", "interfaces": "", "methods": [ { "class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum...
{ "body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_49
{ "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 testGetInt() {\n function.getInt(null);\n }", "class_method_signature": "DoubleFunctionTest.testGetInt()", "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 int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DoubleFunction.getInt(Record rec)", "constructor": false, "full_signature": "@Override public final int getInt(Record rec)", "identifier": "getInt", "invoca...
{ "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_585
{ "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 parseExplicitLong2() throws Exception {\n Numbers.parseLong(\"10000LL\");\n }", "class_method_signature": "NumbersTest.parseExplicitLong2()", "constructor": false, "full_signature": "@Test(expected = NumericException.class) public vo...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static long parseLong(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n return parseLong0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseLong(CharSequence sequence)"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_213
{ "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 testLeftNaNDate() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new DoubleConstant(2, Double.NaN));\n args.add(new DateConstant(1, 10000L));\n Function function = facto...
{ "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_643
{ "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 testParseIntSizeKb() throws Exception {\n Assert.assertEquals(5 * 1024, Numbers.parseIntSize(\"5K\"));\n Assert.assertEquals(5 * 1024, Numbers.parseIntSize(\"5k\"));\n }", "class_method_signature": "NumbersTest.testParseIntSizeKb()", "constructor": false, "full...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static int 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_356
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java", "identifier": "SqlCodeGeneratorTest", "interfaces": "", "superclass": "extends AbstractGriffinTest" }
{ "body": "@Test\n public void testFilterOnInterval() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"84.45258177211063\\tPEHN\\t1970-01-01T03:36:40.000000Z\\n\" +\n \"97.5019885372507\\t\\t1970-01-01T03:53:20.0...
{ "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_706
{ "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 testFloorHH() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.floorHH(micros));\n TestUtils.assertEquals(\"2008-05-12T23:00:00.000Z\", sink);\n }", "c...
{ "fields": [ { "declarator": "WEEK_MICROS = 604800000000L", "modifier": "public static final", "original_string": "public static final long WEEK_MICROS = 604800000000L;", "type": "long", "var_name": "WEEK_MICROS" }, { "declarator": "DAY_MICROS = 86400000000L", "m...
{ "body": "public static long floorHH(long micros) {\n return micros - micros % HOUR_MICROS;\n }", "class_method_signature": "Timestamps.floorHH(long micros)", "constructor": false, "full_signature": "public static long floorHH(long micros)", "identifier": "floorHH", "invocations": [], "modifier...
{ "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_478
{ "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 testAddColumnCannotRenameMetaSwapAndUseIndexedPrevMeta() throws Exception {\n FilesFacade ff = new SwapMetaRenameDenyingFacade() {\n int count = 5;\n\n @Override\n public boolean rename(LPSZ from, LPSZ to) {\n return (!Chars.cont...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(TableWriter.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "IGNORED_FILES ...
{ "body": "private int rename(int retries) {\n try {\n int index = 0;\n other.concat(META_PREV_FILE_NAME).$();\n path.concat(META_FILE_NAME).$();\n int l = other.length();\n\n do {\n if (index > 0) {\n other.trimTo(l);\n ...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_182
{ "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 testChar() {\n function.getChar(null);\n }", "class_method_signature": "TimestampFunctionTest.testChar()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testCh...
{ "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 char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "TimestampFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public char getChar(Record rec)", "identifier": "getChar", "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_497
{ "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 testSkipOverSpuriousDir() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n create(FF, PartitionBy.DAY, 10);\n\n try (Path path = new Path()) {\n // create random directory\n path.of(configuration.getRoot()).concat(PR...
{ "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": "@Override\n public void close() {\n if (isOpen() && lifecycleManager.close()) {\n doClose(true);\n }\n }", "class_method_signature": "TableWriter.close()", "constructor": false, "full_signature": "@Override public void close()", "identifier": "close", "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_614
{ "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 testFormatShort() {\n for (int i = 0; i < 1000; i++) {\n short n = (short) rnd.nextInt();\n\n sink.clear();\n Numbers.append(sink, n);\n Assert.assertEquals(Short.toString(n), sink.toString());\n }\n }", "class_method_sig...
{ "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_244
{ "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 testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "FloatFunctionTest.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/FloatFunction.java", "identifier": "FloatFunct...
{ "body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "FloatFunction.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_301
{ "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 testGetInt() {\n function.getInt(null);\n }", "class_method_signature": "Long256FunctionTest.testGetInt()", "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/Long256Function.java", "identifier": "Long256F...
{ "body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "Long256Function.getInt(Record rec)", "constructor": false, "full_signature": "@Override public final int getInt(Record rec)", "identifier": "getInt", "invoc...
{ "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_116
{ "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 testGetTimestamp() {\n function.getTimestamp(null);\n }", "class_method_signature": "SymbolFunctionTest.testGetTimestamp()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java", "identifier": "SymbolFun...
{ "body": "@Override\n public final long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "SymbolFunction.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_546
{ "fields": [], "file": "core/src/test/java/io/questdb/cairo/map/RecordValueSinkFactoryTest.java", "identifier": "RecordValueSinkFactoryTest", "interfaces": "", "superclass": "extends AbstractCairoTest" }
{ "body": "@Test\n public void testSubset() {\n SingleColumnType keyTypes = new SingleColumnType(ColumnType.INT);\n try (TableModel model = new TableModel(configuration, \"all\", PartitionBy.NONE)\n .col(\"int\", ColumnType.INT)\n .col(\"short\", ColumnType.SHORT)\n ...
{ "fields": [], "file": "core/src/main/java/io/questdb/cairo/map/RecordValueSinkFactory.java", "identifier": "RecordValueSinkFactory", "interfaces": "", "methods": [ { "class_method_signature": "RecordValueSinkFactory.getInstance(BytecodeAssembler asm, ColumnTypes columnTypes, @Transient ColumnFilte...
{ "body": "public static RecordValueSink getInstance(BytecodeAssembler asm, ColumnTypes columnTypes, @Transient ColumnFilter columnFilter) {\n asm.init(RecordSink.class);\n asm.setupPool();\n int thisClassIndex = asm.poolClass(asm.poolUtf8(\"io/questdb/cairo/valuesink\"));\n int interfaceC...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_403
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testVarArgFunction() throws SqlException {\n functions.add(new InStrFunctionFactory());\n\n final GenericRecordMetadata metadata = new GenericRecordMetadata();\n metadata.add(new TableColumnMetadata(\"a\", ColumnType.STRING));\n\n FunctionParser functionPa...
{ "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_65
{ "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 testGetBinLen() {\n function.getBinLen(null);\n }", "class_method_signature": "CharFunctionTest.testGetBinLen()", "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 long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "CharFunction.getBinLen(Record rec)", "constructor": false, "full_signature": "@Override public long getBinLen(Record rec)", "identifier": "getBinLen", "invoca...
{ "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_680
{ "fields": [ { "declarator": "compiler = new DateFormatCompiler()", "modifier": "private static final", "original_string": "private static final DateFormatCompiler compiler = new DateFormatCompiler();", "type": "DateFormatCompiler", "var_name": "compiler" }, { "declara...
{ "body": "@Test\n public void testBasicParserCompiler() throws Exception {\n TimestampFormat fmt = compiler.compile(\"E, dd MMM yyyy a KK:m:s.S Z\");\n String utcPattern = \"yyyy-MM-ddTHH:mm:ss.SSSz\";\n TimestampFormat utc = compiler.compile(utcPattern);\n long millis = fmt.parse(\"Mo...
{ "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 TimestampFormat compile(CharSequence pattern) {\n return compile(pattern, false);\n }", "class_method_signature": "DateFormatCompiler.compile(CharSequence pattern)", "constructor": false, "full_signature": "public TimestampFormat compile(CharSequence pattern)", "identifier": "compi...
{ "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_395
{ "fields": [], "file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java", "identifier": "FunctionParserTest", "interfaces": "", "superclass": "extends BaseFunctionFactoryTest" }
{ "body": "@Test\n public void testImplicitConstantShort() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjLis...
{ "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_511
{ "fields": [ { "declarator": "path = new Path()", "modifier": "private final static", "original_string": "private final static Path path = new Path();", "type": "Path", "var_name": "path" }, { "declarator": "otherPath = new Path()", "modifier": "private final sta...
{ "body": "@Test\n public void testNewTableRename() throws Exception {\n createX();\n\n TestUtils.assertMemoryLeak(() -> {\n try (CairoEngine engine = new CairoEngine(configuration)) {\n engine.rename(AllowAllCairoSecurityContext.INSTANCE, path, \"x\", otherPath, \"y\");\n\n...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(CairoEngine.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(CairoEngine.class);", "type": "Log", "var_name": "LOG" }, { "declarator": "writerPool", ...
{ "body": "public void rename(\n CairoSecurityContext securityContext,\n Path path,\n CharSequence tableName,\n Path otherPath,\n CharSequence newName\n ) {\n securityContext.checkWritePermission();\n if (lock(securityContext, tableName)) {\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_141
{ "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 testChar() {\n Assert.assertEquals('F', functionA.getChar(null));\n final BooleanFunction function = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return true;\n }\n };\n 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/BooleanFunction.java", "identifier": "BooleanF...
{ "body": "@Override\n public final char getChar(Record rec) {\n return getBool(rec) ? 'T' : 'F';\n }", "class_method_signature": "BooleanFunction.getChar(Record rec)", "constructor": false, "full_signature": "@Override public final char getChar(Record rec)", "identifier": "getChar", "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_32
{ "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 testGetStr() {\n function.getStr(null);\n }", "class_method_signature": "LongFunctionTest.testGetStr()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetS...
{ "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 getStr(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "LongFunction.getStr(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getStr(Record rec)", "identifier": "ge...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_454
{ "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 testSimpleSimpleQuery() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(Network...
{ "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_287
{ "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 testGetSym() {\n function.getSymbol(null);\n }", "class_method_signature": "DateFunctionTest.testGetSym()", "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 CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "DateFunction.getSymbol(Record rec)", "constructor": false, "full_signature": "@Override public final CharSequence getSymbol(Record rec)", "identif...
{ "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_4
{ "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 testGetBool() {\n function.getBool(null);\n }", "class_method_signature": "StrFunctionTest.testGetBool()", "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/StrFunction.java", "identifier": "StrFunction"...
{ "body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "StrFunction.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_268
{ "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 testLong256() {\n function.getLong256(null, null);\n }", "class_method_signature": "ShortFunctionTest.testLong256()", "constructor": false, "full_signature": "@Test(expected = UnsupportedOperationException.class) public ...
{ "fields": [ { "declarator": "position", "modifier": "private final", "original_string": "private final int position;", "type": "int", "var_name": "position" } ], "file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java", "identifier": "ShortFunct...
{ "body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }", "class_method_signature": "ShortFunction.getLong256(Record rec, CharSink sink)", "constructor": false, "full_signature": "@Override public void getLong256(Record rec, CharSi...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...
19257422_638
{ "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 testParseLongOverflow1() throws Exception {\n String i1 = \"1234556678723234234234234234234\";\n Numbers.parseLong(i1);\n }", "class_method_signature": "NumbersTest.testParseLongOverflow1()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "INT_NaN = Integer.MIN_VALUE", "modifier": "public static final", "original_string": "public static final int INT_NaN = Integer.MIN_VALUE;", "type": "int", "var_name": "INT_NaN" }, { "declarator": "LONG_NaN = Long.MIN_VALUE", "modifie...
{ "body": "public static long parseLong(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n return parseLong0(sequence, 0, sequence.length());\n }", "class_method_signature": "Numbers.parseLong(CharSequence sequence)"...
{ "created": "4/28/2014 11:29:15 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 19257422, "size": null, "stargazer_count": null, "stars": 212, "updates": "2020-01-27T20:58:34+00:00", "url": "https://github.com/questdb/questdb...