id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
19257422_261 | {
"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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }",
"class_method_signature": "ShortFunctionTest.testGetRecordCursorFactory()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedO... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.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_324 | {
"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 testNodeTraversal12() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.rhs = FACTORY.newInstance();\n n1.rhs.type = LITERAL;\n n1.... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_148 | {
"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 testGetInt() {\n Assert.assertEquals(1, functionA.getInt(null));\n Assert.assertEquals(0, functionB.getInt(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetInt()",
"constructor": false,
"full_signature": "@Test public void testGetInt()",
"i... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public final int getInt(Record rec) {\n return getBool(rec) ? 0 : 1;\n }",
"class_method_signature": "BooleanFunction.getInt(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getInt(Record rec)",
"identifier": "getInt",
"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_518 | {
"fields": [
{
"declarator": "CONFIGURATION",
"modifier": "private static final",
"original_string": "private static final DefaultCairoConfiguration CONFIGURATION;",
"type": "DefaultCairoConfiguration",
"var_name": "CONFIGURATION"
}
],
"file": "core/src/test/java/io/questdb/... | {
"body": "@Test\n public void testClosedPoolLock() throws Exception {\n assertWithPool(pool -> {\n class X implements PoolListener {\n short ev = -1;\n\n @Override\n public void onEvent(byte factoryType, long thread, CharSequence name, short event, sh... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(WriterPool.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(WriterPool.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "ENTRY_OWNER = Un... | {
"body": "public boolean lock(CharSequence tableName) {\n\n checkClosed();\n\n long thread = Thread.currentThread().getId();\n\n Entry e = entries.get(tableName);\n if (e == null) {\n // We are racing to create new writer!\n e = new Entry(clock.getTicks());\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_277 | {
"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 testGetInt() {\n function.getInt(null);\n }",
"class_method_signature": "DateFunctionTest.testGetInt()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetI... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getInt(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getInt(Record rec)",
"identifier": "getInt",
"invocati... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_627 | {
"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 testParseIntEmpty() throws Exception {\n Numbers.parseInt(\"\");\n }",
"class_method_signature": "NumbersTest.testParseIntEmpty()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) public void testPar... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static int parseInt(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n\n return parseInt0(sequence, 0, sequence.length());\n }",
"class_method_signature": "Numbers.parseInt(CharSequence sequence)",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_332 | {
"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 testNodeTraversal2() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n n1.type = FUNCTION;\n n2.type = FUNCTION;\n assertTrue(GroupByUtils.compareNodes(n1, n2));\n }",
"class_method_signature": "Group... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_298 | {
"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 testGetDate() {\n function.getDate(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetDate()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void te... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getDate(Record rec)",
"identifier": "getDate",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_670 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/time/TimeZoneRulesImplTest.java",
"identifier": "TimeZoneRulesImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompatibility() {\n Set<String> allZones = ZoneId.getAvailableZoneIds();\n List<String> zoneList = new ArrayList<>(allZones);\n Collections.sort(zoneList);\n List<ZoneId> zones = new ArrayList<>(zoneList.size());\n List<TimeZoneRulesImpl> zoneRu... | {
"fields": [
{
"declarator": "SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTransitions\")",
"modifier": "public static final",
"original_string": "public static final long SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTr... | {
"body": "@Override\n public long getOffset(long millis, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && millis > cutoffTransition) {\n return fromRules(millis, year, leap);\n }\n\n i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_220 | {
"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 testGetDate() {\n function.getDate(null);\n }",
"class_method_signature": "ByteFunctionTest.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"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.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_365 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testLatestByKeyValueFilteredEmpty() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\",\n \"select * from x latest by b where b = 'PEHN' and a < 22 and 1 = 2 and test_match()\",\n \"create table x as \" +\... | {
"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_95 | {
"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 testGetSym() {\n function.getSymbol(null);\n }",
"class_method_signature": "IntFunctionTest.testGetSym()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.getSymbol(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getSymbol(Record rec)",
"identifi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_109 | {
"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 testGetMetadata() {\n function.getMetadata();\n }",
"class_method_signature": "SymbolFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invoca... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_559 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getStr2() {\n Assert.assertNull(NullColumn.INSTANCE.getStr2(1234));\n }",
"class_method_signature": "NullColumnTest.getStr2()",
"constructor": false,
"full_signature": "@Test public void getStr2()",
"identifier": "getStr2",
"invocations": [
"assertNull",
"... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public CharSequence getStr2(long offset) {\n return null;\n }",
"class_method_signature": "NullColumn.getStr2(long offset)",
"constructor": false,
"full_signature": "@Override public CharSequence getStr2(long offset)",
"identifier": "getStr2",
"invocations": [],
"modifi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_484 | {
"fields": [
{
"declarator": "PRODUCT = \"product\"",
"modifier": "public static final",
"original_string": "public static final String PRODUCT = \"product\";",
"type": "String",
"var_name": "PRODUCT"
},
{
"declarator": "FF = FilesFacadeImpl.INSTANCE",
"modifier"... | {
"body": "@Test\n // tests scenario where truncate is supported (linux) but fails on close\n // close is expected not to fail\n public void testCannotTruncateColumnOnClose() throws Exception {\n int N = 100000;\n create(FF, PartitionBy.NONE, N);\n testTruncateOnClose(new TestFilesFacade... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "public final void truncate() {\n\n if (size() == 0) {\n return;\n }\n\n writeTodo(TODO_TRUNCATE);\n for (int i = 0; i < columnCount; i++) {\n getPrimaryColumn(i).truncate();\n AppendMemory mem = getSecondaryColumn(i);\n if (mem != null... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_191 | {
"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 testGetInt() {\n function.getInt(null);\n }",
"class_method_signature": "BinFunctionTest.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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_312 | {
"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 testChar() {\n function.getChar(null);\n }",
"class_method_signature": "Long256FunctionTest.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/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public final char getChar(Record rec)",
"identifier": "getChar",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_257 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "ShortFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void test... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
"i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_607 | {
"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 testFormatDoubleExpNeg() {\n sink.clear();\n Numbers.append(sink, -8892.88001);\n TestUtils.assertEquals(\"-8892.88001\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleExpNeg()",
"constructor": false,
"full_signature": "@Test 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 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_129 | {
"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 testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "CursorFunctionTest.testLong256B()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "factory",
"modifier": "private final",
"original_string": "private final Record... | {
"body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CursorFunction.getLong256B(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256B(Record rec)",
"identifier": "getLong... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_579 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/GenericLexerTest.java",
"identifier": "GenericLexerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testUnparse() {\n GenericLexer ts = new GenericLexer(64);\n ts.defineSymbol(\"+\");\n ts.defineSymbol(\"++\");\n ts.defineSymbol(\"*\");\n ts.of(\"+*a+b++blah-\");\n\n Iterator<CharSequence> it = ts.iterator();\n\n while (it.hasNext())... | {
"fields": [
{
"declarator": "COMPARATOR = new LenComparator()",
"modifier": "public static final",
"original_string": "public static final LenComparator COMPARATOR = new LenComparator();",
"type": "LenComparator",
"var_name": "COMPARATOR"
},
{
"declarator": "WHITESPAC... | {
"body": "public void unparse() {\n unparsed = last;\n }",
"class_method_signature": "GenericLexer.unparse()",
"constructor": false,
"full_signature": "public void unparse()",
"identifier": "unparse",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "void",
"signatu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_596 | {
"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 testFormatDoubleZero() {\n sink.clear();\n Numbers.append(sink, 0d);\n TestUtils.assertEquals(\"0.0\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleZero()",
"constructor": false,
"full_signature": "@Test public void testFormatDoubl... | {
"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_715 | {
"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 testPreviousOrSameDow2() throws Exception {\n // thursday\n long micros = TimestampFormatUtils.parseDateTime(\"2017-04-06T00:00:00.000Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.previousOrSameDayOfWeek(micros, 6));\n TestUtils.assertEquals... | {
"fields": [
{
"declarator": "WEEK_MICROS = 604800000000L",
"modifier": "public static final",
"original_string": "public static final long WEEK_MICROS = 604800000000L;",
"type": "long",
"var_name": "WEEK_MICROS"
},
{
"declarator": "DAY_MICROS = 86400000000L",
"m... | {
"body": "public static long previousOrSameDayOfWeek(long micros, int dow) {\n int thisDow = getDayOfWeek(micros);\n if (thisDow == dow) {\n return micros;\n }\n\n if (thisDow < dow) {\n return micros - (7 + (thisDow - dow)) * DAY_MICROS;\n } else {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_345 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/engine/groupby/TimestampSamplerFactoryTest.java",
"identifier": "TimestampSamplerFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMinutes() throws NumericException, SqlException {\n StringSink sink = new StringSink();\n for (int k = 0; k < 61; k++) {\n sink.clear();\n if (k > 0) {\n sink.put(k).put('m');\n } else {\n sink.put('m');... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/TimestampSamplerFactory.java",
"identifier": "TimestampSamplerFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "TimestampSamplerFactory.getInstance(CharSequence cs, int position)",
"constructor": ... | {
"body": "public static TimestampSampler getInstance(CharSequence cs, int position) throws SqlException {\n int k = -1;\n\n if (cs == null) {\n throw SqlException.$(position, \"missing interval\");\n }\n\n final int len = cs.length();\n\n // look for end of digits\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_650 | {
"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 testParseLongSizeKb() throws Exception {\n Assert.assertEquals(5 * 1024L, Numbers.parseLongSize(\"5K\"));\n Assert.assertEquals(5 * 1024L, Numbers.parseLongSize(\"5k\"));\n }",
"class_method_signature": "NumbersTest.testParseLongSizeKb()",
"constructor": false,
... | {
"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_200 | {
"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 testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "BinFunctionTest.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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_580 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/OsTest.java",
"identifier": "OsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAffinity() throws Exception {\n Assert.assertEquals(0, Os.setCurrentThreadAffinity(0));\n\n AtomicInteger result = new AtomicInteger(-1);\n CountDownLatch threadHalt = new CountDownLatch(1);\n\n new Thread(() -> {\n result.set(Os.setCurrentT... | {
"fields": [
{
"declarator": "WINDOWS = 3",
"modifier": "public static final",
"original_string": "public static final int WINDOWS = 3;",
"type": "int",
"var_name": "WINDOWS"
},
{
"declarator": "_32Bit = -2",
"modifier": "public static final",
"original_str... | {
"body": "public static int setCurrentThreadAffinity(int cpu) {\n if (cpu == -1) {\n return 0;\n }\n return setCurrentThreadAffinity0(cpu);\n }",
"class_method_signature": "Os.setCurrentThreadAffinity(int cpu)",
"constructor": false,
"full_signature": "public static int setCu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_353 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testFilterAPI() throws Exception {\n TestMatchFunctionFactory.clear();\n // no index\n final String expected = \"a\\tb\\tk\\n\" +\n \"80.43224099968394\\tCPSW\\t1970-01-01T00:00:00.000000Z\\n\" +\n \"93.4460485739401\\tPEHN\\t1970-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_703 | {
"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 testCeilYYYY() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.ceilYYYY(micros));\n TestUtils.assertEquals(\"2008-12-31T23:59:59.999Z\", 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 ceilYYYY(long micros) {\n int y;\n boolean l;\n return yearMicros(y = getYear(micros), l = isLeapYear(y))\n + monthOfYearMicros(12, l)\n + (DAYS_PER_MONTH[11] - 1) * DAY_MICROS\n + 23 * HOUR_MICROS\n + 59 * ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_216 | {
"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 testChar() {\n function.getChar(null);\n }",
"class_method_signature": "ByteFunctionTest.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/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public final char getChar(Record rec)",
"identifier": "getChar",
"in... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_646 | {
"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 testParseIntSizeOverflowAtM() throws Exception {\n Numbers.parseIntSize(\"10240M\");\n }",
"class_method_signature": "NumbersTest.testParseIntSizeOverflowAtM()",
"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 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_168 | {
"fields": [
{
"declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }",
"modifier": "private static final",
"original_string": "private static final TimestampFunction function = new ... | {
"body": "@Test\n public void testGetNullDate() {\n final TimestampFunction function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return Numbers.LONG_NaN;\n }\n\n @Override\n public void init(Symbo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public final long getDate(Record rec) {\n final long value = getTimestamp(rec);\n return value == Numbers.LONG_NaN ? value : value / 1000L;\n }",
"class_method_signature": "TimestampFunction.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_492 | {
"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 testRemoveColumnCannotRemoveFiles() throws Exception {\n removeColumn(new TestFilesFacade() {\n int count = 0;\n\n @Override\n public boolean remove(LPSZ name) {\n if (Chars.endsWith(name, \"supplier.d\")) {\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "public 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_538 | {
"fields": [
{
"declarator": "reader = new BitmapIndexBwdNullReader()",
"modifier": "private static final",
"original_string": "private static final BitmapIndexBwdNullReader reader = new BitmapIndexBwdNullReader();",
"type": "BitmapIndexBwdNullReader",
"var_name": "reader"
}
]... | {
"body": "@Test\n public void testCursor() {\n final Rnd rnd = new Rnd();\n for (int i = 0; i < 10; i++) {\n int n = rnd.nextPositiveInt() % 1024;\n int m = n;\n RowCursor cursor = reader.getCursor(true, 0, 0, n);\n while (cursor.hasNext()) {\n ... | {
"fields": [
{
"declarator": "cursor = new NullCursor()",
"modifier": "private final",
"original_string": "private final NullCursor cursor = new NullCursor();",
"type": "NullCursor",
"var_name": "cursor"
}
],
"file": "core/src/main/java/io/questdb/cairo/BitmapIndexBwdNullRea... | {
"body": "@Override\n public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) {\n final NullCursor cursor = getCursor(cachedInstance);\n cursor.value = maxValue;\n return cursor;\n }",
"class_method_signature": "BitmapIndexBwdNullReader.getCursor(boolean... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_187 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "BinFunctionTest.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/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_304 | {
"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 testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }",
"class_method_signature": "Long256FunctionTest.testGetRecordCursorFactory()",
"constructor": false,
"full_signature": "@Test(expected = Unsupporte... | {
"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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getRecordCursorFactory()",
"constructor": false,
"full_signature": "@Override public final RecordCursorFactory getRecordCu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_611 | {
"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 testFormatDoubleSlowInteractive() {\n sink.clear();\n Numbers.append(sink, 1.1317400099603851e308);\n TestUtils.assertEquals(\"1.1317400099603851E308\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleSlowInteractive()",
"constructor": ... | {
"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_241 | {
"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\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "FloatFunctionTest.testGetPosition()",
"constructor": false,
"full_signature": "@Test public void testGetPosition()",
"identifier": "testGetPosition",
"invocatio... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public int getPosition() {\n return position;\n }",
"class_method_signature": "FloatFunction.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_406 | {
"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 testCompileSet() throws Exception {\n String query = \"SET x = y\";\n TestUtils.assertMemoryLeak(() -> {\n try {\n Assert.assertEquals(SET, compiler.compile(query, sqlExecutionContext).getType());\n } finally {\n engin... | {
"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": "private CompiledQuery compileSet(SqlExecutionContext executionContext) {\n return compiledQuery.ofSet();\n }",
"class_method_signature": "SqlCompiler.compileSet(SqlExecutionContext executionContext)",
"constructor": false,
"full_signature": "private CompiledQuery compileSet(SqlExecutionCont... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_60 | {
"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 testGetTimestamp() {\n function.getTimestamp(null);\n }",
"class_method_signature": "DoubleFunctionTest.testGetTimestamp()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public final long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.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_113 | {
"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 testGetStr() {\n Assert.assertEquals(\"XYZ\", function.getStr(null));\n }",
"class_method_signature": "SymbolFunctionTest.testGetStr()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationExcep... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getStr(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStr(Record rec)",
"identifier": "... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_543 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/map/CompactMapTest.java",
"identifier": "CompactMapTest",
"interfaces": "",
"superclass": "extends AbstractCairoTest"
} | {
"body": "@Test\n public void testKeyLookup() {\n // tweak capacity in such a way that we only have one spare slot before resize is needed\n // this way algo that shuffles \"foreign\" slots away should face problems\n double loadFactor = 0.9;\n try (CompactMap map = new CompactMap(\n ... | {
"fields": [
{
"declarator": "BITS_DIRECT_HIT = (byte) 0b10000000",
"modifier": "public static final",
"original_string": "public static final byte BITS_DIRECT_HIT = (byte) 0b10000000;",
"type": "byte",
"var_name": "BITS_DIRECT_HIT"
},
{
"declarator": "BITS_DISTANCE = ... | {
"body": "@Override\n public MapKey withKey() {\n currentEntryOffset = currentEntryOffset + currentEntrySize;\n entries.jumpTo(currentEntryOffset + columnOffsets[valueColumnCount]);\n\n // each entry cell is 8-byte value, which either holds cell value\n // or reference, relative to ent... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_390 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantFloat() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjLis... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_685 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java",
"identifier": "TimestampLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLongMonth() throws Exception {\n String date = \"23 December 2010\";\n long result = TimestampLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n Assert.assertEquals(8, Numbers.decodeHighInt(result));\n Assert.assertEquals... | {
"fields": [
{
"declarator": "months = new IntObjHashMap<>()",
"modifier": "private final",
"original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();",
"type": "IntObjHashMap<ObjList<CharSequence>>",
"var_name": "months"
},
{
... | {
"body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }",
"class_method_signature": "TimestampLocale.matchMonth(CharSequence content, int lo, int hi)",
"constructor": false,
"full_signature": "public long matchM... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_37 | {
"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 testGetTimestamp() {\n Assert.assertEquals(149, function.getTimestamp(null));\n }",
"class_method_signature": "LongFunctionTest.testGetTimestamp()",
"constructor": false,
"full_signature": "@Test public void testGetTimestamp()",
"identifier": "testGetTimestamp",
"... | {
"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 long getTimestamp(Record rec) {\n return getLong(rec);\n }",
"class_method_signature": "LongFunction.getTimestamp(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getTimestamp(Record rec)",
"identifier": "getTimestamp",
"invo... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_451 | {
"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 testPreparedStatementParams() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(\... | {
"fields": [
{
"declarator": "PG_VARCHAR = 1043",
"modifier": "public static final",
"original_string": "public static final int PG_VARCHAR = 1043;",
"type": "int",
"var_name": "PG_VARCHAR"
},
{
"declarator": "PG_TIMESTAMP = 1114",
"modifier": "public static fina... | {
"body": "@Override\n public void close() {\n Misc.free(compiler);\n }",
"class_method_signature": "PGJobContext.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"free"
],
"modifiers": "@Override public",
"para... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_514 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "otherPath = new Path()",
"modifier": "private final sta... | {
"body": "@Test\n public void testRenameNonExisting() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n\n try (TableModel model = new TableModel(configuration, \"z\", PartitionBy.NONE)\n .col(\"a\", ColumnType.INT)) {\n CairoTestUtils.create(model);\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(CairoEngine.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(CairoEngine.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "writerPool",
... | {
"body": "public void rename(\n CairoSecurityContext securityContext,\n Path path,\n CharSequence tableName,\n Path otherPath,\n CharSequence newName\n ) {\n securityContext.checkWritePermission();\n if (lock(securityContext, tableName)) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_144 | {
"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 testGetByte() {\n Assert.assertEquals(1, functionA.getByte(null));\n Assert.assertEquals(0, functionB.getByte(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test public void testGetByte()",... | {
"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 byte getByte(Record rec) {\n return (byte) (getBool(rec) ? 0 : 1);\n }",
"class_method_signature": "BooleanFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
"invo... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_328 | {
"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 testNodeTraversal16() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.lhs = FACTORY.newInstance();\n n1.lhs.type = LITERAL;\n n1.... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_1 | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(LongChainTest.class)",
"modifier": "@SuppressWarnings(\"unused\")\n private static final",
"original_string": "@SuppressWarnings(\"unused\")\n private static final Log LOG = LogFactory.getLog(LongChainTest.class);",
"type": "Log"... | {
"body": "@Test\n public void testAll() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n try (LongChain chain = new LongChain(1024 * 1024, Integer.MAX_VALUE)) {\n final int N = 1000;\n final int nChains = 10;\n final Rnd rnd = new Rnd();\n ... | {
"fields": [
{
"declarator": "valueChain",
"modifier": "private final",
"original_string": "private final ContiguousVirtualMemory valueChain;",
"type": "ContiguousVirtualMemory",
"var_name": "valueChain"
},
{
"declarator": "cursor",
"modifier": "private final",
... | {
"body": "public TreeCursor getCursor(long tailOffset) {\n cursor.of(tailOffset);\n return cursor;\n }",
"class_method_signature": "LongChain.getCursor(long tailOffset)",
"constructor": false,
"full_signature": "public TreeCursor getCursor(long tailOffset)",
"identifier": "getCursor",
"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_282 | {
"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 testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "DateFunctionTest.testGetShort()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void te... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.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_447 | {
"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 testDDL() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\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_21 | {
"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 testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "StrFunctionTest.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/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public final Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.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_152 | {
"fields": [
{
"declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetRecordCursorFactory() {\n functionA.getRecordCursorFactory();\n }",
"class_method_signature": "BooleanFunctionTest.testGetRecordCursorFactory()",
"constructor": false,
"full_signature": "@Test(expected = Unsupport... | {
"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 RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BooleanFunction.getRecordCursorFactory()",
"constructor": false,
"full_signature": "@Override public final RecordCursorFactory getRecordCu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_502 | {
"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 testOver2GFile() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n try (TableModel model = new TableModel(configuration, \"x\", PartitionBy.NONE)\n .col(\"a\", ColumnType.INT)) {\n CairoTestUtils.create(model);\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_294 | {
"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 testGetBin() {\n function.getBin(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetBin()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getBin(Record rec)",
"constructor": false,
"full_signature": "@Override public final BinarySequence getBin(Record rec)",
"identifie... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_76 | {
"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 testGetSym() {\n function.getSymbol(null);\n }",
"class_method_signature": "CharFunctionTest.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"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.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_410 | {
"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 testDuplicateTableName() throws Exception {\n compiler.compile(\n \"create table x (\" +\n \"a INT, \" +\n \"b BYTE, \" +\n \"t TIMESTAMP, \" +\n \"y BOOLEAN) \" +\n ... | {
"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_555 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getInt() {\n Assert.assertEquals(Numbers.INT_NaN, NullColumn.INSTANCE.getInt(1234));\n }",
"class_method_signature": "NullColumnTest.getInt()",
"constructor": false,
"full_signature": "@Test public void getInt()",
"identifier": "getInt",
"invocations": [
"asse... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public int getInt(long offset) {\n return Numbers.INT_NaN;\n }",
"class_method_signature": "NullColumn.getInt(long offset)",
"constructor": false,
"full_signature": "@Override public int getInt(long offset)",
"identifier": "getInt",
"invocations": [],
"modifiers": "@Ove... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_105 | {
"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 testGetDate() {\n function.getDate(null);\n }",
"class_method_signature": "SymbolFunctionTest.testGetDate()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final long getDate(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getDate(Record rec)",
"identifier": "getDate",
"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_99 | {
"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 testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "IntFunctionTest.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/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.getLong256B(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256B(Record rec)",
"identifier": "getLong256... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_386 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantBoolean() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjL... | {
"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_369 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testLatestByMissingKeyValueFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(null,\n \"select * from x latest by b where b in ('XYZ') and a < 60 and test_match()\",\n \"create table x as \" +\n ... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_693 | {
"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 testAddDaysPrevEpoch() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"1888-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.addDays(micros, 24));\n TestUtils.assertEquals(\"1888-06-05T23:45:51.045Z\", sink);\... | {
"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 addDays(long micros, int days) {\n return micros + days * DAY_MICROS;\n }",
"class_method_signature": "Timestamps.addDays(long micros, int days)",
"constructor": false,
"full_signature": "public static long addDays(long micros, int days)",
"identifier": "addDays",
"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_387 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantByte() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjList... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_368 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testLatestByKeyValuesIndexedFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"23.90529010846525\\tRXGZ\\t1970-01-03T07:33:20.000000Z\\n\" +\n \"97.71103146051203\\tHYRX\\t... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_692 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/microtime/TimeZoneRulesImplTest.java",
"identifier": "TimeZoneRulesImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSingle() {\n ZoneId zone = ZoneId.of(\"GMT\");\n TimeZoneRulesImpl rules = new TimeZoneRulesImpl(zone.getRules());\n\n int y = 2017;\n int m = 3;\n int d = 29;\n\n LocalDateTime dt = LocalDateTime.of(y, m, d, 0, 0);\n long millis =... | {
"fields": [
{
"declarator": "SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTransitions\")",
"modifier": "public static final",
"original_string": "public static final long SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTr... | {
"body": "@Override\n public long getOffset(long micros, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && micros > cutoffTransition) {\n return fromRules(micros, year, leap);\n }\n\n i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_77 | {
"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 testTimestamp() {\n function.getTimestamp(null);\n }",
"class_method_signature": "CharFunctionTest.testTimestamp()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.getTimestamp(Record rec)",
"constructor": false,
"full_signature": "@Override public long getTimestamp(Record rec)",
"identifier": "getTimestamp... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_411 | {
"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 testEmptyQuery() {\n try {\n compiler.compile(\" \", sqlExecutionContext);\n } catch (SqlException e) {\n Assert.assertEquals(0, e.getPosition());\n TestUtils.assertContains(e.getFlyweightMessage(), \"empty query\"... | {
"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_554 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getFloat() {\n Assert.assertTrue(Float.isNaN(NullColumn.INSTANCE.getFloat(123)));\n }",
"class_method_signature": "NullColumnTest.getFloat()",
"constructor": false,
"full_signature": "@Test public void getFloat()",
"identifier": "getFloat",
"invocations": [
"a... | {
"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 float getFloat(long offset) {\n return Float.NaN;\n }",
"class_method_signature": "NullColumn.getFloat(long offset)",
"constructor": false,
"full_signature": "@Override public float getFloat(long offset)",
"identifier": "getFloat",
"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_104 | {
"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 testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "SymbolFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void tes... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_98 | {
"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 testLong256A() {\n function.getLong256A(null);\n }",
"class_method_signature": "IntFunctionTest.testLong256A()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.getLong256A(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256A(Record rec)",
"identifier": "getLong256... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_295 | {
"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 testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"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_446 | {
"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 testBlobOverLimit() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(NetworkFaca... | {
"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_20 | {
"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 testLong256A() {\n function.getLong256A(null);\n }",
"class_method_signature": "StrFunctionTest.testLong256A()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public final Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.getLong256A(Record rec)",
"constructor": false,
"full_signature": "@Override public final Long256 getLong256A(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_153 | {
"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 testGetShort() {\n Assert.assertEquals(1, functionA.getShort(null));\n Assert.assertEquals(0, functionB.getShort(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetShort()",
"constructor": false,
"full_signature": "@Test public void testGetShor... | {
"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 short getShort(Record rec) {\n return (short) (getBool(rec) ? 0 : 1);\n }",
"class_method_signature": "BooleanFunction.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_503 | {
"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 testReadEmptyTable() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n CairoTestUtils.createAllTable(configuration, PartitionBy.NONE);\n try (TableWriter ignored1 = new TableWriter(configuration, \"all\")) {\n\n // open another writ... | {
"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_329 | {
"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 testNodeTraversal17() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.args.add(FACTORY.newInstance());\n //\n n2.type = FUNCTION;... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_0 | {
"fields": [
{
"declarator": "a = new LongList()",
"modifier": "private final",
"original_string": "private final LongList a = new LongList();",
"type": "LongList",
"var_name": "a"
},
{
"declarator": "b = new LongList()",
"modifier": "private final",
"origi... | {
"body": "@Test\n public void testInvert() throws SqlException {\n final String intervalStr = \"2018-01-10T10:30:00.000Z;30m;2d;2\";\n LongList out = new LongList();\n IntrinsicModel.parseIntervalEx(intervalStr, 0, intervalStr.length(), 0, out);\n IntrinsicModel.invert(out);\n T... | {
"fields": [
{
"declarator": "FACTORY = IntrinsicModel::new",
"modifier": "public static final",
"original_string": "public static final ObjectFactory<IntrinsicModel> FACTORY = IntrinsicModel::new;",
"type": "ObjectFactory<IntrinsicModel>",
"var_name": "FACTORY"
},
{
"... | {
"body": "static void invert(LongList intervals) {\n long last = Long.MIN_VALUE;\n int n = intervals.size();\n for (int i = 0; i < n; i += 2) {\n final long lo = intervals.getQuick(i);\n final long hi = intervals.getQuick(i + 1);\n intervals.setQuick(i, last);\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_283 | {
"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 testGetStr() {\n function.getStr(null);\n }",
"class_method_signature": "DateFunctionTest.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/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getStr(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStr(Record rec)",
"identifier": "ge... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_36 | {
"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 testGetSym() {\n function.getSymbol(null);\n }",
"class_method_signature": "LongFunctionTest.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/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public final CharSequence getSymbol(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.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_450 | {
"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 testMultiplePreparedStatements() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServe... | {
"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_515 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "otherPath = new Path()",
"modifier": "private final sta... | {
"body": "@Test\n public void testRenameToExistingTarget() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n\n createX();\n createY();\n\n try (CairoEngine engine = new CairoEngine(configuration)) {\n assertWriter(engine, \"x\");\n asse... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(CairoEngine.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(CairoEngine.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "writerPool",
... | {
"body": "public void rename(\n CairoSecurityContext securityContext,\n Path path,\n CharSequence tableName,\n Path otherPath,\n CharSequence newName\n ) {\n securityContext.checkWritePermission();\n if (lock(securityContext, tableName)) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_145 | {
"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 testGetDate() {\n Assert.assertEquals(1, functionA.getDate(null));\n Assert.assertEquals(0, functionB.getDate(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetDate()",
"constructor": false,
"full_signature": "@Test public void testGetDate()",... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public final long getDate(Record rec) {\n return getBool(rec) ? 0 : 1;\n }",
"class_method_signature": "BooleanFunction.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getDate(Record rec)",
"identifier": "getDate",
"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_391 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantInt() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjList<... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_684 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java",
"identifier": "TimestampLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NumericException.class)\n public void testBadMonth2() throws Exception {\n String date = \"23 Zek 2010\";\n TimestampLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 3, date.length());\n }",
"class_method_signature": "TimestampLocaleTest.testBadMonth2()",
... | {
"fields": [
{
"declarator": "months = new IntObjHashMap<>()",
"modifier": "private final",
"original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();",
"type": "IntObjHashMap<ObjList<CharSequence>>",
"var_name": "months"
},
{
... | {
"body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }",
"class_method_signature": "TimestampLocale.matchMonth(CharSequence content, int lo, int hi)",
"constructor": false,
"full_signature": "public long matchM... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_407 | {
"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 testCreateAsSelectIOError() throws Exception {\n\n TestUtils.assertMemoryLeak(new TestUtils.LeakProneCode() {\n @Override\n public void run() {\n String sql = \"create table y as (\" +\n \"select rnd_symbol(4,4,4,2) a... | {
"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_61 | {
"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 testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "DoubleFunctionTest.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/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.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_112 | {
"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 testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "SymbolFunctionTest.testGetShort()",
"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/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.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_542 | {
"fields": [
{
"declarator": "reader = new BitmapIndexFwdNullReader()",
"modifier": "private static final",
"original_string": "private static final BitmapIndexFwdNullReader reader = new BitmapIndexFwdNullReader();",
"type": "BitmapIndexFwdNullReader",
"var_name": "reader"
}
]... | {
"body": "@Test\n public void testKeyCount() {\n // has to be always 1\n Assert.assertEquals(1, reader.getKeyCount());\n }",
"class_method_signature": "BitmapIndexFwdNullReaderTest.testKeyCount()",
"constructor": false,
"full_signature": "@Test public void testKeyCount()",
"identifier": "... | {
"fields": [
{
"declarator": "cursor = new NullCursor()",
"modifier": "private final",
"original_string": "private final NullCursor cursor = new NullCursor();",
"type": "NullCursor",
"var_name": "cursor"
}
],
"file": "core/src/main/java/io/questdb/cairo/BitmapIndexFwdNullRea... | {
"body": "@Override\n public int getKeyCount() {\n return 1;\n }",
"class_method_signature": "BitmapIndexFwdNullReader.getKeyCount()",
"constructor": false,
"full_signature": "@Override public int getKeyCount()",
"identifier": "getKeyCount",
"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_305 | {
"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 testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetShort()",
"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 short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getShort(Record rec)",
"constructor": false,
"full_signature": "@Override public final short getShort(Record rec)",
"identifier": "getShor... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_610 | {
"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 testFormatDoubleFastInteractive() {\n sink.clear();\n Numbers.append(sink, 0.872989018674569);\n TestUtils.assertEquals(\"0.872989018674569\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleFastInteractive()",
"constructor": false,
"... | {
"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_240 | {
"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 testGetMetadata() {\n function.getMetadata();\n }",
"class_method_signature": "FloatFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invocat... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_169 | {
"fields": [
{
"declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }",
"modifier": "private static final",
"original_string": "private static final TimestampFunction function = new ... | {
"body": "@Test\n public void testGetDouble() {\n Assert.assertEquals(145000, function.getDouble(null), 0.1);\n }",
"class_method_signature": "TimestampFunctionTest.testGetDouble()",
"constructor": false,
"full_signature": "@Test public void testGetDouble()",
"identifier": "testGetDouble",
"in... | {
"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 double getDouble(Record rec) {\n return Numbers.longToDouble(getTimestamp(rec));\n }",
"class_method_signature": "TimestampFunction.getDouble(Record rec)",
"constructor": false,
"full_signature": "@Override public final double getDouble(Record rec)",
"identifie... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_493 | {
"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 testRemoveColumnCannotRemoveFiles2() throws Exception {\n removeColumn(new TestFilesFacade() {\n int count = 0;\n\n @Override\n public boolean remove(LPSZ name) {\n if (Chars.endsWith(name, \"supplier.k\")) {\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "public 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_539 | {
"fields": [
{
"declarator": "reader = new BitmapIndexBwdNullReader()",
"modifier": "private static final",
"original_string": "private static final BitmapIndexBwdNullReader reader = new BitmapIndexBwdNullReader();",
"type": "BitmapIndexBwdNullReader",
"var_name": "reader"
}
]... | {
"body": "@Test\n public void testKeyCount() {\n // has to be always 1\n Assert.assertEquals(1, reader.getKeyCount());\n }",
"class_method_signature": "BitmapIndexBwdNullReaderTest.testKeyCount()",
"constructor": false,
"full_signature": "@Test public void testKeyCount()",
"identifier": "... | {
"fields": [
{
"declarator": "cursor = new NullCursor()",
"modifier": "private final",
"original_string": "private final NullCursor cursor = new NullCursor();",
"type": "NullCursor",
"var_name": "cursor"
}
],
"file": "core/src/main/java/io/questdb/cairo/BitmapIndexBwdNullRea... | {
"body": "@Override\n public int getKeyCount() {\n return 1;\n }",
"class_method_signature": "BitmapIndexBwdNullReader.getKeyCount()",
"constructor": false,
"full_signature": "@Override public int getKeyCount()",
"identifier": "getKeyCount",
"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_186 | {
"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 testGetBool() {\n function.getBool(null);\n }",
"class_method_signature": "BinFunctionTest.testGetBool()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.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_352 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testDynamicTimestamp() throws Exception {\n TestMatchFunctionFactory.clear();\n // no index\n final String expected = \"a\\tb\\tk\\n\" +\n \"21.583224269349387\\tYSBE\\t1970-01-07T22:40:00.000000Z\\n\";\n\n assertQuery(expected,\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_702 | {
"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 testCeilMM() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"2008-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.ceilMM(micros));\n TestUtils.assertEquals(\"2008-05-31T23:59:59.999Z\", sink);\n }",
"cla... | {
"fields": [
{
"declarator": "WEEK_MICROS = 604800000000L",
"modifier": "public static final",
"original_string": "public static final long WEEK_MICROS = 604800000000L;",
"type": "long",
"var_name": "WEEK_MICROS"
},
{
"declarator": "DAY_MICROS = 86400000000L",
"m... | {
"body": "public static long ceilMM(long micros) {\n int y, m;\n boolean l;\n return yearMicros(y = getYear(micros), l = isLeapYear(y))\n + monthOfYearMicros(m = getMonthOfYear(micros, y, l), l)\n + (getDaysPerMonth(m, l) - 1) * DAY_MICROS\n + 23 * HO... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_217 | {
"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 testGetBin() {\n function.getBin(null);\n }",
"class_method_signature": "ByteFunctionTest.testGetBin()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGetB... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final BinarySequence getBin(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.