id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
19257422_378 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testBooleanConstants() throws SqlException {\n functions.add(new NotFunctionFactory());\n functions.add(new OrFunctionFactory());\n\n final Record record = new Record() {\n @Override\n public boolean getBool(int col) {\n // co... | {
"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_682 | {
"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(expected = BytecodeException.class)\n public void testLongPattern() {\n StringBuffer b = new StringBuffer();\n for (int i = 0; i < 1000; i++) {\n b.append(\"KK\").append(' ').append('Z').append(',');\n }\n compiler.compile(b);\n }",
"class_method_signatu... | {
"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_67 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "CharFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
"in... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_401 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testPassVarToConstArg() {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x(i)\";\n }\n\n @Override\n public Function newInstance(ObjList<Function> args, int p... | {
"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_114 | {
"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 testGetStrB() {\n Assert.assertEquals(\"XYZ\", function.getStrB(null));\n }",
"class_method_signature": "SymbolFunctionTest.testGetStrB()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationEx... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.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_544 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/map/FastMapTest.java",
"identifier": "FastMapTest",
"interfaces": "",
"superclass": "extends AbstractCairoTest"
} | {
"body": "@Test\n // This test crashes CircleCI, probably due to amount of memory it need to run\n // I'm going to find out how to deal with that\n public void testMemoryStretch() throws Exception {\n if (System.getProperty(\"questdb.enable_heavy_tests\") != null) {\n TestUtils.assertMemor... | {
"fields": [
{
"declarator": "DEFAULT_HASH = Hash::hashMem",
"modifier": "private static final",
"original_string": "private static final HashFunction DEFAULT_HASH = Hash::hashMem;",
"type": "HashFunction",
"var_name": "DEFAULT_HASH"
},
{
"declarator": "MIN_INITIAL_CAP... | {
"body": "@Override\n public MapKey withKey() {\n return key.init();\n }",
"class_method_signature": "FastMap.withKey()",
"constructor": false,
"full_signature": "@Override public MapKey withKey()",
"identifier": "withKey",
"invocations": [
"init"
],
"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_88 | {
"fields": [
{
"declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }",
"modifier": "private static final",
"original_string": "private static final IntFunction function = new IntFunction(25) {\n ... | {
"body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "IntFunctionTest.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/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public int getPosition() {\n return position;\n }",
"class_method_signature": "IntFunction.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_303 | {
"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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "Long256FunctionTest.testGetPosition()",
"constructor": false,
"full_signature": "@Test public void testGetPosition()",
"identifier": "testGetPosition",
"invocat... | {
"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 int getPosition() {\n return position;\n }",
"class_method_signature": "Long256Function.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_616 | {
"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 testHexInt() throws Exception {\n Assert.assertEquals('w', (char) Numbers.parseHexInt(\"77\"));\n Assert.assertEquals(0xf0, Numbers.parseHexInt(\"F0\"));\n Assert.assertEquals(0xac, Numbers.parseHexInt(\"ac\"));\n }",
"class_method_signature": "NumbersTest.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 int parseHexInt(CharSequence sequence) throws NumericException {\n return parseHexInt(sequence, 0, sequence.length());\n }",
"class_method_signature": "Numbers.parseHexInt(CharSequence sequence)",
"constructor": false,
"full_signature": "public static int parseHexInt(CharSeque... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_246 | {
"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 testGetStrB() {\n function.getStrB(null);\n }",
"class_method_signature": "FloatFunctionTest.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/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.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_495 | {
"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 testRemoveColumnUnrecoverableRenameFailure() throws Exception {\n class X extends FilesFacadeImpl {\n int count = 2;\n\n @Override\n public boolean rename(LPSZ from, LPSZ to) {\n if (Chars.endsWith(to, TableUtils.META_FILE_NAME) ... | {
"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_180 | {
"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 testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "TimestampFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "TimestampFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStr... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_354 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testFilterFunctionOnSubQuery() throws Exception {\n TestMatchFunctionFactory.clear();\n // no index\n final String expected = \"a\\tb\\tk\\n\" +\n \"93.4460485739401\\tPEHN\\t1970-01-02T03:46:40.000000Z\\n\" +\n \"88.2822836669774\\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_704 | {
"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 testDaysBetween() throws Exception {\n Assert.assertEquals(41168,\n Timestamps.getDaysBetween(\n TimestampFormatUtils.parseDateTime(\"1904-11-05T23:45:41.045Z\"),\n TimestampFormatUtils.parseDateTime(\"2017-07-24T23:... | {
"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 getDaysBetween(long a, long b) {\n return Math.abs(a - b) / DAY_MICROS;\n }",
"class_method_signature": "Timestamps.getDaysBetween(long a, long b)",
"constructor": false,
"full_signature": "public static long getDaysBetween(long a, long b)",
"identifier": "getDaysBetwee... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_211 | {
"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 testRightNaNTimestampNaN() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new TimestampConstant(1, Numbers.LONG_NaN) {\n @Override\n public boolean isConstant() ... | {
"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_641 | {
"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 testParseLongWrongChars() throws Exception {\n Numbers.parseLong(\"123ab\");\n }",
"class_method_signature": "NumbersTest.testParseLongWrongChars()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) p... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static 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_568 | {
"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 testEndsWith() {\n Assert.assertFalse(Chars.endsWith(null, null));\n Assert.assertFalse(Chars.endsWith(\"a\", null));\n Assert.assertFalse(Chars.endsWith(null, \"a\"));\n Assert.assertFalse(Chars.endsWith(\"\", \"a\"));\n Assert.assertFalse(Chars.en... | {
"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 boolean endsWith(CharSequence cs, CharSequence ends) {\n if (ends == null || cs == null) {\n return false;\n }\n\n int l = ends.length();\n if (l == 0) {\n return false;\n }\n\n int csl = cs.length();\n return !(csl == 0 |... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_138 | {
"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 testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "CursorFunctionTest.testGetStrLen()",
"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 final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CursorFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStrLen... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_587 | {
"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 testEmptyDouble() throws Exception {\n Numbers.parseDouble(\"D\");\n }",
"class_method_signature": "NumbersTest.testEmptyDouble()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) public void testEmp... | {
"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_712 | {
"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 testNextOrSameDow2() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.nextOrSameDayOfWeek(micros, 6));\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_342 | {
"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 testNodeTraversal8() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.lhs = FACTORY.newInstance();\n n1.lhs.type = LITERAL;\n n1.l... | {
"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_657 | {
"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 testParseWrongNan() throws Exception {\n Numbers.parseDouble(\"NaN1\");\n }",
"class_method_signature": "NumbersTest.testParseWrongNan()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) public void ... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static 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_207 | {
"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 testLeftNaNFloat() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new FloatConstant(1, 3.4f));\n args.add(new DoubleConstant(2, Double.NaN));\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_591 | {
"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 testFormatChar() {\n for (int i = 0; i < 1000; i++) {\n char n = (char) rnd.nextInt();\n\n sink.clear();\n Numbers.append(sink, n);\n Assert.assertEquals(Integer.toString(n), sink.toString());\n }\n }",
"class_method_sign... | {
"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_315 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/BooleanConstantTest.java",
"identifier": "BooleanConstantTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testValueOf() {\n Assert.assertTrue(new BooleanConstant(0, true).getBool(null));\n Assert.assertFalse(new BooleanConstant(0, false).getBool(null));\n }",
"class_method_signature": "BooleanConstantTest.testValueOf()",
"constructor": false,
"full_signature": "@Te... | {
"fields": [
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final boolean value;",
"type": "boolean",
"var_name": "value"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/BooleanConstant.java",
"identifier": ... | {
"body": "@Override\n public boolean getBool(Record rec) {\n return value;\n }",
"class_method_signature": "BooleanConstant.getBool(Record rec)",
"constructor": false,
"full_signature": "@Override public boolean getBool(Record rec)",
"identifier": "getBool",
"invocations": [],
"modifiers": "... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_250 | {
"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 testChar() {\n function.getChar(null);\n }",
"class_method_signature": "FloatFunctionTest.testChar()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public char getChar(Record rec)",
"identifier": "getChar",
"invocations":... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_600 | {
"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 testFormatDoubleZeroExp() {\n sink.clear();\n Numbers.append(sink, -2.225073858507201E-308);\n TestUtils.assertEquals(\"-2.225073858507201E-308\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleZeroExp()",
"constructor": false,
"full... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_529 | {
"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 testConcurrentOpenAndClose() throws Exception {\n final int readerCount = 5;\n int threadCount = 2;\n final int iterations = 1000;\n\n final String[] names = new String[readerCount];\n for (int i = 0; i < readerCount; i++) {\n names[i] = ... | {
"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_179 | {
"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 testGetStrB() {\n function.getStrB(null);\n }",
"class_method_signature": "TimestampFunctionTest.testGetStrB()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public final CharSequence getStrB(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "TimestampFunction.getStrB(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStrB(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_483 | {
"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 testAddColumnTopFileWriteFail() throws Exception {\n // simulate existence of _meta.swp\n testAddColumnRecoverableFault(new FilesFacadeImpl() {\n long fd = -1;\n\n @Override\n public long append(long fd, long buf, int len) {\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "private long openAppend(LPSZ name) {\n long fd = ff.openAppend(name);\n if (fd == -1) {\n throw CairoException.instance(Os.errno()).put(\"Cannot open for append: \").put(name);\n }\n return fd;\n }",
"class_method_signature": "TableWriter.openAppend(LPSZ name)",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_196 | {
"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 testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "BinFunctionTest.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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_697 | {
"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 testAddYears3() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2014-01-01T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.addYear(micros, 1));\n TestUtils.assertEquals(\"2015-01-01T00:00:00.000Z\", sink);\n }",... | {
"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 addYear(long micros, int years) {\n if (years == 0) {\n return micros;\n }\n\n int y = getYear(micros);\n int m;\n boolean leap1 = isLeapYear(y);\n boolean leap2 = isLeapYear(y + years);\n\n return yearMicros(y + years, leap2)\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_228 | {
"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 testGetSym() {\n function.getSymbol(null);\n }",
"class_method_signature": "ByteFunctionTest.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/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.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_678 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/time/DateLocaleTest.java",
"identifier": "DateLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testShortMonth() throws Exception {\n String date = \"23 Sep 2010\";\n long result = DateLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n Assert.assertEquals(3, Numbers.decodeHighInt(result));\n Assert.assertEquals(8, Numbe... | {
"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_382 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testConstVarArgFunction() throws SqlException {\n functions.add(new InStrFunctionFactory());\n final GenericRecordMetadata metadata = new GenericRecordMetadata();\n metadata.add(new TableColumnMetadata(\"a\", ColumnType.STRING));\n FunctionParser functionP... | {
"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_551 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getByte() {\n Assert.assertEquals(0, NullColumn.INSTANCE.getByte(1234));\n }",
"class_method_signature": "NullColumnTest.getByte()",
"constructor": false,
"full_signature": "@Test public void getByte()",
"identifier": "getByte",
"invocations": [
"assertEquals"... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public byte getByte(long offset) {\n return 0;\n }",
"class_method_signature": "NullColumn.getByte(long offset)",
"constructor": false,
"full_signature": "@Override public byte getByte(long offset)",
"identifier": "getByte",
"invocations": [],
"modifiers": "@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_101 | {
"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 testGetBin() {\n function.getBin(null);\n }",
"class_method_signature": "SymbolFunctionTest.testGetBin()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.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_72 | {
"fields": [
{
"declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }",
"modifier": "private static final",
"original_string": "private static final CharFunction function = new CharFunction(25) {... | {
"body": "@Test\n public void testGetStr() {\n TestUtils.assertEquals(\"4\", function.getStr(null));\n }",
"class_method_signature": "CharFunctionTest.testGetStr()",
"constructor": false,
"full_signature": "@Test public void testGetStr()",
"identifier": "testGetStr",
"invocations": [
"asse... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n final char value = getChar(rec);\n if (value == 0) {\n return null;\n }\n sinkA.clear();\n sinkA.put(value);\n return sinkA;\n }",
"class_method_signature": "CharFunction.getStr(Record ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_414 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "LOG = LogFactory.getLog(SqlCompilerTest.class)",
"modif... | {
"body": "@Test\n public void testRemoveColumnShiftTimestamp() throws Exception {\n assertMemoryLeak(() -> {\n compiler.compile(\"create table x1 (a int, b double, t timestamp) timestamp(t)\", sqlExecutionContext);\n\n try (TableReader reader = engine.getReader(sqlExecutionContext.get... | {
"fields": [
{
"declarator": "sqlControlSymbols = new ObjList<>(8)",
"modifier": "public static final",
"original_string": "public static final ObjList<String> sqlControlSymbols = new ObjList<>(8);",
"type": "ObjList<String>",
"var_name": "sqlControlSymbols"
},
{
"decl... | {
"body": "@NotNull\n public CompiledQuery compile(@NotNull CharSequence query, @NotNull SqlExecutionContext executionContext) throws SqlException {\n clear();\n //\n // these are quick executions that do not require building of a model\n //\n lexer.of(query);\n\n final Ch... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_290 | {
"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 testChar() {\n function.getChar(null);\n }",
"class_method_signature": "DateFunctionTest.testChar()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar()"... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public char getChar(Record rec)",
"identifier": "getChar",
"invocations": ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_156 | {
"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 testGetStrB() {\n Assert.assertEquals(\"false\", functionA.getStr(null));\n Assert.assertEquals(\"true\", functionB.getStr(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetStrB()",
"constructor": false,
"full_signature": "@Test public void te... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public final CharSequence getStrB(Record rec) {\n return getStr0(rec);\n }",
"class_method_signature": "BooleanFunction.getStrB(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStrB(Record rec)",
"identifier": "getStrB",
"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_506 | {
"fields": [
{
"declarator": "MUST_SWITCH = 1",
"modifier": "public static final",
"original_string": "public static final int MUST_SWITCH = 1;",
"type": "int",
"var_name": "MUST_SWITCH"
},
{
"declarator": "MUST_NOT_SWITCH = 2",
"modifier": "public static final",... | {
"body": "@Test\n public void testReadLong256One() {\n try (TableModel model = new TableModel(configuration, \"w\", PartitionBy.DAY).col(\"l\", ColumnType.LONG256).timestamp()) {\n CairoTestUtils.create(model);\n }\n\n final int N = 1_000_000;\n final Rnd rnd = new Rnd();\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableReader.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableReader.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "YEAR_GEN = Tab... | {
"body": "public TableReaderRecordCursor getCursor() {\n recordCursor.toTop();\n return recordCursor;\n }",
"class_method_signature": "TableReader.getCursor()",
"constructor": false,
"full_signature": "public TableReaderRecordCursor getCursor()",
"identifier": "getCursor",
"invocations": [... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_443 | {
"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 testSmallInitialBuffer() throws Exception {\n assertNoLeak(textLoader -> {\n String csv = \"123\\tabc\\t2015-01-20T21:00:00.000Z\\t3.1415\\tTRUE\\tLorem ipsum dolor sit amet.\\t122\\n\" +\n \"124\\tabc\\t2015-01-20T21:00:00.000Z\\t7.342\\tFALSE\\t... | {
"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_25 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "LongFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
"in... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_286 | {
"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 testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "DateFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStrLen",... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_5 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "StrFunctionTest.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/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.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_269 | {
"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 testLong256A() {\n function.getLong256A(null);\n }",
"class_method_signature": "ShortFunctionTest.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/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.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_639 | {
"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 testParseLongOverflow2() throws Exception {\n Numbers.parseLong(\"9223372036854775808\");\n }",
"class_method_signature": "NumbersTest.testParseLongOverflow2()",
"constructor": false,
"full_signature": "@Test(expected = NumericExcept... | {
"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_510 | {
"fields": [
{
"declarator": "MUST_SWITCH = 1",
"modifier": "public static final",
"original_string": "public static final int MUST_SWITCH = 1;",
"type": "int",
"var_name": "MUST_SWITCH"
},
{
"declarator": "MUST_NOT_SWITCH = 2",
"modifier": "public static final",... | {
"body": "@Test\n public void testSymbolIndex() throws Exception {\n String expected = \"{\\\"columnCount\\\":3,\\\"columns\\\":[{\\\"index\\\":0,\\\"name\\\":\\\"a\\\",\\\"type\\\":\\\"SYMBOL\\\",\\\"indexed\\\":true,\\\"indexValueBlockCapacity\\\":2},{\\\"index\\\":1,\\\"name\\\":\\\"b\\\",\\\"type\\\":\... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableReader.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableReader.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "YEAR_GEN = Tab... | {
"body": "public RecordMetadata getMetadata() {\n return metadata;\n }",
"class_method_signature": "TableReader.getMetadata()",
"constructor": false,
"full_signature": "public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invocations": [],
"modifiers": "public",
"parameters": "... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_140 | {
"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 testGetTimestamp() {\n function.getTimestamp(null);\n }",
"class_method_signature": "CursorFunctionTest.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"
},
{
"declarator": "factory",
"modifier": "private final",
"original_string": "private final Record... | {
"body": "@Override\n public final long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CursorFunction.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_33 | {
"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 testGetStr2() {\n function.getStr(null, null);\n }",
"class_method_signature": "LongFunctionTest.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/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_455 | {
"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 testSqlSyntaxError() throws SQLException, InterruptedException, BrokenBarrierException {\n\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(\n ... | {
"fields": [
{
"declarator": "PG_VARCHAR = 1043",
"modifier": "public static final",
"original_string": "public static final int PG_VARCHAR = 1043;",
"type": "int",
"var_name": "PG_VARCHAR"
},
{
"declarator": "PG_TIMESTAMP = 1114",
"modifier": "public static fina... | {
"body": "@Override\n public void close() {\n Misc.free(compiler);\n }",
"class_method_signature": "PGJobContext.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"free"
],
"modifiers": "@Override public",
"para... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_681 | {
"fields": [
{
"declarator": "compiler = new DateFormatCompiler()",
"modifier": "private static final",
"original_string": "private static final DateFormatCompiler compiler = new DateFormatCompiler();",
"type": "DateFormatCompiler",
"var_name": "compiler"
},
{
"declara... | {
"body": "@Test\n public void testNegativeYear() throws Exception {\n assertThat(\"yyyy MMM dd\", \"-2010-09-01T00:00:00.000Z\", \"-2010 Sep 01\");\n\n TimestampFormat fmt1 = compiler.compile(\"G yyyy MMM\", true);\n TimestampFormat fmt2 = compiler.compile(\"yyyy MMM dd\", true);\n\n l... | {
"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_394 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantNullSymbol() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(O... | {
"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_117 | {
"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 testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "SymbolFunctionTest.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/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharS... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_547 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void close() {\n NullColumn.INSTANCE.close();\n }",
"class_method_signature": "NullColumnTest.close()",
"constructor": false,
"full_signature": "@Test public void close()",
"identifier": "close",
"invocations": [
"close"
],
"modifiers": "@Test public",
"param... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public void close() {\n }",
"class_method_signature": "NullColumn.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signatur... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_402 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testSymbolFunction() throws SqlException {\n functions.add(new LengthStrFunctionFactory());\n functions.add(new LengthSymbolFunctionFactory());\n functions.add(new SubIntFunctionFactory());\n\n FunctionParser functionParser = createFunctionParser();\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_64 | {
"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 testGetBin() {\n function.getBin(null);\n }",
"class_method_signature": "CharFunctionTest.testGetBin()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetB... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.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_615 | {
"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 testFormatSpecialDouble() {\n double d = -1.040218505859375E10d;\n Numbers.append(sink, d);\n Assert.assertEquals(Double.toString(d), sink.toString());\n\n sink.clear();\n d = -1.040218505859375E-10d;\n Numbers.append(sink, d);\n Asser... | {
"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_245 | {
"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 testGetStr2() {\n function.getStr(null, null);\n }",
"class_method_signature": "FloatFunctionTest.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/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_300 | {
"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 testGetFloat() {\n function.getFloat(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetFloat()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getFloat(Record rec)",
"constructor": false,
"full_signature": "@Override public final float getFloat(Record rec)",
"identifier": "getFloa... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_479 | {
"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 testAddColumnFileOpenFail3() throws Exception {\n // simulate existence of _meta.swp\n testUnrecoverableAddColumn(new FilesFacadeImpl() {\n int count = 1;\n\n @Override\n public long openRW(LPSZ name) {\n if (Chars.endsWit... | {
"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_183 | {
"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 testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "TimestampFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) pub... | {
"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 void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "TimestampFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, Ch... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_496 | {
"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 testRemoveTimestampFromPartitionedTable() {\n try (TableModel model = new TableModel(configuration, \"ABC\", PartitionBy.DAY)\n .col(\"productId\", ColumnType.INT)\n .col(\"productName\", ColumnType.STRING)\n .col(\"category\", Colu... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "public void removeColumn(CharSequence name) {\n\n checkDistressed();\n\n final int index = getColumnIndex(name);\n final int type = metadata.getColumnType(index);\n\n LOG.info().$(\"removing column '\").utf8(name).$(\"' from \").$(path).$();\n\n // check if we are moving ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_212 | {
"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 testLeftNaNTimestamp() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new DoubleConstant(2, Double.NaN));\n args.add(new TimestampConstant(1, 20000L));\n Function functi... | {
"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_642 | {
"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 testParseIntSizeFail() throws Exception {\n Numbers.parseIntSize(\"5Kb\");\n }",
"class_method_signature": "NumbersTest.testParseIntSizeFail()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) public... | {
"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_357 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testFilterOnIntervalAndFilter() throws Exception {\n TestMatchFunctionFactory.clear();\n\n assertQuery(\"a\\tb\\tk\\n\" +\n \"84.45258177211063\\tPEHN\\t1970-01-01T03:36:40.000000Z\\n\" +\n \"97.5019885372507\\t\\t1970-01-01... | {
"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_707 | {
"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 testFloorMM() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.floorMM(micros));\n TestUtils.assertEquals(\"2008-05-01T00: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 floorMM(long micros) {\n int y;\n boolean l;\n return yearMicros(y = getYear(micros), l = isLeapYear(y)) + monthOfYearMicros(getMonthOfYear(micros, y, l), l);\n }",
"class_method_signature": "Timestamps.floorMM(long micros)",
"constructor": false,
"full_sign... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_48 | {
"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 testGetFloat() {\n function.getFloat(null);\n }",
"class_method_signature": "DoubleFunctionTest.testGetFloat()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.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_584 | {
"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 parseExplicitLong() throws Exception {\n Assert.assertEquals(10000L, Numbers.parseLong(\"10000L\"));\n }",
"class_method_signature": "NumbersTest.parseExplicitLong()",
"constructor": false,
"full_signature": "@Test public void parseExplicitLong()",
"identifier": "pa... | {
"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_654 | {
"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 testParseLongSizeOverflowAtM() throws Exception {\n Numbers.parseLongSize(\"450359962737049600M\");\n }",
"class_method_signature": "NumbersTest.testParseLongSizeOverflowAtM()",
"constructor": false,
"full_signature": "@Test(expected... | {
"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_204 | {
"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 testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "BinFunctionTest.testLong256()",
"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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharSink... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_711 | {
"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 testNextOrSameDow1() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.nextOrSameDayOfWeek(micros, 3));\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_341 | {
"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 testNodeTraversal7() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.lhs = FACTORY.newInstance();\n n1.lhs.type = LITERAL;\n n1.l... | {
"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_592 | {
"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 testFormatInt() {\n for (int i = 0; i < 1000; i++) {\n int n = rnd.nextInt();\n sink.clear();\n Numbers.append(sink, n);\n Assert.assertEquals(Integer.toString(n), sink.toString());\n }\n }",
"class_method_signature": "Nu... | {
"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_438 | {
"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 testOverrideStringWithShort() throws Exception {\n assertNoLeak(loader -> {\n\n String expected = \"f0\\tf1\\tf2\\tf3\\tf4\\tf5\\tf6\\tf7\\tf8\\tf9\\n\" +\n \"0\\t4\\t3883\\t7.96873019309714\\t2015-02-02T19:15:09.000Z\\t2015-02-02T19:15:09.000Z\\t... | {
"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_253 | {
"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 testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "FloatFunctionTest.testLong256B()",
"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 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getLong256B(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256B(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_603 | {
"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 testFormatDoubleExp() {\n sink.clear();\n Numbers.append(sink, 112333.989922222);\n TestUtils.assertEquals(\"112333.989922222\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleExp()",
"constructor": false,
"full_signature": "@Test pu... | {
"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_316 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/DateConstantTest.java",
"identifier": "DateConstantTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstant() {\n DateConstant constant = new DateConstant(0, 123);\n Assert.assertTrue(constant.isConstant());\n Assert.assertEquals(123, constant.getDate(null));\n }",
"class_method_signature": "DateConstantTest.testConstant()",
"constructor": false,
... | {
"fields": [
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final long value;",
"type": "long",
"var_name": "value"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/DateConstant.java",
"identifier": "DateCons... | {
"body": "@Override\n public long getDate(Record rec) {\n return value;\n }",
"class_method_signature": "DateConstant.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public long getDate(Record rec)",
"identifier": "getDate",
"invocations": [],
"modifiers": "@Override... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_195 | {
"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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }",
"class_method_signature": "BinFunctionTest.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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_480 | {
"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 testAddColumnFileOpenFailAndIndexedPrev() throws Exception {\n // simulate existence of _meta.swp\n testUnrecoverableAddColumn(new FilesFacadeImpl() {\n int count = 2;\n int toCount = 5;\n\n @Override\n public long openRW(LPSZ... | {
"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_91 | {
"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 testGetStr() {\n function.getStr(null);\n }",
"class_method_signature": "IntFunctionTest.testGetStr()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetSt... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.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_418 | {
"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 testContentDispositionMissingValue() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n String v = \"Content-Disposition: form-data; name=\\r\\n\" +\n \"\\r\\n\";\n long p = TestUtils.toMemory(v);\n try (HttpHeaderPars... | {
"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_361 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testFilterOnValuesAndFilter() throws Exception {\n\n TestMatchFunctionFactory.clear();\n\n assertQuery(\"a\\tb\\tk\\n\" +\n \"11.427984775756228\\t\\t1970-01-01T00:00:00.000000Z\\n\" +\n \"32.881769076795045\\t\\t1970-01-01T... | {
"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_674 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/time/DateLocaleTest.java",
"identifier": "DateLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NumericException.class)\n public void testBadMonth2() throws Exception {\n String date = \"23 Zek 2010\";\n DateLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n }",
"class_method_signature": "DateLocaleTest.testBadMonth2()",
"constru... | {
"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_224 | {
"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 testGetStr() {\n function.getStr(null);\n }",
"class_method_signature": "ByteFunctionTest.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/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_29 | {
"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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "LongFunctionTest.testGetPosition()",
"constructor": false,
"full_signature": "@Test public void testGetPosition()",
"identifier": "testGetPosition",
"invocation... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public int getPosition() {\n return position;\n }",
"class_method_signature": "LongFunction.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_336 | {
"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 testNodeTraversal23() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n ExpressionNode arg1 = createNode(LITERAL, \"BOO\", null, null);\n ExpressionNode arg2 = createNode(LITERAL, \"BOO\", null, null);\n E... | {
"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_273 | {
"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 testGetBool() {\n function.getBool(null);\n }",
"class_method_signature": "DateFunctionTest.testGetBool()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.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_623 | {
"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 testParseExplicitFloat() throws Exception {\n Assert.assertEquals(12345.02f, Numbers.parseFloat(\"12345.02f\"), 0.0001f);\n }",
"class_method_signature": "NumbersTest.testParseExplicitFloat()",
"constructor": false,
"full_signature": "@Test public void testParseExplic... | {
"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_459 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cutlass/line/LineProtoMinuteTimestampAdapterTest.java",
"identifier": "LineProtoMinuteTimestampAdapterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRounding() throws NumericException {\n Assert.assertEquals(340740000000L, LineProtoMinuteTimestampAdapter.INSTANCE.getMicros(\"5679\"));\n }",
"class_method_signature": "LineProtoMinuteTimestampAdapterTest.testRounding()",
"constructor": false,
"full_signature": "... | {
"fields": [
{
"declarator": "INSTANCE = new LineProtoMinuteTimestampAdapter()",
"modifier": "public static final",
"original_string": "public static final LineProtoMinuteTimestampAdapter INSTANCE = new LineProtoMinuteTimestampAdapter();",
"type": "LineProtoMinuteTimestampAdapter",
... | {
"body": "@Override\n public long getMicros(CharSequence value) throws NumericException {\n return Numbers.parseLong(value) * Timestamps.MINUTE_MICROS;\n }",
"class_method_signature": "LineProtoMinuteTimestampAdapter.getMicros(CharSequence value)",
"constructor": false,
"full_signature": "@Overrid... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_9 | {
"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 testGetInt() {\n function.getInt(null);\n }",
"class_method_signature": "StrFunctionTest.testGetInt()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetIn... | {
"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 int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.getInt(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getInt(Record rec)",
"identifier": "getInt",
"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_320 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/engine/functions/constants/TimestampConstantTest.java",
"identifier": "TimestampConstantTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstant() {\n TimestampConstant constant = new TimestampConstant(0, 909120909900L);\n Assert.assertTrue(constant.isConstant());\n Assert.assertEquals(909120909900L, constant.getTimestamp(null));\n }",
"class_method_signature": "TimestampConstantTest.tes... | {
"fields": [
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final long value;",
"type": "long",
"var_name": "value"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/constants/TimestampConstant.java",
"identifier": "Tim... | {
"body": "@Override\n public long getTimestamp(Record rec) {\n return value;\n }",
"class_method_signature": "TimestampConstant.getTimestamp(Record rec)",
"constructor": false,
"full_signature": "@Override public long getTimestamp(Record rec)",
"identifier": "getTimestamp",
"invocations": [],
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_635 | {
"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 testParseLongEmpty() throws Exception {\n Numbers.parseLong(\"\");\n }",
"class_method_signature": "NumbersTest.testParseLongEmpty()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) public void test... | {
"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_265 | {
"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 testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "ShortFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public voi... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStrLen"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_87 | {
"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 testGetMetadata() {\n function.getMetadata();\n }",
"class_method_signature": "IntFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public voi... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invocatio... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_68 | {
"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 testGetDate() {\n function.getDate(null);\n }",
"class_method_signature": "CharFunctionTest.testGetDate()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getDate(Record rec)",
"identifier": "getDate",
"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_377 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testNamedBindVariableInWhere() throws Exception {\n assertMemoryLeak(() -> {\n\n final CairoConfiguration configuration = new DefaultCairoConfiguration(root);\n try (\n CairoEngine engine = new CairoEngine(configuration);\n ... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_232 | {
"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 testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "ByteFunctionTest.testLong256B()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.getLong256B(Record rec)",
"constructor": false,
"full_signature": "@Override public final Long256 getLong256B(Record rec)",
"identifier"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_662 | {
"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 testRoundUp() throws Exception {\n Assert.assertEquals(-0.2345678098023, Numbers.roundUp(-0.234567809802242442424242423122388, 13), 1E-14);\n Assert.assertEquals(0.2345678098023, Numbers.roundUp(0.234567809802242442424242423122388, 13), 1E-14);\n\n Rnd rnd = new ... | {
"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 roundUp(double value, int scale) throws NumericException {\n if (scale < pow10max && scale > -pow10max) {\n return roundUp0(value, scale);\n }\n throw NumericException.INSTANCE;\n }",
"class_method_signature": "Numbers.roundUp(double value, int scal... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.