id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
20473418_25 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDescendingOverflowCycle() throws SQLException {\n \tassertTrue(SequenceUtil.checkIfLimitReached(Long.MIN_VALUE, Long.MIN_VALUE, 0, -1/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testDescendingOverflowCycle()",
"constructor": false,
"full_signature": "@Test public void testDescendingOverflowCycle()",
"identifier": "testDescendingOverflowCycle",
"invocations": [
"assertTrue",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDescendingOverflowCycle()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_126 | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(TestIndexWriter.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TestIndexWriter.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "testName = new IndexTableName()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public IndexTableName testName = new IndexTableName();",
"type": "IndexTableName",
"var_name": "testName"
},
{
"declarator": "row = Bytes.toBytes(\"row\")",
"modifier": "private final",
"original_string": "private final byte[] row = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "row"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/write/TestIndexWriter.java",
"identifier": "TestIndexWriter",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getDefaultWriter() throws Exception {\n Configuration conf = new Configuration(false);\n RegionCoprocessorEnvironment env = Mockito.mock(RegionCoprocessorEnvironment.class);\n Mockito.when(env.getConfiguration()).thenReturn(conf);\n assertNotNull(IndexWriter.getCommitter(env));\n }",
"class_method_signature": "TestIndexWriter.getDefaultWriter()",
"constructor": false,
"full_signature": "@Test public void getDefaultWriter()",
"identifier": "getDefaultWriter",
"invocations": [
"mock",
"thenReturn",
"when",
"getConfiguration",
"assertNotNull",
"getCommitter"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void getDefaultWriter()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(IndexWriter.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(IndexWriter.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INDEX_COMMITTER_CONF_KEY = \"index.writer.commiter.class\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_COMMITTER_CONF_KEY = \"index.writer.commiter.class\";",
"type": "String",
"var_name": "INDEX_COMMITTER_CONF_KEY"
},
{
"declarator": "INDEX_FAILURE_POLICY_CONF_KEY = \"index.writer.failurepolicy.class\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_FAILURE_POLICY_CONF_KEY = \"index.writer.failurepolicy.class\";",
"type": "String",
"var_name": "INDEX_FAILURE_POLICY_CONF_KEY"
},
{
"declarator": "stopped = new AtomicBoolean(false)",
"modifier": "private",
"original_string": "private AtomicBoolean stopped = new AtomicBoolean(false);",
"type": "AtomicBoolean",
"var_name": "stopped"
},
{
"declarator": "writer",
"modifier": "private",
"original_string": "private IndexCommitter writer;",
"type": "IndexCommitter",
"var_name": "writer"
},
{
"declarator": "failurePolicy",
"modifier": "private",
"original_string": "private IndexFailurePolicy failurePolicy;",
"type": "IndexFailurePolicy",
"var_name": "failurePolicy"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java",
"identifier": "IndexWriter",
"interfaces": "implements Stoppable",
"methods": [
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, String name)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, String name)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, String name)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, String name)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getCommitter(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"identifier": "getCommitter",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexCommitter",
"signature": "IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"constructor": false,
"full_signature": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"identifier": "getCommitter",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"return": "IndexCommitter",
"signature": "IndexCommitter getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getFailurePolicy(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"identifier": "getFailurePolicy",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexFailurePolicy",
"signature": "IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"constructor": true,
"full_signature": "public IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"constructor": true,
"full_signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"identifier": "IndexWriter",
"modifiers": "",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"identifier": "writeAndHandleFailure",
"modifiers": "public",
"parameters": "(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"identifier": "writeAndHandleFailure",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"return": "void",
"signature": "void write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"constructor": false,
"full_signature": "protected Multimap<HTableInterfaceReference, Mutation> resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"identifier": "resolveTableReferences",
"modifiers": "protected",
"parameters": "(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"return": "Multimap<HTableInterfaceReference, Mutation>",
"signature": "Multimap<HTableInterfaceReference, Mutation> resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.stop(String why)",
"constructor": false,
"full_signature": "@Override public void stop(String why)",
"identifier": "stop",
"modifiers": "@Override public",
"parameters": "(String why)",
"return": "void",
"signature": "void stop(String why)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.isStopped()",
"constructor": false,
"full_signature": "@Override public boolean isStopped()",
"identifier": "isStopped",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isStopped()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env) throws IOException {\n return getCommitter(env,TrackingParallelWriterIndexCommitter.class);\n }",
"class_method_signature": "IndexWriter.getCommitter(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"identifier": "getCommitter",
"invocations": [
"getCommitter"
],
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexCommitter",
"signature": "IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_33 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBulkAllocationDescendingOverflowCycle() throws SQLException {\n assertTrue(SequenceUtil.checkIfLimitReached(Long.MIN_VALUE, Long.MIN_VALUE, 0, -1/* incrementBy */, CACHE_SIZE, 100));\n }",
"class_method_signature": "SequenceUtilTest.testBulkAllocationDescendingOverflowCycle()",
"constructor": false,
"full_signature": "@Test public void testBulkAllocationDescendingOverflowCycle()",
"identifier": "testBulkAllocationDescendingOverflowCycle",
"invocations": [
"assertTrue",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testBulkAllocationDescendingOverflowCycle()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_171 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/ValueBitSetTest.java",
"identifier": "ValueBitSetTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMinNullableIndex() {\n final int minNullableIndex = 4; // first 4 fields are not nullable.\n int numFields = 6;\n KeyValueSchemaBuilder builder = new KeyValueSchemaBuilder(minNullableIndex);\n for (int i = 0; i < numFields; i++) {\n final int fieldIndex = i;\n builder.addField(new PDatum() {\n @Override\n public boolean isNullable() {\n // not nullable till index reaches minNullableIndex\n return fieldIndex < minNullableIndex;\n }\n\n @Override\n public SortOrder getSortOrder() {\n return SortOrder.getDefault();\n }\n\n @Override\n public Integer getScale() {\n return null;\n }\n\n @Override\n public Integer getMaxLength() {\n return null;\n }\n\n @Override\n public PDataType getDataType() {\n return PDataType.values()[fieldIndex % PDataType.values().length];\n }\n });\n }\n KeyValueSchema kvSchema = builder.build();\n assertFalse(kvSchema.getFields().get(0).isNullable());\n assertFalse(kvSchema.getFields().get(minNullableIndex - 1).isNullable());\n assertTrue(kvSchema.getFields().get(minNullableIndex).isNullable());\n assertTrue(kvSchema.getFields().get(minNullableIndex + 1).isNullable());\n }",
"class_method_signature": "ValueBitSetTest.testMinNullableIndex()",
"constructor": false,
"full_signature": "@Test public void testMinNullableIndex()",
"identifier": "testMinNullableIndex",
"invocations": [
"addField",
"getDefault",
"values",
"values",
"build",
"assertFalse",
"isNullable",
"get",
"getFields",
"assertFalse",
"isNullable",
"get",
"getFields",
"assertTrue",
"isNullable",
"get",
"getFields",
"assertTrue",
"isNullable",
"get",
"getFields"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testMinNullableIndex()",
"testcase": true
} | {
"fields": [
{
"declarator": "EMPTY_VALUE_BITSET = new ValueBitSet()",
"modifier": "public final static",
"original_string": "public final static ValueBitSet EMPTY_VALUE_BITSET = new ValueBitSet();",
"type": "ValueBitSet",
"var_name": "EMPTY_VALUE_BITSET"
},
{
"declarator": "BITS_PER_LONG = 64",
"modifier": "private static final",
"original_string": "private static final int BITS_PER_LONG = 64;",
"type": "int",
"var_name": "BITS_PER_LONG"
},
{
"declarator": "BITS_PER_SHORT = 16",
"modifier": "private static final",
"original_string": "private static final int BITS_PER_SHORT = 16;",
"type": "int",
"var_name": "BITS_PER_SHORT"
},
{
"declarator": "bits",
"modifier": "private final",
"original_string": "private final long[] bits;",
"type": "long[]",
"var_name": "bits"
},
{
"declarator": "schema",
"modifier": "private final",
"original_string": "private final ValueSchema schema;",
"type": "ValueSchema",
"var_name": "schema"
},
{
"declarator": "maxSetBit = -1",
"modifier": "private",
"original_string": "private int maxSetBit = -1;",
"type": "int",
"var_name": "maxSetBit"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/ValueBitSet.java",
"identifier": "ValueBitSet",
"interfaces": "",
"methods": [
{
"class_method_signature": "ValueBitSet.newInstance(ValueSchema schema)",
"constructor": false,
"full_signature": "public static ValueBitSet newInstance(ValueSchema schema)",
"identifier": "newInstance",
"modifiers": "public static",
"parameters": "(ValueSchema schema)",
"return": "ValueBitSet",
"signature": "ValueBitSet newInstance(ValueSchema schema)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.ValueBitSet()",
"constructor": true,
"full_signature": "private ValueBitSet()",
"identifier": "ValueBitSet",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " ValueBitSet()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.ValueBitSet(ValueSchema schema)",
"constructor": true,
"full_signature": "private ValueBitSet(ValueSchema schema)",
"identifier": "ValueBitSet",
"modifiers": "private",
"parameters": "(ValueSchema schema)",
"return": "",
"signature": " ValueBitSet(ValueSchema schema)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.getMaxSetBit()",
"constructor": false,
"full_signature": "public int getMaxSetBit()",
"identifier": "getMaxSetBit",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getMaxSetBit()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.isVarLength()",
"constructor": false,
"full_signature": "private boolean isVarLength()",
"identifier": "isVarLength",
"modifiers": "private",
"parameters": "()",
"return": "boolean",
"signature": "boolean isVarLength()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.getNullCount(int nBit, int nFields)",
"constructor": false,
"full_signature": "public int getNullCount(int nBit, int nFields)",
"identifier": "getNullCount",
"modifiers": "public",
"parameters": "(int nBit, int nFields)",
"return": "int",
"signature": "int getNullCount(int nBit, int nFields)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.toBytes(byte[] b, int offset)",
"constructor": false,
"full_signature": "public int toBytes(byte[] b, int offset)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(byte[] b, int offset)",
"return": "int",
"signature": "int toBytes(byte[] b, int offset)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.clear()",
"constructor": false,
"full_signature": "public void clear()",
"identifier": "clear",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void clear()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.get(int nBit)",
"constructor": false,
"full_signature": "public boolean get(int nBit)",
"identifier": "get",
"modifiers": "public",
"parameters": "(int nBit)",
"return": "boolean",
"signature": "boolean get(int nBit)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.set(int nBit)",
"constructor": false,
"full_signature": "public void set(int nBit)",
"identifier": "set",
"modifiers": "public",
"parameters": "(int nBit)",
"return": "void",
"signature": "void set(int nBit)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.or(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public void or(ImmutableBytesWritable ptr)",
"identifier": "or",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "void",
"signature": "void or(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.or(ImmutableBytesWritable ptr, int length)",
"constructor": false,
"full_signature": "public void or(ImmutableBytesWritable ptr, int length)",
"identifier": "or",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, int length)",
"return": "void",
"signature": "void or(ImmutableBytesWritable ptr, int length)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.getEstimatedLength()",
"constructor": false,
"full_signature": "public int getEstimatedLength()",
"identifier": "getEstimatedLength",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getEstimatedLength()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.getSize(int nBits)",
"constructor": false,
"full_signature": "public static int getSize(int nBits)",
"identifier": "getSize",
"modifiers": "public static",
"parameters": "(int nBits)",
"return": "int",
"signature": "int getSize(int nBits)",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.getSize()",
"constructor": false,
"full_signature": "public int getSize()",
"identifier": "getSize",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getSize()",
"testcase": false
},
{
"class_method_signature": "ValueBitSet.or(ValueBitSet isSet)",
"constructor": false,
"full_signature": "public void or(ValueBitSet isSet)",
"identifier": "or",
"modifiers": "public",
"parameters": "(ValueBitSet isSet)",
"return": "void",
"signature": "void or(ValueBitSet isSet)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public boolean get(int nBit) {\n int lIndex = nBit / BITS_PER_LONG;\n int bIndex = nBit % BITS_PER_LONG;\n return (bits[lIndex] & (1L << bIndex)) != 0;\n }",
"class_method_signature": "ValueBitSet.get(int nBit)",
"constructor": false,
"full_signature": "public boolean get(int nBit)",
"identifier": "get",
"invocations": [],
"modifiers": "public",
"parameters": "(int nBit)",
"return": "boolean",
"signature": "boolean get(int nBit)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_64 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructParameterizedInClause() {\n assertEquals(\"((?,?,?),(?,?,?))\", QueryUtil.constructParameterizedInClause(3, 2));\n assertEquals(\"((?))\", QueryUtil.constructParameterizedInClause(1, 1));\n }",
"class_method_signature": "QueryUtilTest.testConstructParameterizedInClause()",
"constructor": false,
"full_signature": "@Test public void testConstructParameterizedInClause()",
"identifier": "testConstructParameterizedInClause",
"invocations": [
"assertEquals",
"constructParameterizedInClause",
"assertEquals",
"constructParameterizedInClause"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructParameterizedInClause()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructParameterizedInClause(int numWhereCols, int numBatches) {\n Preconditions.checkArgument(numWhereCols > 0);\n Preconditions.checkArgument(numBatches > 0);\n String batch = \"(\" + StringUtils.repeat(\"?\", \",\", numWhereCols) + \")\";\n return \"(\" + StringUtils.repeat(batch, \",\", numBatches) + \")\";\n }",
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"invocations": [
"checkArgument",
"checkArgument",
"repeat",
"repeat"
],
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_106 | {
"fields": [
{
"declarator": "PHOENIX_IO_EXCEPTION =\n new PhoenixIOException(new Exception(\"Test exception\"))",
"modifier": "private static final",
"original_string": "private static final PhoenixIOException PHOENIX_IO_EXCEPTION =\n new PhoenixIOException(new Exception(\"Test exception\"));",
"type": "PhoenixIOException",
"var_name": "PHOENIX_IO_EXCEPTION"
},
{
"declarator": "sysMutexTableDescCorrectTTL = TableDescriptorBuilder\n .newBuilder(TableName.valueOf(SYSTEM_MUTEX_NAME))\n .setColumnFamily(ColumnFamilyDescriptorBuilder\n .newBuilder(SYSTEM_MUTEX_FAMILY_NAME_BYTES)\n .setTimeToLive(TTL_FOR_MUTEX)\n .build())\n .build()",
"modifier": "private",
"original_string": "private TableDescriptor sysMutexTableDescCorrectTTL = TableDescriptorBuilder\n .newBuilder(TableName.valueOf(SYSTEM_MUTEX_NAME))\n .setColumnFamily(ColumnFamilyDescriptorBuilder\n .newBuilder(SYSTEM_MUTEX_FAMILY_NAME_BYTES)\n .setTimeToLive(TTL_FOR_MUTEX)\n .build())\n .build();",
"type": "TableDescriptor",
"var_name": "sysMutexTableDescCorrectTTL"
},
{
"declarator": "mockCqs",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ConnectionQueryServicesImpl mockCqs;",
"type": "ConnectionQueryServicesImpl",
"var_name": "mockCqs"
},
{
"declarator": "mockAdmin",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Admin mockAdmin;",
"type": "Admin",
"var_name": "mockAdmin"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java",
"identifier": "ConnectionQueryServicesImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSysMutexCheckReturnsFalseWhenTableAbsent() throws Exception {\n // Override the getDescriptor() call to throw instead\n doThrow(new TableNotFoundException())\n .when(mockAdmin)\n .getDescriptor(TableName.valueOf(SYSTEM_MUTEX_NAME));\n doThrow(new TableNotFoundException())\n .when(mockAdmin)\n .getDescriptor(TableName.valueOf(SYSTEM_SCHEMA_NAME, SYSTEM_MUTEX_TABLE_NAME));\n assertFalse(mockCqs.checkIfSysMutexExistsAndModifyTTLIfRequired(mockAdmin));\n }",
"class_method_signature": "ConnectionQueryServicesImplTest.testSysMutexCheckReturnsFalseWhenTableAbsent()",
"constructor": false,
"full_signature": "@Test public void testSysMutexCheckReturnsFalseWhenTableAbsent()",
"identifier": "testSysMutexCheckReturnsFalseWhenTableAbsent",
"invocations": [
"getDescriptor",
"when",
"doThrow",
"valueOf",
"getDescriptor",
"when",
"doThrow",
"valueOf",
"assertFalse",
"checkIfSysMutexExistsAndModifyTTLIfRequired"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testSysMutexCheckReturnsFalseWhenTableAbsent()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER =\n LoggerFactory.getLogger(ConnectionQueryServicesImpl.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(ConnectionQueryServicesImpl.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INITIAL_CHILD_SERVICES_CAPACITY = 100",
"modifier": "private static final",
"original_string": "private static final int INITIAL_CHILD_SERVICES_CAPACITY = 100;",
"type": "int",
"var_name": "INITIAL_CHILD_SERVICES_CAPACITY"
},
{
"declarator": "DEFAULT_OUT_OF_ORDER_MUTATIONS_WAIT_TIME_MS = 1000",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_OUT_OF_ORDER_MUTATIONS_WAIT_TIME_MS = 1000;",
"type": "int",
"var_name": "DEFAULT_OUT_OF_ORDER_MUTATIONS_WAIT_TIME_MS"
},
{
"declarator": "GUIDE_POSTS_CACHE_PROVIDER = new GuidePostsCacheProvider()",
"modifier": "private final",
"original_string": "private final GuidePostsCacheProvider\n GUIDE_POSTS_CACHE_PROVIDER = new GuidePostsCacheProvider();",
"type": "GuidePostsCacheProvider",
"var_name": "GUIDE_POSTS_CACHE_PROVIDER"
},
{
"declarator": "config",
"modifier": "protected final",
"original_string": "protected final Configuration config;",
"type": "Configuration",
"var_name": "config"
},
{
"declarator": "connectionInfo",
"modifier": "protected final",
"original_string": "protected final ConnectionInfo connectionInfo;",
"type": "ConnectionInfo",
"var_name": "connectionInfo"
},
{
"declarator": "props",
"modifier": "private final",
"original_string": "private final ReadOnlyProps props;",
"type": "ReadOnlyProps",
"var_name": "props"
},
{
"declarator": "userName",
"modifier": "private final",
"original_string": "private final String userName;",
"type": "String",
"var_name": "userName"
},
{
"declarator": "user",
"modifier": "private final",
"original_string": "private final User user;",
"type": "User",
"var_name": "user"
},
{
"declarator": "childServices",
"modifier": "private final",
"original_string": "private final ConcurrentHashMap<ImmutableBytesWritable,ConnectionQueryServices> childServices;",
"type": "ConcurrentHashMap<ImmutableBytesWritable,ConnectionQueryServices>",
"var_name": "childServices"
},
{
"declarator": "tableStatsCache",
"modifier": "private final",
"original_string": "private final GuidePostsCacheWrapper tableStatsCache;",
"type": "GuidePostsCacheWrapper",
"var_name": "tableStatsCache"
},
{
"declarator": "latestMetaData",
"modifier": "private volatile",
"original_string": "private volatile PMetaData latestMetaData;",
"type": "PMetaData",
"var_name": "latestMetaData"
},
{
"declarator": "latestMetaDataLock = new Object()",
"modifier": "private final",
"original_string": "private final Object latestMetaDataLock = new Object();",
"type": "Object",
"var_name": "latestMetaDataLock"
},
{
"declarator": "lowestClusterHBaseVersion = Integer.MAX_VALUE",
"modifier": "private",
"original_string": "private int lowestClusterHBaseVersion = Integer.MAX_VALUE;",
"type": "int",
"var_name": "lowestClusterHBaseVersion"
},
{
"declarator": "hasIndexWALCodec = true",
"modifier": "private",
"original_string": "private boolean hasIndexWALCodec = true;",
"type": "boolean",
"var_name": "hasIndexWALCodec"
},
{
"declarator": "connectionCount = 0",
"modifier": "@GuardedBy(\"connectionCountLock\")\n private",
"original_string": "@GuardedBy(\"connectionCountLock\")\n private int connectionCount = 0;",
"type": "int",
"var_name": "connectionCount"
},
{
"declarator": "connectionCountLock = new Object()",
"modifier": "private final",
"original_string": "private final Object connectionCountLock = new Object();",
"type": "Object",
"var_name": "connectionCountLock"
},
{
"declarator": "returnSequenceValues",
"modifier": "private final",
"original_string": "private final boolean returnSequenceValues ;",
"type": "boolean",
"var_name": "returnSequenceValues"
},
{
"declarator": "connection",
"modifier": "private",
"original_string": "private Connection connection;",
"type": "Connection",
"var_name": "connection"
},
{
"declarator": "initialized",
"modifier": "private volatile",
"original_string": "private volatile boolean initialized;",
"type": "boolean",
"var_name": "initialized"
},
{
"declarator": "nSequenceSaltBuckets",
"modifier": "private volatile",
"original_string": "private volatile int nSequenceSaltBuckets;",
"type": "int",
"var_name": "nSequenceSaltBuckets"
},
{
"declarator": "closed",
"modifier": "private volatile",
"original_string": "private volatile boolean closed;",
"type": "boolean",
"var_name": "closed"
},
{
"declarator": "initializationException",
"modifier": "private volatile",
"original_string": "private volatile SQLException initializationException;",
"type": "SQLException",
"var_name": "initializationException"
},
{
"declarator": "sequenceMap = Maps.newConcurrentMap()",
"modifier": "private volatile",
"original_string": "private volatile ConcurrentMap<SequenceKey,Sequence> sequenceMap = Maps.newConcurrentMap();",
"type": "ConcurrentMap<SequenceKey,Sequence>",
"var_name": "sequenceMap"
},
{
"declarator": "kvBuilder",
"modifier": "private",
"original_string": "private KeyValueBuilder kvBuilder;",
"type": "KeyValueBuilder",
"var_name": "kvBuilder"
},
{
"declarator": "renewLeaseTaskFrequency",
"modifier": "private final",
"original_string": "private final int renewLeaseTaskFrequency;",
"type": "int",
"var_name": "renewLeaseTaskFrequency"
},
{
"declarator": "renewLeasePoolSize",
"modifier": "private final",
"original_string": "private final int renewLeasePoolSize;",
"type": "int",
"var_name": "renewLeasePoolSize"
},
{
"declarator": "renewLeaseThreshold",
"modifier": "private final",
"original_string": "private final int renewLeaseThreshold;",
"type": "int",
"var_name": "renewLeaseThreshold"
},
{
"declarator": "connectionQueues",
"modifier": "private final",
"original_string": "private final List<LinkedBlockingQueue<WeakReference<PhoenixConnection>>> connectionQueues;",
"type": "List<LinkedBlockingQueue<WeakReference<PhoenixConnection>>>",
"var_name": "connectionQueues"
},
{
"declarator": "renewLeaseExecutor",
"modifier": "private",
"original_string": "private ScheduledExecutorService renewLeaseExecutor;",
"type": "ScheduledExecutorService",
"var_name": "renewLeaseExecutor"
},
{
"declarator": "txClients = new PhoenixTransactionClient[TransactionFactory.Provider.values().length]",
"modifier": "private",
"original_string": "private PhoenixTransactionClient[] txClients = new PhoenixTransactionClient[TransactionFactory.Provider.values().length];",
"type": "PhoenixTransactionClient[]",
"var_name": "txClients"
},
{
"declarator": "renewLeaseThreadFactory = new RenewLeaseThreadFactory()",
"modifier": "private static final",
"original_string": "private static final ThreadFactory renewLeaseThreadFactory = new RenewLeaseThreadFactory();",
"type": "ThreadFactory",
"var_name": "renewLeaseThreadFactory"
},
{
"declarator": "renewLeaseEnabled",
"modifier": "private final",
"original_string": "private final boolean renewLeaseEnabled;",
"type": "boolean",
"var_name": "renewLeaseEnabled"
},
{
"declarator": "isAutoUpgradeEnabled",
"modifier": "private final",
"original_string": "private final boolean isAutoUpgradeEnabled;",
"type": "boolean",
"var_name": "isAutoUpgradeEnabled"
},
{
"declarator": "upgradeRequired = new AtomicBoolean(false)",
"modifier": "private final",
"original_string": "private final AtomicBoolean upgradeRequired = new AtomicBoolean(false);",
"type": "AtomicBoolean",
"var_name": "upgradeRequired"
},
{
"declarator": "maxConnectionsAllowed",
"modifier": "private final",
"original_string": "private final int maxConnectionsAllowed;",
"type": "int",
"var_name": "maxConnectionsAllowed"
},
{
"declarator": "shouldThrottleNumConnections",
"modifier": "private final",
"original_string": "private final boolean shouldThrottleNumConnections;",
"type": "boolean",
"var_name": "shouldThrottleNumConnections"
},
{
"declarator": "MUTEX_LOCKED = \"MUTEX_LOCKED\".getBytes()",
"modifier": "public static final",
"original_string": "public static final byte[] MUTEX_LOCKED = \"MUTEX_LOCKED\".getBytes();",
"type": "byte[]",
"var_name": "MUTEX_LOCKED"
},
{
"declarator": "featureMap = ImmutableMap.<Feature, FeatureSupported>of(\n Feature.LOCAL_INDEX, new FeatureSupported() {\n @Override\n public boolean isSupported(ConnectionQueryServices services) {\n int hbaseVersion = services.getLowestClusterHBaseVersion();\n return hbaseVersion < MetaDataProtocol.MIN_LOCAL_SI_VERSION_DISALLOW || hbaseVersion > MetaDataProtocol.MAX_LOCAL_SI_VERSION_DISALLOW;\n }\n },\n Feature.RENEW_LEASE, new FeatureSupported() {\n @Override\n public boolean isSupported(ConnectionQueryServices services) {\n int hbaseVersion = services.getLowestClusterHBaseVersion();\n return hbaseVersion >= MetaDataProtocol.MIN_RENEW_LEASE_VERSION;\n }\n })",
"modifier": "private final",
"original_string": "private final Map<Feature, FeatureSupported> featureMap = ImmutableMap.<Feature, FeatureSupported>of(\n Feature.LOCAL_INDEX, new FeatureSupported() {\n @Override\n public boolean isSupported(ConnectionQueryServices services) {\n int hbaseVersion = services.getLowestClusterHBaseVersion();\n return hbaseVersion < MetaDataProtocol.MIN_LOCAL_SI_VERSION_DISALLOW || hbaseVersion > MetaDataProtocol.MAX_LOCAL_SI_VERSION_DISALLOW;\n }\n },\n Feature.RENEW_LEASE, new FeatureSupported() {\n @Override\n public boolean isSupported(ConnectionQueryServices services) {\n int hbaseVersion = services.getLowestClusterHBaseVersion();\n return hbaseVersion >= MetaDataProtocol.MIN_RENEW_LEASE_VERSION;\n }\n });",
"type": "Map<Feature, FeatureSupported>",
"var_name": "featureMap"
},
{
"declarator": "queryDisruptor",
"modifier": "private",
"original_string": "private QueryLoggerDisruptor queryDisruptor;",
"type": "QueryLoggerDisruptor",
"var_name": "queryDisruptor"
},
{
"declarator": "TRUE_BYTES_AS_STRING = Bytes.toString(PDataType.TRUE_BYTES)",
"modifier": "private static final",
"original_string": "private static final String TRUE_BYTES_AS_STRING = Bytes.toString(PDataType.TRUE_BYTES);",
"type": "String",
"var_name": "TRUE_BYTES_AS_STRING"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java",
"identifier": "ConnectionQueryServicesImpl",
"interfaces": "implements ConnectionQueryServices",
"methods": [
{
"class_method_signature": "ConnectionQueryServicesImpl.newEmptyMetaData()",
"constructor": false,
"full_signature": "private PMetaData newEmptyMetaData()",
"identifier": "newEmptyMetaData",
"modifiers": "private",
"parameters": "()",
"return": "PMetaData",
"signature": "PMetaData newEmptyMetaData()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ConnectionQueryServicesImpl(QueryServices services, ConnectionInfo connectionInfo, Properties info)",
"constructor": true,
"full_signature": "public ConnectionQueryServicesImpl(QueryServices services, ConnectionInfo connectionInfo, Properties info)",
"identifier": "ConnectionQueryServicesImpl",
"modifiers": "public",
"parameters": "(QueryServices services, ConnectionInfo connectionInfo, Properties info)",
"return": "",
"signature": " ConnectionQueryServicesImpl(QueryServices services, ConnectionInfo connectionInfo, Properties info)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.openConnection()",
"constructor": false,
"full_signature": "private void openConnection()",
"identifier": "openConnection",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void openConnection()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTable(byte[] tableName)",
"constructor": false,
"full_signature": "@Override public Table getTable(byte[] tableName)",
"identifier": "getTable",
"modifiers": "@Override public",
"parameters": "(byte[] tableName)",
"return": "Table",
"signature": "Table getTable(byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTableDescriptor(byte[] tableName)",
"constructor": false,
"full_signature": "@Override public TableDescriptor getTableDescriptor(byte[] tableName)",
"identifier": "getTableDescriptor",
"modifiers": "@Override public",
"parameters": "(byte[] tableName)",
"return": "TableDescriptor",
"signature": "TableDescriptor getTableDescriptor(byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getProps()",
"constructor": false,
"full_signature": "@Override public ReadOnlyProps getProps()",
"identifier": "getProps",
"modifiers": "@Override public",
"parameters": "()",
"return": "ReadOnlyProps",
"signature": "ReadOnlyProps getProps()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.newChildQueryService()",
"constructor": false,
"full_signature": "protected ConnectionQueryServices newChildQueryService()",
"identifier": "newChildQueryService",
"modifiers": "protected",
"parameters": "()",
"return": "ConnectionQueryServices",
"signature": "ConnectionQueryServices newChildQueryService()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getChildQueryServices(ImmutableBytesWritable tenantId)",
"constructor": false,
"full_signature": "@Override public ConnectionQueryServices getChildQueryServices(ImmutableBytesWritable tenantId)",
"identifier": "getChildQueryServices",
"modifiers": "@Override public",
"parameters": "(ImmutableBytesWritable tenantId)",
"return": "ConnectionQueryServices",
"signature": "ConnectionQueryServices getChildQueryServices(ImmutableBytesWritable tenantId)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.clearTableRegionCache(TableName tableName)",
"constructor": false,
"full_signature": "@Override public void clearTableRegionCache(TableName tableName)",
"identifier": "clearTableRegionCache",
"modifiers": "@Override public",
"parameters": "(TableName tableName)",
"return": "void",
"signature": "void clearTableRegionCache(TableName tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getAllTableRegions(byte[] tableName)",
"constructor": false,
"full_signature": "@Override public List<HRegionLocation> getAllTableRegions(byte[] tableName)",
"identifier": "getAllTableRegions",
"modifiers": "@Override public",
"parameters": "(byte[] tableName)",
"return": "List<HRegionLocation>",
"signature": "List<HRegionLocation> getAllTableRegions(byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addTable(PTable table, long resolvedTime)",
"constructor": false,
"full_signature": "@Override public void addTable(PTable table, long resolvedTime)",
"identifier": "addTable",
"modifiers": "@Override public",
"parameters": "(PTable table, long resolvedTime)",
"return": "void",
"signature": "void addTable(PTable table, long resolvedTime)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateResolvedTimestamp(PTable table, long resolvedTime)",
"constructor": false,
"full_signature": "@Override public void updateResolvedTimestamp(PTable table, long resolvedTime)",
"identifier": "updateResolvedTimestamp",
"modifiers": "@Override public",
"parameters": "(PTable table, long resolvedTime)",
"return": "void",
"signature": "void updateResolvedTimestamp(PTable table, long resolvedTime)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.metaDataMutated(PName tenantId, String tableName, long tableSeqNum, Mutator mutator)",
"constructor": false,
"full_signature": "private PMetaData metaDataMutated(PName tenantId, String tableName, long tableSeqNum, Mutator mutator)",
"identifier": "metaDataMutated",
"modifiers": "private",
"parameters": "(PName tenantId, String tableName, long tableSeqNum, Mutator mutator)",
"return": "PMetaData",
"signature": "PMetaData metaDataMutated(PName tenantId, String tableName, long tableSeqNum, Mutator mutator)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeTable(PName tenantId, final String tableName, String parentTableName, long tableTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeTable(PName tenantId, final String tableName, String parentTableName, long tableTimeStamp)",
"identifier": "removeTable",
"modifiers": "@Override public",
"parameters": "(PName tenantId, final String tableName, String parentTableName, long tableTimeStamp)",
"return": "void",
"signature": "void removeTable(PName tenantId, final String tableName, String parentTableName, long tableTimeStamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeColumn(final PName tenantId, final String tableName, final List<PColumn> columnsToRemove, final long tableTimeStamp, final long tableSeqNum, final long resolvedTime)",
"constructor": false,
"full_signature": "@Override public void removeColumn(final PName tenantId, final String tableName, final List<PColumn> columnsToRemove, final long tableTimeStamp, final long tableSeqNum, final long resolvedTime)",
"identifier": "removeColumn",
"modifiers": "@Override public",
"parameters": "(final PName tenantId, final String tableName, final List<PColumn> columnsToRemove, final long tableTimeStamp, final long tableSeqNum, final long resolvedTime)",
"return": "void",
"signature": "void removeColumn(final PName tenantId, final String tableName, final List<PColumn> columnsToRemove, final long tableTimeStamp, final long tableSeqNum, final long resolvedTime)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.validateConnectionProperties(Properties info)",
"constructor": false,
"full_signature": "private void validateConnectionProperties(Properties info)",
"identifier": "validateConnectionProperties",
"modifiers": "private",
"parameters": "(Properties info)",
"return": "void",
"signature": "void validateConnectionProperties(Properties info)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.connect(String url, Properties info)",
"constructor": false,
"full_signature": "@Override public PhoenixConnection connect(String url, Properties info)",
"identifier": "connect",
"modifiers": "@Override public",
"parameters": "(String url, Properties info)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection connect(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.generateColumnFamilyDescriptor(Pair<byte[],Map<String,Object>> family, PTableType tableType)",
"constructor": false,
"full_signature": "private ColumnFamilyDescriptor generateColumnFamilyDescriptor(Pair<byte[],Map<String,Object>> family, PTableType tableType)",
"identifier": "generateColumnFamilyDescriptor",
"modifiers": "private",
"parameters": "(Pair<byte[],Map<String,Object>> family, PTableType tableType)",
"return": "ColumnFamilyDescriptor",
"signature": "ColumnFamilyDescriptor generateColumnFamilyDescriptor(Pair<byte[],Map<String,Object>> family, PTableType tableType)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setHColumnDescriptorValue(ColumnFamilyDescriptorBuilder columnDescBuilder, String key, Object value)",
"constructor": false,
"full_signature": "private static void setHColumnDescriptorValue(ColumnFamilyDescriptorBuilder columnDescBuilder, String key, Object value)",
"identifier": "setHColumnDescriptorValue",
"modifiers": "private static",
"parameters": "(ColumnFamilyDescriptorBuilder columnDescBuilder, String key, Object value)",
"return": "void",
"signature": "void setHColumnDescriptorValue(ColumnFamilyDescriptorBuilder columnDescBuilder, String key, Object value)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getMaxVersion(Object value)",
"constructor": false,
"full_signature": "private static int getMaxVersion(Object value)",
"identifier": "getMaxVersion",
"modifiers": "private static",
"parameters": "(Object value)",
"return": "int",
"signature": "int getMaxVersion(Object value)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.modifyColumnFamilyDescriptor(ColumnFamilyDescriptorBuilder hcd, Map<String,Object> props)",
"constructor": false,
"full_signature": "private void modifyColumnFamilyDescriptor(ColumnFamilyDescriptorBuilder hcd, Map<String,Object> props)",
"identifier": "modifyColumnFamilyDescriptor",
"modifiers": "private",
"parameters": "(ColumnFamilyDescriptorBuilder hcd, Map<String,Object> props)",
"return": "void",
"signature": "void modifyColumnFamilyDescriptor(ColumnFamilyDescriptorBuilder hcd, Map<String,Object> props)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.generateTableDescriptor(byte[] physicalTableName, TableDescriptor existingDesc,\n PTableType tableType, Map<String, Object> tableProps, List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "private TableDescriptorBuilder generateTableDescriptor(byte[] physicalTableName, TableDescriptor existingDesc,\n PTableType tableType, Map<String, Object> tableProps, List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped)",
"identifier": "generateTableDescriptor",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, TableDescriptor existingDesc,\n PTableType tableType, Map<String, Object> tableProps, List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped)",
"return": "TableDescriptorBuilder",
"signature": "TableDescriptorBuilder generateTableDescriptor(byte[] physicalTableName, TableDescriptor existingDesc,\n PTableType tableType, Map<String, Object> tableProps, List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.isLocalIndexTable(Collection<byte[]> families)",
"constructor": false,
"full_signature": "private boolean isLocalIndexTable(Collection<byte[]> families)",
"identifier": "isLocalIndexTable",
"modifiers": "private",
"parameters": "(Collection<byte[]> families)",
"return": "boolean",
"signature": "boolean isLocalIndexTable(Collection<byte[]> families)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addCoprocessors(byte[] tableName, TableDescriptorBuilder builder,\n PTableType tableType, Map<String,Object> tableProps,\n TableDescriptor existingDesc)",
"constructor": false,
"full_signature": "private void addCoprocessors(byte[] tableName, TableDescriptorBuilder builder,\n PTableType tableType, Map<String,Object> tableProps,\n TableDescriptor existingDesc)",
"identifier": "addCoprocessors",
"modifiers": "private",
"parameters": "(byte[] tableName, TableDescriptorBuilder builder,\n PTableType tableType, Map<String,Object> tableProps,\n TableDescriptor existingDesc)",
"return": "void",
"signature": "void addCoprocessors(byte[] tableName, TableDescriptorBuilder builder,\n PTableType tableType, Map<String,Object> tableProps,\n TableDescriptor existingDesc)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTransactionProvider(Map<String,Object> tableProps)",
"constructor": false,
"full_signature": "private TransactionFactory.Provider getTransactionProvider(Map<String,Object> tableProps)",
"identifier": "getTransactionProvider",
"modifiers": "private",
"parameters": "(Map<String,Object> tableProps)",
"return": "TransactionFactory.Provider",
"signature": "TransactionFactory.Provider getTransactionProvider(Map<String,Object> tableProps)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.doesPhoenixTableAlreadyExist(TableDescriptor existingDesc)",
"constructor": false,
"full_signature": "private boolean doesPhoenixTableAlreadyExist(TableDescriptor existingDesc)",
"identifier": "doesPhoenixTableAlreadyExist",
"modifiers": "private",
"parameters": "(TableDescriptor existingDesc)",
"return": "boolean",
"signature": "boolean doesPhoenixTableAlreadyExist(TableDescriptor existingDesc)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.pollForUpdatedTableDescriptor(final Admin admin, final TableDescriptor newTableDescriptor,\n final byte[] tableName)",
"constructor": false,
"full_signature": "private void pollForUpdatedTableDescriptor(final Admin admin, final TableDescriptor newTableDescriptor,\n final byte[] tableName)",
"identifier": "pollForUpdatedTableDescriptor",
"modifiers": "private",
"parameters": "(final Admin admin, final TableDescriptor newTableDescriptor,\n final byte[] tableName)",
"return": "void",
"signature": "void pollForUpdatedTableDescriptor(final Admin admin, final TableDescriptor newTableDescriptor,\n final byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.checkAndRetry(RetriableOperation op)",
"constructor": false,
"full_signature": "private void checkAndRetry(RetriableOperation op)",
"identifier": "checkAndRetry",
"modifiers": "private",
"parameters": "(RetriableOperation op)",
"return": "void",
"signature": "void checkAndRetry(RetriableOperation op)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.allowOnlineTableSchemaUpdate()",
"constructor": false,
"full_signature": "private boolean allowOnlineTableSchemaUpdate()",
"identifier": "allowOnlineTableSchemaUpdate",
"modifiers": "private",
"parameters": "()",
"return": "boolean",
"signature": "boolean allowOnlineTableSchemaUpdate()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureNamespaceCreated(String schemaName)",
"constructor": false,
"full_signature": " boolean ensureNamespaceCreated(String schemaName)",
"identifier": "ensureNamespaceCreated",
"modifiers": "",
"parameters": "(String schemaName)",
"return": "boolean",
"signature": "boolean ensureNamespaceCreated(String schemaName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureTableCreated(byte[] physicalTableName, PTableType tableType, Map<String, Object> props,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, boolean modifyExistingMetaData,\n boolean isNamespaceMapped, boolean isDoNotUpgradePropSet)",
"constructor": false,
"full_signature": "private TableDescriptor ensureTableCreated(byte[] physicalTableName, PTableType tableType, Map<String, Object> props,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, boolean modifyExistingMetaData,\n boolean isNamespaceMapped, boolean isDoNotUpgradePropSet)",
"identifier": "ensureTableCreated",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, PTableType tableType, Map<String, Object> props,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, boolean modifyExistingMetaData,\n boolean isNamespaceMapped, boolean isDoNotUpgradePropSet)",
"return": "TableDescriptor",
"signature": "TableDescriptor ensureTableCreated(byte[] physicalTableName, PTableType tableType, Map<String, Object> props,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, boolean modifyExistingMetaData,\n boolean isNamespaceMapped, boolean isDoNotUpgradePropSet)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.hasTxCoprocessor(TableDescriptor descriptor)",
"constructor": false,
"full_signature": "private static boolean hasTxCoprocessor(TableDescriptor descriptor)",
"identifier": "hasTxCoprocessor",
"modifiers": "private static",
"parameters": "(TableDescriptor descriptor)",
"return": "boolean",
"signature": "boolean hasTxCoprocessor(TableDescriptor descriptor)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.equalTxCoprocessor(TransactionFactory.Provider provider, TableDescriptor existingDesc, TableDescriptor newDesc)",
"constructor": false,
"full_signature": "private static boolean equalTxCoprocessor(TransactionFactory.Provider provider, TableDescriptor existingDesc, TableDescriptor newDesc)",
"identifier": "equalTxCoprocessor",
"modifiers": "private static",
"parameters": "(TransactionFactory.Provider provider, TableDescriptor existingDesc, TableDescriptor newDesc)",
"return": "boolean",
"signature": "boolean equalTxCoprocessor(TransactionFactory.Provider provider, TableDescriptor existingDesc, TableDescriptor newDesc)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.modifyTable(byte[] tableName, TableDescriptor newDesc, boolean shouldPoll)",
"constructor": false,
"full_signature": "private void modifyTable(byte[] tableName, TableDescriptor newDesc, boolean shouldPoll)",
"identifier": "modifyTable",
"modifiers": "private",
"parameters": "(byte[] tableName, TableDescriptor newDesc, boolean shouldPoll)",
"return": "void",
"signature": "void modifyTable(byte[] tableName, TableDescriptor newDesc, boolean shouldPoll)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.hasIndexWALCodec(Long serverVersion)",
"constructor": false,
"full_signature": "private static boolean hasIndexWALCodec(Long serverVersion)",
"identifier": "hasIndexWALCodec",
"modifiers": "private static",
"parameters": "(Long serverVersion)",
"return": "boolean",
"signature": "boolean hasIndexWALCodec(Long serverVersion)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.checkClientServerCompatibility(byte[] metaTable)",
"constructor": false,
"full_signature": "private void checkClientServerCompatibility(byte[] metaTable)",
"identifier": "checkClientServerCompatibility",
"modifiers": "private",
"parameters": "(byte[] metaTable)",
"return": "void",
"signature": "void checkClientServerCompatibility(byte[] metaTable)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getServerVersion(long serverJarVersion)",
"constructor": false,
"full_signature": "private String getServerVersion(long serverJarVersion)",
"identifier": "getServerVersion",
"modifiers": "private",
"parameters": "(long serverJarVersion)",
"return": "String",
"signature": "String getServerVersion(long serverJarVersion)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.childLinkMetaDataCoprocessorExec(byte[] parentTableKey,\n Batch.Call<ChildLinkMetaDataService, MetaDataResponse> callable)",
"constructor": false,
"full_signature": "private MetaDataMutationResult childLinkMetaDataCoprocessorExec(byte[] parentTableKey,\n Batch.Call<ChildLinkMetaDataService, MetaDataResponse> callable)",
"identifier": "childLinkMetaDataCoprocessorExec",
"modifiers": "private",
"parameters": "(byte[] parentTableKey,\n Batch.Call<ChildLinkMetaDataService, MetaDataResponse> callable)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult childLinkMetaDataCoprocessorExec(byte[] parentTableKey,\n Batch.Call<ChildLinkMetaDataService, MetaDataResponse> callable)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable)",
"constructor": false,
"full_signature": "private MetaDataMutationResult metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable)",
"identifier": "metaDataCoprocessorExec",
"modifiers": "private",
"parameters": "(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable, byte[] tableName)",
"constructor": false,
"full_signature": "private MetaDataMutationResult metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable, byte[] tableName)",
"identifier": "metaDataCoprocessorExec",
"modifiers": "private",
"parameters": "(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable, byte[] tableName)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult metaDataCoprocessorExec(byte[] tableKey,\n Batch.Call<MetaDataService, MetaDataResponse> callable, byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureViewIndexTableCreated(byte[] physicalTableName, Map<String, Object> tableProps,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, long timestamp,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "private void ensureViewIndexTableCreated(byte[] physicalTableName, Map<String, Object> tableProps,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, long timestamp,\n boolean isNamespaceMapped)",
"identifier": "ensureViewIndexTableCreated",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, Map<String, Object> tableProps,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, long timestamp,\n boolean isNamespaceMapped)",
"return": "void",
"signature": "void ensureViewIndexTableCreated(byte[] physicalTableName, Map<String, Object> tableProps,\n List<Pair<byte[], Map<String, Object>>> families, byte[][] splits, long timestamp,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureViewIndexTableDropped(byte[] physicalTableName, long timestamp)",
"constructor": false,
"full_signature": "private boolean ensureViewIndexTableDropped(byte[] physicalTableName, long timestamp)",
"identifier": "ensureViewIndexTableDropped",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, long timestamp)",
"return": "boolean",
"signature": "boolean ensureViewIndexTableDropped(byte[] physicalTableName, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureLocalIndexTableDropped(byte[] physicalTableName, long timestamp)",
"constructor": false,
"full_signature": "private boolean ensureLocalIndexTableDropped(byte[] physicalTableName, long timestamp)",
"identifier": "ensureLocalIndexTableDropped",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, long timestamp)",
"return": "boolean",
"signature": "boolean ensureLocalIndexTableDropped(byte[] physicalTableName, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createTable(final List<Mutation> tableMetaData, final byte[] physicalTableName,\n PTableType tableType, Map<String, Object> tableProps,\n final List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped,\n final boolean allocateIndexId, final boolean isDoNotUpgradePropSet,\n final PTable parentTable)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult createTable(final List<Mutation> tableMetaData, final byte[] physicalTableName,\n PTableType tableType, Map<String, Object> tableProps,\n final List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped,\n final boolean allocateIndexId, final boolean isDoNotUpgradePropSet,\n final PTable parentTable)",
"identifier": "createTable",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData, final byte[] physicalTableName,\n PTableType tableType, Map<String, Object> tableProps,\n final List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped,\n final boolean allocateIndexId, final boolean isDoNotUpgradePropSet,\n final PTable parentTable)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult createTable(final List<Mutation> tableMetaData, final byte[] physicalTableName,\n PTableType tableType, Map<String, Object> tableProps,\n final List<Pair<byte[], Map<String, Object>>> families,\n byte[][] splits, boolean isNamespaceMapped,\n final boolean allocateIndexId, final boolean isDoNotUpgradePropSet,\n final PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTable(final PName tenantId, final byte[] schemaBytes,\n final byte[] tableBytes, final long tableTimestamp, final long clientTimestamp)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult getTable(final PName tenantId, final byte[] schemaBytes,\n final byte[] tableBytes, final long tableTimestamp, final long clientTimestamp)",
"identifier": "getTable",
"modifiers": "@Override public",
"parameters": "(final PName tenantId, final byte[] schemaBytes,\n final byte[] tableBytes, final long tableTimestamp, final long clientTimestamp)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult getTable(final PName tenantId, final byte[] schemaBytes,\n final byte[] tableBytes, final long tableTimestamp, final long clientTimestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropTable(final List<Mutation> tableMetaData, final PTableType tableType,\n final boolean cascade)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult dropTable(final List<Mutation> tableMetaData, final PTableType tableType,\n final boolean cascade)",
"identifier": "dropTable",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData, final PTableType tableType,\n final boolean cascade)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult dropTable(final List<Mutation> tableMetaData, final PTableType tableType,\n final boolean cascade)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.flushParentPhysicalTable(PTable table)",
"constructor": false,
"full_signature": "private void flushParentPhysicalTable(PTable table)",
"identifier": "flushParentPhysicalTable",
"modifiers": "private",
"parameters": "(PTable table)",
"return": "void",
"signature": "void flushParentPhysicalTable(PTable table)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropFunction(final List<Mutation> functionData, final boolean ifExists)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult dropFunction(final List<Mutation> functionData, final boolean ifExists)",
"identifier": "dropFunction",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> functionData, final boolean ifExists)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult dropFunction(final List<Mutation> functionData, final boolean ifExists)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.invalidateTableStats(final List<byte[]> tableNamesToDelete)",
"constructor": false,
"full_signature": "private void invalidateTableStats(final List<byte[]> tableNamesToDelete)",
"identifier": "invalidateTableStats",
"modifiers": "private",
"parameters": "(final List<byte[]> tableNamesToDelete)",
"return": "void",
"signature": "void invalidateTableStats(final List<byte[]> tableNamesToDelete)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropTable(byte[] tableNameToDelete)",
"constructor": false,
"full_signature": "private void dropTable(byte[] tableNameToDelete)",
"identifier": "dropTable",
"modifiers": "private",
"parameters": "(byte[] tableNameToDelete)",
"return": "void",
"signature": "void dropTable(byte[] tableNameToDelete)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropTables(final List<byte[]> tableNamesToDelete)",
"constructor": false,
"full_signature": "private void dropTables(final List<byte[]> tableNamesToDelete)",
"identifier": "dropTables",
"modifiers": "private",
"parameters": "(final List<byte[]> tableNamesToDelete)",
"return": "void",
"signature": "void dropTables(final List<byte[]> tableNamesToDelete)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createPropertiesMap(Map<Bytes,Bytes> htableProps)",
"constructor": false,
"full_signature": "private static Map<String,Object> createPropertiesMap(Map<Bytes,Bytes> htableProps)",
"identifier": "createPropertiesMap",
"modifiers": "private static",
"parameters": "(Map<Bytes,Bytes> htableProps)",
"return": "Map<String,Object>",
"signature": "Map<String,Object> createPropertiesMap(Map<Bytes,Bytes> htableProps)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PName tenantId, byte[] physicalIndexTableName, long timestamp,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "private void ensureViewIndexTableCreated(PName tenantId, byte[] physicalIndexTableName, long timestamp,\n boolean isNamespaceMapped)",
"identifier": "ensureViewIndexTableCreated",
"modifiers": "private",
"parameters": "(PName tenantId, byte[] physicalIndexTableName, long timestamp,\n boolean isNamespaceMapped)",
"return": "void",
"signature": "void ensureViewIndexTableCreated(PName tenantId, byte[] physicalIndexTableName, long timestamp,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTable(PName tenantId, String fullTableName, long timestamp)",
"constructor": false,
"full_signature": "private PTable getTable(PName tenantId, String fullTableName, long timestamp)",
"identifier": "getTable",
"modifiers": "private",
"parameters": "(PName tenantId, String fullTableName, long timestamp)",
"return": "PTable",
"signature": "PTable getTable(PName tenantId, String fullTableName, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable table, long timestamp, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "private void ensureViewIndexTableCreated(PTable table, long timestamp, boolean isNamespaceMapped)",
"identifier": "ensureViewIndexTableCreated",
"modifiers": "private",
"parameters": "(PTable table, long timestamp, boolean isNamespaceMapped)",
"return": "void",
"signature": "void ensureViewIndexTableCreated(PTable table, long timestamp, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addColumn(final List<Mutation> tableMetaData,\n PTable table,\n final PTable parentTable,\n Map<String, List<Pair<String, Object>>> stmtProperties,\n Set<String> colFamiliesForPColumnsToBeAdded,\n List<PColumn> columns)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult addColumn(final List<Mutation> tableMetaData,\n PTable table,\n final PTable parentTable,\n Map<String, List<Pair<String, Object>>> stmtProperties,\n Set<String> colFamiliesForPColumnsToBeAdded,\n List<PColumn> columns)",
"identifier": "addColumn",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData,\n PTable table,\n final PTable parentTable,\n Map<String, List<Pair<String, Object>>> stmtProperties,\n Set<String> colFamiliesForPColumnsToBeAdded,\n List<PColumn> columns)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult addColumn(final List<Mutation> tableMetaData,\n PTable table,\n final PTable parentTable,\n Map<String, List<Pair<String, Object>>> stmtProperties,\n Set<String> colFamiliesForPColumnsToBeAdded,\n List<PColumn> columns)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateDescriptorForTx(PTable table, Map<String, Object> tableProps, TableDescriptorBuilder tableDescriptorBuilder,\n String txValue, Set<TableDescriptor> descriptorsToUpdate, Set<TableDescriptor> origDescriptors,\n Map<TableDescriptor, TableDescriptor> oldToNewTableDescriptors)",
"constructor": false,
"full_signature": "private void updateDescriptorForTx(PTable table, Map<String, Object> tableProps, TableDescriptorBuilder tableDescriptorBuilder,\n String txValue, Set<TableDescriptor> descriptorsToUpdate, Set<TableDescriptor> origDescriptors,\n Map<TableDescriptor, TableDescriptor> oldToNewTableDescriptors)",
"identifier": "updateDescriptorForTx",
"modifiers": "private",
"parameters": "(PTable table, Map<String, Object> tableProps, TableDescriptorBuilder tableDescriptorBuilder,\n String txValue, Set<TableDescriptor> descriptorsToUpdate, Set<TableDescriptor> origDescriptors,\n Map<TableDescriptor, TableDescriptor> oldToNewTableDescriptors)",
"return": "void",
"signature": "void updateDescriptorForTx(PTable table, Map<String, Object> tableProps, TableDescriptorBuilder tableDescriptorBuilder,\n String txValue, Set<TableDescriptor> descriptorsToUpdate, Set<TableDescriptor> origDescriptors,\n Map<TableDescriptor, TableDescriptor> oldToNewTableDescriptors)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSharedIndexMaxVersion(PTable table, TableDescriptor tableDescriptor,\n TableDescriptorBuilder indexDescriptorBuilder)",
"constructor": false,
"full_signature": "private void setSharedIndexMaxVersion(PTable table, TableDescriptor tableDescriptor,\n TableDescriptorBuilder indexDescriptorBuilder)",
"identifier": "setSharedIndexMaxVersion",
"modifiers": "private",
"parameters": "(PTable table, TableDescriptor tableDescriptor,\n TableDescriptorBuilder indexDescriptorBuilder)",
"return": "void",
"signature": "void setSharedIndexMaxVersion(PTable table, TableDescriptor tableDescriptor,\n TableDescriptorBuilder indexDescriptorBuilder)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.sendHBaseMetaData(Set<TableDescriptor> tableDescriptors, boolean pollingNeeded)",
"constructor": false,
"full_signature": "private void sendHBaseMetaData(Set<TableDescriptor> tableDescriptors, boolean pollingNeeded)",
"identifier": "sendHBaseMetaData",
"modifiers": "private",
"parameters": "(Set<TableDescriptor> tableDescriptors, boolean pollingNeeded)",
"return": "void",
"signature": "void sendHBaseMetaData(Set<TableDescriptor> tableDescriptors, boolean pollingNeeded)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setTransactional(byte[] physicalTableName, TableDescriptorBuilder tableDescriptorBuilder, PTableType tableType, String txValue, Map<String, Object> tableProps)",
"constructor": false,
"full_signature": "private void setTransactional(byte[] physicalTableName, TableDescriptorBuilder tableDescriptorBuilder, PTableType tableType, String txValue, Map<String, Object> tableProps)",
"identifier": "setTransactional",
"modifiers": "private",
"parameters": "(byte[] physicalTableName, TableDescriptorBuilder tableDescriptorBuilder, PTableType tableType, String txValue, Map<String, Object> tableProps)",
"return": "void",
"signature": "void setTransactional(byte[] physicalTableName, TableDescriptorBuilder tableDescriptorBuilder, PTableType tableType, String txValue, Map<String, Object> tableProps)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.separateAndValidateProperties(PTable table,\n Map<String, List<Pair<String, Object>>> properties, Set<String> colFamiliesForPColumnsToBeAdded,\n Map<String, Object> tableProps)",
"constructor": false,
"full_signature": "private Map<TableDescriptor, TableDescriptor> separateAndValidateProperties(PTable table,\n Map<String, List<Pair<String, Object>>> properties, Set<String> colFamiliesForPColumnsToBeAdded,\n Map<String, Object> tableProps)",
"identifier": "separateAndValidateProperties",
"modifiers": "private",
"parameters": "(PTable table,\n Map<String, List<Pair<String, Object>>> properties, Set<String> colFamiliesForPColumnsToBeAdded,\n Map<String, Object> tableProps)",
"return": "Map<TableDescriptor, TableDescriptor>",
"signature": "Map<TableDescriptor, TableDescriptor> separateAndValidateProperties(PTable table,\n Map<String, List<Pair<String, Object>>> properties, Set<String> colFamiliesForPColumnsToBeAdded,\n Map<String, Object> tableProps)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.checkTransactionalVersionsValue(ColumnFamilyDescriptor colDescriptor)",
"constructor": false,
"full_signature": "private void checkTransactionalVersionsValue(ColumnFamilyDescriptor colDescriptor)",
"identifier": "checkTransactionalVersionsValue",
"modifiers": "private",
"parameters": "(ColumnFamilyDescriptor colDescriptor)",
"return": "void",
"signature": "void checkTransactionalVersionsValue(ColumnFamilyDescriptor colDescriptor)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.existingColumnFamiliesForBaseTable(PName baseTableName)",
"constructor": false,
"full_signature": "private HashSet<String> existingColumnFamiliesForBaseTable(PName baseTableName)",
"identifier": "existingColumnFamiliesForBaseTable",
"modifiers": "private",
"parameters": "(PName baseTableName)",
"return": "HashSet<String>",
"signature": "HashSet<String> existingColumnFamiliesForBaseTable(PName baseTableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.existingColumnFamilies(PTable table)",
"constructor": false,
"full_signature": "public HashSet<String> existingColumnFamilies(PTable table)",
"identifier": "existingColumnFamilies",
"modifiers": "public",
"parameters": "(PTable table)",
"return": "HashSet<String>",
"signature": "HashSet<String> existingColumnFamilies(PTable table)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getKeepDeletedCells(PTable table, TableDescriptor tableDesc,\n KeepDeletedCells newKeepDeletedCells)",
"constructor": false,
"full_signature": "public static KeepDeletedCells getKeepDeletedCells(PTable table, TableDescriptor tableDesc,\n KeepDeletedCells newKeepDeletedCells)",
"identifier": "getKeepDeletedCells",
"modifiers": "public static",
"parameters": "(PTable table, TableDescriptor tableDesc,\n KeepDeletedCells newKeepDeletedCells)",
"return": "KeepDeletedCells",
"signature": "KeepDeletedCells getKeepDeletedCells(PTable table, TableDescriptor tableDesc,\n KeepDeletedCells newKeepDeletedCells)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getReplicationScope(PTable table, TableDescriptor tableDesc,\n Integer newReplicationScope)",
"constructor": false,
"full_signature": "public static int getReplicationScope(PTable table, TableDescriptor tableDesc,\n Integer newReplicationScope)",
"identifier": "getReplicationScope",
"modifiers": "public static",
"parameters": "(PTable table, TableDescriptor tableDesc,\n Integer newReplicationScope)",
"return": "int",
"signature": "int getReplicationScope(PTable table, TableDescriptor tableDesc,\n Integer newReplicationScope)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTTL(PTable table, TableDescriptor tableDesc, Integer newTTL)",
"constructor": false,
"full_signature": "public static int getTTL(PTable table, TableDescriptor tableDesc, Integer newTTL)",
"identifier": "getTTL",
"modifiers": "public static",
"parameters": "(PTable table, TableDescriptor tableDesc, Integer newTTL)",
"return": "int",
"signature": "int getTTL(PTable table, TableDescriptor tableDesc, Integer newTTL)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSyncedPropsForNewColumnFamilies(Map<String, Map<String, Object>> allFamiliesProps, PTable table,\n TableDescriptorBuilder tableDescBuilder, Integer newTTL, KeepDeletedCells newKeepDeletedCells,\n Integer newReplicationScope)",
"constructor": false,
"full_signature": "private void setSyncedPropsForNewColumnFamilies(Map<String, Map<String, Object>> allFamiliesProps, PTable table,\n TableDescriptorBuilder tableDescBuilder, Integer newTTL, KeepDeletedCells newKeepDeletedCells,\n Integer newReplicationScope)",
"identifier": "setSyncedPropsForNewColumnFamilies",
"modifiers": "private",
"parameters": "(Map<String, Map<String, Object>> allFamiliesProps, PTable table,\n TableDescriptorBuilder tableDescBuilder, Integer newTTL, KeepDeletedCells newKeepDeletedCells,\n Integer newReplicationScope)",
"return": "void",
"signature": "void setSyncedPropsForNewColumnFamilies(Map<String, Map<String, Object>> allFamiliesProps, PTable table,\n TableDescriptorBuilder tableDescBuilder, Integer newTTL, KeepDeletedCells newKeepDeletedCells,\n Integer newReplicationScope)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setPropIfNotNull(Map<String, Object> propMap, String propName, Object propVal)",
"constructor": false,
"full_signature": "private void setPropIfNotNull(Map<String, Object> propMap, String propName, Object propVal)",
"identifier": "setPropIfNotNull",
"modifiers": "private",
"parameters": "(Map<String, Object> propMap, String propName, Object propVal)",
"return": "void",
"signature": "void setPropIfNotNull(Map<String, Object> propMap, String propName, Object propVal)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getNewSyncedPropsMap(Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"constructor": false,
"full_signature": "private Map<String, Object> getNewSyncedPropsMap(Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"identifier": "getNewSyncedPropsMap",
"modifiers": "private",
"parameters": "(Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"return": "Map<String, Object>",
"signature": "Map<String, Object> getNewSyncedPropsMap(Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSyncedPropsForUnreferencedColumnFamilies(TableDescriptor tableDesc, Map<String, Map<String, Object>> allFamiliesProps,\n Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"constructor": false,
"full_signature": "private void setSyncedPropsForUnreferencedColumnFamilies(TableDescriptor tableDesc, Map<String, Map<String, Object>> allFamiliesProps,\n Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"identifier": "setSyncedPropsForUnreferencedColumnFamilies",
"modifiers": "private",
"parameters": "(TableDescriptor tableDesc, Map<String, Map<String, Object>> allFamiliesProps,\n Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"return": "void",
"signature": "void setSyncedPropsForUnreferencedColumnFamilies(TableDescriptor tableDesc, Map<String, Map<String, Object>> allFamiliesProps,\n Integer newTTL, KeepDeletedCells newKeepDeletedCells, Integer newReplicationScope)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSyncedPropertiesForTableIndexes(PTable table,\n Map<TableDescriptor, TableDescriptor> tableAndIndexDescriptorMappings,\n Map<String, Object> applyPropsToAllIndexesDefaultCF)",
"constructor": false,
"full_signature": "private void setSyncedPropertiesForTableIndexes(PTable table,\n Map<TableDescriptor, TableDescriptor> tableAndIndexDescriptorMappings,\n Map<String, Object> applyPropsToAllIndexesDefaultCF)",
"identifier": "setSyncedPropertiesForTableIndexes",
"modifiers": "private",
"parameters": "(PTable table,\n Map<TableDescriptor, TableDescriptor> tableAndIndexDescriptorMappings,\n Map<String, Object> applyPropsToAllIndexesDefaultCF)",
"return": "void",
"signature": "void setSyncedPropertiesForTableIndexes(PTable table,\n Map<TableDescriptor, TableDescriptor> tableAndIndexDescriptorMappings,\n Map<String, Object> applyPropsToAllIndexesDefaultCF)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropColumn(final List<Mutation> tableMetaData,\n final PTableType tableType,\n final PTable parentTable)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult dropColumn(final List<Mutation> tableMetaData,\n final PTableType tableType,\n final PTable parentTable)",
"identifier": "dropColumn",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData,\n final PTableType tableType,\n final PTable parentTable)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult dropColumn(final List<Mutation> tableMetaData,\n final PTableType tableType,\n final PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeNotNullConstraint(PhoenixConnection oldMetaConnection, String schemaName, String tableName, long timestamp, String columnName)",
"constructor": false,
"full_signature": "private PhoenixConnection removeNotNullConstraint(PhoenixConnection oldMetaConnection, String schemaName, String tableName, long timestamp, String columnName)",
"identifier": "removeNotNullConstraint",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, String schemaName, String tableName, long timestamp, String columnName)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection removeNotNullConstraint(PhoenixConnection oldMetaConnection, String schemaName, String tableName, long timestamp, String columnName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addColumn(PhoenixConnection oldMetaConnection, String tableName, long timestamp, String columns, boolean addIfNotExists)",
"constructor": false,
"full_signature": "private PhoenixConnection addColumn(PhoenixConnection oldMetaConnection, String tableName, long timestamp, String columns, boolean addIfNotExists)",
"identifier": "addColumn",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, String tableName, long timestamp, String columns, boolean addIfNotExists)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection addColumn(PhoenixConnection oldMetaConnection, String tableName, long timestamp, String columns, boolean addIfNotExists)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addColumnsIfNotExists(PhoenixConnection oldMetaConnection,\n String tableName, long timestamp, String columns)",
"constructor": false,
"full_signature": "private PhoenixConnection addColumnsIfNotExists(PhoenixConnection oldMetaConnection,\n String tableName, long timestamp, String columns)",
"identifier": "addColumnsIfNotExists",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection,\n String tableName, long timestamp, String columns)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection addColumnsIfNotExists(PhoenixConnection oldMetaConnection,\n String tableName, long timestamp, String columns)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSystemTableVersion()",
"constructor": false,
"full_signature": "protected long getSystemTableVersion()",
"identifier": "getSystemTableVersion",
"modifiers": "protected",
"parameters": "()",
"return": "long",
"signature": "long getSystemTableVersion()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setUpgradeRequired()",
"constructor": false,
"full_signature": "protected void setUpgradeRequired()",
"identifier": "setUpgradeRequired",
"modifiers": "protected",
"parameters": "()",
"return": "void",
"signature": "void setUpgradeRequired()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.isInitialized()",
"constructor": false,
"full_signature": "protected boolean isInitialized()",
"identifier": "isInitialized",
"modifiers": "protected",
"parameters": "()",
"return": "boolean",
"signature": "boolean isInitialized()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setInitialized(boolean isInitialized)",
"constructor": false,
"full_signature": "protected void setInitialized(boolean isInitialized)",
"identifier": "setInitialized",
"modifiers": "protected",
"parameters": "(boolean isInitialized)",
"return": "void",
"signature": "void setInitialized(boolean isInitialized)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSystemCatalogTableDDL()",
"constructor": false,
"full_signature": "protected String getSystemCatalogTableDDL()",
"identifier": "getSystemCatalogTableDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getSystemCatalogTableDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSystemSequenceTableDDL(int nSaltBuckets)",
"constructor": false,
"full_signature": "protected String getSystemSequenceTableDDL(int nSaltBuckets)",
"identifier": "getSystemSequenceTableDDL",
"modifiers": "protected",
"parameters": "(int nSaltBuckets)",
"return": "String",
"signature": "String getSystemSequenceTableDDL(int nSaltBuckets)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getFunctionTableDDL()",
"constructor": false,
"full_signature": "protected String getFunctionTableDDL()",
"identifier": "getFunctionTableDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getFunctionTableDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getLogTableDDL()",
"constructor": false,
"full_signature": "protected String getLogTableDDL()",
"identifier": "getLogTableDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getLogTableDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSystemLogDDLProperties(String ddl)",
"constructor": false,
"full_signature": "private String setSystemLogDDLProperties(String ddl)",
"identifier": "setSystemLogDDLProperties",
"modifiers": "private",
"parameters": "(String ddl)",
"return": "String",
"signature": "String setSystemLogDDLProperties(String ddl)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getChildLinkDDL()",
"constructor": false,
"full_signature": "protected String getChildLinkDDL()",
"identifier": "getChildLinkDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getChildLinkDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getMutexDDL()",
"constructor": false,
"full_signature": "protected String getMutexDDL()",
"identifier": "getMutexDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getMutexDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTaskDDL()",
"constructor": false,
"full_signature": "protected String getTaskDDL()",
"identifier": "getTaskDDL",
"modifiers": "protected",
"parameters": "()",
"return": "String",
"signature": "String getTaskDDL()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setSystemDDLProperties(String ddl)",
"constructor": false,
"full_signature": "private String setSystemDDLProperties(String ddl)",
"identifier": "setSystemDDLProperties",
"modifiers": "private",
"parameters": "(String ddl)",
"return": "String",
"signature": "String setSystemDDLProperties(String ddl)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.init(final String url, final Properties props)",
"constructor": false,
"full_signature": "@Override public void init(final String url, final Properties props)",
"identifier": "init",
"modifiers": "@Override public",
"parameters": "(final String url, final Properties props)",
"return": "void",
"signature": "void init(final String url, final Properties props)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createSysMutexTableIfNotExists(Admin admin)",
"constructor": false,
"full_signature": " void createSysMutexTableIfNotExists(Admin admin)",
"identifier": "createSysMutexTableIfNotExists",
"modifiers": "",
"parameters": "(Admin admin)",
"return": "void",
"signature": "void createSysMutexTableIfNotExists(Admin admin)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"constructor": false,
"full_signature": "@VisibleForTesting boolean checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"identifier": "checkIfSysMutexExistsAndModifyTTLIfRequired",
"modifiers": "@VisibleForTesting",
"parameters": "(Admin admin)",
"return": "boolean",
"signature": "boolean checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.inspectIfAnyExceptionInChain(Throwable io, List<Class<? extends Exception>> ioList)",
"constructor": false,
"full_signature": "private boolean inspectIfAnyExceptionInChain(Throwable io, List<Class<? extends Exception>> ioList)",
"identifier": "inspectIfAnyExceptionInChain",
"modifiers": "private",
"parameters": "(Throwable io, List<Class<? extends Exception>> ioList)",
"return": "boolean",
"signature": "boolean inspectIfAnyExceptionInChain(Throwable io, List<Class<? extends Exception>> ioList)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.isExceptionInstanceOf(Throwable io, Class<? extends Exception> exception)",
"constructor": false,
"full_signature": "private boolean isExceptionInstanceOf(Throwable io, Class<? extends Exception> exception)",
"identifier": "isExceptionInstanceOf",
"modifiers": "private",
"parameters": "(Throwable io, Class<? extends Exception> exception)",
"return": "boolean",
"signature": "boolean isExceptionInstanceOf(Throwable io, Class<? extends Exception> exception)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSystemTableNamesInDefaultNamespace(Admin admin)",
"constructor": false,
"full_signature": " List<TableName> getSystemTableNamesInDefaultNamespace(Admin admin)",
"identifier": "getSystemTableNamesInDefaultNamespace",
"modifiers": "",
"parameters": "(Admin admin)",
"return": "List<TableName>",
"signature": "List<TableName> getSystemTableNamesInDefaultNamespace(Admin admin)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createOtherSystemTables(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private void createOtherSystemTables(PhoenixConnection metaConnection)",
"identifier": "createOtherSystemTables",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "void",
"signature": "void createOtherSystemTables(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createSchemaIfNotExistsSystemNSMappingEnabled(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private void createSchemaIfNotExistsSystemNSMappingEnabled(PhoenixConnection metaConnection)",
"identifier": "createSchemaIfNotExistsSystemNSMappingEnabled",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "void",
"signature": "void createSchemaIfNotExistsSystemNSMappingEnabled(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(PhoenixConnection metaConnection,\n long currentServerSideTableTimeStamp)",
"constructor": false,
"full_signature": "protected PhoenixConnection upgradeSystemCatalogIfRequired(PhoenixConnection metaConnection,\n long currentServerSideTableTimeStamp)",
"identifier": "upgradeSystemCatalogIfRequired",
"modifiers": "protected",
"parameters": "(PhoenixConnection metaConnection,\n long currentServerSideTableTimeStamp)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemCatalogIfRequired(PhoenixConnection metaConnection,\n long currentServerSideTableTimeStamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemTables(final String url, final Properties props)",
"constructor": false,
"full_signature": "@Override public void upgradeSystemTables(final String url, final Properties props)",
"identifier": "upgradeSystemTables",
"modifiers": "@Override public",
"parameters": "(final String url, final Properties props)",
"return": "void",
"signature": "void upgradeSystemTables(final String url, final Properties props)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeOtherSystemTablesIfRequired(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeOtherSystemTablesIfRequired(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"identifier": "upgradeOtherSystemTablesIfRequired",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeOtherSystemTablesIfRequired(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemChildLink(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemChildLink(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"identifier": "upgradeSystemChildLink",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemChildLink(PhoenixConnection metaConnection,\n boolean moveChildLinks)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemSequence(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemSequence(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemSequence",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemSequence(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemStats(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemStats(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemStats",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemStats(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemTask(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemTask(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemTask",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemTask(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemFunction(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemFunction(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemFunction",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemFunction(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemLog(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemLog(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemLog",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemLog(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.upgradeSystemMutex(PhoenixConnection metaConnection)",
"constructor": false,
"full_signature": "private PhoenixConnection upgradeSystemMutex(PhoenixConnection metaConnection)",
"identifier": "upgradeSystemMutex",
"modifiers": "private",
"parameters": "(PhoenixConnection metaConnection)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection upgradeSystemMutex(PhoenixConnection metaConnection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addColumnQualifierColumn(PhoenixConnection oldMetaConnection, Long timestamp)",
"constructor": false,
"full_signature": "private PhoenixConnection addColumnQualifierColumn(PhoenixConnection oldMetaConnection, Long timestamp)",
"identifier": "addColumnQualifierColumn",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, Long timestamp)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection addColumnQualifierColumn(PhoenixConnection oldMetaConnection, Long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createSnapshot(String snapshotName, String tableName)",
"constructor": false,
"full_signature": "private void createSnapshot(String snapshotName, String tableName)",
"identifier": "createSnapshot",
"modifiers": "private",
"parameters": "(String snapshotName, String tableName)",
"return": "void",
"signature": "void createSnapshot(String snapshotName, String tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.restoreFromSnapshot(String tableName, String snapshotName,\n boolean success)",
"constructor": false,
"full_signature": "private void restoreFromSnapshot(String tableName, String snapshotName,\n boolean success)",
"identifier": "restoreFromSnapshot",
"modifiers": "private",
"parameters": "(String tableName, String snapshotName,\n boolean success)",
"return": "void",
"signature": "void restoreFromSnapshot(String tableName, String snapshotName,\n boolean success)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureSystemTablesMigratedToSystemNamespace()",
"constructor": false,
"full_signature": " void ensureSystemTablesMigratedToSystemNamespace()",
"identifier": "ensureSystemTablesMigratedToSystemNamespace",
"modifiers": "",
"parameters": "()",
"return": "void",
"signature": "void ensureSystemTablesMigratedToSystemNamespace()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.acquireUpgradeMutex(long currentServerSideTableTimestamp)",
"constructor": false,
"full_signature": "@VisibleForTesting public boolean acquireUpgradeMutex(long currentServerSideTableTimestamp)",
"identifier": "acquireUpgradeMutex",
"modifiers": "@VisibleForTesting public",
"parameters": "(long currentServerSideTableTimestamp)",
"return": "boolean",
"signature": "boolean acquireUpgradeMutex(long currentServerSideTableTimestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.writeMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"constructor": false,
"full_signature": "@Override public boolean writeMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"identifier": "writeMutexCell",
"modifiers": "@Override public",
"parameters": "(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"return": "boolean",
"signature": "boolean writeMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.releaseUpgradeMutex()",
"constructor": false,
"full_signature": "@VisibleForTesting public void releaseUpgradeMutex()",
"identifier": "releaseUpgradeMutex",
"modifiers": "@VisibleForTesting public",
"parameters": "()",
"return": "void",
"signature": "void releaseUpgradeMutex()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.deleteMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"constructor": false,
"full_signature": "@Override public void deleteMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"identifier": "deleteMutexCell",
"modifiers": "@Override public",
"parameters": "(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"return": "void",
"signature": "void deleteMutexCell(String tenantId, String schemaName, String tableName,\n String columnName, String familyName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSysMutexPhysicalTableNameBytes()",
"constructor": false,
"full_signature": "private byte[] getSysMutexPhysicalTableNameBytes()",
"identifier": "getSysMutexPhysicalTableNameBytes",
"modifiers": "private",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSysMutexPhysicalTableNameBytes()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addColumn(String columnsToAddSoFar, String columns)",
"constructor": false,
"full_signature": "private String addColumn(String columnsToAddSoFar, String columns)",
"identifier": "addColumn",
"modifiers": "private",
"parameters": "(String columnsToAddSoFar, String columns)",
"return": "String",
"signature": "String addColumn(String columnsToAddSoFar, String columns)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.setImmutableTableIndexesImmutable(PhoenixConnection oldMetaConnection, long timestamp)",
"constructor": false,
"full_signature": "private PhoenixConnection setImmutableTableIndexesImmutable(PhoenixConnection oldMetaConnection, long timestamp)",
"identifier": "setImmutableTableIndexesImmutable",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, long timestamp)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection setImmutableTableIndexesImmutable(PhoenixConnection oldMetaConnection, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateSystemCatalogTimestamp(PhoenixConnection oldMetaConnection, long timestamp)",
"constructor": false,
"full_signature": "private PhoenixConnection updateSystemCatalogTimestamp(PhoenixConnection oldMetaConnection, long timestamp)",
"identifier": "updateSystemCatalogTimestamp",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, long timestamp)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection updateSystemCatalogTimestamp(PhoenixConnection oldMetaConnection, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropStatsTable(PhoenixConnection oldMetaConnection, long timestamp)",
"constructor": false,
"full_signature": "private PhoenixConnection dropStatsTable(PhoenixConnection oldMetaConnection, long timestamp)",
"identifier": "dropStatsTable",
"modifiers": "private",
"parameters": "(PhoenixConnection oldMetaConnection, long timestamp)",
"return": "PhoenixConnection",
"signature": "PhoenixConnection dropStatsTable(PhoenixConnection oldMetaConnection, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.scheduleRenewLeaseTasks()",
"constructor": false,
"full_signature": "private void scheduleRenewLeaseTasks()",
"identifier": "scheduleRenewLeaseTasks",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void scheduleRenewLeaseTasks()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSaltBuckets(TableAlreadyExistsException e)",
"constructor": false,
"full_signature": "private static int getSaltBuckets(TableAlreadyExistsException e)",
"identifier": "getSaltBuckets",
"modifiers": "private static",
"parameters": "(TableAlreadyExistsException e)",
"return": "int",
"signature": "int getSaltBuckets(TableAlreadyExistsException e)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateData(MutationPlan plan)",
"constructor": false,
"full_signature": "@Override public MutationState updateData(MutationPlan plan)",
"identifier": "updateData",
"modifiers": "@Override public",
"parameters": "(MutationPlan plan)",
"return": "MutationState",
"signature": "MutationState updateData(MutationPlan plan)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getLowestClusterHBaseVersion()",
"constructor": false,
"full_signature": "@Override public int getLowestClusterHBaseVersion()",
"identifier": "getLowestClusterHBaseVersion",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int getLowestClusterHBaseVersion()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.hasIndexWALCodec()",
"constructor": false,
"full_signature": "@Override public boolean hasIndexWALCodec()",
"identifier": "hasIndexWALCodec",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasIndexWALCodec()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.clearCache()",
"constructor": false,
"full_signature": "@Override public long clearCache()",
"identifier": "clearCache",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long clearCache()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.flushTable(byte[] tableName)",
"constructor": false,
"full_signature": "private void flushTable(byte[] tableName)",
"identifier": "flushTable",
"modifiers": "private",
"parameters": "(byte[] tableName)",
"return": "void",
"signature": "void flushTable(byte[] tableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getAdmin()",
"constructor": false,
"full_signature": "@Override public Admin getAdmin()",
"identifier": "getAdmin",
"modifiers": "@Override public",
"parameters": "()",
"return": "Admin",
"signature": "Admin getAdmin()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateIndexState(final List<Mutation> tableMetaData, String parentTableName)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult updateIndexState(final List<Mutation> tableMetaData, String parentTableName)",
"identifier": "updateIndexState",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData, String parentTableName)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult updateIndexState(final List<Mutation> tableMetaData, String parentTableName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.updateIndexState(final List<Mutation> tableMetaData, String parentTableName, Map<String, List<Pair<String,Object>>> stmtProperties, PTable table)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult updateIndexState(final List<Mutation> tableMetaData, String parentTableName, Map<String, List<Pair<String,Object>>> stmtProperties, PTable table)",
"identifier": "updateIndexState",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> tableMetaData, String parentTableName, Map<String, List<Pair<String,Object>>> stmtProperties, PTable table)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult updateIndexState(final List<Mutation> tableMetaData, String parentTableName, Map<String, List<Pair<String,Object>>> stmtProperties, PTable table)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createSequence(String tenantId, String schemaName, String sequenceName,\n long startWith, long incrementBy, long cacheSize, long minValue, long maxValue,\n boolean cycle, long timestamp)",
"constructor": false,
"full_signature": "@Override public long createSequence(String tenantId, String schemaName, String sequenceName,\n long startWith, long incrementBy, long cacheSize, long minValue, long maxValue,\n boolean cycle, long timestamp)",
"identifier": "createSequence",
"modifiers": "@Override public",
"parameters": "(String tenantId, String schemaName, String sequenceName,\n long startWith, long incrementBy, long cacheSize, long minValue, long maxValue,\n boolean cycle, long timestamp)",
"return": "long",
"signature": "long createSequence(String tenantId, String schemaName, String sequenceName,\n long startWith, long incrementBy, long cacheSize, long minValue, long maxValue,\n boolean cycle, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropSequence(String tenantId, String schemaName, String sequenceName, long timestamp)",
"constructor": false,
"full_signature": "@Override public long dropSequence(String tenantId, String schemaName, String sequenceName, long timestamp)",
"identifier": "dropSequence",
"modifiers": "@Override public",
"parameters": "(String tenantId, String schemaName, String sequenceName, long timestamp)",
"return": "long",
"signature": "long dropSequence(String tenantId, String schemaName, String sequenceName, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.currentSequenceValue(SequenceKey sequenceKey, long timestamp)",
"constructor": false,
"full_signature": "@Override public long currentSequenceValue(SequenceKey sequenceKey, long timestamp)",
"identifier": "currentSequenceValue",
"modifiers": "@Override public",
"parameters": "(SequenceKey sequenceKey, long timestamp)",
"return": "long",
"signature": "long currentSequenceValue(SequenceKey sequenceKey, long timestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.validateSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp action)",
"constructor": false,
"full_signature": "@Override public void validateSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp action)",
"identifier": "validateSequences",
"modifiers": "@Override public",
"parameters": "(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp action)",
"return": "void",
"signature": "void validateSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp action)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.incrementSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions)",
"constructor": false,
"full_signature": "@Override public void incrementSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions)",
"identifier": "incrementSequences",
"modifiers": "@Override public",
"parameters": "(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions)",
"return": "void",
"signature": "void incrementSequences(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.incrementSequenceValues(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp op)",
"constructor": false,
"full_signature": "private void incrementSequenceValues(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp op)",
"identifier": "incrementSequenceValues",
"modifiers": "private",
"parameters": "(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp op)",
"return": "void",
"signature": "void incrementSequenceValues(List<SequenceAllocation> sequenceAllocations, long timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp op)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.clearTableFromCache(final byte[] tenantId, final byte[] schemaName, final byte[] tableName,\n final long clientTS)",
"constructor": false,
"full_signature": "@Override public void clearTableFromCache(final byte[] tenantId, final byte[] schemaName, final byte[] tableName,\n final long clientTS)",
"identifier": "clearTableFromCache",
"modifiers": "@Override public",
"parameters": "(final byte[] tenantId, final byte[] schemaName, final byte[] tableName,\n final long clientTS)",
"return": "void",
"signature": "void clearTableFromCache(final byte[] tenantId, final byte[] schemaName, final byte[] tableName,\n final long clientTS)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.returnSequences(List<SequenceKey> keys, long timestamp, SQLException[] exceptions)",
"constructor": false,
"full_signature": "@Override public void returnSequences(List<SequenceKey> keys, long timestamp, SQLException[] exceptions)",
"identifier": "returnSequences",
"modifiers": "@Override public",
"parameters": "(List<SequenceKey> keys, long timestamp, SQLException[] exceptions)",
"return": "void",
"signature": "void returnSequences(List<SequenceKey> keys, long timestamp, SQLException[] exceptions)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.returnAllSequences(ConcurrentMap<SequenceKey,Sequence> sequenceMap)",
"constructor": false,
"full_signature": "private void returnAllSequences(ConcurrentMap<SequenceKey,Sequence> sequenceMap)",
"identifier": "returnAllSequences",
"modifiers": "private",
"parameters": "(ConcurrentMap<SequenceKey,Sequence> sequenceMap)",
"return": "void",
"signature": "void returnAllSequences(ConcurrentMap<SequenceKey,Sequence> sequenceMap)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addConnection(PhoenixConnection connection)",
"constructor": false,
"full_signature": "@Override public void addConnection(PhoenixConnection connection)",
"identifier": "addConnection",
"modifiers": "@Override public",
"parameters": "(PhoenixConnection connection)",
"return": "void",
"signature": "void addConnection(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeConnection(PhoenixConnection connection)",
"constructor": false,
"full_signature": "@Override public void removeConnection(PhoenixConnection connection)",
"identifier": "removeConnection",
"modifiers": "@Override public",
"parameters": "(PhoenixConnection connection)",
"return": "void",
"signature": "void removeConnection(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getQueueIndex(PhoenixConnection conn)",
"constructor": false,
"full_signature": "private int getQueueIndex(PhoenixConnection conn)",
"identifier": "getQueueIndex",
"modifiers": "private",
"parameters": "(PhoenixConnection conn)",
"return": "int",
"signature": "int getQueueIndex(PhoenixConnection conn)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getKeyValueBuilder()",
"constructor": false,
"full_signature": "@Override public KeyValueBuilder getKeyValueBuilder()",
"identifier": "getKeyValueBuilder",
"modifiers": "@Override public",
"parameters": "()",
"return": "KeyValueBuilder",
"signature": "KeyValueBuilder getKeyValueBuilder()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.supportsFeature(Feature feature)",
"constructor": false,
"full_signature": "@Override public boolean supportsFeature(Feature feature)",
"identifier": "supportsFeature",
"modifiers": "@Override public",
"parameters": "(Feature feature)",
"return": "boolean",
"signature": "boolean supportsFeature(Feature feature)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getUserName()",
"constructor": false,
"full_signature": "@Override public String getUserName()",
"identifier": "getUserName",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String getUserName()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getUser()",
"constructor": false,
"full_signature": "@Override public User getUser()",
"identifier": "getUser",
"modifiers": "@Override public",
"parameters": "()",
"return": "User",
"signature": "User getUser()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.checkClosed()",
"constructor": false,
"full_signature": "private void checkClosed()",
"identifier": "checkClosed",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void checkClosed()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.throwConnectionClosedIfNullMetaData()",
"constructor": false,
"full_signature": "private void throwConnectionClosedIfNullMetaData()",
"identifier": "throwConnectionClosedIfNullMetaData",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwConnectionClosedIfNullMetaData()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.throwConnectionClosedException()",
"constructor": false,
"full_signature": "private void throwConnectionClosedException()",
"identifier": "throwConnectionClosedException",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwConnectionClosedException()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTableStats(GuidePostsKey key)",
"constructor": false,
"full_signature": "@Override public GuidePostsInfo getTableStats(GuidePostsKey key)",
"identifier": "getTableStats",
"modifiers": "@Override public",
"parameters": "(GuidePostsKey key)",
"return": "GuidePostsInfo",
"signature": "GuidePostsInfo getTableStats(GuidePostsKey key)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSequenceSaltBuckets()",
"constructor": false,
"full_signature": "@Override public int getSequenceSaltBuckets()",
"identifier": "getSequenceSaltBuckets",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int getSequenceSaltBuckets()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addFunction(PFunction function)",
"constructor": false,
"full_signature": "@Override public void addFunction(PFunction function)",
"identifier": "addFunction",
"modifiers": "@Override public",
"parameters": "(PFunction function)",
"return": "void",
"signature": "void addFunction(PFunction function)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeFunction(PName tenantId, String function, long functionTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeFunction(PName tenantId, String function, long functionTimeStamp)",
"identifier": "removeFunction",
"modifiers": "@Override public",
"parameters": "(PName tenantId, String function, long functionTimeStamp)",
"return": "void",
"signature": "void removeFunction(PName tenantId, String function, long functionTimeStamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getFunctions(PName tenantId, final List<Pair<byte[], Long>> functions,\n final long clientTimestamp)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult getFunctions(PName tenantId, final List<Pair<byte[], Long>> functions,\n final long clientTimestamp)",
"identifier": "getFunctions",
"modifiers": "@Override public",
"parameters": "(PName tenantId, final List<Pair<byte[], Long>> functions,\n final long clientTimestamp)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult getFunctions(PName tenantId, final List<Pair<byte[], Long>> functions,\n final long clientTimestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getSchema(final String schemaName, final long clientTimestamp)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult getSchema(final String schemaName, final long clientTimestamp)",
"identifier": "getSchema",
"modifiers": "@Override public",
"parameters": "(final String schemaName, final long clientTimestamp)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult getSchema(final String schemaName, final long clientTimestamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createFunction(final List<Mutation> functionData,\n final PFunction function, final boolean temporary)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult createFunction(final List<Mutation> functionData,\n final PFunction function, final boolean temporary)",
"identifier": "createFunction",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> functionData,\n final PFunction function, final boolean temporary)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult createFunction(final List<Mutation> functionData,\n final PFunction function, final boolean temporary)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getRenewLeaseThresholdMilliSeconds()",
"constructor": false,
"full_signature": "@Override public long getRenewLeaseThresholdMilliSeconds()",
"identifier": "getRenewLeaseThresholdMilliSeconds",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getRenewLeaseThresholdMilliSeconds()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.isRenewingLeasesEnabled()",
"constructor": false,
"full_signature": "@Override public boolean isRenewingLeasesEnabled()",
"identifier": "isRenewingLeasesEnabled",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isRenewingLeasesEnabled()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getTableRegionLocation(byte[] tableName, byte[] row)",
"constructor": false,
"full_signature": "@Override public HRegionLocation getTableRegionLocation(byte[] tableName, byte[] row)",
"identifier": "getTableRegionLocation",
"modifiers": "@Override public",
"parameters": "(byte[] tableName, byte[] row)",
"return": "HRegionLocation",
"signature": "HRegionLocation getTableRegionLocation(byte[] tableName, byte[] row)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.createSchema(final List<Mutation> schemaMutations, final String schemaName)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult createSchema(final List<Mutation> schemaMutations, final String schemaName)",
"identifier": "createSchema",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> schemaMutations, final String schemaName)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult createSchema(final List<Mutation> schemaMutations, final String schemaName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addSchema(PSchema schema)",
"constructor": false,
"full_signature": "@Override public void addSchema(PSchema schema)",
"identifier": "addSchema",
"modifiers": "@Override public",
"parameters": "(PSchema schema)",
"return": "void",
"signature": "void addSchema(PSchema schema)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.removeSchema(PSchema schema, long schemaTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeSchema(PSchema schema, long schemaTimeStamp)",
"identifier": "removeSchema",
"modifiers": "@Override public",
"parameters": "(PSchema schema, long schemaTimeStamp)",
"return": "void",
"signature": "void removeSchema(PSchema schema, long schemaTimeStamp)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.dropSchema(final List<Mutation> schemaMetaData, final String schemaName)",
"constructor": false,
"full_signature": "@Override public MetaDataMutationResult dropSchema(final List<Mutation> schemaMetaData, final String schemaName)",
"identifier": "dropSchema",
"modifiers": "@Override public",
"parameters": "(final List<Mutation> schemaMetaData, final String schemaName)",
"return": "MetaDataMutationResult",
"signature": "MetaDataMutationResult dropSchema(final List<Mutation> schemaMetaData, final String schemaName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.ensureNamespaceDropped(String schemaName)",
"constructor": false,
"full_signature": "private void ensureNamespaceDropped(String schemaName)",
"identifier": "ensureNamespaceDropped",
"modifiers": "private",
"parameters": "(String schemaName)",
"return": "void",
"signature": "void ensureNamespaceDropped(String schemaName)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.addTableStats(GuidePostsKey key, GuidePostsInfo info)",
"constructor": false,
"full_signature": "public void addTableStats(GuidePostsKey key, GuidePostsInfo info)",
"identifier": "addTableStats",
"modifiers": "public",
"parameters": "(GuidePostsKey key, GuidePostsInfo info)",
"return": "void",
"signature": "void addTableStats(GuidePostsKey key, GuidePostsInfo info)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.invalidateStats(GuidePostsKey key)",
"constructor": false,
"full_signature": "@Override public void invalidateStats(GuidePostsKey key)",
"identifier": "invalidateStats",
"modifiers": "@Override public",
"parameters": "(GuidePostsKey key)",
"return": "void",
"signature": "void invalidateStats(GuidePostsKey key)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.isUpgradeRequired()",
"constructor": false,
"full_signature": "@Override public boolean isUpgradeRequired()",
"identifier": "isUpgradeRequired",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isUpgradeRequired()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.clearUpgradeRequired()",
"constructor": false,
"full_signature": "@Override public void clearUpgradeRequired()",
"identifier": "clearUpgradeRequired",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void clearUpgradeRequired()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getConfiguration()",
"constructor": false,
"full_signature": "@Override public Configuration getConfiguration()",
"identifier": "getConfiguration",
"modifiers": "@Override public",
"parameters": "()",
"return": "Configuration",
"signature": "Configuration getConfiguration()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getQueryDisruptor()",
"constructor": false,
"full_signature": "@Override public QueryLoggerDisruptor getQueryDisruptor()",
"identifier": "getQueryDisruptor",
"modifiers": "@Override public",
"parameters": "()",
"return": "QueryLoggerDisruptor",
"signature": "QueryLoggerDisruptor getQueryDisruptor()",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.initTransactionClient(Provider provider)",
"constructor": false,
"full_signature": "@Override public synchronized PhoenixTransactionClient initTransactionClient(Provider provider)",
"identifier": "initTransactionClient",
"modifiers": "@Override public synchronized",
"parameters": "(Provider provider)",
"return": "PhoenixTransactionClient",
"signature": "PhoenixTransactionClient initTransactionClient(Provider provider)",
"testcase": false
},
{
"class_method_signature": "ConnectionQueryServicesImpl.getCachedConnections()",
"constructor": false,
"full_signature": "@VisibleForTesting public List<LinkedBlockingQueue<WeakReference<PhoenixConnection>>> getCachedConnections()",
"identifier": "getCachedConnections",
"modifiers": "@VisibleForTesting public",
"parameters": "()",
"return": "List<LinkedBlockingQueue<WeakReference<PhoenixConnection>>>",
"signature": "List<LinkedBlockingQueue<WeakReference<PhoenixConnection>>> getCachedConnections()",
"testcase": false
}
],
"superclass": "extends DelegateQueryServices"
} | {
"body": "@VisibleForTesting\n boolean checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin) throws IOException {\n TableDescriptor htd;\n try {\n htd = admin.getDescriptor(TableName.valueOf(SYSTEM_MUTEX_NAME));\n } catch (org.apache.hadoop.hbase.TableNotFoundException ignored) {\n try {\n // Try with the namespace mapping name\n htd = admin.getDescriptor(TableName.valueOf(SYSTEM_SCHEMA_NAME,\n SYSTEM_MUTEX_TABLE_NAME));\n } catch (org.apache.hadoop.hbase.TableNotFoundException ignored2) {\n return false;\n }\n }\n\n // The SYSTEM MUTEX table already exists so check its TTL\n if (htd.getColumnFamily(SYSTEM_MUTEX_FAMILY_NAME_BYTES).getTimeToLive() != TTL_FOR_MUTEX) {\n LOGGER.debug(\"SYSTEM MUTEX already appears to exist, but has the wrong TTL. \" +\n \"Will modify the TTL\");\n ColumnFamilyDescriptor hColFamDesc = ColumnFamilyDescriptorBuilder\n .newBuilder(htd.getColumnFamily(SYSTEM_MUTEX_FAMILY_NAME_BYTES))\n .setTimeToLive(TTL_FOR_MUTEX)\n .build();\n htd = TableDescriptorBuilder\n .newBuilder(htd)\n .modifyColumnFamily(hColFamDesc)\n .build();\n admin.modifyTable(htd);\n } else {\n LOGGER.debug(\"SYSTEM MUTEX already appears to exist with the correct TTL, \" +\n \"not creating it\");\n }\n return true;\n }",
"class_method_signature": "ConnectionQueryServicesImpl.checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"constructor": false,
"full_signature": "@VisibleForTesting boolean checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"identifier": "checkIfSysMutexExistsAndModifyTTLIfRequired",
"invocations": [
"getDescriptor",
"valueOf",
"getDescriptor",
"valueOf",
"getTimeToLive",
"getColumnFamily",
"debug",
"build",
"setTimeToLive",
"newBuilder",
"getColumnFamily",
"build",
"modifyColumnFamily",
"newBuilder",
"modifyTable",
"debug"
],
"modifiers": "@VisibleForTesting",
"parameters": "(Admin admin)",
"return": "boolean",
"signature": "boolean checkIfSysMutexExistsAndModifyTTLIfRequired(Admin admin)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_13 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/ColumnInfoTest.java",
"identifier": "ColumnInfoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testOptionalDescriptionType() {\n testType(new ColumnInfo(\"a.myColumn\", Types.CHAR), \"CHAR:\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.CHAR, 100), \"CHAR(100):\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.VARCHAR), \"VARCHAR:\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.VARCHAR, 100), \"VARCHAR(100):\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.DECIMAL), \"DECIMAL:\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.DECIMAL, 100, 10), \"DECIMAL(100,10):\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", Types.BINARY, 5), \"BINARY(5):\\\"a\\\".\\\"myColumn\\\"\");\n\n // Array types\n testType(new ColumnInfo(\"a.myColumn\", PCharArray.INSTANCE.getSqlType(), 3), \"CHAR(3) ARRAY:\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", PDecimalArray.INSTANCE.getSqlType(), 10, 2), \"DECIMAL(10,2) ARRAY:\\\"a\\\".\\\"myColumn\\\"\");\n testType(new ColumnInfo(\"a.myColumn\", PVarcharArray.INSTANCE.getSqlType(), 4), \"VARCHAR(4) ARRAY:\\\"a\\\".\\\"myColumn\\\"\");\n }",
"class_method_signature": "ColumnInfoTest.testOptionalDescriptionType()",
"constructor": false,
"full_signature": "@Test public void testOptionalDescriptionType()",
"identifier": "testOptionalDescriptionType",
"invocations": [
"testType",
"testType",
"testType",
"testType",
"testType",
"testType",
"testType",
"testType",
"getSqlType",
"testType",
"getSqlType",
"testType",
"getSqlType"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testOptionalDescriptionType()",
"testcase": true
} | {
"fields": [
{
"declarator": "STR_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String STR_SEPARATOR = \":\";",
"type": "String",
"var_name": "STR_SEPARATOR"
},
{
"declarator": "columnName",
"modifier": "private final",
"original_string": "private final String columnName;",
"type": "String",
"var_name": "columnName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "precision",
"modifier": "private final",
"original_string": "private final Integer precision;",
"type": "Integer",
"var_name": "precision"
},
{
"declarator": "scale",
"modifier": "private final",
"original_string": "private final Integer scale;",
"type": "Integer",
"var_name": "scale"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/ColumnInfo.java",
"identifier": "ColumnInfo",
"interfaces": "",
"methods": [
{
"class_method_signature": "ColumnInfo.create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public static ColumnInfo create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"identifier": "create",
"modifiers": "public static",
"parameters": "(String columnName, int sqlType, Integer maxLength, Integer scale)",
"return": "ColumnInfo",
"signature": "ColumnInfo create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType, Integer maxLength)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType, Integer precision, Integer scale)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getColumnName()",
"constructor": false,
"full_signature": "public String getColumnName()",
"identifier": "getColumnName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getColumnName()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getSqlType()",
"constructor": false,
"full_signature": "public int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getPDataType()",
"constructor": false,
"full_signature": "public PDataType getPDataType()",
"identifier": "getPDataType",
"modifiers": "public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getPDataType()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getDisplayName()",
"constructor": false,
"full_signature": "public String getDisplayName()",
"identifier": "getDisplayName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getDisplayName()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.toTypeString()",
"constructor": false,
"full_signature": "public String toTypeString()",
"identifier": "toTypeString",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String toTypeString()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.fromString(String stringRepresentation)",
"constructor": false,
"full_signature": "public static ColumnInfo fromString(String stringRepresentation)",
"identifier": "fromString",
"modifiers": "public static",
"parameters": "(String stringRepresentation)",
"return": "ColumnInfo",
"signature": "ColumnInfo fromString(String stringRepresentation)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getMaxLength()",
"constructor": false,
"full_signature": "public Integer getMaxLength()",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getMaxLength()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getPrecision()",
"constructor": false,
"full_signature": "public Integer getPrecision()",
"identifier": "getPrecision",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getPrecision()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getScale()",
"constructor": false,
"full_signature": "public Integer getScale()",
"identifier": "getScale",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getScale()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public int getSqlType() {\n return sqlType;\n }",
"class_method_signature": "ColumnInfo.getSqlType()",
"constructor": false,
"full_signature": "public int getSqlType()",
"identifier": "getSqlType",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_151 | {
"fields": [
{
"declarator": "SCRUTINY_TIME_MILLIS = 1502908914193L",
"modifier": "private static final",
"original_string": "private static final long SCRUTINY_TIME_MILLIS = 1502908914193L;",
"type": "long",
"var_name": "SCRUTINY_TIME_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutputTest.java",
"identifier": "IndexScrutinyTableOutputTest",
"interfaces": "",
"superclass": "extends BaseIndexTest"
} | {
"body": "@Test\n public void testGetOutputTableUpsert() throws Exception {\n IndexColumnNames columnNames = new IndexColumnNames(pDataTable, pIndexTable);\n String outputTableUpsert =\n IndexScrutinyTableOutput.constructOutputTableUpsert(\n columnNames.getDynamicDataCols(), columnNames.getDynamicIndexCols(), conn);\n conn.prepareStatement(outputTableUpsert); // shouldn't throw\n assertEquals(\"UPSERT INTO PHOENIX_INDEX_SCRUTINY (\\\"SOURCE_TABLE\\\", \\\"TARGET_TABLE\\\", \\\"SCRUTINY_EXECUTE_TIME\\\", \\\"SOURCE_ROW_PK_HASH\\\", \\\"SOURCE_TS\\\", \\\"TARGET_TS\\\", \\\"HAS_TARGET_ROW\\\", \\\"BEYOND_MAX_LOOKBACK\\\", \\\"ID\\\" INTEGER, \\\"PK_PART2\\\" TINYINT, \\\"NAME\\\" VARCHAR, \\\"ZIP\\\" BIGINT, \\\":ID\\\" INTEGER, \\\":PK_PART2\\\" TINYINT, \\\"0:NAME\\\" VARCHAR, \\\"0:ZIP\\\" BIGINT) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n outputTableUpsert);\n }",
"class_method_signature": "IndexScrutinyTableOutputTest.testGetOutputTableUpsert()",
"constructor": false,
"full_signature": "@Test public void testGetOutputTableUpsert()",
"identifier": "testGetOutputTableUpsert",
"invocations": [
"constructOutputTableUpsert",
"getDynamicDataCols",
"getDynamicIndexCols",
"prepareStatement",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetOutputTableUpsert()",
"testcase": true
} | {
"fields": [
{
"declarator": "OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\"",
"modifier": "public static",
"original_string": "public static String OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\";",
"type": "String",
"var_name": "OUTPUT_TABLE_NAME"
},
{
"declarator": "SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\"",
"modifier": "public static final",
"original_string": "public static final String SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\";",
"type": "String",
"var_name": "SCRUTINY_EXECUTE_TIME_COL_NAME"
},
{
"declarator": "TARGET_TABLE_COL_NAME = \"TARGET_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String TARGET_TABLE_COL_NAME = \"TARGET_TABLE\";",
"type": "String",
"var_name": "TARGET_TABLE_COL_NAME"
},
{
"declarator": "SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\";",
"type": "String",
"var_name": "SOURCE_TABLE_COL_NAME"
},
{
"declarator": "OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \";",
"type": "String",
"var_name": "OUTPUT_TABLE_DDL"
},
{
"declarator": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\";",
"type": "String",
"var_name": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL"
},
{
"declarator": "OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\";",
"type": "String",
"var_name": "OUTPUT_METADATA_TABLE_NAME"
},
{
"declarator": "OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\";",
"type": "String",
"var_name": "OUTPUT_METADATA_DDL"
},
{
"declarator": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\";",
"type": "String",
"var_name": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL"
},
{
"declarator": "UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\"",
"modifier": "public static final",
"original_string": "public static final String UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";",
"type": "String",
"var_name": "UPSERT_METADATA_SQL"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutput.java",
"identifier": "IndexScrutinyTableOutput",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"constructor": false,
"full_signature": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"identifier": "constructOutputTableUpsert",
"modifiers": "public static",
"parameters": "(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"return": "String",
"signature": "String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryAllInvalidRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryMissingTargetRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBadCoveredColVal",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBeyondMaxLookback",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"constructor": false,
"full_signature": "public static ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"identifier": "queryAllLatestMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"return": "ResultSet",
"signature": "ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryAllMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"constructor": false,
"full_signature": "public static void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"identifier": "writeJobResults",
"modifiers": "public static",
"parameters": "(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"return": "void",
"signature": "void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructMetadataParamQuery(List<String> metadataSelectCols)",
"constructor": false,
"full_signature": "static String constructMetadataParamQuery(List<String> metadataSelectCols)",
"identifier": "constructMetadataParamQuery",
"modifiers": "static",
"parameters": "(List<String> metadataSelectCols)",
"return": "String",
"signature": "String constructMetadataParamQuery(List<String> metadataSelectCols)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"constructor": false,
"full_signature": "private static String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"identifier": "getAllInvalidParamQuery",
"modifiers": "private static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames)",
"return": "String",
"signature": "String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"constructor": false,
"full_signature": "private static String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"identifier": "bindPkCols",
"modifiers": "private static",
"parameters": "(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"return": "String",
"signature": "String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "private static String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"identifier": "getHasTargetRowQuery",
"modifiers": "private static",
"parameters": "(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"return": "String",
"signature": "String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPksCsv()",
"constructor": false,
"full_signature": "private static String getPksCsv()",
"identifier": "getPksCsv",
"modifiers": "private static",
"parameters": "()",
"return": "String",
"signature": "String getPksCsv()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPkCols()",
"constructor": false,
"full_signature": "private static List<String> getPkCols()",
"identifier": "getPkCols",
"modifiers": "private static",
"parameters": "()",
"return": "List<String>",
"signature": "List<String> getPkCols()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"constructor": false,
"full_signature": "private static String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"identifier": "constructOutputTableQuery",
"modifiers": "private static",
"parameters": "(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"return": "String",
"signature": "String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getOutputTableColumns(Connection connection)",
"constructor": false,
"full_signature": "private static List<String> getOutputTableColumns(Connection connection)",
"identifier": "getOutputTableColumns",
"modifiers": "private static",
"parameters": "(Connection connection)",
"return": "List<String>",
"signature": "List<String> getOutputTableColumns(Connection connection)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection) throws SQLException {\n List<String> outputTableColumns = getOutputTableColumns(connection);\n\n // construct a dynamic column upsert into the output table\n List<String> upsertCols =\n Lists.newArrayList(\n Iterables.concat(outputTableColumns, sourceDynamicCols, targetDynamicCols));\n String upsertStmt =\n QueryUtil.constructUpsertStatement(IndexScrutinyTableOutput.OUTPUT_TABLE_NAME,\n upsertCols, null);\n return upsertStmt;\n }",
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"constructor": false,
"full_signature": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"identifier": "constructOutputTableUpsert",
"invocations": [
"getOutputTableColumns",
"newArrayList",
"concat",
"constructUpsertStatement"
],
"modifiers": "public static",
"parameters": "(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"return": "String",
"signature": "String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_44 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetAutoCommit_FalseInUrl() {\n assertFalse(JDBCUtil.getAutoCommit(\"localhost;AutoCommit=FaLse\", new Properties(), false));\n }",
"class_method_signature": "JDBCUtilTest.testGetAutoCommit_FalseInUrl()",
"constructor": false,
"full_signature": "@Test public void testGetAutoCommit_FalseInUrl()",
"identifier": "testGetAutoCommit_FalseInUrl",
"invocations": [
"assertFalse",
"getAutoCommit"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetAutoCommit_FalseInUrl()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue) {\n String autoCommit = findProperty(url, info, PhoenixRuntime.AUTO_COMMIT_ATTRIB);\n if (autoCommit == null) {\n return defaultValue;\n }\n return Boolean.valueOf(autoCommit);\n }",
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"invocations": [
"findProperty",
"valueOf"
],
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_52 | {
"fields": [
{
"declarator": "conn",
"modifier": "private",
"original_string": "private Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "converter",
"modifier": "private",
"original_string": "private StringToArrayConverter converter;",
"type": "StringToArrayConverter",
"var_name": "converter"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/csv/StringToArrayConverterTest.java",
"identifier": "StringToArrayConverterTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testToArray_SingleElement() throws SQLException {\n Array singleElementArray = converter.toArray(\"value\");\n assertArrayEquals(\n new Object[]{\"value\"},\n (Object[]) singleElementArray.getArray());\n }",
"class_method_signature": "StringToArrayConverterTest.testToArray_SingleElement()",
"constructor": false,
"full_signature": "@Test public void testToArray_SingleElement()",
"identifier": "testToArray_SingleElement",
"invocations": [
"toArray",
"assertArrayEquals",
"getArray"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToArray_SingleElement()",
"testcase": true
} | {
"fields": [
{
"declarator": "splitter",
"modifier": "private final",
"original_string": "private final Splitter splitter;",
"type": "Splitter",
"var_name": "splitter"
},
{
"declarator": "conn",
"modifier": "private final",
"original_string": "private final Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "elementDataType",
"modifier": "private final",
"original_string": "private final PDataType elementDataType;",
"type": "PDataType",
"var_name": "elementDataType"
},
{
"declarator": "elementConvertFunction",
"modifier": "private final",
"original_string": "private final CsvUpsertExecutor.SimpleDatatypeConversionFunction elementConvertFunction;",
"type": "CsvUpsertExecutor.SimpleDatatypeConversionFunction",
"var_name": "elementConvertFunction"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/csv/StringToArrayConverter.java",
"identifier": "StringToArrayConverter",
"interfaces": "",
"methods": [
{
"class_method_signature": "StringToArrayConverter.StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"constructor": true,
"full_signature": "public StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"identifier": "StringToArrayConverter",
"modifiers": "public",
"parameters": "(Connection conn, String separatorString,\n PDataType elementDataType)",
"return": "",
"signature": " StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"testcase": false
},
{
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Array toArray(String input) throws SQLException {\n if (input == null || input.isEmpty()) {\n return conn.createArrayOf(elementDataType.getSqlTypeName(), new Object[0]);\n }\n return conn.createArrayOf(\n elementDataType.getSqlTypeName(),\n Lists.newArrayList(\n Iterables.transform(\n splitter.split(input),\n elementConvertFunction)).toArray());\n }",
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"invocations": [
"isEmpty",
"createArrayOf",
"getSqlTypeName",
"createArrayOf",
"getSqlTypeName",
"toArray",
"newArrayList",
"transform",
"split"
],
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_147 | {
"fields": [
{
"declarator": "SCRUTINY_TIME_MILLIS = 1502908914193L",
"modifier": "private static final",
"original_string": "private static final long SCRUTINY_TIME_MILLIS = 1502908914193L;",
"type": "long",
"var_name": "SCRUTINY_TIME_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutputTest.java",
"identifier": "IndexScrutinyTableOutputTest",
"interfaces": "",
"superclass": "extends BaseIndexTest"
} | {
"body": "@Test\n public void testGetSqlQueryAllInvalidRows() throws SQLException {\n SourceTargetColumnNames columnNames =\n new SourceTargetColumnNames.DataSourceColNames(pDataTable, pIndexTable);\n String sqlStr =\n IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(conn, columnNames,\n SCRUTINY_TIME_MILLIS);\n assertEquals(\"SELECT \\\"SOURCE_TABLE\\\" , \\\"TARGET_TABLE\\\" , \\\"SCRUTINY_EXECUTE_TIME\\\" , \\\"SOURCE_ROW_PK_HASH\\\" , \\\"SOURCE_TS\\\" , \\\"TARGET_TS\\\" , \\\"HAS_TARGET_ROW\\\" , \\\"BEYOND_MAX_LOOKBACK\\\" , \\\"ID\\\" , \\\"PK_PART2\\\" , \\\"NAME\\\" , \\\"ZIP\\\" , \\\":ID\\\" , \\\":PK_PART2\\\" , \\\"0:NAME\\\" , \\\"0:ZIP\\\" FROM PHOENIX_INDEX_SCRUTINY(\\\"ID\\\" INTEGER,\\\"PK_PART2\\\" TINYINT,\\\"NAME\\\" VARCHAR,\\\"ZIP\\\" BIGINT,\\\":ID\\\" INTEGER,\\\":PK_PART2\\\" TINYINT,\\\"0:NAME\\\" VARCHAR,\\\"0:ZIP\\\" BIGINT) WHERE (\\\"SOURCE_TABLE\\\",\\\"TARGET_TABLE\\\",\\\"SCRUTINY_EXECUTE_TIME\\\") IN (('TEST_SCHEMA.TEST_INDEX_COLUMN_NAMES_UTIL','TEST_SCHEMA.TEST_ICN_INDEX',1502908914193))\",\n sqlStr);\n }",
"class_method_signature": "IndexScrutinyTableOutputTest.testGetSqlQueryAllInvalidRows()",
"constructor": false,
"full_signature": "@Test public void testGetSqlQueryAllInvalidRows()",
"identifier": "testGetSqlQueryAllInvalidRows",
"invocations": [
"getSqlQueryAllInvalidRows",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetSqlQueryAllInvalidRows()",
"testcase": true
} | {
"fields": [
{
"declarator": "OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\"",
"modifier": "public static",
"original_string": "public static String OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\";",
"type": "String",
"var_name": "OUTPUT_TABLE_NAME"
},
{
"declarator": "SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\"",
"modifier": "public static final",
"original_string": "public static final String SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\";",
"type": "String",
"var_name": "SCRUTINY_EXECUTE_TIME_COL_NAME"
},
{
"declarator": "TARGET_TABLE_COL_NAME = \"TARGET_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String TARGET_TABLE_COL_NAME = \"TARGET_TABLE\";",
"type": "String",
"var_name": "TARGET_TABLE_COL_NAME"
},
{
"declarator": "SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\";",
"type": "String",
"var_name": "SOURCE_TABLE_COL_NAME"
},
{
"declarator": "OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \";",
"type": "String",
"var_name": "OUTPUT_TABLE_DDL"
},
{
"declarator": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\";",
"type": "String",
"var_name": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL"
},
{
"declarator": "OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\";",
"type": "String",
"var_name": "OUTPUT_METADATA_TABLE_NAME"
},
{
"declarator": "OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\";",
"type": "String",
"var_name": "OUTPUT_METADATA_DDL"
},
{
"declarator": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\";",
"type": "String",
"var_name": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL"
},
{
"declarator": "UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\"",
"modifier": "public static final",
"original_string": "public static final String UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";",
"type": "String",
"var_name": "UPSERT_METADATA_SQL"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutput.java",
"identifier": "IndexScrutinyTableOutput",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"constructor": false,
"full_signature": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"identifier": "constructOutputTableUpsert",
"modifiers": "public static",
"parameters": "(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"return": "String",
"signature": "String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryAllInvalidRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryMissingTargetRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBadCoveredColVal",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBeyondMaxLookback",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"constructor": false,
"full_signature": "public static ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"identifier": "queryAllLatestMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"return": "ResultSet",
"signature": "ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryAllMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"constructor": false,
"full_signature": "public static void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"identifier": "writeJobResults",
"modifiers": "public static",
"parameters": "(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"return": "void",
"signature": "void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructMetadataParamQuery(List<String> metadataSelectCols)",
"constructor": false,
"full_signature": "static String constructMetadataParamQuery(List<String> metadataSelectCols)",
"identifier": "constructMetadataParamQuery",
"modifiers": "static",
"parameters": "(List<String> metadataSelectCols)",
"return": "String",
"signature": "String constructMetadataParamQuery(List<String> metadataSelectCols)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"constructor": false,
"full_signature": "private static String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"identifier": "getAllInvalidParamQuery",
"modifiers": "private static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames)",
"return": "String",
"signature": "String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"constructor": false,
"full_signature": "private static String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"identifier": "bindPkCols",
"modifiers": "private static",
"parameters": "(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"return": "String",
"signature": "String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "private static String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"identifier": "getHasTargetRowQuery",
"modifiers": "private static",
"parameters": "(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"return": "String",
"signature": "String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPksCsv()",
"constructor": false,
"full_signature": "private static String getPksCsv()",
"identifier": "getPksCsv",
"modifiers": "private static",
"parameters": "()",
"return": "String",
"signature": "String getPksCsv()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPkCols()",
"constructor": false,
"full_signature": "private static List<String> getPkCols()",
"identifier": "getPkCols",
"modifiers": "private static",
"parameters": "()",
"return": "List<String>",
"signature": "List<String> getPkCols()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"constructor": false,
"full_signature": "private static String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"identifier": "constructOutputTableQuery",
"modifiers": "private static",
"parameters": "(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"return": "String",
"signature": "String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getOutputTableColumns(Connection connection)",
"constructor": false,
"full_signature": "private static List<String> getOutputTableColumns(Connection connection)",
"identifier": "getOutputTableColumns",
"modifiers": "private static",
"parameters": "(Connection connection)",
"return": "List<String>",
"signature": "List<String> getOutputTableColumns(Connection connection)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis) throws SQLException {\n String paramQuery = getAllInvalidParamQuery(conn, columnNames);\n paramQuery = bindPkCols(columnNames, scrutinyTimeMillis, paramQuery);\n return paramQuery;\n }",
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryAllInvalidRows",
"invocations": [
"getAllInvalidParamQuery",
"bindPkCols"
],
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_110 | {
"fields": [
{
"declarator": "testCache = null",
"modifier": "static",
"original_string": "static GuidePostsCache testCache = null;",
"type": "GuidePostsCache",
"var_name": "testCache"
},
{
"declarator": "phoenixStatsLoader = null",
"modifier": "static",
"original_string": "static PhoenixStatsLoader phoenixStatsLoader = null;",
"type": "PhoenixStatsLoader",
"var_name": "phoenixStatsLoader"
},
{
"declarator": "helper",
"modifier": "private",
"original_string": "private GuidePostsCacheProvider helper;",
"type": "GuidePostsCacheProvider",
"var_name": "helper"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/query/GuidePostsCacheProviderTest.java",
"identifier": "GuidePostsCacheProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = java.lang.NullPointerException.class)\n public void loadAndGetGuidePostsCacheFactoryNullStringFailure(){\n helper.loadAndGetGuidePostsCacheFactory(null);\n }",
"class_method_signature": "GuidePostsCacheProviderTest.loadAndGetGuidePostsCacheFactoryNullStringFailure()",
"constructor": false,
"full_signature": "@Test(expected = java.lang.NullPointerException.class) public void loadAndGetGuidePostsCacheFactoryNullStringFailure()",
"identifier": "loadAndGetGuidePostsCacheFactoryNullStringFailure",
"invocations": [
"loadAndGetGuidePostsCacheFactory"
],
"modifiers": "@Test(expected = java.lang.NullPointerException.class) public",
"parameters": "()",
"return": "void",
"signature": "void loadAndGetGuidePostsCacheFactoryNullStringFailure()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "guidePostsCacheFactory = null",
"modifier": "",
"original_string": "GuidePostsCacheFactory guidePostsCacheFactory = null;",
"type": "GuidePostsCacheFactory",
"var_name": "guidePostsCacheFactory"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java",
"identifier": "GuidePostsCacheProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheProvider.getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"constructor": false,
"full_signature": "public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"identifier": "getGuidePostsCache",
"modifiers": "public",
"parameters": "(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"return": "GuidePostsCacheWrapper",
"signature": "GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString) {\n Preconditions.checkNotNull(classString);\n if (guidePostsCacheFactory == null) {\n try {\n\n Class clazz = Class.forName(classString);\n if (!GuidePostsCacheFactory.class.isAssignableFrom(clazz)) {\n String msg = String.format(\n \"Could not load/instantiate class %s is not an instance of GuidePostsCacheFactory\",\n classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n\n List<GuidePostsCacheFactory> factoryList = InstanceResolver.get(GuidePostsCacheFactory.class, null);\n for (GuidePostsCacheFactory factory : factoryList) {\n if (clazz.isInstance(factory)) {\n guidePostsCacheFactory = factory;\n LOGGER.info(String.format(\"Sucessfully loaded class for GuidePostsCacheFactor of type: %s\",\n classString));\n break;\n }\n }\n if (guidePostsCacheFactory == null) {\n String msg = String.format(\"Could not load/instantiate class %s\", classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n } catch (ClassNotFoundException e) {\n LOGGER.error(String.format(\"Could not load/instantiate class %s\", classString), e);\n throw new PhoenixNonRetryableRuntimeException(e);\n }\n }\n return guidePostsCacheFactory;\n }",
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"invocations": [
"checkNotNull",
"forName",
"isAssignableFrom",
"format",
"error",
"get",
"isInstance",
"info",
"format",
"format",
"error",
"error",
"format"
],
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_91 | {
"fields": [
{
"declarator": "ROW = Bytes.toBytes(\"row\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "QUALIFIER = Bytes.toBytes(\"qual\")",
"modifier": "private static final",
"original_string": "private static final byte[] QUALIFIER = Bytes.toBytes(\"qual\");",
"type": "byte[]",
"var_name": "QUALIFIER"
},
{
"declarator": "ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\")",
"modifier": "private static final",
"original_string": "private static final byte[] ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\");",
"type": "byte[]",
"var_name": "ORIGINAL_VALUE"
},
{
"declarator": "DUMMY_TAGS = Bytes.toBytes(\"tags\")",
"modifier": "private static final",
"original_string": "private static final byte[] DUMMY_TAGS = Bytes.toBytes(\"tags\");",
"type": "byte[]",
"var_name": "DUMMY_TAGS"
},
{
"declarator": "mockBuilder = Mockito.mock(ExtendedCellBuilder.class)",
"modifier": "private final",
"original_string": "private final ExtendedCellBuilder mockBuilder = Mockito.mock(ExtendedCellBuilder.class);",
"type": "ExtendedCellBuilder",
"var_name": "mockBuilder"
},
{
"declarator": "mockCellWithTags = Mockito.mock(ExtendedCell.class)",
"modifier": "private final",
"original_string": "private final ExtendedCell mockCellWithTags = Mockito.mock(ExtendedCell.class);",
"type": "ExtendedCell",
"var_name": "mockCellWithTags"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/MetaDataUtilTest.java",
"identifier": "MetaDataUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSkipTaggingAPutDueToSameCellValue() throws Exception {\n Put put = generateOriginalPut();\n Cell initialCell = put.get(TABLE_FAMILY_BYTES, QUALIFIER).get(0);\n\n // valueArray is set as the value stored in the cell, so we skip tagging the cell\n MetaDataUtil.conditionallyAddTagsToPutCells(put, TABLE_FAMILY_BYTES, QUALIFIER,\n mockBuilder, ORIGINAL_VALUE, DUMMY_TAGS);\n verify(mockBuilder, never()).setTags(Mockito.any(byte[].class));\n Cell newCell = put.getFamilyCellMap().get(TABLE_FAMILY_BYTES).get(0);\n assertEquals(initialCell, newCell);\n assertNull(TagUtil.carryForwardTags(newCell));\n }",
"class_method_signature": "MetaDataUtilTest.testSkipTaggingAPutDueToSameCellValue()",
"constructor": false,
"full_signature": "@Test public void testSkipTaggingAPutDueToSameCellValue()",
"identifier": "testSkipTaggingAPutDueToSameCellValue",
"invocations": [
"generateOriginalPut",
"get",
"get",
"conditionallyAddTagsToPutCells",
"setTags",
"verify",
"never",
"any",
"get",
"get",
"getFamilyCellMap",
"assertEquals",
"assertNull",
"carryForwardTags"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testSkipTaggingAPutDueToSameCellValue()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(MetaDataUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(MetaDataUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "VIEW_INDEX_TABLE_PREFIX = \"_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_TABLE_PREFIX = \"_IDX_\";",
"type": "String",
"var_name": "VIEW_INDEX_TABLE_PREFIX"
},
{
"declarator": "LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\";",
"type": "String",
"var_name": "LOCAL_INDEX_TABLE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_NAME_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX)",
"modifier": "public static final",
"original_string": "public static final byte[] VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX);",
"type": "byte[]",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES"
},
{
"declarator": "VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\";",
"type": "String",
"var_name": "VIEW_INDEX_ID_COLUMN_NAME"
},
{
"declarator": "PARENT_TABLE_KEY = \"PARENT_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String PARENT_TABLE_KEY = \"PARENT_TABLE\";",
"type": "String",
"var_name": "PARENT_TABLE_KEY"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\"",
"modifier": "public static final",
"original_string": "public static final String DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\";",
"type": "String",
"var_name": "DATA_TABLE_NAME_PROP_NAME"
},
{
"declarator": "DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME);",
"type": "byte[]",
"var_name": "DATA_TABLE_NAME_PROP_BYTES"
},
{
"declarator": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE)",
"modifier": "public static final",
"original_string": "public static final List<String> SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE);",
"type": "List<String>",
"var_name": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java",
"identifier": "MetaDataUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"constructor": false,
"full_signature": "public static ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "public static",
"parameters": "(long serverHBaseAndPhoenixVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"constructor": false,
"full_signature": "@VisibleForTesting static ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "@VisibleForTesting static",
"parameters": "(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodePhoenixVersion(long version)",
"constructor": false,
"full_signature": "public static int decodePhoenixVersion(long version)",
"identifier": "decodePhoenixVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodePhoenixVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeHasIndexWALCodec(long version, boolean isValid)",
"constructor": false,
"full_signature": "public static long encodeHasIndexWALCodec(long version, boolean isValid)",
"identifier": "encodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version, boolean isValid)",
"return": "long",
"signature": "long encodeHasIndexWALCodec(long version, boolean isValid)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHasIndexWALCodec(long version)",
"constructor": false,
"full_signature": "public static boolean decodeHasIndexWALCodec(long version)",
"identifier": "decodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeHasIndexWALCodec(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersion(long version)",
"constructor": false,
"full_signature": "public static int decodeHBaseVersion(long version)",
"identifier": "decodeHBaseVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodeHBaseVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersionAsString(int version)",
"constructor": false,
"full_signature": "public static String decodeHBaseVersionAsString(int version)",
"identifier": "decodeHBaseVersionAsString",
"modifiers": "public static",
"parameters": "(int version)",
"return": "String",
"signature": "String decodeHBaseVersionAsString(int version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeTableNamespaceMappingEnabled(long version)",
"constructor": false,
"full_signature": "public static boolean decodeTableNamespaceMappingEnabled(long version)",
"identifier": "decodeTableNamespaceMappingEnabled",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeTableNamespaceMappingEnabled(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Mutation someRow)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Mutation someRow)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Result result)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Result result)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Result result)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Result result)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getBaseColumnCount(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static int getBaseColumnCount(List<Mutation> tableMetadata)",
"identifier": "getBaseColumnCount",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "int",
"signature": "int getBaseColumnCount(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"constructor": false,
"full_signature": "public static void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"identifier": "mutatePutValue",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"return": "void",
"signature": "void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"constructor": false,
"full_signature": "public static Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"identifier": "cloneDeleteToPutAndAddColumn",
"modifiers": "public static",
"parameters": "(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"return": "Put",
"signature": "Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndFunctionName",
"modifiers": "public static",
"parameters": "(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableName(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static byte[] getParentTableName(List<Mutation> tableMetadata)",
"identifier": "getParentTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "byte[]",
"signature": "byte[] getParentTableName(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(Mutation tableMutation)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "long",
"signature": "long getSequenceNumber(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getTableType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "PTableType",
"signature": "PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "isNameSpaceMapped",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "boolean",
"signature": "boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getSaltBuckets",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "int",
"signature": "int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getParentSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getParentSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getParentSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"constructor": false,
"full_signature": "public static KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"return": "KeyValue",
"signature": "KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"constructor": false,
"full_signature": "public static boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"identifier": "setMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"return": "boolean",
"signature": "boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getPutOnlyTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"identifier": "getPutOnlyAutoPartitionColumn",
"modifiers": "public static",
"parameters": "(PTable parentTable, List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getParentTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(List<Mutation> tableMetadata)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "long",
"signature": "long getClientTimeStamp(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(Mutation m)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(Mutation m)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "long",
"signature": "long getClientTimeStamp(Mutation m)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(String tenantId, String schemaName, String tableName, String indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"constructor": false,
"full_signature": "public static byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"identifier": "getChildLinkKey",
"modifiers": "public static",
"parameters": "(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"return": "byte[]",
"signature": "byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getCell(List<Cell> cells, byte[] cq)",
"constructor": false,
"full_signature": "public static Cell getCell(List<Cell> cells, byte[] cq)",
"identifier": "getCell",
"modifiers": "public static",
"parameters": "(List<Cell> cells, byte[] cq)",
"return": "Cell",
"signature": "Cell getCell(List<Cell> cells, byte[] cq)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isMultiTenant",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isTransactional",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isSalted",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(String physicalTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexPhysicalName(String physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(String physicalTableName)",
"return": "String",
"signature": "String getViewIndexPhysicalName(String physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(byte[] physicalTableName, String indexPrefix)",
"return": "byte[]",
"signature": "byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(String physicalTableName, String indexPrefix)",
"return": "String",
"signature": "String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getLocalIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexTableName(String tableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexTableName(String tableName)",
"identifier": "getLocalIndexTableName",
"modifiers": "public static",
"parameters": "(String tableName)",
"return": "String",
"signature": "String getLocalIndexTableName(String tableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexSchemaName(String schemaName)",
"constructor": false,
"full_signature": "public static String getLocalIndexSchemaName(String schemaName)",
"identifier": "getLocalIndexSchemaName",
"modifiers": "public static",
"parameters": "(String schemaName)",
"return": "String",
"signature": "String getLocalIndexSchemaName(String schemaName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexUserTableName(String localIndexTableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexUserTableName(String localIndexTableName)",
"identifier": "getLocalIndexUserTableName",
"modifiers": "public static",
"parameters": "(String localIndexTableName)",
"return": "String",
"signature": "String getLocalIndexUserTableName(String localIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexUserTableName(String viewIndexTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexUserTableName(String viewIndexTableName)",
"identifier": "getViewIndexUserTableName",
"modifiers": "public static",
"parameters": "(String viewIndexTableName)",
"return": "String",
"signature": "String getViewIndexUserTableName(String viewIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getViewIndexIdDataType()",
"identifier": "getViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLegacyViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getLegacyViewIndexIdDataType()",
"identifier": "getLegacyViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getLegacyViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdColumnName()",
"constructor": false,
"full_signature": "public static String getViewIndexIdColumnName()",
"identifier": "getViewIndexIdColumnName",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getViewIndexIdColumnName()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexColumnFamily(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"identifier": "hasLocalIndexColumnFamily",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "boolean",
"signature": "boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"identifier": "getNonLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "List<byte[]>",
"signature": "List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"identifier": "getLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(PhoenixConnection conn, byte[] physicalTableName)",
"return": "List<byte[]>",
"signature": "List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"identifier": "deleteViewIndexSequences",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"return": "void",
"signature": "void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.tableRegionsOnline(Configuration conf, PTable table)",
"constructor": false,
"full_signature": "public static boolean tableRegionsOnline(Configuration conf, PTable table)",
"identifier": "tableRegionsOnline",
"modifiers": "public static",
"parameters": "(Configuration conf, PTable table)",
"return": "boolean",
"signature": "boolean tableRegionsOnline(Configuration conf, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.propertyNotAllowedToBeOutOfSync(String colFamProp)",
"constructor": false,
"full_signature": "public static boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"identifier": "propertyNotAllowedToBeOutOfSync",
"modifiers": "public static",
"parameters": "(String colFamProp)",
"return": "boolean",
"signature": "boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"constructor": false,
"full_signature": "public static Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"identifier": "getSyncedProps",
"modifiers": "public static",
"parameters": "(ColumnFamilyDescriptor defaultCFDesc)",
"return": "Map<String, Object>",
"signature": "Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] key, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Mutation tableMutation)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "LinkType",
"signature": "LinkType getLinkType(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Collection<Cell> kvs)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Collection<Cell> kvs)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Collection<Cell> kvs)",
"return": "LinkType",
"signature": "LinkType getLinkType(Collection<Cell> kvs)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isLocalIndex(String physicalName)",
"identifier": "isLocalIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isLocalIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isViewIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isViewIndex(String physicalName)",
"identifier": "isViewIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isViewIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColumnName(PTable parentTable)",
"constructor": false,
"full_signature": "public static String getAutoPartitionColumnName(PTable parentTable)",
"identifier": "getAutoPartitionColumnName",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "String",
"signature": "String getAutoPartitionColumnName(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColIndex(PTable parentTable)",
"constructor": false,
"full_signature": "public static int getAutoPartitionColIndex(PTable parentTable)",
"identifier": "getAutoPartitionColIndex",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "int",
"signature": "int getAutoPartitionColIndex(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getJdbcUrl(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static String getJdbcUrl(RegionCoprocessorEnvironment env)",
"identifier": "getJdbcUrl",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "String",
"signature": "String getJdbcUrl(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHColumnProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHColumnProperty(String propName)",
"identifier": "isHColumnProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHColumnProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHTableProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHTableProperty(String propName)",
"identifier": "isHTableProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHTableProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(ImmutableBytesPtr cfPtr)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(byte[] cf)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(byte[] cf)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(byte[] cf)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(byte[] cf)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPhysicalTableRowForView(PTable view)",
"constructor": false,
"full_signature": "public static final byte[] getPhysicalTableRowForView(PTable view)",
"identifier": "getPhysicalTableRowForView",
"modifiers": "public static final",
"parameters": "(PTable view)",
"return": "byte[]",
"signature": "byte[] getPhysicalTableRowForView(PTable view)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.removeChildLinkMutations(List<Mutation> metadataMutations)",
"constructor": false,
"full_signature": "public static List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"identifier": "removeChildLinkMutations",
"modifiers": "public static",
"parameters": "(List<Mutation> metadataMutations)",
"return": "List<Mutation>",
"signature": "List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getIndexType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "IndexType",
"signature": "IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"identifier": "getIndexDataType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"return": "PDataType<?>",
"signature": "PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"constructor": false,
"full_signature": "public static PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"identifier": "getColumn",
"modifiers": "public static",
"parameters": "(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"return": "PColumn",
"signature": "PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"constructor": false,
"full_signature": "public static void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"identifier": "deleteFromStatsTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"return": "void",
"signature": "void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray) {\n NavigableMap<byte[], List<Cell>> familyCellMap = somePut.getFamilyCellMap();\n List<Cell> cells = familyCellMap.get(family);\n List<Cell> newCells = Lists.newArrayList();\n if (cells != null) {\n for (Cell cell : cells) {\n if (Bytes.compareTo(cell.getQualifierArray(), cell.getQualifierOffset(),\n cell.getQualifierLength(), qualifier, 0, qualifier.length) == 0 &&\n (valueArray == null || !CellUtil.matchingValue(cell, valueArray))) {\n ExtendedCell extendedCell = cellBuilder\n .setRow(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength())\n .setFamily(cell.getFamilyArray(), cell.getFamilyOffset(),\n cell.getFamilyLength())\n .setQualifier(cell.getQualifierArray(), cell.getQualifierOffset(),\n cell.getQualifierLength())\n .setValue(cell.getValueArray(), cell.getValueOffset(),\n cell.getValueLength())\n .setTimestamp(cell.getTimestamp())\n .setType(cell.getType())\n .setTags(TagUtil.concatTags(tagArray, cell))\n .build();\n // Replace existing cell with a cell that has the custom tags list\n newCells.add(extendedCell);\n } else {\n // Add cell as is\n newCells.add(cell);\n }\n }\n familyCellMap.put(family, newCells);\n }\n }",
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"invocations": [
"getFamilyCellMap",
"get",
"newArrayList",
"compareTo",
"getQualifierArray",
"getQualifierOffset",
"getQualifierLength",
"matchingValue",
"build",
"setTags",
"setType",
"setTimestamp",
"setValue",
"setQualifier",
"setFamily",
"setRow",
"getRowArray",
"getRowOffset",
"getRowLength",
"getFamilyArray",
"getFamilyOffset",
"getFamilyLength",
"getQualifierArray",
"getQualifierOffset",
"getQualifierLength",
"getValueArray",
"getValueOffset",
"getValueLength",
"getTimestamp",
"getType",
"concatTags",
"add",
"add",
"put"
],
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_184 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/tuple/SingleKeyValueTupleTest.java",
"identifier": "SingleKeyValueTupleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToString() {\n\n SingleKeyValueTuple singleKeyValueTuple = new SingleKeyValueTuple();\n assertTrue(singleKeyValueTuple.toString().equals(\"SingleKeyValueTuple[null]\"));\n final byte [] rowKey = Bytes.toBytes(\"aaa\");\n singleKeyValueTuple.setKey(new ImmutableBytesWritable(rowKey));\n assertTrue(singleKeyValueTuple.toString().equals(\"SingleKeyValueTuple[aaa]\"));\n\n byte [] family1 = Bytes.toBytes(\"abc\");\n byte [] qualifier1 = Bytes.toBytes(\"def\");\n KeyValue keyValue = new KeyValue(rowKey, family1, qualifier1, 0L, Type.Put, rowKey);\n singleKeyValueTuple = new SingleKeyValueTuple(keyValue);\n assertTrue(singleKeyValueTuple.toString().startsWith(\"SingleKeyValueTuple[aaa/abc:def/0/Put/vlen=3\"));\n assertTrue(singleKeyValueTuple.toString().endsWith(\"]\"));\n }",
"class_method_signature": "SingleKeyValueTupleTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "testToString",
"invocations": [
"assertTrue",
"equals",
"toString",
"toBytes",
"setKey",
"assertTrue",
"equals",
"toString",
"toBytes",
"toBytes",
"assertTrue",
"startsWith",
"toString",
"assertTrue",
"endsWith",
"toString"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToString()",
"testcase": true
} | {
"fields": [
{
"declarator": "UNITIALIZED_KEY_BUFFER = new byte[0]",
"modifier": "private static final",
"original_string": "private static final byte[] UNITIALIZED_KEY_BUFFER = new byte[0];",
"type": "byte[]",
"var_name": "UNITIALIZED_KEY_BUFFER"
},
{
"declarator": "cell",
"modifier": "private",
"original_string": "private Cell cell;",
"type": "Cell",
"var_name": "cell"
},
{
"declarator": "rowKeyPtr = new ImmutableBytesWritable(UNITIALIZED_KEY_BUFFER)",
"modifier": "private",
"original_string": "private ImmutableBytesWritable rowKeyPtr = new ImmutableBytesWritable(UNITIALIZED_KEY_BUFFER);",
"type": "ImmutableBytesWritable",
"var_name": "rowKeyPtr"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/tuple/SingleKeyValueTuple.java",
"identifier": "SingleKeyValueTuple",
"interfaces": "",
"methods": [
{
"class_method_signature": "SingleKeyValueTuple.SingleKeyValueTuple()",
"constructor": true,
"full_signature": "public SingleKeyValueTuple()",
"identifier": "SingleKeyValueTuple",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " SingleKeyValueTuple()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.SingleKeyValueTuple(Cell cell)",
"constructor": true,
"full_signature": "public SingleKeyValueTuple(Cell cell)",
"identifier": "SingleKeyValueTuple",
"modifiers": "public",
"parameters": "(Cell cell)",
"return": "",
"signature": " SingleKeyValueTuple(Cell cell)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.hasKey()",
"constructor": false,
"full_signature": "public boolean hasKey()",
"identifier": "hasKey",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasKey()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.reset()",
"constructor": false,
"full_signature": "public void reset()",
"identifier": "reset",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void reset()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.setCell(Cell cell)",
"constructor": false,
"full_signature": "public void setCell(Cell cell)",
"identifier": "setCell",
"modifiers": "public",
"parameters": "(Cell cell)",
"return": "void",
"signature": "void setCell(Cell cell)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.setKey(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public void setKey(ImmutableBytesWritable ptr)",
"identifier": "setKey",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "void",
"signature": "void setKey(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.setKey(Cell cell)",
"constructor": false,
"full_signature": "public void setKey(Cell cell)",
"identifier": "setKey",
"modifiers": "public",
"parameters": "(Cell cell)",
"return": "void",
"signature": "void setKey(Cell cell)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.getKey(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public void getKey(ImmutableBytesWritable ptr)",
"identifier": "getKey",
"modifiers": "@Override public",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "void",
"signature": "void getKey(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.getValue(byte[] cf, byte[] cq)",
"constructor": false,
"full_signature": "@Override public Cell getValue(byte[] cf, byte[] cq)",
"identifier": "getValue",
"modifiers": "@Override public",
"parameters": "(byte[] cf, byte[] cq)",
"return": "Cell",
"signature": "Cell getValue(byte[] cf, byte[] cq)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.isImmutable()",
"constructor": false,
"full_signature": "@Override public boolean isImmutable()",
"identifier": "isImmutable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isImmutable()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.size()",
"constructor": false,
"full_signature": "@Override public int size()",
"identifier": "size",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int size()",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.getValue(int index)",
"constructor": false,
"full_signature": "@Override public Cell getValue(int index)",
"identifier": "getValue",
"modifiers": "@Override public",
"parameters": "(int index)",
"return": "Cell",
"signature": "Cell getValue(int index)",
"testcase": false
},
{
"class_method_signature": "SingleKeyValueTuple.getValue(byte[] family, byte[] qualifier,\n ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean getValue(byte[] family, byte[] qualifier,\n ImmutableBytesWritable ptr)",
"identifier": "getValue",
"modifiers": "@Override public",
"parameters": "(byte[] family, byte[] qualifier,\n ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean getValue(byte[] family, byte[] qualifier,\n ImmutableBytesWritable ptr)",
"testcase": false
}
],
"superclass": "extends BaseTuple"
} | {
"body": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"SingleKeyValueTuple[\");\n if (cell == null) {\n if (rowKeyPtr.get() == UNITIALIZED_KEY_BUFFER) {\n sb.append(\"null\");\n } else {\n sb.append(Bytes.toStringBinary(rowKeyPtr.get(),rowKeyPtr.getOffset(),rowKeyPtr.getLength()));\n }\n } else {\n sb.append(cell.toString());\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"class_method_signature": "SingleKeyValueTuple.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"append",
"get",
"append",
"append",
"toStringBinary",
"get",
"getOffset",
"getLength",
"append",
"toString",
"append",
"toString"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_29 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBulkAllocationAscendingOverflow() throws SQLException {\n assertTrue(SequenceUtil.checkIfLimitReached(Long.MAX_VALUE, 0, Long.MAX_VALUE, 1/* incrementBy */, CACHE_SIZE, 100));\n }",
"class_method_signature": "SequenceUtilTest.testBulkAllocationAscendingOverflow()",
"constructor": false,
"full_signature": "@Test public void testBulkAllocationAscendingOverflow()",
"identifier": "testBulkAllocationAscendingOverflow",
"invocations": [
"assertTrue",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testBulkAllocationAscendingOverflow()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_192 | {
"fields": [
{
"declarator": "CONSTANT_EXPRESSION = LiteralExpression.newConstant(QueryConstants.EMPTY_COLUMN_VALUE_BYTES)",
"modifier": "protected static final",
"original_string": "protected static final LiteralExpression CONSTANT_EXPRESSION = LiteralExpression.newConstant(QueryConstants.EMPTY_COLUMN_VALUE_BYTES);",
"type": "LiteralExpression",
"var_name": "CONSTANT_EXPRESSION"
},
{
"declarator": "BYTE_ARRAY1 = new byte[]{1,2,3,4,5}",
"modifier": "protected static final",
"original_string": "protected static final byte[] BYTE_ARRAY1 = new byte[]{1,2,3,4,5};",
"type": "byte[]",
"var_name": "BYTE_ARRAY1"
},
{
"declarator": "BYTE_ARRAY2 = new byte[]{6,7,8}",
"modifier": "protected static final",
"original_string": "protected static final byte[] BYTE_ARRAY2 = new byte[]{6,7,8};",
"type": "byte[]",
"var_name": "BYTE_ARRAY2"
},
{
"declarator": "FALSE_EVAL_EXPRESSION = new DelegateExpression(LiteralExpression.newConstant(null)) {\n @Override\n public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {\n return false;\n }\n }",
"modifier": "protected",
"original_string": "protected Expression FALSE_EVAL_EXPRESSION = new DelegateExpression(LiteralExpression.newConstant(null)) {\n @Override\n public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {\n return false;\n }\n };",
"type": "Expression",
"var_name": "FALSE_EVAL_EXPRESSION"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayConstructorExpressionTest.java",
"identifier": "ArrayConstructorExpressionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLeadingNulls() throws Exception {\n List<Expression> children = Lists.newArrayListWithExpectedSize(4);\n LiteralExpression nullExpression = LiteralExpression.newConstant(null);\n children.add(nullExpression);\n children.add(nullExpression);\n children.add(LiteralExpression.newConstant(BYTE_ARRAY1, PVarbinary.INSTANCE));\n children.add(LiteralExpression.newConstant(BYTE_ARRAY2, PVarbinary.INSTANCE));\n ArrayConstructorExpression arrayConstructorExpression = new ArrayConstructorExpression(children, PVarbinary.INSTANCE, false);\n ImmutableBytesPtr ptr = new ImmutableBytesPtr();\n \n ArrayElemRefExpression arrayElemRefExpression = new ArrayElemRefExpression(Lists.<Expression>newArrayList(arrayConstructorExpression));\n arrayElemRefExpression.setIndex(1);\n arrayElemRefExpression.evaluate(null, ptr);\n assertArrayEquals(ByteUtil.EMPTY_BYTE_ARRAY, ptr.copyBytesIfNecessary());\n arrayElemRefExpression.setIndex(2);\n arrayElemRefExpression.evaluate(null, ptr);\n assertArrayEquals(ByteUtil.EMPTY_BYTE_ARRAY, ptr.copyBytesIfNecessary());\n arrayElemRefExpression.setIndex(3);\n arrayElemRefExpression.evaluate(null, ptr);\n assertArrayEquals(BYTE_ARRAY1, ptr.copyBytesIfNecessary());\n arrayElemRefExpression.setIndex(4);\n arrayElemRefExpression.evaluate(null, ptr);\n assertArrayEquals(BYTE_ARRAY2, ptr.copyBytesIfNecessary());\n }",
"class_method_signature": "ArrayConstructorExpressionTest.testLeadingNulls()",
"constructor": false,
"full_signature": "@Test public void testLeadingNulls()",
"identifier": "testLeadingNulls",
"invocations": [
"newArrayListWithExpectedSize",
"newConstant",
"add",
"add",
"add",
"newConstant",
"add",
"newConstant",
"newArrayList",
"setIndex",
"evaluate",
"assertArrayEquals",
"copyBytesIfNecessary",
"setIndex",
"evaluate",
"assertArrayEquals",
"copyBytesIfNecessary",
"setIndex",
"evaluate",
"assertArrayEquals",
"copyBytesIfNecessary",
"setIndex",
"evaluate",
"assertArrayEquals",
"copyBytesIfNecessary"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testLeadingNulls()",
"testcase": true
} | {
"fields": [
{
"declarator": "baseType",
"modifier": "private",
"original_string": "private PDataType baseType;",
"type": "PDataType",
"var_name": "baseType"
},
{
"declarator": "position = -1",
"modifier": "private",
"original_string": "private int position = -1;",
"type": "int",
"var_name": "position"
},
{
"declarator": "elements",
"modifier": "private",
"original_string": "private Object[] elements;",
"type": "Object[]",
"var_name": "elements"
},
{
"declarator": "valuePtr = new ImmutableBytesWritable()",
"modifier": "private final",
"original_string": "private final ImmutableBytesWritable valuePtr = new ImmutableBytesWritable();",
"type": "ImmutableBytesWritable",
"var_name": "valuePtr"
},
{
"declarator": "estimatedSize = 0",
"modifier": "private",
"original_string": "private int estimatedSize = 0;",
"type": "int",
"var_name": "estimatedSize"
},
{
"declarator": "rowKeyOrderOptimizable",
"modifier": "private",
"original_string": "private boolean rowKeyOrderOptimizable;",
"type": "boolean",
"var_name": "rowKeyOrderOptimizable"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/expression/ArrayConstructorExpression.java",
"identifier": "ArrayConstructorExpression",
"interfaces": "",
"methods": [
{
"class_method_signature": "ArrayConstructorExpression.ArrayConstructorExpression()",
"constructor": true,
"full_signature": "public ArrayConstructorExpression()",
"identifier": "ArrayConstructorExpression",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " ArrayConstructorExpression()",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.ArrayConstructorExpression(List<Expression> children, PDataType baseType, boolean rowKeyOrderOptimizable)",
"constructor": true,
"full_signature": "public ArrayConstructorExpression(List<Expression> children, PDataType baseType, boolean rowKeyOrderOptimizable)",
"identifier": "ArrayConstructorExpression",
"modifiers": "public",
"parameters": "(List<Expression> children, PDataType baseType, boolean rowKeyOrderOptimizable)",
"return": "",
"signature": " ArrayConstructorExpression(List<Expression> children, PDataType baseType, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.clone(List<Expression> children)",
"constructor": false,
"full_signature": "public ArrayConstructorExpression clone(List<Expression> children)",
"identifier": "clone",
"modifiers": "public",
"parameters": "(List<Expression> children)",
"return": "ArrayConstructorExpression",
"signature": "ArrayConstructorExpression clone(List<Expression> children)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.init(PDataType baseType, boolean rowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "private void init(PDataType baseType, boolean rowKeyOrderOptimizable)",
"identifier": "init",
"modifiers": "private",
"parameters": "(PDataType baseType, boolean rowKeyOrderOptimizable)",
"return": "void",
"signature": "void init(PDataType baseType, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.getDataType()",
"constructor": false,
"full_signature": "@Override public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "@Override public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.reset()",
"constructor": false,
"full_signature": "@Override public void reset()",
"identifier": "reset",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void reset()",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.readFields(DataInput input)",
"constructor": false,
"full_signature": "@Override public void readFields(DataInput input)",
"identifier": "readFields",
"modifiers": "@Override public",
"parameters": "(DataInput input)",
"return": "void",
"signature": "void readFields(DataInput input)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.write(DataOutput output)",
"constructor": false,
"full_signature": "@Override public void write(DataOutput output)",
"identifier": "write",
"modifiers": "@Override public",
"parameters": "(DataOutput output)",
"return": "void",
"signature": "void write(DataOutput output)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.requiresFinalEvaluation()",
"constructor": false,
"full_signature": "@Override public boolean requiresFinalEvaluation()",
"identifier": "requiresFinalEvaluation",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean requiresFinalEvaluation()",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.accept(ExpressionVisitor<T> visitor)",
"constructor": false,
"full_signature": "@Override public final T accept(ExpressionVisitor<T> visitor)",
"identifier": "accept",
"modifiers": "@Override public final",
"parameters": "(ExpressionVisitor<T> visitor)",
"return": "T",
"signature": "T accept(ExpressionVisitor<T> visitor)",
"testcase": false
},
{
"class_method_signature": "ArrayConstructorExpression.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": "extends BaseCompoundExpression"
} | {
"body": "@Override\n public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {\n if (position == elements.length) {\n ptr.set(valuePtr.get(), valuePtr.getOffset(), valuePtr.getLength());\n return true;\n }\n TrustedByteArrayOutputStream byteStream = new TrustedByteArrayOutputStream(estimatedSize);\n DataOutputStream oStream = new DataOutputStream(byteStream);\n PArrayDataTypeEncoder builder =\n new PArrayDataTypeEncoder(byteStream, oStream, children.size(), baseType, getSortOrder(), rowKeyOrderOptimizable, PArrayDataType.SORTABLE_SERIALIZATION_VERSION);\n for (int i = position >= 0 ? position : 0; i < elements.length; i++) {\n Expression child = children.get(i);\n if (!child.evaluate(tuple, ptr)) {\n if (tuple != null && !tuple.isImmutable()) {\n if (position >= 0) position = i;\n return false;\n }\n } else {\n builder.appendValue(ptr.get(), ptr.getOffset(), ptr.getLength());\n }\n }\n if (position >= 0) position = elements.length;\n byte[] bytes = builder.encode();\n ptr.set(bytes, 0, bytes.length);\n valuePtr.set(ptr.get(), ptr.getOffset(), ptr.getLength());\n return true;\n }",
"class_method_signature": "ArrayConstructorExpression.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"invocations": [
"set",
"get",
"getOffset",
"getLength",
"size",
"getSortOrder",
"get",
"evaluate",
"isImmutable",
"appendValue",
"get",
"getOffset",
"getLength",
"encode",
"set",
"set",
"get",
"getOffset",
"getLength"
],
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_87 | {
"fields": [
{
"declarator": "ROW = Bytes.toBytes(\"row\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "QUALIFIER = Bytes.toBytes(\"qual\")",
"modifier": "private static final",
"original_string": "private static final byte[] QUALIFIER = Bytes.toBytes(\"qual\");",
"type": "byte[]",
"var_name": "QUALIFIER"
},
{
"declarator": "ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\")",
"modifier": "private static final",
"original_string": "private static final byte[] ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\");",
"type": "byte[]",
"var_name": "ORIGINAL_VALUE"
},
{
"declarator": "DUMMY_TAGS = Bytes.toBytes(\"tags\")",
"modifier": "private static final",
"original_string": "private static final byte[] DUMMY_TAGS = Bytes.toBytes(\"tags\");",
"type": "byte[]",
"var_name": "DUMMY_TAGS"
},
{
"declarator": "mockBuilder = Mockito.mock(ExtendedCellBuilder.class)",
"modifier": "private final",
"original_string": "private final ExtendedCellBuilder mockBuilder = Mockito.mock(ExtendedCellBuilder.class);",
"type": "ExtendedCellBuilder",
"var_name": "mockBuilder"
},
{
"declarator": "mockCellWithTags = Mockito.mock(ExtendedCell.class)",
"modifier": "private final",
"original_string": "private final ExtendedCell mockCellWithTags = Mockito.mock(ExtendedCell.class);",
"type": "ExtendedCell",
"var_name": "mockCellWithTags"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/MetaDataUtilTest.java",
"identifier": "MetaDataUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDecode() {\n int encodedVersion = VersionUtil.encodeVersion(\"4.15.5\");\n assertEquals(VersionUtil.decodeMajorVersion(encodedVersion), 4);\n assertEquals(VersionUtil.decodeMinorVersion(encodedVersion), 15);\n assertEquals(VersionUtil.decodePatchVersion(encodedVersion), 5);\n }",
"class_method_signature": "MetaDataUtilTest.testDecode()",
"constructor": false,
"full_signature": "@Test public void testDecode()",
"identifier": "testDecode",
"invocations": [
"encodeVersion",
"assertEquals",
"decodeMajorVersion",
"assertEquals",
"decodeMinorVersion",
"assertEquals",
"decodePatchVersion"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDecode()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(MetaDataUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(MetaDataUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "VIEW_INDEX_TABLE_PREFIX = \"_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_TABLE_PREFIX = \"_IDX_\";",
"type": "String",
"var_name": "VIEW_INDEX_TABLE_PREFIX"
},
{
"declarator": "LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\";",
"type": "String",
"var_name": "LOCAL_INDEX_TABLE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_NAME_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX)",
"modifier": "public static final",
"original_string": "public static final byte[] VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX);",
"type": "byte[]",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES"
},
{
"declarator": "VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\";",
"type": "String",
"var_name": "VIEW_INDEX_ID_COLUMN_NAME"
},
{
"declarator": "PARENT_TABLE_KEY = \"PARENT_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String PARENT_TABLE_KEY = \"PARENT_TABLE\";",
"type": "String",
"var_name": "PARENT_TABLE_KEY"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\"",
"modifier": "public static final",
"original_string": "public static final String DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\";",
"type": "String",
"var_name": "DATA_TABLE_NAME_PROP_NAME"
},
{
"declarator": "DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME);",
"type": "byte[]",
"var_name": "DATA_TABLE_NAME_PROP_BYTES"
},
{
"declarator": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE)",
"modifier": "public static final",
"original_string": "public static final List<String> SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE);",
"type": "List<String>",
"var_name": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java",
"identifier": "MetaDataUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"constructor": false,
"full_signature": "public static ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "public static",
"parameters": "(long serverHBaseAndPhoenixVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"constructor": false,
"full_signature": "@VisibleForTesting static ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "@VisibleForTesting static",
"parameters": "(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodePhoenixVersion(long version)",
"constructor": false,
"full_signature": "public static int decodePhoenixVersion(long version)",
"identifier": "decodePhoenixVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodePhoenixVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeHasIndexWALCodec(long version, boolean isValid)",
"constructor": false,
"full_signature": "public static long encodeHasIndexWALCodec(long version, boolean isValid)",
"identifier": "encodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version, boolean isValid)",
"return": "long",
"signature": "long encodeHasIndexWALCodec(long version, boolean isValid)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHasIndexWALCodec(long version)",
"constructor": false,
"full_signature": "public static boolean decodeHasIndexWALCodec(long version)",
"identifier": "decodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeHasIndexWALCodec(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersion(long version)",
"constructor": false,
"full_signature": "public static int decodeHBaseVersion(long version)",
"identifier": "decodeHBaseVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodeHBaseVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersionAsString(int version)",
"constructor": false,
"full_signature": "public static String decodeHBaseVersionAsString(int version)",
"identifier": "decodeHBaseVersionAsString",
"modifiers": "public static",
"parameters": "(int version)",
"return": "String",
"signature": "String decodeHBaseVersionAsString(int version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeTableNamespaceMappingEnabled(long version)",
"constructor": false,
"full_signature": "public static boolean decodeTableNamespaceMappingEnabled(long version)",
"identifier": "decodeTableNamespaceMappingEnabled",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeTableNamespaceMappingEnabled(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Mutation someRow)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Mutation someRow)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Result result)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Result result)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Result result)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Result result)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getBaseColumnCount(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static int getBaseColumnCount(List<Mutation> tableMetadata)",
"identifier": "getBaseColumnCount",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "int",
"signature": "int getBaseColumnCount(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"constructor": false,
"full_signature": "public static void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"identifier": "mutatePutValue",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"return": "void",
"signature": "void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"constructor": false,
"full_signature": "public static Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"identifier": "cloneDeleteToPutAndAddColumn",
"modifiers": "public static",
"parameters": "(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"return": "Put",
"signature": "Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndFunctionName",
"modifiers": "public static",
"parameters": "(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableName(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static byte[] getParentTableName(List<Mutation> tableMetadata)",
"identifier": "getParentTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "byte[]",
"signature": "byte[] getParentTableName(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(Mutation tableMutation)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "long",
"signature": "long getSequenceNumber(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getTableType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "PTableType",
"signature": "PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "isNameSpaceMapped",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "boolean",
"signature": "boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getSaltBuckets",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "int",
"signature": "int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getParentSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getParentSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getParentSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"constructor": false,
"full_signature": "public static KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"return": "KeyValue",
"signature": "KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"constructor": false,
"full_signature": "public static boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"identifier": "setMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"return": "boolean",
"signature": "boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getPutOnlyTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"identifier": "getPutOnlyAutoPartitionColumn",
"modifiers": "public static",
"parameters": "(PTable parentTable, List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getParentTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(List<Mutation> tableMetadata)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "long",
"signature": "long getClientTimeStamp(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(Mutation m)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(Mutation m)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "long",
"signature": "long getClientTimeStamp(Mutation m)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(String tenantId, String schemaName, String tableName, String indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"constructor": false,
"full_signature": "public static byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"identifier": "getChildLinkKey",
"modifiers": "public static",
"parameters": "(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"return": "byte[]",
"signature": "byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getCell(List<Cell> cells, byte[] cq)",
"constructor": false,
"full_signature": "public static Cell getCell(List<Cell> cells, byte[] cq)",
"identifier": "getCell",
"modifiers": "public static",
"parameters": "(List<Cell> cells, byte[] cq)",
"return": "Cell",
"signature": "Cell getCell(List<Cell> cells, byte[] cq)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isMultiTenant",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isTransactional",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isSalted",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(String physicalTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexPhysicalName(String physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(String physicalTableName)",
"return": "String",
"signature": "String getViewIndexPhysicalName(String physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(byte[] physicalTableName, String indexPrefix)",
"return": "byte[]",
"signature": "byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(String physicalTableName, String indexPrefix)",
"return": "String",
"signature": "String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getLocalIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexTableName(String tableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexTableName(String tableName)",
"identifier": "getLocalIndexTableName",
"modifiers": "public static",
"parameters": "(String tableName)",
"return": "String",
"signature": "String getLocalIndexTableName(String tableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexSchemaName(String schemaName)",
"constructor": false,
"full_signature": "public static String getLocalIndexSchemaName(String schemaName)",
"identifier": "getLocalIndexSchemaName",
"modifiers": "public static",
"parameters": "(String schemaName)",
"return": "String",
"signature": "String getLocalIndexSchemaName(String schemaName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexUserTableName(String localIndexTableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexUserTableName(String localIndexTableName)",
"identifier": "getLocalIndexUserTableName",
"modifiers": "public static",
"parameters": "(String localIndexTableName)",
"return": "String",
"signature": "String getLocalIndexUserTableName(String localIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexUserTableName(String viewIndexTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexUserTableName(String viewIndexTableName)",
"identifier": "getViewIndexUserTableName",
"modifiers": "public static",
"parameters": "(String viewIndexTableName)",
"return": "String",
"signature": "String getViewIndexUserTableName(String viewIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getViewIndexIdDataType()",
"identifier": "getViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLegacyViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getLegacyViewIndexIdDataType()",
"identifier": "getLegacyViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getLegacyViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdColumnName()",
"constructor": false,
"full_signature": "public static String getViewIndexIdColumnName()",
"identifier": "getViewIndexIdColumnName",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getViewIndexIdColumnName()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexColumnFamily(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"identifier": "hasLocalIndexColumnFamily",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "boolean",
"signature": "boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"identifier": "getNonLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "List<byte[]>",
"signature": "List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"identifier": "getLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(PhoenixConnection conn, byte[] physicalTableName)",
"return": "List<byte[]>",
"signature": "List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"identifier": "deleteViewIndexSequences",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"return": "void",
"signature": "void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.tableRegionsOnline(Configuration conf, PTable table)",
"constructor": false,
"full_signature": "public static boolean tableRegionsOnline(Configuration conf, PTable table)",
"identifier": "tableRegionsOnline",
"modifiers": "public static",
"parameters": "(Configuration conf, PTable table)",
"return": "boolean",
"signature": "boolean tableRegionsOnline(Configuration conf, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.propertyNotAllowedToBeOutOfSync(String colFamProp)",
"constructor": false,
"full_signature": "public static boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"identifier": "propertyNotAllowedToBeOutOfSync",
"modifiers": "public static",
"parameters": "(String colFamProp)",
"return": "boolean",
"signature": "boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"constructor": false,
"full_signature": "public static Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"identifier": "getSyncedProps",
"modifiers": "public static",
"parameters": "(ColumnFamilyDescriptor defaultCFDesc)",
"return": "Map<String, Object>",
"signature": "Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] key, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Mutation tableMutation)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "LinkType",
"signature": "LinkType getLinkType(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Collection<Cell> kvs)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Collection<Cell> kvs)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Collection<Cell> kvs)",
"return": "LinkType",
"signature": "LinkType getLinkType(Collection<Cell> kvs)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isLocalIndex(String physicalName)",
"identifier": "isLocalIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isLocalIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isViewIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isViewIndex(String physicalName)",
"identifier": "isViewIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isViewIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColumnName(PTable parentTable)",
"constructor": false,
"full_signature": "public static String getAutoPartitionColumnName(PTable parentTable)",
"identifier": "getAutoPartitionColumnName",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "String",
"signature": "String getAutoPartitionColumnName(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColIndex(PTable parentTable)",
"constructor": false,
"full_signature": "public static int getAutoPartitionColIndex(PTable parentTable)",
"identifier": "getAutoPartitionColIndex",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "int",
"signature": "int getAutoPartitionColIndex(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getJdbcUrl(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static String getJdbcUrl(RegionCoprocessorEnvironment env)",
"identifier": "getJdbcUrl",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "String",
"signature": "String getJdbcUrl(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHColumnProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHColumnProperty(String propName)",
"identifier": "isHColumnProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHColumnProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHTableProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHTableProperty(String propName)",
"identifier": "isHTableProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHTableProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(ImmutableBytesPtr cfPtr)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(byte[] cf)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(byte[] cf)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(byte[] cf)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(byte[] cf)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPhysicalTableRowForView(PTable view)",
"constructor": false,
"full_signature": "public static final byte[] getPhysicalTableRowForView(PTable view)",
"identifier": "getPhysicalTableRowForView",
"modifiers": "public static final",
"parameters": "(PTable view)",
"return": "byte[]",
"signature": "byte[] getPhysicalTableRowForView(PTable view)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.removeChildLinkMutations(List<Mutation> metadataMutations)",
"constructor": false,
"full_signature": "public static List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"identifier": "removeChildLinkMutations",
"modifiers": "public static",
"parameters": "(List<Mutation> metadataMutations)",
"return": "List<Mutation>",
"signature": "List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getIndexType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "IndexType",
"signature": "IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"identifier": "getIndexDataType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"return": "PDataType<?>",
"signature": "PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"constructor": false,
"full_signature": "public static PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"identifier": "getColumn",
"modifiers": "public static",
"parameters": "(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"return": "PColumn",
"signature": "PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"constructor": false,
"full_signature": "public static void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"identifier": "deleteFromStatsTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"return": "void",
"signature": "void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static long encodeVersion(String hbaseVersionStr, Configuration config) {\n long hbaseVersion = VersionUtil.encodeVersion(hbaseVersionStr);\n long isTableNamespaceMappingEnabled = SchemaUtil.isNamespaceMappingEnabled(PTableType.TABLE,\n new ReadOnlyProps(config.iterator())) ? 1 : 0;\n long phoenixVersion = VersionUtil.encodeVersion(MetaDataProtocol.PHOENIX_MAJOR_VERSION,\n MetaDataProtocol.PHOENIX_MINOR_VERSION, MetaDataProtocol.PHOENIX_PATCH_NUMBER);\n long walCodec = IndexManagementUtil.isWALEditCodecSet(config) ? 0 : 1;\n long version =\n // Encode HBase major, minor, patch version\n (hbaseVersion << (Byte.SIZE * 5))\n // Encode if systemMappingEnabled are enabled on the server side\n | (isTableNamespaceMappingEnabled << (Byte.SIZE * 4))\n // Encode Phoenix major, minor, patch version\n | (phoenixVersion << (Byte.SIZE * 1))\n // Encode whether or not non transactional, mutable secondary indexing was configured properly.\n | walCodec;\n return version;\n }",
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"invocations": [
"encodeVersion",
"isNamespaceMappingEnabled",
"iterator",
"encodeVersion",
"isWALEditCodecSet"
],
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_68 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/ByteUtilTest.java",
"identifier": "ByteUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testVIntToBytes() {\n for (int i = -10000; i <= 10000; i++) {\n byte[] vint = Bytes.vintToBytes(i);\n int vintSize = vint.length;\n byte[] vint2 = new byte[vint.length];\n assertEquals(vintSize, ByteUtil.vintToBytes(vint2, 0, i));\n assertTrue(Bytes.BYTES_COMPARATOR.compare(vint,vint2) == 0);\n }\n }",
"class_method_signature": "ByteUtilTest.testVIntToBytes()",
"constructor": false,
"full_signature": "@Test public void testVIntToBytes()",
"identifier": "testVIntToBytes",
"invocations": [
"vintToBytes",
"assertEquals",
"vintToBytes",
"assertTrue",
"compare"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testVIntToBytes()",
"testcase": true
} | {
"fields": [
{
"declarator": "EMPTY_BYTE_ARRAY = new byte[0]",
"modifier": "public static final",
"original_string": "public static final byte[] EMPTY_BYTE_ARRAY = new byte[0];",
"type": "byte[]",
"var_name": "EMPTY_BYTE_ARRAY"
},
{
"declarator": "EMPTY_BYTE_ARRAY_PTR = new ImmutableBytesPtr(\n EMPTY_BYTE_ARRAY)",
"modifier": "public static final",
"original_string": "public static final ImmutableBytesPtr EMPTY_BYTE_ARRAY_PTR = new ImmutableBytesPtr(\n EMPTY_BYTE_ARRAY);",
"type": "ImmutableBytesPtr",
"var_name": "EMPTY_BYTE_ARRAY_PTR"
},
{
"declarator": "EMPTY_IMMUTABLE_BYTE_ARRAY = new ImmutableBytesWritable(\n EMPTY_BYTE_ARRAY)",
"modifier": "public static final",
"original_string": "public static final ImmutableBytesWritable EMPTY_IMMUTABLE_BYTE_ARRAY = new ImmutableBytesWritable(\n EMPTY_BYTE_ARRAY);",
"type": "ImmutableBytesWritable",
"var_name": "EMPTY_IMMUTABLE_BYTE_ARRAY"
},
{
"declarator": "BYTES_PTR_COMPARATOR = new Comparator<ImmutableBytesPtr>() {\n\n @Override\n public int compare(ImmutableBytesPtr o1, ImmutableBytesPtr o2) {\n return Bytes.compareTo(o1.get(), o1.getOffset(), o1.getLength(), o2.get(), o2.getOffset(), o2.getLength());\n }\n \n }",
"modifier": "public static final",
"original_string": "public static final Comparator<ImmutableBytesPtr> BYTES_PTR_COMPARATOR = new Comparator<ImmutableBytesPtr>() {\n\n @Override\n public int compare(ImmutableBytesPtr o1, ImmutableBytesPtr o2) {\n return Bytes.compareTo(o1.get(), o1.getOffset(), o1.getLength(), o2.get(), o2.getOffset(), o2.getLength());\n }\n \n };",
"type": "Comparator<ImmutableBytesPtr>",
"var_name": "BYTES_PTR_COMPARATOR"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/ByteUtil.java",
"identifier": "ByteUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ByteUtil.toBytes(byte[][] byteArrays)",
"constructor": false,
"full_signature": "public static byte[] toBytes(byte[][] byteArrays)",
"identifier": "toBytes",
"modifiers": "public static",
"parameters": "(byte[][] byteArrays)",
"return": "byte[]",
"signature": "byte[] toBytes(byte[][] byteArrays)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.toByteArrays(byte[] b, int length)",
"constructor": false,
"full_signature": "public static byte[][] toByteArrays(byte[] b, int length)",
"identifier": "toByteArrays",
"modifiers": "public static",
"parameters": "(byte[] b, int length)",
"return": "byte[][]",
"signature": "byte[][] toByteArrays(byte[] b, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.toByteArrays(byte[] b, int offset, int length)",
"constructor": false,
"full_signature": "public static byte[][] toByteArrays(byte[] b, int offset, int length)",
"identifier": "toByteArrays",
"modifiers": "public static",
"parameters": "(byte[] b, int offset, int length)",
"return": "byte[][]",
"signature": "byte[][] toByteArrays(byte[] b, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(int[] intArray)",
"constructor": false,
"full_signature": "public static byte[] serializeVIntArray(int[] intArray)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(int[] intArray)",
"return": "byte[]",
"signature": "byte[] serializeVIntArray(int[] intArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(int[] intArray, int encodedLength)",
"constructor": false,
"full_signature": "public static byte[] serializeVIntArray(int[] intArray, int encodedLength)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(int[] intArray, int encodedLength)",
"return": "byte[]",
"signature": "byte[] serializeVIntArray(int[] intArray, int encodedLength)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(DataOutput output, int[] intArray)",
"constructor": false,
"full_signature": "public static void serializeVIntArray(DataOutput output, int[] intArray)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(DataOutput output, int[] intArray)",
"return": "void",
"signature": "void serializeVIntArray(DataOutput output, int[] intArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"constructor": false,
"full_signature": "public static void serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(DataOutput output, int[] intArray, int encodedLength)",
"return": "void",
"signature": "void serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.readFixedLengthLongArray(DataInput input, int length)",
"constructor": false,
"full_signature": "public static long[] readFixedLengthLongArray(DataInput input, int length)",
"identifier": "readFixedLengthLongArray",
"modifiers": "public static",
"parameters": "(DataInput input, int length)",
"return": "long[]",
"signature": "long[] readFixedLengthLongArray(DataInput input, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"constructor": false,
"full_signature": "public static void writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"identifier": "writeFixedLengthLongArray",
"modifiers": "public static",
"parameters": "(DataOutput output, long[] longArray)",
"return": "void",
"signature": "void writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(byte[] b)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(byte[] b)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(byte[] b)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(byte[] b)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(DataInput in)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(DataInput in)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(DataInput in)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(DataInput in)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(DataInput in, int length)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(DataInput in, int length)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(DataInput in, int length)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(DataInput in, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(byte[] b, int length)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(byte[] b, int length)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(byte[] b, int length)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(byte[] b, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(byte[] first, byte[]... rest)",
"constructor": false,
"full_signature": "public static byte[] concat(byte[] first, byte[]... rest)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(byte[] first, byte[]... rest)",
"return": "byte[]",
"signature": "byte[] concat(byte[] first, byte[]... rest)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(T[] first, T[]... rest)",
"constructor": false,
"full_signature": "public static T[] concat(T[] first, T[]... rest)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(T[] first, T[]... rest)",
"return": "T[]",
"signature": "T[] concat(T[] first, T[]... rest)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"constructor": false,
"full_signature": "public static byte[] concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"return": "byte[]",
"signature": "byte[] concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintFromBytes(byte[] buffer, int offset)",
"constructor": false,
"full_signature": "public static int vintFromBytes(byte[] buffer, int offset)",
"identifier": "vintFromBytes",
"modifiers": "public static",
"parameters": "(byte[] buffer, int offset)",
"return": "int",
"signature": "int vintFromBytes(byte[] buffer, int offset)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintFromBytes(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static int vintFromBytes(ImmutableBytesWritable ptr)",
"identifier": "vintFromBytes",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "int",
"signature": "int vintFromBytes(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vlongFromBytes(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static long vlongFromBytes(ImmutableBytesWritable ptr)",
"identifier": "vlongFromBytes",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "long",
"signature": "long vlongFromBytes(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintToBytes(byte[] result, int offset, final long vint)",
"constructor": false,
"full_signature": "public static int vintToBytes(byte[] result, int offset, final long vint)",
"identifier": "vintToBytes",
"modifiers": "public static",
"parameters": "(byte[] result, int offset, final long vint)",
"return": "int",
"signature": "int vintToBytes(byte[] result, int offset, final long vint)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key)",
"constructor": false,
"full_signature": "public static byte[] nextKey(byte[] key)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key)",
"return": "byte[]",
"signature": "byte[] nextKey(byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static boolean nextKey(byte[] key, int length)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "boolean",
"signature": "boolean nextKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key, int offset, int length)",
"constructor": false,
"full_signature": "public static boolean nextKey(byte[] key, int offset, int length)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key, int offset, int length)",
"return": "boolean",
"signature": "boolean nextKey(byte[] key, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key)",
"constructor": false,
"full_signature": "public static byte[] previousKey(byte[] key)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key)",
"return": "byte[]",
"signature": "byte[] previousKey(byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static boolean previousKey(byte[] key, int length)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "boolean",
"signature": "boolean previousKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key, int offset, int length)",
"constructor": false,
"full_signature": "public static boolean previousKey(byte[] key, int offset, int length)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key, int offset, int length)",
"return": "boolean",
"signature": "boolean previousKey(byte[] key, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.fillKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static byte[] fillKey(byte[] key, int length)",
"identifier": "fillKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "byte[]",
"signature": "byte[] fillKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nullPad(ImmutableBytesWritable ptr, int length)",
"constructor": false,
"full_signature": "public static void nullPad(ImmutableBytesWritable ptr, int length)",
"identifier": "nullPad",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr, int length)",
"return": "void",
"signature": "void nullPad(ImmutableBytesWritable ptr, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.getSize(CharSequence sequence)",
"constructor": false,
"full_signature": "public static int getSize(CharSequence sequence)",
"identifier": "getSize",
"modifiers": "public static",
"parameters": "(CharSequence sequence)",
"return": "int",
"signature": "int getSize(CharSequence sequence)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.isInclusive(CompareOp op)",
"constructor": false,
"full_signature": "public static boolean isInclusive(CompareOp op)",
"identifier": "isInclusive",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "boolean",
"signature": "boolean isInclusive(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.compare(CompareOp op, int compareResult)",
"constructor": false,
"full_signature": "public static boolean compare(CompareOp op, int compareResult)",
"identifier": "compare",
"modifiers": "public static",
"parameters": "(CompareOp op, int compareResult)",
"return": "boolean",
"signature": "boolean compare(CompareOp op, int compareResult)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static byte[] copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"identifier": "copyKeyBytesIfNecessary",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "byte[]",
"signature": "byte[] copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.getKeyRange(byte[] key, CompareOp op, PDataType type)",
"constructor": false,
"full_signature": "public static KeyRange getKeyRange(byte[] key, CompareOp op, PDataType type)",
"identifier": "getKeyRange",
"modifiers": "public static",
"parameters": "(byte[] key, CompareOp op, PDataType type)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] key, CompareOp op, PDataType type)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.contains(Collection<byte[]> keys, byte[] key)",
"constructor": false,
"full_signature": "public static boolean contains(Collection<byte[]> keys, byte[] key)",
"identifier": "contains",
"modifiers": "public static",
"parameters": "(Collection<byte[]> keys, byte[] key)",
"return": "boolean",
"signature": "boolean contains(Collection<byte[]> keys, byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"constructor": false,
"full_signature": "public static boolean contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"identifier": "contains",
"modifiers": "public static",
"parameters": "(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"return": "boolean",
"signature": "boolean contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.match(Set<byte[]> keys, Set<byte[]> keys2)",
"constructor": false,
"full_signature": "public static boolean match(Set<byte[]> keys, Set<byte[]> keys2)",
"identifier": "match",
"modifiers": "public static",
"parameters": "(Set<byte[]> keys, Set<byte[]> keys2)",
"return": "boolean",
"signature": "boolean match(Set<byte[]> keys, Set<byte[]> keys2)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"constructor": false,
"full_signature": "public static byte[] calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"identifier": "calculateTheClosestNextRowKeyForPrefix",
"modifiers": "public static",
"parameters": "(byte[] rowKeyPrefix)",
"return": "byte[]",
"signature": "byte[] calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.splitArrayBySeparator(byte[] src, byte separator)",
"constructor": false,
"full_signature": "public static byte[][] splitArrayBySeparator(byte[] src, byte separator)",
"identifier": "splitArrayBySeparator",
"modifiers": "public static",
"parameters": "(byte[] src, byte separator)",
"return": "byte[][]",
"signature": "byte[][] splitArrayBySeparator(byte[] src, byte separator)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static int vintToBytes(byte[] result, int offset, final long vint) {\n long i = vint;\n if (i >= -112 && i <= 127) {\n result[offset] = (byte) i;\n return 1;\n }\n\n int len = -112;\n if (i < 0) {\n i ^= -1L; // take one's complement'\n len = -120;\n }\n\n long tmp = i;\n while (tmp != 0) {\n tmp = tmp >> 8;\n len--;\n }\n\n result[offset++] = (byte) len;\n\n len = (len < -120) ? -(len + 120) : -(len + 112);\n\n for (int idx = len; idx != 0; idx--) {\n int shiftbits = (idx - 1) * 8;\n long mask = 0xFFL << shiftbits;\n result[offset++] = (byte)((i & mask) >> shiftbits);\n }\n return len + 1;\n }",
"class_method_signature": "ByteUtil.vintToBytes(byte[] result, int offset, final long vint)",
"constructor": false,
"full_signature": "public static int vintToBytes(byte[] result, int offset, final long vint)",
"identifier": "vintToBytes",
"invocations": [],
"modifiers": "public static",
"parameters": "(byte[] result, int offset, final long vint)",
"return": "int",
"signature": "int vintToBytes(byte[] result, int offset, final long vint)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_193 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/expression/InListExpressionTest.java",
"identifier": "InListExpressionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCode() throws Exception {\n int valuesNumber = 500000;\n List<ImmutableBytesPtr> values = new ArrayList<>(valuesNumber);\n for (int i = 0; i < valuesNumber; i++) {\n values.add(new ImmutableBytesPtr(Bytes.toBytes(i)));\n }\n InListExpression exp = new InListExpression(values);\n\n // first time\n long startTs = System.currentTimeMillis();\n int firstHashCode = exp.hashCode();\n long firstTimeCost = System.currentTimeMillis() - startTs;\n\n // the rest access\n int restAccessNumber = 3;\n startTs = System.currentTimeMillis();\n List<Integer> hashCodes = Lists.newArrayListWithExpectedSize(restAccessNumber);\n for (int i = 0; i < restAccessNumber; i++) {\n hashCodes.add(exp.hashCode());\n }\n\n // check time cost\n long restTimeCost = System.currentTimeMillis() - startTs;\n assertTrue(\"first time: \" + firstTimeCost + \" <= rest time: \" + restTimeCost,\n firstTimeCost > restTimeCost);\n\n // check hash code\n for (int hashCode : hashCodes) {\n assertEquals(\"hash code not equal, firstHashCode: \" + firstHashCode + \", restHashCode: \"\n + hashCode, firstHashCode, hashCode);\n }\n }",
"class_method_signature": "InListExpressionTest.testHashCode()",
"constructor": false,
"full_signature": "@Test public void testHashCode()",
"identifier": "testHashCode",
"invocations": [
"add",
"toBytes",
"currentTimeMillis",
"hashCode",
"currentTimeMillis",
"currentTimeMillis",
"newArrayListWithExpectedSize",
"add",
"hashCode",
"currentTimeMillis",
"assertTrue",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testHashCode()",
"testcase": true
} | {
"fields": [
{
"declarator": "values",
"modifier": "private",
"original_string": "private Set<ImmutableBytesPtr> values;",
"type": "Set<ImmutableBytesPtr>",
"var_name": "values"
},
{
"declarator": "minValue",
"modifier": "private",
"original_string": "private ImmutableBytesPtr minValue;",
"type": "ImmutableBytesPtr",
"var_name": "minValue"
},
{
"declarator": "maxValue",
"modifier": "private",
"original_string": "private ImmutableBytesPtr maxValue;",
"type": "ImmutableBytesPtr",
"var_name": "maxValue"
},
{
"declarator": "valuesByteLength",
"modifier": "private",
"original_string": "private int valuesByteLength;",
"type": "int",
"var_name": "valuesByteLength"
},
{
"declarator": "fixedWidth = -1",
"modifier": "private",
"original_string": "private int fixedWidth = -1;",
"type": "int",
"var_name": "fixedWidth"
},
{
"declarator": "keyExpressions",
"modifier": "private",
"original_string": "private List<Expression> keyExpressions;",
"type": "List<Expression>",
"var_name": "keyExpressions"
},
{
"declarator": "rowKeyOrderOptimizable",
"modifier": "private",
"original_string": "private boolean rowKeyOrderOptimizable;",
"type": "boolean",
"var_name": "rowKeyOrderOptimizable"
},
{
"declarator": "hashCode = -1",
"modifier": "private",
"original_string": "private int hashCode = -1;",
"type": "int",
"var_name": "hashCode"
},
{
"declarator": "hashCodeSet = false",
"modifier": "private",
"original_string": "private boolean hashCodeSet = false;",
"type": "boolean",
"var_name": "hashCodeSet"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/expression/InListExpression.java",
"identifier": "InListExpression",
"interfaces": "",
"methods": [
{
"class_method_signature": "InListExpression.create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public static Expression create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"identifier": "create",
"modifiers": "public static",
"parameters": "(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"return": "Expression",
"signature": "Expression create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression()",
"constructor": true,
"full_signature": "public InListExpression()",
"identifier": "InListExpression",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " InListExpression()",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression(List<ImmutableBytesPtr> values)",
"constructor": true,
"full_signature": "@VisibleForTesting protected InListExpression(List<ImmutableBytesPtr> values)",
"identifier": "InListExpression",
"modifiers": "@VisibleForTesting protected",
"parameters": "(List<ImmutableBytesPtr> values)",
"return": "",
"signature": " InListExpression(List<ImmutableBytesPtr> values)",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"constructor": true,
"full_signature": "public InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"identifier": "InListExpression",
"modifiers": "public",
"parameters": "(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"return": "",
"signature": " InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "InListExpression.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "InListExpression.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "InListExpression.equals(Object obj)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object obj)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object obj)",
"return": "boolean",
"signature": "boolean equals(Object obj)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getDataType()",
"constructor": false,
"full_signature": "@Override public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "@Override public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "InListExpression.readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"constructor": false,
"full_signature": "private int readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"identifier": "readValue",
"modifiers": "private",
"parameters": "(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"return": "int",
"signature": "int readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"testcase": false
},
{
"class_method_signature": "InListExpression.readFields(DataInput input)",
"constructor": false,
"full_signature": "@Override public void readFields(DataInput input)",
"identifier": "readFields",
"modifiers": "@Override public",
"parameters": "(DataInput input)",
"return": "void",
"signature": "void readFields(DataInput input)",
"testcase": false
},
{
"class_method_signature": "InListExpression.write(DataOutput output)",
"constructor": false,
"full_signature": "@Override public void write(DataOutput output)",
"identifier": "write",
"modifiers": "@Override public",
"parameters": "(DataOutput output)",
"return": "void",
"signature": "void write(DataOutput output)",
"testcase": false
},
{
"class_method_signature": "InListExpression.accept(ExpressionVisitor<T> visitor)",
"constructor": false,
"full_signature": "@Override public final T accept(ExpressionVisitor<T> visitor)",
"identifier": "accept",
"modifiers": "@Override public final",
"parameters": "(ExpressionVisitor<T> visitor)",
"return": "T",
"signature": "T accept(ExpressionVisitor<T> visitor)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getKeyExpressions()",
"constructor": false,
"full_signature": "public List<Expression> getKeyExpressions()",
"identifier": "getKeyExpressions",
"modifiers": "public",
"parameters": "()",
"return": "List<Expression>",
"signature": "List<Expression> getKeyExpressions()",
"testcase": false
},
{
"class_method_signature": "InListExpression.getMinKey()",
"constructor": false,
"full_signature": "public ImmutableBytesWritable getMinKey()",
"identifier": "getMinKey",
"modifiers": "public",
"parameters": "()",
"return": "ImmutableBytesWritable",
"signature": "ImmutableBytesWritable getMinKey()",
"testcase": false
},
{
"class_method_signature": "InListExpression.getMaxKey()",
"constructor": false,
"full_signature": "public ImmutableBytesWritable getMaxKey()",
"identifier": "getMaxKey",
"modifiers": "public",
"parameters": "()",
"return": "ImmutableBytesWritable",
"signature": "ImmutableBytesWritable getMaxKey()",
"testcase": false
},
{
"class_method_signature": "InListExpression.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "InListExpression.clone(List<Expression> l)",
"constructor": false,
"full_signature": "public InListExpression clone(List<Expression> l)",
"identifier": "clone",
"modifiers": "public",
"parameters": "(List<Expression> l)",
"return": "InListExpression",
"signature": "InListExpression clone(List<Expression> l)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getSortedInListColumnKeyValuePair(List<Expression> children)",
"constructor": false,
"full_signature": "public static List<InListColumnKeyValuePair> getSortedInListColumnKeyValuePair(List<Expression> children)",
"identifier": "getSortedInListColumnKeyValuePair",
"modifiers": "public static",
"parameters": "(List<Expression> children)",
"return": "List<InListColumnKeyValuePair>",
"signature": "List<InListColumnKeyValuePair> getSortedInListColumnKeyValuePair(List<Expression> children)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"constructor": false,
"full_signature": "public static List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"identifier": "getSortedRowValueConstructorExpressionList",
"modifiers": "public static",
"parameters": "(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"return": "List<Expression>",
"signature": "List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"testcase": false
}
],
"superclass": "extends BaseSingleExpression"
} | {
"body": "@Override\n public int hashCode() {\n if (!hashCodeSet) {\n final int prime = 31;\n int result = 1;\n result = prime * result + children.hashCode() + values.hashCode();\n hashCode = result;\n hashCodeSet = true;\n }\n return hashCode;\n }",
"class_method_signature": "InListExpression.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"invocations": [
"hashCode",
"hashCode"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_86 | {
"fields": [
{
"declarator": "ROW = Bytes.toBytes(\"row\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "QUALIFIER = Bytes.toBytes(\"qual\")",
"modifier": "private static final",
"original_string": "private static final byte[] QUALIFIER = Bytes.toBytes(\"qual\");",
"type": "byte[]",
"var_name": "QUALIFIER"
},
{
"declarator": "ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\")",
"modifier": "private static final",
"original_string": "private static final byte[] ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\");",
"type": "byte[]",
"var_name": "ORIGINAL_VALUE"
},
{
"declarator": "DUMMY_TAGS = Bytes.toBytes(\"tags\")",
"modifier": "private static final",
"original_string": "private static final byte[] DUMMY_TAGS = Bytes.toBytes(\"tags\");",
"type": "byte[]",
"var_name": "DUMMY_TAGS"
},
{
"declarator": "mockBuilder = Mockito.mock(ExtendedCellBuilder.class)",
"modifier": "private final",
"original_string": "private final ExtendedCellBuilder mockBuilder = Mockito.mock(ExtendedCellBuilder.class);",
"type": "ExtendedCellBuilder",
"var_name": "mockBuilder"
},
{
"declarator": "mockCellWithTags = Mockito.mock(ExtendedCell.class)",
"modifier": "private final",
"original_string": "private final ExtendedCell mockCellWithTags = Mockito.mock(ExtendedCell.class);",
"type": "ExtendedCell",
"var_name": "mockCellWithTags"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/MetaDataUtilTest.java",
"identifier": "MetaDataUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncode() {\n assertEquals(VersionUtil.encodeVersion(\"0.94.5\"),VersionUtil.encodeVersion(\"0.94.5-mapR\"));\n assertTrue(VersionUtil.encodeVersion(\"0.94.6\")>VersionUtil.encodeVersion(\"0.94.5-mapR\"));\n assertTrue(VersionUtil.encodeVersion(\"0.94.6\")>VersionUtil.encodeVersion(\"0.94.5\"));\n assertTrue(VersionUtil.encodeVersion(\"0.94.1-mapR\")>VersionUtil.encodeVersion(\"0.94\"));\n assertTrue(VersionUtil.encodeVersion(\"1\", \"1\", \"3\")>VersionUtil.encodeVersion(\"1\", \"1\", \"1\"));\n }",
"class_method_signature": "MetaDataUtilTest.testEncode()",
"constructor": false,
"full_signature": "@Test public void testEncode()",
"identifier": "testEncode",
"invocations": [
"assertEquals",
"encodeVersion",
"encodeVersion",
"assertTrue",
"encodeVersion",
"encodeVersion",
"assertTrue",
"encodeVersion",
"encodeVersion",
"assertTrue",
"encodeVersion",
"encodeVersion",
"assertTrue",
"encodeVersion",
"encodeVersion"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testEncode()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(MetaDataUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(MetaDataUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "VIEW_INDEX_TABLE_PREFIX = \"_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_TABLE_PREFIX = \"_IDX_\";",
"type": "String",
"var_name": "VIEW_INDEX_TABLE_PREFIX"
},
{
"declarator": "LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\";",
"type": "String",
"var_name": "LOCAL_INDEX_TABLE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_NAME_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX)",
"modifier": "public static final",
"original_string": "public static final byte[] VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX);",
"type": "byte[]",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES"
},
{
"declarator": "VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\";",
"type": "String",
"var_name": "VIEW_INDEX_ID_COLUMN_NAME"
},
{
"declarator": "PARENT_TABLE_KEY = \"PARENT_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String PARENT_TABLE_KEY = \"PARENT_TABLE\";",
"type": "String",
"var_name": "PARENT_TABLE_KEY"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\"",
"modifier": "public static final",
"original_string": "public static final String DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\";",
"type": "String",
"var_name": "DATA_TABLE_NAME_PROP_NAME"
},
{
"declarator": "DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME);",
"type": "byte[]",
"var_name": "DATA_TABLE_NAME_PROP_BYTES"
},
{
"declarator": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE)",
"modifier": "public static final",
"original_string": "public static final List<String> SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE);",
"type": "List<String>",
"var_name": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java",
"identifier": "MetaDataUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"constructor": false,
"full_signature": "public static ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "public static",
"parameters": "(long serverHBaseAndPhoenixVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"constructor": false,
"full_signature": "@VisibleForTesting static ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "@VisibleForTesting static",
"parameters": "(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodePhoenixVersion(long version)",
"constructor": false,
"full_signature": "public static int decodePhoenixVersion(long version)",
"identifier": "decodePhoenixVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodePhoenixVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeHasIndexWALCodec(long version, boolean isValid)",
"constructor": false,
"full_signature": "public static long encodeHasIndexWALCodec(long version, boolean isValid)",
"identifier": "encodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version, boolean isValid)",
"return": "long",
"signature": "long encodeHasIndexWALCodec(long version, boolean isValid)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHasIndexWALCodec(long version)",
"constructor": false,
"full_signature": "public static boolean decodeHasIndexWALCodec(long version)",
"identifier": "decodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeHasIndexWALCodec(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersion(long version)",
"constructor": false,
"full_signature": "public static int decodeHBaseVersion(long version)",
"identifier": "decodeHBaseVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodeHBaseVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersionAsString(int version)",
"constructor": false,
"full_signature": "public static String decodeHBaseVersionAsString(int version)",
"identifier": "decodeHBaseVersionAsString",
"modifiers": "public static",
"parameters": "(int version)",
"return": "String",
"signature": "String decodeHBaseVersionAsString(int version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeTableNamespaceMappingEnabled(long version)",
"constructor": false,
"full_signature": "public static boolean decodeTableNamespaceMappingEnabled(long version)",
"identifier": "decodeTableNamespaceMappingEnabled",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeTableNamespaceMappingEnabled(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Mutation someRow)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Mutation someRow)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Result result)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Result result)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Result result)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Result result)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getBaseColumnCount(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static int getBaseColumnCount(List<Mutation> tableMetadata)",
"identifier": "getBaseColumnCount",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "int",
"signature": "int getBaseColumnCount(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"constructor": false,
"full_signature": "public static void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"identifier": "mutatePutValue",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"return": "void",
"signature": "void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"constructor": false,
"full_signature": "public static Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"identifier": "cloneDeleteToPutAndAddColumn",
"modifiers": "public static",
"parameters": "(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"return": "Put",
"signature": "Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndFunctionName",
"modifiers": "public static",
"parameters": "(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableName(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static byte[] getParentTableName(List<Mutation> tableMetadata)",
"identifier": "getParentTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "byte[]",
"signature": "byte[] getParentTableName(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(Mutation tableMutation)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "long",
"signature": "long getSequenceNumber(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getTableType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "PTableType",
"signature": "PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "isNameSpaceMapped",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "boolean",
"signature": "boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getSaltBuckets",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "int",
"signature": "int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getParentSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getParentSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getParentSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"constructor": false,
"full_signature": "public static KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"return": "KeyValue",
"signature": "KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"constructor": false,
"full_signature": "public static boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"identifier": "setMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"return": "boolean",
"signature": "boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getPutOnlyTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"identifier": "getPutOnlyAutoPartitionColumn",
"modifiers": "public static",
"parameters": "(PTable parentTable, List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getParentTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(List<Mutation> tableMetadata)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "long",
"signature": "long getClientTimeStamp(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(Mutation m)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(Mutation m)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "long",
"signature": "long getClientTimeStamp(Mutation m)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(String tenantId, String schemaName, String tableName, String indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"constructor": false,
"full_signature": "public static byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"identifier": "getChildLinkKey",
"modifiers": "public static",
"parameters": "(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"return": "byte[]",
"signature": "byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getCell(List<Cell> cells, byte[] cq)",
"constructor": false,
"full_signature": "public static Cell getCell(List<Cell> cells, byte[] cq)",
"identifier": "getCell",
"modifiers": "public static",
"parameters": "(List<Cell> cells, byte[] cq)",
"return": "Cell",
"signature": "Cell getCell(List<Cell> cells, byte[] cq)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isMultiTenant",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isTransactional",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isSalted",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(String physicalTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexPhysicalName(String physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(String physicalTableName)",
"return": "String",
"signature": "String getViewIndexPhysicalName(String physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(byte[] physicalTableName, String indexPrefix)",
"return": "byte[]",
"signature": "byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(String physicalTableName, String indexPrefix)",
"return": "String",
"signature": "String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getLocalIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexTableName(String tableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexTableName(String tableName)",
"identifier": "getLocalIndexTableName",
"modifiers": "public static",
"parameters": "(String tableName)",
"return": "String",
"signature": "String getLocalIndexTableName(String tableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexSchemaName(String schemaName)",
"constructor": false,
"full_signature": "public static String getLocalIndexSchemaName(String schemaName)",
"identifier": "getLocalIndexSchemaName",
"modifiers": "public static",
"parameters": "(String schemaName)",
"return": "String",
"signature": "String getLocalIndexSchemaName(String schemaName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexUserTableName(String localIndexTableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexUserTableName(String localIndexTableName)",
"identifier": "getLocalIndexUserTableName",
"modifiers": "public static",
"parameters": "(String localIndexTableName)",
"return": "String",
"signature": "String getLocalIndexUserTableName(String localIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexUserTableName(String viewIndexTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexUserTableName(String viewIndexTableName)",
"identifier": "getViewIndexUserTableName",
"modifiers": "public static",
"parameters": "(String viewIndexTableName)",
"return": "String",
"signature": "String getViewIndexUserTableName(String viewIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getViewIndexIdDataType()",
"identifier": "getViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLegacyViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getLegacyViewIndexIdDataType()",
"identifier": "getLegacyViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getLegacyViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdColumnName()",
"constructor": false,
"full_signature": "public static String getViewIndexIdColumnName()",
"identifier": "getViewIndexIdColumnName",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getViewIndexIdColumnName()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexColumnFamily(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"identifier": "hasLocalIndexColumnFamily",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "boolean",
"signature": "boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"identifier": "getNonLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "List<byte[]>",
"signature": "List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"identifier": "getLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(PhoenixConnection conn, byte[] physicalTableName)",
"return": "List<byte[]>",
"signature": "List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"identifier": "deleteViewIndexSequences",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"return": "void",
"signature": "void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.tableRegionsOnline(Configuration conf, PTable table)",
"constructor": false,
"full_signature": "public static boolean tableRegionsOnline(Configuration conf, PTable table)",
"identifier": "tableRegionsOnline",
"modifiers": "public static",
"parameters": "(Configuration conf, PTable table)",
"return": "boolean",
"signature": "boolean tableRegionsOnline(Configuration conf, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.propertyNotAllowedToBeOutOfSync(String colFamProp)",
"constructor": false,
"full_signature": "public static boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"identifier": "propertyNotAllowedToBeOutOfSync",
"modifiers": "public static",
"parameters": "(String colFamProp)",
"return": "boolean",
"signature": "boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"constructor": false,
"full_signature": "public static Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"identifier": "getSyncedProps",
"modifiers": "public static",
"parameters": "(ColumnFamilyDescriptor defaultCFDesc)",
"return": "Map<String, Object>",
"signature": "Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] key, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Mutation tableMutation)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "LinkType",
"signature": "LinkType getLinkType(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Collection<Cell> kvs)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Collection<Cell> kvs)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Collection<Cell> kvs)",
"return": "LinkType",
"signature": "LinkType getLinkType(Collection<Cell> kvs)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isLocalIndex(String physicalName)",
"identifier": "isLocalIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isLocalIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isViewIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isViewIndex(String physicalName)",
"identifier": "isViewIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isViewIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColumnName(PTable parentTable)",
"constructor": false,
"full_signature": "public static String getAutoPartitionColumnName(PTable parentTable)",
"identifier": "getAutoPartitionColumnName",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "String",
"signature": "String getAutoPartitionColumnName(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColIndex(PTable parentTable)",
"constructor": false,
"full_signature": "public static int getAutoPartitionColIndex(PTable parentTable)",
"identifier": "getAutoPartitionColIndex",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "int",
"signature": "int getAutoPartitionColIndex(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getJdbcUrl(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static String getJdbcUrl(RegionCoprocessorEnvironment env)",
"identifier": "getJdbcUrl",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "String",
"signature": "String getJdbcUrl(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHColumnProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHColumnProperty(String propName)",
"identifier": "isHColumnProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHColumnProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHTableProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHTableProperty(String propName)",
"identifier": "isHTableProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHTableProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(ImmutableBytesPtr cfPtr)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(byte[] cf)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(byte[] cf)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(byte[] cf)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(byte[] cf)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPhysicalTableRowForView(PTable view)",
"constructor": false,
"full_signature": "public static final byte[] getPhysicalTableRowForView(PTable view)",
"identifier": "getPhysicalTableRowForView",
"modifiers": "public static final",
"parameters": "(PTable view)",
"return": "byte[]",
"signature": "byte[] getPhysicalTableRowForView(PTable view)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.removeChildLinkMutations(List<Mutation> metadataMutations)",
"constructor": false,
"full_signature": "public static List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"identifier": "removeChildLinkMutations",
"modifiers": "public static",
"parameters": "(List<Mutation> metadataMutations)",
"return": "List<Mutation>",
"signature": "List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getIndexType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "IndexType",
"signature": "IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"identifier": "getIndexDataType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"return": "PDataType<?>",
"signature": "PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"constructor": false,
"full_signature": "public static PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"identifier": "getColumn",
"modifiers": "public static",
"parameters": "(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"return": "PColumn",
"signature": "PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"constructor": false,
"full_signature": "public static void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"identifier": "deleteFromStatsTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"return": "void",
"signature": "void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static long encodeVersion(String hbaseVersionStr, Configuration config) {\n long hbaseVersion = VersionUtil.encodeVersion(hbaseVersionStr);\n long isTableNamespaceMappingEnabled = SchemaUtil.isNamespaceMappingEnabled(PTableType.TABLE,\n new ReadOnlyProps(config.iterator())) ? 1 : 0;\n long phoenixVersion = VersionUtil.encodeVersion(MetaDataProtocol.PHOENIX_MAJOR_VERSION,\n MetaDataProtocol.PHOENIX_MINOR_VERSION, MetaDataProtocol.PHOENIX_PATCH_NUMBER);\n long walCodec = IndexManagementUtil.isWALEditCodecSet(config) ? 0 : 1;\n long version =\n // Encode HBase major, minor, patch version\n (hbaseVersion << (Byte.SIZE * 5))\n // Encode if systemMappingEnabled are enabled on the server side\n | (isTableNamespaceMappingEnabled << (Byte.SIZE * 4))\n // Encode Phoenix major, minor, patch version\n | (phoenixVersion << (Byte.SIZE * 1))\n // Encode whether or not non transactional, mutable secondary indexing was configured properly.\n | walCodec;\n return version;\n }",
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"invocations": [
"encodeVersion",
"isNamespaceMappingEnabled",
"iterator",
"encodeVersion",
"isWALEditCodecSet"
],
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_69 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/ByteUtilTest.java",
"identifier": "ByteUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNextKey() {\n byte[] key = new byte[] {1};\n assertEquals((byte)2, ByteUtil.nextKey(key)[0]); \n key = new byte[] {1, (byte)255};\n byte[] nextKey = ByteUtil.nextKey(key);\n byte[] expectedKey = new byte[] {2,(byte)0};\n assertArrayEquals(expectedKey, nextKey); \n key = ByteUtil.concat(Bytes.toBytes(\"00D300000000XHP\"), PInteger.INSTANCE.toBytes(Integer.MAX_VALUE));\n nextKey = ByteUtil.nextKey(key);\n expectedKey = ByteUtil.concat(Bytes.toBytes(\"00D300000000XHQ\"), PInteger.INSTANCE.toBytes(Integer.MIN_VALUE));\n assertArrayEquals(expectedKey, nextKey);\n \n key = new byte[] {(byte)255};\n assertNull(ByteUtil.nextKey(key));\n }",
"class_method_signature": "ByteUtilTest.testNextKey()",
"constructor": false,
"full_signature": "@Test public void testNextKey()",
"identifier": "testNextKey",
"invocations": [
"assertEquals",
"nextKey",
"nextKey",
"assertArrayEquals",
"concat",
"toBytes",
"toBytes",
"nextKey",
"concat",
"toBytes",
"toBytes",
"assertArrayEquals",
"assertNull",
"nextKey"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testNextKey()",
"testcase": true
} | {
"fields": [
{
"declarator": "EMPTY_BYTE_ARRAY = new byte[0]",
"modifier": "public static final",
"original_string": "public static final byte[] EMPTY_BYTE_ARRAY = new byte[0];",
"type": "byte[]",
"var_name": "EMPTY_BYTE_ARRAY"
},
{
"declarator": "EMPTY_BYTE_ARRAY_PTR = new ImmutableBytesPtr(\n EMPTY_BYTE_ARRAY)",
"modifier": "public static final",
"original_string": "public static final ImmutableBytesPtr EMPTY_BYTE_ARRAY_PTR = new ImmutableBytesPtr(\n EMPTY_BYTE_ARRAY);",
"type": "ImmutableBytesPtr",
"var_name": "EMPTY_BYTE_ARRAY_PTR"
},
{
"declarator": "EMPTY_IMMUTABLE_BYTE_ARRAY = new ImmutableBytesWritable(\n EMPTY_BYTE_ARRAY)",
"modifier": "public static final",
"original_string": "public static final ImmutableBytesWritable EMPTY_IMMUTABLE_BYTE_ARRAY = new ImmutableBytesWritable(\n EMPTY_BYTE_ARRAY);",
"type": "ImmutableBytesWritable",
"var_name": "EMPTY_IMMUTABLE_BYTE_ARRAY"
},
{
"declarator": "BYTES_PTR_COMPARATOR = new Comparator<ImmutableBytesPtr>() {\n\n @Override\n public int compare(ImmutableBytesPtr o1, ImmutableBytesPtr o2) {\n return Bytes.compareTo(o1.get(), o1.getOffset(), o1.getLength(), o2.get(), o2.getOffset(), o2.getLength());\n }\n \n }",
"modifier": "public static final",
"original_string": "public static final Comparator<ImmutableBytesPtr> BYTES_PTR_COMPARATOR = new Comparator<ImmutableBytesPtr>() {\n\n @Override\n public int compare(ImmutableBytesPtr o1, ImmutableBytesPtr o2) {\n return Bytes.compareTo(o1.get(), o1.getOffset(), o1.getLength(), o2.get(), o2.getOffset(), o2.getLength());\n }\n \n };",
"type": "Comparator<ImmutableBytesPtr>",
"var_name": "BYTES_PTR_COMPARATOR"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/ByteUtil.java",
"identifier": "ByteUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ByteUtil.toBytes(byte[][] byteArrays)",
"constructor": false,
"full_signature": "public static byte[] toBytes(byte[][] byteArrays)",
"identifier": "toBytes",
"modifiers": "public static",
"parameters": "(byte[][] byteArrays)",
"return": "byte[]",
"signature": "byte[] toBytes(byte[][] byteArrays)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.toByteArrays(byte[] b, int length)",
"constructor": false,
"full_signature": "public static byte[][] toByteArrays(byte[] b, int length)",
"identifier": "toByteArrays",
"modifiers": "public static",
"parameters": "(byte[] b, int length)",
"return": "byte[][]",
"signature": "byte[][] toByteArrays(byte[] b, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.toByteArrays(byte[] b, int offset, int length)",
"constructor": false,
"full_signature": "public static byte[][] toByteArrays(byte[] b, int offset, int length)",
"identifier": "toByteArrays",
"modifiers": "public static",
"parameters": "(byte[] b, int offset, int length)",
"return": "byte[][]",
"signature": "byte[][] toByteArrays(byte[] b, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(int[] intArray)",
"constructor": false,
"full_signature": "public static byte[] serializeVIntArray(int[] intArray)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(int[] intArray)",
"return": "byte[]",
"signature": "byte[] serializeVIntArray(int[] intArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(int[] intArray, int encodedLength)",
"constructor": false,
"full_signature": "public static byte[] serializeVIntArray(int[] intArray, int encodedLength)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(int[] intArray, int encodedLength)",
"return": "byte[]",
"signature": "byte[] serializeVIntArray(int[] intArray, int encodedLength)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(DataOutput output, int[] intArray)",
"constructor": false,
"full_signature": "public static void serializeVIntArray(DataOutput output, int[] intArray)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(DataOutput output, int[] intArray)",
"return": "void",
"signature": "void serializeVIntArray(DataOutput output, int[] intArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"constructor": false,
"full_signature": "public static void serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"identifier": "serializeVIntArray",
"modifiers": "public static",
"parameters": "(DataOutput output, int[] intArray, int encodedLength)",
"return": "void",
"signature": "void serializeVIntArray(DataOutput output, int[] intArray, int encodedLength)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.readFixedLengthLongArray(DataInput input, int length)",
"constructor": false,
"full_signature": "public static long[] readFixedLengthLongArray(DataInput input, int length)",
"identifier": "readFixedLengthLongArray",
"modifiers": "public static",
"parameters": "(DataInput input, int length)",
"return": "long[]",
"signature": "long[] readFixedLengthLongArray(DataInput input, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"constructor": false,
"full_signature": "public static void writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"identifier": "writeFixedLengthLongArray",
"modifiers": "public static",
"parameters": "(DataOutput output, long[] longArray)",
"return": "void",
"signature": "void writeFixedLengthLongArray(DataOutput output, long[] longArray)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(byte[] b)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(byte[] b)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(byte[] b)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(byte[] b)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(DataInput in)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(DataInput in)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(DataInput in)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(DataInput in)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(DataInput in, int length)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(DataInput in, int length)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(DataInput in, int length)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(DataInput in, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.deserializeVIntArray(byte[] b, int length)",
"constructor": false,
"full_signature": "public static int[] deserializeVIntArray(byte[] b, int length)",
"identifier": "deserializeVIntArray",
"modifiers": "public static",
"parameters": "(byte[] b, int length)",
"return": "int[]",
"signature": "int[] deserializeVIntArray(byte[] b, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(byte[] first, byte[]... rest)",
"constructor": false,
"full_signature": "public static byte[] concat(byte[] first, byte[]... rest)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(byte[] first, byte[]... rest)",
"return": "byte[]",
"signature": "byte[] concat(byte[] first, byte[]... rest)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(T[] first, T[]... rest)",
"constructor": false,
"full_signature": "public static T[] concat(T[] first, T[]... rest)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(T[] first, T[]... rest)",
"return": "T[]",
"signature": "T[] concat(T[] first, T[]... rest)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"constructor": false,
"full_signature": "public static byte[] concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"identifier": "concat",
"modifiers": "public static",
"parameters": "(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"return": "byte[]",
"signature": "byte[] concat(SortOrder sortOrder, ImmutableBytesWritable... writables)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintFromBytes(byte[] buffer, int offset)",
"constructor": false,
"full_signature": "public static int vintFromBytes(byte[] buffer, int offset)",
"identifier": "vintFromBytes",
"modifiers": "public static",
"parameters": "(byte[] buffer, int offset)",
"return": "int",
"signature": "int vintFromBytes(byte[] buffer, int offset)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintFromBytes(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static int vintFromBytes(ImmutableBytesWritable ptr)",
"identifier": "vintFromBytes",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "int",
"signature": "int vintFromBytes(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vlongFromBytes(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static long vlongFromBytes(ImmutableBytesWritable ptr)",
"identifier": "vlongFromBytes",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "long",
"signature": "long vlongFromBytes(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.vintToBytes(byte[] result, int offset, final long vint)",
"constructor": false,
"full_signature": "public static int vintToBytes(byte[] result, int offset, final long vint)",
"identifier": "vintToBytes",
"modifiers": "public static",
"parameters": "(byte[] result, int offset, final long vint)",
"return": "int",
"signature": "int vintToBytes(byte[] result, int offset, final long vint)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key)",
"constructor": false,
"full_signature": "public static byte[] nextKey(byte[] key)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key)",
"return": "byte[]",
"signature": "byte[] nextKey(byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static boolean nextKey(byte[] key, int length)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "boolean",
"signature": "boolean nextKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nextKey(byte[] key, int offset, int length)",
"constructor": false,
"full_signature": "public static boolean nextKey(byte[] key, int offset, int length)",
"identifier": "nextKey",
"modifiers": "public static",
"parameters": "(byte[] key, int offset, int length)",
"return": "boolean",
"signature": "boolean nextKey(byte[] key, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key)",
"constructor": false,
"full_signature": "public static byte[] previousKey(byte[] key)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key)",
"return": "byte[]",
"signature": "byte[] previousKey(byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static boolean previousKey(byte[] key, int length)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "boolean",
"signature": "boolean previousKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.previousKey(byte[] key, int offset, int length)",
"constructor": false,
"full_signature": "public static boolean previousKey(byte[] key, int offset, int length)",
"identifier": "previousKey",
"modifiers": "public static",
"parameters": "(byte[] key, int offset, int length)",
"return": "boolean",
"signature": "boolean previousKey(byte[] key, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.fillKey(byte[] key, int length)",
"constructor": false,
"full_signature": "public static byte[] fillKey(byte[] key, int length)",
"identifier": "fillKey",
"modifiers": "public static",
"parameters": "(byte[] key, int length)",
"return": "byte[]",
"signature": "byte[] fillKey(byte[] key, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.nullPad(ImmutableBytesWritable ptr, int length)",
"constructor": false,
"full_signature": "public static void nullPad(ImmutableBytesWritable ptr, int length)",
"identifier": "nullPad",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr, int length)",
"return": "void",
"signature": "void nullPad(ImmutableBytesWritable ptr, int length)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.getSize(CharSequence sequence)",
"constructor": false,
"full_signature": "public static int getSize(CharSequence sequence)",
"identifier": "getSize",
"modifiers": "public static",
"parameters": "(CharSequence sequence)",
"return": "int",
"signature": "int getSize(CharSequence sequence)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.isInclusive(CompareOp op)",
"constructor": false,
"full_signature": "public static boolean isInclusive(CompareOp op)",
"identifier": "isInclusive",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "boolean",
"signature": "boolean isInclusive(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.compare(CompareOp op, int compareResult)",
"constructor": false,
"full_signature": "public static boolean compare(CompareOp op, int compareResult)",
"identifier": "compare",
"modifiers": "public static",
"parameters": "(CompareOp op, int compareResult)",
"return": "boolean",
"signature": "boolean compare(CompareOp op, int compareResult)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static byte[] copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"identifier": "copyKeyBytesIfNecessary",
"modifiers": "public static",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "byte[]",
"signature": "byte[] copyKeyBytesIfNecessary(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.getKeyRange(byte[] key, CompareOp op, PDataType type)",
"constructor": false,
"full_signature": "public static KeyRange getKeyRange(byte[] key, CompareOp op, PDataType type)",
"identifier": "getKeyRange",
"modifiers": "public static",
"parameters": "(byte[] key, CompareOp op, PDataType type)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] key, CompareOp op, PDataType type)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.contains(Collection<byte[]> keys, byte[] key)",
"constructor": false,
"full_signature": "public static boolean contains(Collection<byte[]> keys, byte[] key)",
"identifier": "contains",
"modifiers": "public static",
"parameters": "(Collection<byte[]> keys, byte[] key)",
"return": "boolean",
"signature": "boolean contains(Collection<byte[]> keys, byte[] key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"constructor": false,
"full_signature": "public static boolean contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"identifier": "contains",
"modifiers": "public static",
"parameters": "(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"return": "boolean",
"signature": "boolean contains(List<ImmutableBytesPtr> keys, ImmutableBytesPtr key)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.match(Set<byte[]> keys, Set<byte[]> keys2)",
"constructor": false,
"full_signature": "public static boolean match(Set<byte[]> keys, Set<byte[]> keys2)",
"identifier": "match",
"modifiers": "public static",
"parameters": "(Set<byte[]> keys, Set<byte[]> keys2)",
"return": "boolean",
"signature": "boolean match(Set<byte[]> keys, Set<byte[]> keys2)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"constructor": false,
"full_signature": "public static byte[] calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"identifier": "calculateTheClosestNextRowKeyForPrefix",
"modifiers": "public static",
"parameters": "(byte[] rowKeyPrefix)",
"return": "byte[]",
"signature": "byte[] calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)",
"testcase": false
},
{
"class_method_signature": "ByteUtil.splitArrayBySeparator(byte[] src, byte separator)",
"constructor": false,
"full_signature": "public static byte[][] splitArrayBySeparator(byte[] src, byte separator)",
"identifier": "splitArrayBySeparator",
"modifiers": "public static",
"parameters": "(byte[] src, byte separator)",
"return": "byte[][]",
"signature": "byte[][] splitArrayBySeparator(byte[] src, byte separator)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static byte[] nextKey(byte[] key) {\n byte[] nextStartRow = new byte[key.length];\n System.arraycopy(key, 0, nextStartRow, 0, key.length);\n if (!nextKey(nextStartRow, nextStartRow.length)) {\n return null;\n }\n return nextStartRow;\n }",
"class_method_signature": "ByteUtil.nextKey(byte[] key)",
"constructor": false,
"full_signature": "public static byte[] nextKey(byte[] key)",
"identifier": "nextKey",
"invocations": [
"arraycopy",
"nextKey"
],
"modifiers": "public static",
"parameters": "(byte[] key)",
"return": "byte[]",
"signature": "byte[] nextKey(byte[] key)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_28 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBulkAllocationAscendingNextValueWithinLimit() throws SQLException {\n assertFalse(SequenceUtil.checkIfLimitReached(5, MIN_VALUE, MAX_VALUE, 2/* incrementBy */, CACHE_SIZE, 2));\n\n }",
"class_method_signature": "SequenceUtilTest.testBulkAllocationAscendingNextValueWithinLimit()",
"constructor": false,
"full_signature": "@Test public void testBulkAllocationAscendingNextValueWithinLimit()",
"identifier": "testBulkAllocationAscendingNextValueWithinLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testBulkAllocationAscendingNextValueWithinLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_90 | {
"fields": [
{
"declarator": "ROW = Bytes.toBytes(\"row\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "QUALIFIER = Bytes.toBytes(\"qual\")",
"modifier": "private static final",
"original_string": "private static final byte[] QUALIFIER = Bytes.toBytes(\"qual\");",
"type": "byte[]",
"var_name": "QUALIFIER"
},
{
"declarator": "ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\")",
"modifier": "private static final",
"original_string": "private static final byte[] ORIGINAL_VALUE = Bytes.toBytes(\"generic-value\");",
"type": "byte[]",
"var_name": "ORIGINAL_VALUE"
},
{
"declarator": "DUMMY_TAGS = Bytes.toBytes(\"tags\")",
"modifier": "private static final",
"original_string": "private static final byte[] DUMMY_TAGS = Bytes.toBytes(\"tags\");",
"type": "byte[]",
"var_name": "DUMMY_TAGS"
},
{
"declarator": "mockBuilder = Mockito.mock(ExtendedCellBuilder.class)",
"modifier": "private final",
"original_string": "private final ExtendedCellBuilder mockBuilder = Mockito.mock(ExtendedCellBuilder.class);",
"type": "ExtendedCellBuilder",
"var_name": "mockBuilder"
},
{
"declarator": "mockCellWithTags = Mockito.mock(ExtendedCell.class)",
"modifier": "private final",
"original_string": "private final ExtendedCell mockCellWithTags = Mockito.mock(ExtendedCell.class);",
"type": "ExtendedCell",
"var_name": "mockCellWithTags"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/MetaDataUtilTest.java",
"identifier": "MetaDataUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTaggingAPutUnconditionally() throws Exception {\n Put put = generateOriginalPut();\n\n // valueArray is null so we always set tags\n MetaDataUtil.conditionallyAddTagsToPutCells(put, TABLE_FAMILY_BYTES, QUALIFIER,\n mockBuilder, null, DUMMY_TAGS);\n verify(mockBuilder, times(1)).setTags(Mockito.any(byte[].class));\n Cell newCell = put.getFamilyCellMap().get(TABLE_FAMILY_BYTES).get(0);\n assertEquals(mockCellWithTags, newCell);\n }",
"class_method_signature": "MetaDataUtilTest.testTaggingAPutUnconditionally()",
"constructor": false,
"full_signature": "@Test public void testTaggingAPutUnconditionally()",
"identifier": "testTaggingAPutUnconditionally",
"invocations": [
"generateOriginalPut",
"conditionallyAddTagsToPutCells",
"setTags",
"verify",
"times",
"any",
"get",
"get",
"getFamilyCellMap",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testTaggingAPutUnconditionally()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(MetaDataUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(MetaDataUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "VIEW_INDEX_TABLE_PREFIX = \"_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_TABLE_PREFIX = \"_IDX_\";",
"type": "String",
"var_name": "VIEW_INDEX_TABLE_PREFIX"
},
{
"declarator": "LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_INDEX_TABLE_PREFIX = \"_LOCAL_IDX_\";",
"type": "String",
"var_name": "LOCAL_INDEX_TABLE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_PREFIX = \"_SEQ_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_SEQUENCE_NAME_PREFIX = \"_ID_\";",
"type": "String",
"var_name": "VIEW_INDEX_SEQUENCE_NAME_PREFIX"
},
{
"declarator": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX)",
"modifier": "public static final",
"original_string": "public static final byte[] VIEW_INDEX_SEQUENCE_PREFIX_BYTES = Bytes.toBytes(VIEW_INDEX_SEQUENCE_PREFIX);",
"type": "byte[]",
"var_name": "VIEW_INDEX_SEQUENCE_PREFIX_BYTES"
},
{
"declarator": "VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\"",
"modifier": "public static final",
"original_string": "public static final String VIEW_INDEX_ID_COLUMN_NAME = \"_INDEX_ID\";",
"type": "String",
"var_name": "VIEW_INDEX_ID_COLUMN_NAME"
},
{
"declarator": "PARENT_TABLE_KEY = \"PARENT_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String PARENT_TABLE_KEY = \"PARENT_TABLE\";",
"type": "String",
"var_name": "PARENT_TABLE_KEY"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_VIEW_INDEX_TABLE_PROP_NAME = \"IS_VIEW_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_VIEW_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_VIEW_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_VIEW_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String IS_LOCAL_INDEX_TABLE_PROP_NAME = \"IS_LOCAL_INDEX_TABLE\";",
"type": "String",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_NAME"
},
{
"declarator": "IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] IS_LOCAL_INDEX_TABLE_PROP_BYTES = Bytes.toBytes(IS_LOCAL_INDEX_TABLE_PROP_NAME);",
"type": "byte[]",
"var_name": "IS_LOCAL_INDEX_TABLE_PROP_BYTES"
},
{
"declarator": "DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\"",
"modifier": "public static final",
"original_string": "public static final String DATA_TABLE_NAME_PROP_NAME = \"DATA_TABLE_NAME\";",
"type": "String",
"var_name": "DATA_TABLE_NAME_PROP_NAME"
},
{
"declarator": "DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME)",
"modifier": "public static final",
"original_string": "public static final byte[] DATA_TABLE_NAME_PROP_BYTES = Bytes.toBytes(DATA_TABLE_NAME_PROP_NAME);",
"type": "byte[]",
"var_name": "DATA_TABLE_NAME_PROP_BYTES"
},
{
"declarator": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE)",
"modifier": "public static final",
"original_string": "public static final List<String> SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES = ImmutableList.of(\n ColumnFamilyDescriptorBuilder.TTL,\n ColumnFamilyDescriptorBuilder.KEEP_DELETED_CELLS,\n ColumnFamilyDescriptorBuilder.REPLICATION_SCOPE);",
"type": "List<String>",
"var_name": "SYNCED_DATA_TABLE_AND_INDEX_COL_FAM_PROPERTIES"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java",
"identifier": "MetaDataUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"constructor": false,
"full_signature": "public static ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "public static",
"parameters": "(long serverHBaseAndPhoenixVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(long serverHBaseAndPhoenixVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"constructor": false,
"full_signature": "@VisibleForTesting static ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"identifier": "areClientAndServerCompatible",
"modifiers": "@VisibleForTesting static",
"parameters": "(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"return": "ClientServerCompatibility",
"signature": "ClientServerCompatibility areClientAndServerCompatible(int serverVersion, int clientMajorVersion, int clientMinorVersion)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodePhoenixVersion(long version)",
"constructor": false,
"full_signature": "public static int decodePhoenixVersion(long version)",
"identifier": "decodePhoenixVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodePhoenixVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeHasIndexWALCodec(long version, boolean isValid)",
"constructor": false,
"full_signature": "public static long encodeHasIndexWALCodec(long version, boolean isValid)",
"identifier": "encodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version, boolean isValid)",
"return": "long",
"signature": "long encodeHasIndexWALCodec(long version, boolean isValid)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHasIndexWALCodec(long version)",
"constructor": false,
"full_signature": "public static boolean decodeHasIndexWALCodec(long version)",
"identifier": "decodeHasIndexWALCodec",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeHasIndexWALCodec(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersion(long version)",
"constructor": false,
"full_signature": "public static int decodeHBaseVersion(long version)",
"identifier": "decodeHBaseVersion",
"modifiers": "public static",
"parameters": "(long version)",
"return": "int",
"signature": "int decodeHBaseVersion(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeHBaseVersionAsString(int version)",
"constructor": false,
"full_signature": "public static String decodeHBaseVersionAsString(int version)",
"identifier": "decodeHBaseVersionAsString",
"modifiers": "public static",
"parameters": "(int version)",
"return": "String",
"signature": "String decodeHBaseVersionAsString(int version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.decodeTableNamespaceMappingEnabled(long version)",
"constructor": false,
"full_signature": "public static boolean decodeTableNamespaceMappingEnabled(long version)",
"identifier": "decodeTableNamespaceMappingEnabled",
"modifiers": "public static",
"parameters": "(long version)",
"return": "boolean",
"signature": "boolean decodeTableNamespaceMappingEnabled(long version)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.encodeVersion(String hbaseVersionStr, Configuration config)",
"constructor": false,
"full_signature": "public static long encodeVersion(String hbaseVersionStr, Configuration config)",
"identifier": "encodeVersion",
"modifiers": "public static",
"parameters": "(String hbaseVersionStr, Configuration config)",
"return": "long",
"signature": "long encodeVersion(String hbaseVersionStr, Configuration config)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Mutation someRow)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Mutation someRow)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Mutation someRow)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(Result result)",
"constructor": false,
"full_signature": "public static byte[] getTenantIdAndSchemaAndTableName(Result result)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(Result result)",
"return": "byte[]",
"signature": "byte[] getTenantIdAndSchemaAndTableName(Result result)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndSchemaAndTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getBaseColumnCount(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static int getBaseColumnCount(List<Mutation> tableMetadata)",
"identifier": "getBaseColumnCount",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "int",
"signature": "int getBaseColumnCount(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"constructor": false,
"full_signature": "public static void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"identifier": "mutatePutValue",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"return": "void",
"signature": "void mutatePutValue(Put somePut, byte[] family, byte[] qualifier, byte[] newValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"constructor": false,
"full_signature": "public static Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"identifier": "cloneDeleteToPutAndAddColumn",
"modifiers": "public static",
"parameters": "(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"return": "Put",
"signature": "Put cloneDeleteToPutAndAddColumn(Delete delete, byte[] family, byte[] qualifier, byte[] value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"constructor": false,
"full_signature": "public static void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"identifier": "getTenantIdAndFunctionName",
"modifiers": "public static",
"parameters": "(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"return": "void",
"signature": "void getTenantIdAndFunctionName(List<Mutation> functionMetadata, byte[][] rowKeyMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableName(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static byte[] getParentTableName(List<Mutation> tableMetadata)",
"identifier": "getParentTableName",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "byte[]",
"signature": "byte[] getParentTableName(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(Mutation tableMutation)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "long",
"signature": "long getSequenceNumber(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getTableType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "PTableType",
"signature": "PTableType getTableType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "isNameSpaceMapped",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "boolean",
"signature": "boolean isNameSpaceMapped(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getSaltBuckets",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "int",
"signature": "int getSaltBuckets(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentSequenceNumber(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static long getParentSequenceNumber(List<Mutation> tableMetaData)",
"identifier": "getParentSequenceNumber",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "long",
"signature": "long getParentSequenceNumber(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"constructor": false,
"full_signature": "public static KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"identifier": "getMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"return": "KeyValue",
"signature": "KeyValue getMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"constructor": false,
"full_signature": "public static boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"identifier": "setMutationValue",
"modifiers": "public static",
"parameters": "(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"return": "boolean",
"signature": "boolean setMutationValue(Mutation headerRow, byte[] key,\n KeyValueBuilder builder, KeyValue keyValue)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getPutOnlyTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"identifier": "getPutOnlyAutoPartitionColumn",
"modifiers": "public static",
"parameters": "(PTable parentTable, List<Mutation> tableMetaData)",
"return": "Put",
"signature": "Put getPutOnlyAutoPartitionColumn(PTable parentTable, List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentTableHeaderRow(List<Mutation> tableMetaData)",
"constructor": false,
"full_signature": "public static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"identifier": "getParentTableHeaderRow",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData)",
"return": "Mutation",
"signature": "Mutation getParentTableHeaderRow(List<Mutation> tableMetaData)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(List<Mutation> tableMetadata)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(List<Mutation> tableMetadata)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetadata)",
"return": "long",
"signature": "long getClientTimeStamp(List<Mutation> tableMetadata)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getClientTimeStamp(Mutation m)",
"constructor": false,
"full_signature": "public static long getClientTimeStamp(Mutation m)",
"identifier": "getClientTimeStamp",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "long",
"signature": "long getClientTimeStamp(Mutation m)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(String tenantId, String schemaName, String tableName, String indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"constructor": false,
"full_signature": "public static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"identifier": "getParentLinkKey",
"modifiers": "public static",
"parameters": "(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"return": "byte[]",
"signature": "byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"constructor": false,
"full_signature": "public static byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"identifier": "getChildLinkKey",
"modifiers": "public static",
"parameters": "(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"return": "byte[]",
"signature": "byte[] getChildLinkKey(PName parentTenantId, PName parentSchemaName, PName parentTableName, PName viewTenantId, PName viewName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getCell(List<Cell> cells, byte[] cq)",
"constructor": false,
"full_signature": "public static Cell getCell(List<Cell> cells, byte[] cq)",
"identifier": "getCell",
"modifiers": "public static",
"parameters": "(List<Cell> cells, byte[] cq)",
"return": "Cell",
"signature": "Cell getCell(List<Cell> cells, byte[] cq)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isMultiTenant",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isMultiTenant(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isTransactional",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isTransactional(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public static boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"identifier": "isSalted",
"modifiers": "public static",
"parameters": "(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean isSalted(Mutation m, KeyValueBuilder builder, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getViewIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexPhysicalName(String physicalTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexPhysicalName(String physicalTableName)",
"identifier": "getViewIndexPhysicalName",
"modifiers": "public static",
"parameters": "(String physicalTableName)",
"return": "String",
"signature": "String getViewIndexPhysicalName(String physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(byte[] physicalTableName, String indexPrefix)",
"return": "byte[]",
"signature": "byte[] getIndexPhysicalName(byte[] physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"constructor": false,
"full_signature": "private static String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"identifier": "getIndexPhysicalName",
"modifiers": "private static",
"parameters": "(String physicalTableName, String indexPrefix)",
"return": "String",
"signature": "String getIndexPhysicalName(String physicalTableName, String indexPrefix)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexPhysicalName(byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"identifier": "getLocalIndexPhysicalName",
"modifiers": "public static",
"parameters": "(byte[] physicalTableName)",
"return": "byte[]",
"signature": "byte[] getLocalIndexPhysicalName(byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexTableName(String tableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexTableName(String tableName)",
"identifier": "getLocalIndexTableName",
"modifiers": "public static",
"parameters": "(String tableName)",
"return": "String",
"signature": "String getLocalIndexTableName(String tableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexSchemaName(String schemaName)",
"constructor": false,
"full_signature": "public static String getLocalIndexSchemaName(String schemaName)",
"identifier": "getLocalIndexSchemaName",
"modifiers": "public static",
"parameters": "(String schemaName)",
"return": "String",
"signature": "String getLocalIndexSchemaName(String schemaName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexUserTableName(String localIndexTableName)",
"constructor": false,
"full_signature": "public static String getLocalIndexUserTableName(String localIndexTableName)",
"identifier": "getLocalIndexUserTableName",
"modifiers": "public static",
"parameters": "(String localIndexTableName)",
"return": "String",
"signature": "String getLocalIndexUserTableName(String localIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexUserTableName(String viewIndexTableName)",
"constructor": false,
"full_signature": "public static String getViewIndexUserTableName(String viewIndexTableName)",
"identifier": "getViewIndexUserTableName",
"modifiers": "public static",
"parameters": "(String viewIndexTableName)",
"return": "String",
"signature": "String getViewIndexUserTableName(String viewIndexTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getOldViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getOldViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getOldViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceSchemaName",
"modifiers": "public static",
"parameters": "(PName physicalName, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceName",
"modifiers": "public static",
"parameters": "(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"return": "String",
"signature": "String getViewIndexSequenceName(PName physicalName, PName tenantId, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"identifier": "getViewIndexSequenceKey",
"modifiers": "public static",
"parameters": "(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"return": "SequenceKey",
"signature": "SequenceKey getViewIndexSequenceKey(String tenantId, PName physicalName, int nSaltBuckets,\n boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getViewIndexIdDataType()",
"identifier": "getViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLegacyViewIndexIdDataType()",
"constructor": false,
"full_signature": "public static PDataType getLegacyViewIndexIdDataType()",
"identifier": "getLegacyViewIndexIdDataType",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getLegacyViewIndexIdDataType()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getViewIndexIdColumnName()",
"constructor": false,
"full_signature": "public static String getViewIndexIdColumnName()",
"identifier": "getViewIndexIdColumnName",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getViewIndexIdColumnName()",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasViewIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasViewIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName physicalName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, PName physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"identifier": "hasLocalIndexTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, byte[] physicalTableName)",
"return": "boolean",
"signature": "boolean hasLocalIndexTable(PhoenixConnection connection, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.hasLocalIndexColumnFamily(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"identifier": "hasLocalIndexColumnFamily",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "boolean",
"signature": "boolean hasLocalIndexColumnFamily(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"constructor": false,
"full_signature": "public static List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"identifier": "getNonLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(TableDescriptor desc)",
"return": "List<byte[]>",
"signature": "List<byte[]> getNonLocalIndexColumnFamilies(TableDescriptor desc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"constructor": false,
"full_signature": "public static List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"identifier": "getLocalIndexColumnFamilies",
"modifiers": "public static",
"parameters": "(PhoenixConnection conn, byte[] physicalTableName)",
"return": "List<byte[]>",
"signature": "List<byte[]> getLocalIndexColumnFamilies(PhoenixConnection conn, byte[] physicalTableName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"constructor": false,
"full_signature": "public static void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"identifier": "deleteViewIndexSequences",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"return": "void",
"signature": "void deleteViewIndexSequences(PhoenixConnection connection, PName name, boolean isNamespaceMapped)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.tableRegionsOnline(Configuration conf, PTable table)",
"constructor": false,
"full_signature": "public static boolean tableRegionsOnline(Configuration conf, PTable table)",
"identifier": "tableRegionsOnline",
"modifiers": "public static",
"parameters": "(Configuration conf, PTable table)",
"return": "boolean",
"signature": "boolean tableRegionsOnline(Configuration conf, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.propertyNotAllowedToBeOutOfSync(String colFamProp)",
"constructor": false,
"full_signature": "public static boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"identifier": "propertyNotAllowedToBeOutOfSync",
"modifiers": "public static",
"parameters": "(String colFamProp)",
"return": "boolean",
"signature": "boolean propertyNotAllowedToBeOutOfSync(String colFamProp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"constructor": false,
"full_signature": "public static Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"identifier": "getSyncedProps",
"modifiers": "public static",
"parameters": "(ColumnFamilyDescriptor defaultCFDesc)",
"return": "Map<String, Object>",
"signature": "Map<String, Object> getSyncedProps(ColumnFamilyDescriptor defaultCFDesc)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] key, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] key, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"constructor": false,
"full_signature": "public static Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"identifier": "newTableRowsScan",
"modifiers": "public static",
"parameters": "(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"return": "Scan",
"signature": "Scan newTableRowsScan(byte[] startKey, byte[] stopKey, long startTimeStamp, long stopTimeStamp)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Mutation tableMutation)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Mutation tableMutation)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Mutation tableMutation)",
"return": "LinkType",
"signature": "LinkType getLinkType(Mutation tableMutation)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getLinkType(Collection<Cell> kvs)",
"constructor": false,
"full_signature": "public static LinkType getLinkType(Collection<Cell> kvs)",
"identifier": "getLinkType",
"modifiers": "public static",
"parameters": "(Collection<Cell> kvs)",
"return": "LinkType",
"signature": "LinkType getLinkType(Collection<Cell> kvs)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isLocalIndex(String physicalName)",
"identifier": "isLocalIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isLocalIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isViewIndex(String physicalName)",
"constructor": false,
"full_signature": "public static boolean isViewIndex(String physicalName)",
"identifier": "isViewIndex",
"modifiers": "public static",
"parameters": "(String physicalName)",
"return": "boolean",
"signature": "boolean isViewIndex(String physicalName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColumnName(PTable parentTable)",
"constructor": false,
"full_signature": "public static String getAutoPartitionColumnName(PTable parentTable)",
"identifier": "getAutoPartitionColumnName",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "String",
"signature": "String getAutoPartitionColumnName(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getAutoPartitionColIndex(PTable parentTable)",
"constructor": false,
"full_signature": "public static int getAutoPartitionColIndex(PTable parentTable)",
"identifier": "getAutoPartitionColIndex",
"modifiers": "public static",
"parameters": "(PTable parentTable)",
"return": "int",
"signature": "int getAutoPartitionColIndex(PTable parentTable)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getJdbcUrl(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static String getJdbcUrl(RegionCoprocessorEnvironment env)",
"identifier": "getJdbcUrl",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "String",
"signature": "String getJdbcUrl(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHColumnProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHColumnProperty(String propName)",
"identifier": "isHColumnProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHColumnProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isHTableProperty(String propName)",
"constructor": false,
"full_signature": "public static boolean isHTableProperty(String propName)",
"identifier": "isHTableProperty",
"modifiers": "public static",
"parameters": "(String propName)",
"return": "boolean",
"signature": "boolean isHTableProperty(String propName)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(ImmutableBytesPtr cfPtr)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(ImmutableBytesPtr cfPtr)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.isLocalIndexFamily(byte[] cf)",
"constructor": false,
"full_signature": "public static boolean isLocalIndexFamily(byte[] cf)",
"identifier": "isLocalIndexFamily",
"modifiers": "public static",
"parameters": "(byte[] cf)",
"return": "boolean",
"signature": "boolean isLocalIndexFamily(byte[] cf)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getPhysicalTableRowForView(PTable view)",
"constructor": false,
"full_signature": "public static final byte[] getPhysicalTableRowForView(PTable view)",
"identifier": "getPhysicalTableRowForView",
"modifiers": "public static final",
"parameters": "(PTable view)",
"return": "byte[]",
"signature": "byte[] getPhysicalTableRowForView(PTable view)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.removeChildLinkMutations(List<Mutation> metadataMutations)",
"constructor": false,
"full_signature": "public static List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"identifier": "removeChildLinkMutations",
"modifiers": "public static",
"parameters": "(List<Mutation> metadataMutations)",
"return": "List<Mutation>",
"signature": "List<Mutation> removeChildLinkMutations(List<Mutation> metadataMutations)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"identifier": "getIndexType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"return": "IndexType",
"signature": "IndexType getIndexType(List<Mutation> tableMetaData, KeyValueBuilder builder,\n ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"constructor": false,
"full_signature": "public static PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"identifier": "getIndexDataType",
"modifiers": "public static",
"parameters": "(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"return": "PDataType<?>",
"signature": "PDataType<?> getIndexDataType(List<Mutation> tableMetaData,\n KeyValueBuilder builder, ImmutableBytesWritable value)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"constructor": false,
"full_signature": "public static PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"identifier": "getColumn",
"modifiers": "public static",
"parameters": "(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"return": "PColumn",
"signature": "PColumn getColumn(int pkCount, byte[][] rowKeyMetaData, PTable table)",
"testcase": false
},
{
"class_method_signature": "MetaDataUtil.deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"constructor": false,
"full_signature": "public static void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"identifier": "deleteFromStatsTable",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"return": "void",
"signature": "void deleteFromStatsTable(PhoenixConnection connection,\n PTable table, List<byte[]> physicalTableNames,\n List<MetaDataProtocol.SharedTableState> sharedTableStates)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray) {\n NavigableMap<byte[], List<Cell>> familyCellMap = somePut.getFamilyCellMap();\n List<Cell> cells = familyCellMap.get(family);\n List<Cell> newCells = Lists.newArrayList();\n if (cells != null) {\n for (Cell cell : cells) {\n if (Bytes.compareTo(cell.getQualifierArray(), cell.getQualifierOffset(),\n cell.getQualifierLength(), qualifier, 0, qualifier.length) == 0 &&\n (valueArray == null || !CellUtil.matchingValue(cell, valueArray))) {\n ExtendedCell extendedCell = cellBuilder\n .setRow(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength())\n .setFamily(cell.getFamilyArray(), cell.getFamilyOffset(),\n cell.getFamilyLength())\n .setQualifier(cell.getQualifierArray(), cell.getQualifierOffset(),\n cell.getQualifierLength())\n .setValue(cell.getValueArray(), cell.getValueOffset(),\n cell.getValueLength())\n .setTimestamp(cell.getTimestamp())\n .setType(cell.getType())\n .setTags(TagUtil.concatTags(tagArray, cell))\n .build();\n // Replace existing cell with a cell that has the custom tags list\n newCells.add(extendedCell);\n } else {\n // Add cell as is\n newCells.add(cell);\n }\n }\n familyCellMap.put(family, newCells);\n }\n }",
"class_method_signature": "MetaDataUtil.conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"constructor": false,
"full_signature": "public static void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"identifier": "conditionallyAddTagsToPutCells",
"invocations": [
"getFamilyCellMap",
"get",
"newArrayList",
"compareTo",
"getQualifierArray",
"getQualifierOffset",
"getQualifierLength",
"matchingValue",
"build",
"setTags",
"setType",
"setTimestamp",
"setValue",
"setQualifier",
"setFamily",
"setRow",
"getRowArray",
"getRowOffset",
"getRowLength",
"getFamilyArray",
"getFamilyOffset",
"getFamilyLength",
"getQualifierArray",
"getQualifierOffset",
"getQualifierLength",
"getValueArray",
"getValueOffset",
"getValueLength",
"getTimestamp",
"getType",
"concatTags",
"add",
"add",
"put"
],
"modifiers": "public static",
"parameters": "(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"return": "void",
"signature": "void conditionallyAddTagsToPutCells(Put somePut, byte[] family, byte[] qualifier,\n ExtendedCellBuilder cellBuilder, byte[] valueArray, byte[] tagArray)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_185 | {
"fields": [
{
"declarator": "region",
"modifier": "private",
"original_string": "private Region region;",
"type": "Region",
"var_name": "region"
},
{
"declarator": "rsServices",
"modifier": "private",
"original_string": "private RegionServerServices rsServices;",
"type": "RegionServerServices",
"var_name": "rsServices"
},
{
"declarator": "statsWriter",
"modifier": "private",
"original_string": "private StatisticsWriter statsWriter;",
"type": "StatisticsWriter",
"var_name": "statsWriter"
},
{
"declarator": "callable",
"modifier": "private",
"original_string": "private StatisticsScannerCallable callable;",
"type": "StatisticsScannerCallable",
"var_name": "callable"
},
{
"declarator": "runTracker",
"modifier": "private",
"original_string": "private StatisticsCollectionRunTracker runTracker;",
"type": "StatisticsCollectionRunTracker",
"var_name": "runTracker"
},
{
"declarator": "mockScanner",
"modifier": "private",
"original_string": "private StatisticsScanner mockScanner;",
"type": "StatisticsScanner",
"var_name": "mockScanner"
},
{
"declarator": "tracker",
"modifier": "private",
"original_string": "private StatisticsCollector tracker;",
"type": "StatisticsCollector",
"var_name": "tracker"
},
{
"declarator": "delegate",
"modifier": "private",
"original_string": "private InternalScanner delegate;",
"type": "InternalScanner",
"var_name": "delegate"
},
{
"declarator": "regionInfo",
"modifier": "private",
"original_string": "private RegionInfo regionInfo;",
"type": "RegionInfo",
"var_name": "regionInfo"
},
{
"declarator": "config",
"modifier": "private",
"original_string": "private Configuration config;",
"type": "Configuration",
"var_name": "config"
},
{
"declarator": "env",
"modifier": "private",
"original_string": "private RegionCoprocessorEnvironment env;",
"type": "RegionCoprocessorEnvironment",
"var_name": "env"
},
{
"declarator": "conn",
"modifier": "private",
"original_string": "private Connection conn;",
"type": "Connection",
"var_name": "conn"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/stats/StatisticsScannerTest.java",
"identifier": "StatisticsScannerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCheckRegionServerStoppingOnClose() throws Exception {\n when(conn.isClosed()).thenReturn(true);\n when(conn.isAborted()).thenReturn(false);\n\n mockScanner.close();\n\n verify(conn).isClosed();\n verify(callable, never()).call();\n verify(runTracker, never()).runTask(callable);\n }",
"class_method_signature": "StatisticsScannerTest.testCheckRegionServerStoppingOnClose()",
"constructor": false,
"full_signature": "@Test public void testCheckRegionServerStoppingOnClose()",
"identifier": "testCheckRegionServerStoppingOnClose",
"invocations": [
"thenReturn",
"when",
"isClosed",
"thenReturn",
"when",
"isAborted",
"close",
"isClosed",
"verify",
"call",
"verify",
"never",
"runTask",
"verify",
"never"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCheckRegionServerStoppingOnClose()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(StatisticsScanner.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(StatisticsScanner.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "delegate",
"modifier": "private",
"original_string": "private InternalScanner delegate;",
"type": "InternalScanner",
"var_name": "delegate"
},
{
"declarator": "statsWriter",
"modifier": "private",
"original_string": "private StatisticsWriter statsWriter;",
"type": "StatisticsWriter",
"var_name": "statsWriter"
},
{
"declarator": "region",
"modifier": "private",
"original_string": "private Region region;",
"type": "Region",
"var_name": "region"
},
{
"declarator": "tracker",
"modifier": "private",
"original_string": "private StatisticsCollector tracker;",
"type": "StatisticsCollector",
"var_name": "tracker"
},
{
"declarator": "family",
"modifier": "private",
"original_string": "private ImmutableBytesPtr family;",
"type": "ImmutableBytesPtr",
"var_name": "family"
},
{
"declarator": "config",
"modifier": "private final",
"original_string": "private final Configuration config;",
"type": "Configuration",
"var_name": "config"
},
{
"declarator": "env",
"modifier": "private final",
"original_string": "private final RegionCoprocessorEnvironment env;",
"type": "RegionCoprocessorEnvironment",
"var_name": "env"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsScanner.java",
"identifier": "StatisticsScanner",
"interfaces": "implements InternalScanner",
"methods": [
{
"class_method_signature": "StatisticsScanner.StatisticsScanner(StatisticsCollector tracker, StatisticsWriter stats, RegionCoprocessorEnvironment env,\n InternalScanner delegate, ImmutableBytesPtr family)",
"constructor": true,
"full_signature": "public StatisticsScanner(StatisticsCollector tracker, StatisticsWriter stats, RegionCoprocessorEnvironment env,\n InternalScanner delegate, ImmutableBytesPtr family)",
"identifier": "StatisticsScanner",
"modifiers": "public",
"parameters": "(StatisticsCollector tracker, StatisticsWriter stats, RegionCoprocessorEnvironment env,\n InternalScanner delegate, ImmutableBytesPtr family)",
"return": "",
"signature": " StatisticsScanner(StatisticsCollector tracker, StatisticsWriter stats, RegionCoprocessorEnvironment env,\n InternalScanner delegate, ImmutableBytesPtr family)",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.next(List<Cell> result)",
"constructor": false,
"full_signature": "@Override public boolean next(List<Cell> result)",
"identifier": "next",
"modifiers": "@Override public",
"parameters": "(List<Cell> result)",
"return": "boolean",
"signature": "boolean next(List<Cell> result)",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.next(List<Cell> result, ScannerContext scannerContext)",
"constructor": false,
"full_signature": "@Override public boolean next(List<Cell> result, ScannerContext scannerContext)",
"identifier": "next",
"modifiers": "@Override public",
"parameters": "(List<Cell> result, ScannerContext scannerContext)",
"return": "boolean",
"signature": "boolean next(List<Cell> result, ScannerContext scannerContext)",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.updateStats(final List<Cell> results)",
"constructor": false,
"full_signature": "private void updateStats(final List<Cell> results)",
"identifier": "updateStats",
"modifiers": "private",
"parameters": "(final List<Cell> results)",
"return": "void",
"signature": "void updateStats(final List<Cell> results)",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getStatsCollectionRunTracker(Configuration c)",
"constructor": false,
"full_signature": " StatisticsCollectionRunTracker getStatsCollectionRunTracker(Configuration c)",
"identifier": "getStatsCollectionRunTracker",
"modifiers": "",
"parameters": "(Configuration c)",
"return": "StatisticsCollectionRunTracker",
"signature": "StatisticsCollectionRunTracker getStatsCollectionRunTracker(Configuration c)",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getConfig()",
"constructor": false,
"full_signature": " Configuration getConfig()",
"identifier": "getConfig",
"modifiers": "",
"parameters": "()",
"return": "Configuration",
"signature": "Configuration getConfig()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getStatisticsWriter()",
"constructor": false,
"full_signature": " StatisticsWriter getStatisticsWriter()",
"identifier": "getStatisticsWriter",
"modifiers": "",
"parameters": "()",
"return": "StatisticsWriter",
"signature": "StatisticsWriter getStatisticsWriter()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getRegion()",
"constructor": false,
"full_signature": " Region getRegion()",
"identifier": "getRegion",
"modifiers": "",
"parameters": "()",
"return": "Region",
"signature": "Region getRegion()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getConnection()",
"constructor": false,
"full_signature": " Connection getConnection()",
"identifier": "getConnection",
"modifiers": "",
"parameters": "()",
"return": "Connection",
"signature": "Connection getConnection()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.createCallable()",
"constructor": false,
"full_signature": " StatisticsScannerCallable createCallable()",
"identifier": "createCallable",
"modifiers": "",
"parameters": "()",
"return": "StatisticsScannerCallable",
"signature": "StatisticsScannerCallable createCallable()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getTracker()",
"constructor": false,
"full_signature": " StatisticsCollector getTracker()",
"identifier": "getTracker",
"modifiers": "",
"parameters": "()",
"return": "StatisticsCollector",
"signature": "StatisticsCollector getTracker()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.getDelegate()",
"constructor": false,
"full_signature": " InternalScanner getDelegate()",
"identifier": "getDelegate",
"modifiers": "",
"parameters": "()",
"return": "InternalScanner",
"signature": "InternalScanner getDelegate()",
"testcase": false
},
{
"class_method_signature": "StatisticsScanner.isConnectionClosed()",
"constructor": false,
"full_signature": "private boolean isConnectionClosed()",
"identifier": "isConnectionClosed",
"modifiers": "private",
"parameters": "()",
"return": "boolean",
"signature": "boolean isConnectionClosed()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public void close() throws IOException {\n boolean async = getConfig().getBoolean(COMMIT_STATS_ASYNC, DEFAULT_COMMIT_STATS_ASYNC);\n StatisticsCollectionRunTracker collectionTracker = getStatsCollectionRunTracker(config);\n StatisticsScannerCallable callable = createCallable();\n if (isConnectionClosed()) {\n LOGGER.debug(\"Not updating table statistics because the server is stopping/stopped\");\n return;\n }\n if (!async) {\n callable.call();\n } else {\n collectionTracker.runTask(callable);\n }\n }",
"class_method_signature": "StatisticsScanner.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"getBoolean",
"getConfig",
"getStatsCollectionRunTracker",
"createCallable",
"isConnectionClosed",
"debug",
"call",
"runTask"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_111 | {
"fields": [
{
"declarator": "testCache = null",
"modifier": "static",
"original_string": "static GuidePostsCache testCache = null;",
"type": "GuidePostsCache",
"var_name": "testCache"
},
{
"declarator": "phoenixStatsLoader = null",
"modifier": "static",
"original_string": "static PhoenixStatsLoader phoenixStatsLoader = null;",
"type": "PhoenixStatsLoader",
"var_name": "phoenixStatsLoader"
},
{
"declarator": "helper",
"modifier": "private",
"original_string": "private GuidePostsCacheProvider helper;",
"type": "GuidePostsCacheProvider",
"var_name": "helper"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/query/GuidePostsCacheProviderTest.java",
"identifier": "GuidePostsCacheProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = PhoenixNonRetryableRuntimeException.class)\n public void loadAndGetGuidePostsCacheFactoryBadStringFailure(){\n helper.loadAndGetGuidePostsCacheFactory(\"not a class\");\n }",
"class_method_signature": "GuidePostsCacheProviderTest.loadAndGetGuidePostsCacheFactoryBadStringFailure()",
"constructor": false,
"full_signature": "@Test(expected = PhoenixNonRetryableRuntimeException.class) public void loadAndGetGuidePostsCacheFactoryBadStringFailure()",
"identifier": "loadAndGetGuidePostsCacheFactoryBadStringFailure",
"invocations": [
"loadAndGetGuidePostsCacheFactory"
],
"modifiers": "@Test(expected = PhoenixNonRetryableRuntimeException.class) public",
"parameters": "()",
"return": "void",
"signature": "void loadAndGetGuidePostsCacheFactoryBadStringFailure()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "guidePostsCacheFactory = null",
"modifier": "",
"original_string": "GuidePostsCacheFactory guidePostsCacheFactory = null;",
"type": "GuidePostsCacheFactory",
"var_name": "guidePostsCacheFactory"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java",
"identifier": "GuidePostsCacheProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheProvider.getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"constructor": false,
"full_signature": "public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"identifier": "getGuidePostsCache",
"modifiers": "public",
"parameters": "(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"return": "GuidePostsCacheWrapper",
"signature": "GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString) {\n Preconditions.checkNotNull(classString);\n if (guidePostsCacheFactory == null) {\n try {\n\n Class clazz = Class.forName(classString);\n if (!GuidePostsCacheFactory.class.isAssignableFrom(clazz)) {\n String msg = String.format(\n \"Could not load/instantiate class %s is not an instance of GuidePostsCacheFactory\",\n classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n\n List<GuidePostsCacheFactory> factoryList = InstanceResolver.get(GuidePostsCacheFactory.class, null);\n for (GuidePostsCacheFactory factory : factoryList) {\n if (clazz.isInstance(factory)) {\n guidePostsCacheFactory = factory;\n LOGGER.info(String.format(\"Sucessfully loaded class for GuidePostsCacheFactor of type: %s\",\n classString));\n break;\n }\n }\n if (guidePostsCacheFactory == null) {\n String msg = String.format(\"Could not load/instantiate class %s\", classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n } catch (ClassNotFoundException e) {\n LOGGER.error(String.format(\"Could not load/instantiate class %s\", classString), e);\n throw new PhoenixNonRetryableRuntimeException(e);\n }\n }\n return guidePostsCacheFactory;\n }",
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"invocations": [
"checkNotNull",
"forName",
"isAssignableFrom",
"format",
"error",
"get",
"isInstance",
"info",
"format",
"format",
"error",
"error",
"format"
],
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_53 | {
"fields": [
{
"declarator": "conn",
"modifier": "private",
"original_string": "private Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "converter",
"modifier": "private",
"original_string": "private StringToArrayConverter converter;",
"type": "StringToArrayConverter",
"var_name": "converter"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/csv/StringToArrayConverterTest.java",
"identifier": "StringToArrayConverterTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testToArray_MultipleElements() throws SQLException {\n Array multiElementArray = converter.toArray(\"one:two\");\n assertArrayEquals(\n new Object[]{\"one\", \"two\"},\n (Object[]) multiElementArray.getArray());\n }",
"class_method_signature": "StringToArrayConverterTest.testToArray_MultipleElements()",
"constructor": false,
"full_signature": "@Test public void testToArray_MultipleElements()",
"identifier": "testToArray_MultipleElements",
"invocations": [
"toArray",
"assertArrayEquals",
"getArray"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToArray_MultipleElements()",
"testcase": true
} | {
"fields": [
{
"declarator": "splitter",
"modifier": "private final",
"original_string": "private final Splitter splitter;",
"type": "Splitter",
"var_name": "splitter"
},
{
"declarator": "conn",
"modifier": "private final",
"original_string": "private final Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "elementDataType",
"modifier": "private final",
"original_string": "private final PDataType elementDataType;",
"type": "PDataType",
"var_name": "elementDataType"
},
{
"declarator": "elementConvertFunction",
"modifier": "private final",
"original_string": "private final CsvUpsertExecutor.SimpleDatatypeConversionFunction elementConvertFunction;",
"type": "CsvUpsertExecutor.SimpleDatatypeConversionFunction",
"var_name": "elementConvertFunction"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/csv/StringToArrayConverter.java",
"identifier": "StringToArrayConverter",
"interfaces": "",
"methods": [
{
"class_method_signature": "StringToArrayConverter.StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"constructor": true,
"full_signature": "public StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"identifier": "StringToArrayConverter",
"modifiers": "public",
"parameters": "(Connection conn, String separatorString,\n PDataType elementDataType)",
"return": "",
"signature": " StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"testcase": false
},
{
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Array toArray(String input) throws SQLException {\n if (input == null || input.isEmpty()) {\n return conn.createArrayOf(elementDataType.getSqlTypeName(), new Object[0]);\n }\n return conn.createArrayOf(\n elementDataType.getSqlTypeName(),\n Lists.newArrayList(\n Iterables.transform(\n splitter.split(input),\n elementConvertFunction)).toArray());\n }",
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"invocations": [
"isEmpty",
"createArrayOf",
"getSqlTypeName",
"createArrayOf",
"getSqlTypeName",
"toArray",
"newArrayList",
"transform",
"split"
],
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_146 | {
"fields": [
{
"declarator": "SCRUTINY_TIME_MILLIS = 1502908914193L",
"modifier": "private static final",
"original_string": "private static final long SCRUTINY_TIME_MILLIS = 1502908914193L;",
"type": "long",
"var_name": "SCRUTINY_TIME_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutputTest.java",
"identifier": "IndexScrutinyTableOutputTest",
"interfaces": "",
"superclass": "extends BaseIndexTest"
} | {
"body": "@Test\n public void testConstructMetadataParamQuery() {\n String metadataParamQuery =\n IndexScrutinyTableOutput\n .constructMetadataParamQuery(Arrays.asList(\"INVALID_ROWS_QUERY_ALL\"));\n assertEquals(\n \"SELECT \\\"INVALID_ROWS_QUERY_ALL\\\" FROM PHOENIX_INDEX_SCRUTINY_METADATA WHERE (\\\"SOURCE_TABLE\\\",\\\"TARGET_TABLE\\\",\\\"SCRUTINY_EXECUTE_TIME\\\") IN ((?,?,?))\",\n metadataParamQuery);\n }",
"class_method_signature": "IndexScrutinyTableOutputTest.testConstructMetadataParamQuery()",
"constructor": false,
"full_signature": "@Test public void testConstructMetadataParamQuery()",
"identifier": "testConstructMetadataParamQuery",
"invocations": [
"constructMetadataParamQuery",
"asList",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructMetadataParamQuery()",
"testcase": true
} | {
"fields": [
{
"declarator": "OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\"",
"modifier": "public static",
"original_string": "public static String OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\";",
"type": "String",
"var_name": "OUTPUT_TABLE_NAME"
},
{
"declarator": "SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\"",
"modifier": "public static final",
"original_string": "public static final String SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\";",
"type": "String",
"var_name": "SCRUTINY_EXECUTE_TIME_COL_NAME"
},
{
"declarator": "TARGET_TABLE_COL_NAME = \"TARGET_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String TARGET_TABLE_COL_NAME = \"TARGET_TABLE\";",
"type": "String",
"var_name": "TARGET_TABLE_COL_NAME"
},
{
"declarator": "SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\";",
"type": "String",
"var_name": "SOURCE_TABLE_COL_NAME"
},
{
"declarator": "OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \";",
"type": "String",
"var_name": "OUTPUT_TABLE_DDL"
},
{
"declarator": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\";",
"type": "String",
"var_name": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL"
},
{
"declarator": "OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\";",
"type": "String",
"var_name": "OUTPUT_METADATA_TABLE_NAME"
},
{
"declarator": "OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\";",
"type": "String",
"var_name": "OUTPUT_METADATA_DDL"
},
{
"declarator": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\";",
"type": "String",
"var_name": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL"
},
{
"declarator": "UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\"",
"modifier": "public static final",
"original_string": "public static final String UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";",
"type": "String",
"var_name": "UPSERT_METADATA_SQL"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutput.java",
"identifier": "IndexScrutinyTableOutput",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"constructor": false,
"full_signature": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"identifier": "constructOutputTableUpsert",
"modifiers": "public static",
"parameters": "(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"return": "String",
"signature": "String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryAllInvalidRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryMissingTargetRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBadCoveredColVal",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBeyondMaxLookback",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"constructor": false,
"full_signature": "public static ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"identifier": "queryAllLatestMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"return": "ResultSet",
"signature": "ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryAllMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"constructor": false,
"full_signature": "public static void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"identifier": "writeJobResults",
"modifiers": "public static",
"parameters": "(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"return": "void",
"signature": "void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructMetadataParamQuery(List<String> metadataSelectCols)",
"constructor": false,
"full_signature": "static String constructMetadataParamQuery(List<String> metadataSelectCols)",
"identifier": "constructMetadataParamQuery",
"modifiers": "static",
"parameters": "(List<String> metadataSelectCols)",
"return": "String",
"signature": "String constructMetadataParamQuery(List<String> metadataSelectCols)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"constructor": false,
"full_signature": "private static String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"identifier": "getAllInvalidParamQuery",
"modifiers": "private static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames)",
"return": "String",
"signature": "String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"constructor": false,
"full_signature": "private static String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"identifier": "bindPkCols",
"modifiers": "private static",
"parameters": "(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"return": "String",
"signature": "String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "private static String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"identifier": "getHasTargetRowQuery",
"modifiers": "private static",
"parameters": "(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"return": "String",
"signature": "String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPksCsv()",
"constructor": false,
"full_signature": "private static String getPksCsv()",
"identifier": "getPksCsv",
"modifiers": "private static",
"parameters": "()",
"return": "String",
"signature": "String getPksCsv()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPkCols()",
"constructor": false,
"full_signature": "private static List<String> getPkCols()",
"identifier": "getPkCols",
"modifiers": "private static",
"parameters": "()",
"return": "List<String>",
"signature": "List<String> getPkCols()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"constructor": false,
"full_signature": "private static String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"identifier": "constructOutputTableQuery",
"modifiers": "private static",
"parameters": "(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"return": "String",
"signature": "String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getOutputTableColumns(Connection connection)",
"constructor": false,
"full_signature": "private static List<String> getOutputTableColumns(Connection connection)",
"identifier": "getOutputTableColumns",
"modifiers": "private static",
"parameters": "(Connection connection)",
"return": "List<String>",
"signature": "List<String> getOutputTableColumns(Connection connection)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "static String constructMetadataParamQuery(List<String> metadataSelectCols) {\n String pkColsCsv = getPksCsv();\n String query =\n QueryUtil.constructSelectStatement(OUTPUT_METADATA_TABLE_NAME, metadataSelectCols,\n pkColsCsv, null, true);\n String inClause = \" IN \" + QueryUtil.constructParameterizedInClause(3, 1);\n return query + inClause;\n }",
"class_method_signature": "IndexScrutinyTableOutput.constructMetadataParamQuery(List<String> metadataSelectCols)",
"constructor": false,
"full_signature": "static String constructMetadataParamQuery(List<String> metadataSelectCols)",
"identifier": "constructMetadataParamQuery",
"invocations": [
"getPksCsv",
"constructSelectStatement",
"constructParameterizedInClause"
],
"modifiers": "static",
"parameters": "(List<String> metadataSelectCols)",
"return": "String",
"signature": "String constructMetadataParamQuery(List<String> metadataSelectCols)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_150 | {
"fields": [
{
"declarator": "SCRUTINY_TIME_MILLIS = 1502908914193L",
"modifier": "private static final",
"original_string": "private static final long SCRUTINY_TIME_MILLIS = 1502908914193L;",
"type": "long",
"var_name": "SCRUTINY_TIME_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutputTest.java",
"identifier": "IndexScrutinyTableOutputTest",
"interfaces": "",
"superclass": "extends BaseIndexTest"
} | {
"body": "@Test\n public void testGetSqlQueryBeyondMaxLookback() throws SQLException {\n SourceTargetColumnNames columnNames =\n new SourceTargetColumnNames.DataSourceColNames(pDataTable, pIndexTable);\n String query =\n IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(conn, columnNames,\n SCRUTINY_TIME_MILLIS);\n assertEquals(\"SELECT \\\"SOURCE_TABLE\\\" , \\\"TARGET_TABLE\\\" , \\\"SCRUTINY_EXECUTE_TIME\\\" , \\\"SOURCE_ROW_PK_HASH\\\" , \\\"SOURCE_TS\\\" , \\\"TARGET_TS\\\" , \\\"HAS_TARGET_ROW\\\" , \\\"BEYOND_MAX_LOOKBACK\\\" , \\\"ID\\\" , \\\"PK_PART2\\\" , \\\"NAME\\\" , \\\"ZIP\\\" , \\\":ID\\\" , \\\":PK_PART2\\\" , \\\"0:NAME\\\" , \\\"0:ZIP\\\" FROM PHOENIX_INDEX_SCRUTINY(\\\"ID\\\" INTEGER,\\\"PK_PART2\\\" TINYINT,\\\"NAME\\\" VARCHAR,\\\"ZIP\\\" BIGINT,\\\":ID\\\" INTEGER,\\\":PK_PART2\\\" TINYINT,\\\"0:NAME\\\" VARCHAR,\\\"0:ZIP\\\" BIGINT) WHERE (\\\"SOURCE_TABLE\\\",\\\"TARGET_TABLE\\\",\\\"SCRUTINY_EXECUTE_TIME\\\", \\\"HAS_TARGET_ROW\\\", \\\"BEYOND_MAX_LOOKBACK\\\") IN (('TEST_SCHEMA.TEST_INDEX_COLUMN_NAMES_UTIL','TEST_SCHEMA.TEST_ICN_INDEX',1502908914193,false,true))\",\n query);\n }",
"class_method_signature": "IndexScrutinyTableOutputTest.testGetSqlQueryBeyondMaxLookback()",
"constructor": false,
"full_signature": "@Test public void testGetSqlQueryBeyondMaxLookback()",
"identifier": "testGetSqlQueryBeyondMaxLookback",
"invocations": [
"getSqlQueryBeyondMaxLookback",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetSqlQueryBeyondMaxLookback()",
"testcase": true
} | {
"fields": [
{
"declarator": "OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\"",
"modifier": "public static",
"original_string": "public static String OUTPUT_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY\";",
"type": "String",
"var_name": "OUTPUT_TABLE_NAME"
},
{
"declarator": "SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\"",
"modifier": "public static final",
"original_string": "public static final String SCRUTINY_EXECUTE_TIME_COL_NAME = \"SCRUTINY_EXECUTE_TIME\";",
"type": "String",
"var_name": "SCRUTINY_EXECUTE_TIME_COL_NAME"
},
{
"declarator": "TARGET_TABLE_COL_NAME = \"TARGET_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String TARGET_TABLE_COL_NAME = \"TARGET_TABLE\";",
"type": "String",
"var_name": "TARGET_TABLE_COL_NAME"
},
{
"declarator": "SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\"",
"modifier": "public static final",
"original_string": "public static final String SOURCE_TABLE_COL_NAME = \"SOURCE_TABLE\";",
"type": "String",
"var_name": "SOURCE_TABLE_COL_NAME"
},
{
"declarator": "OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_ROW_PK_HASH VARCHAR NOT NULL,\\n\" +\n \" SOURCE_TS BIGINT,\\n\" +\n \" TARGET_TS BIGINT,\\n\" +\n \" HAS_TARGET_ROW BOOLEAN,\\n\" +\n \" BEYOND_MAX_LOOKBACK BOOLEAN,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \",\\n\" + // time at which the scrutiny ran\n \" SOURCE_ROW_PK_HASH\\n\" + // this hash makes the PK unique\n \" )\\n\" + // dynamic columns consisting of the source and target columns will follow\n \") COLUMN_ENCODED_BYTES = 0 \";",
"type": "String",
"var_name": "OUTPUT_TABLE_DDL"
},
{
"declarator": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_TABLE_BEYOND_LOOKBACK_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS BEYOND_MAX_LOOKBACK BOOLEAN\";",
"type": "String",
"var_name": "OUTPUT_TABLE_BEYOND_LOOKBACK_DDL"
},
{
"declarator": "OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_TABLE_NAME = \"PHOENIX_INDEX_SCRUTINY_METADATA\";",
"type": "String",
"var_name": "OUTPUT_METADATA_TABLE_NAME"
},
{
"declarator": "OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_DDL =\n \"CREATE TABLE IF NOT EXISTS \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \" VARCHAR NOT NULL,\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \" BIGINT NOT NULL,\\n\" +\n \" SOURCE_TYPE VARCHAR,\\n\" + // source is either data or index table\n \" CMD_LINE_ARGS VARCHAR,\\n\" + // arguments the tool was run with\n \" INPUT_RECORDS BIGINT,\\n\" +\n \" FAILED_RECORDS BIGINT,\\n\" +\n \" VALID_ROW_COUNT BIGINT,\\n\" +\n \" INVALID_ROW_COUNT BIGINT,\\n\" +\n \" INCORRECT_COVERED_COL_VAL_COUNT BIGINT,\\n\" +\n \" BATCHES_PROCESSED_COUNT BIGINT,\\n\" +\n \" SOURCE_DYNAMIC_COLS VARCHAR,\\n\" +\n \" TARGET_DYNAMIC_COLS VARCHAR,\\n\" +\n \" INVALID_ROWS_QUERY_ALL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows from the output table\n \" INVALID_ROWS_QUERY_MISSING_TARGET VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which are missing a target row\n \" INVALID_ROWS_QUERY_BAD_COVERED_COL_VAL VARCHAR,\\n\" + // stored sql query to fetch all the invalid rows which have bad covered column values\n \" INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR,\\n\" + // stored sql query to fetch all the potentially invalid rows which are before max lookback age\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT,\\n\" +\n \" CONSTRAINT PK PRIMARY KEY\\n\" +\n \" (\\n\" +\n \" \" + SOURCE_TABLE_COL_NAME + \",\\n\" +\n \" \" + TARGET_TABLE_COL_NAME + \",\\n\" +\n \" \" + SCRUTINY_EXECUTE_TIME_COL_NAME + \"\\n\" +\n \" )\\n\" +\n \")\\n\";",
"type": "String",
"var_name": "OUTPUT_METADATA_DDL"
},
{
"declarator": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\"",
"modifier": "public static final",
"original_string": "public static final String OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL = \"\" +\n \"ALTER TABLE \" + OUTPUT_METADATA_TABLE_NAME + \"\\n\" +\n \" ADD IF NOT EXISTS INVALID_ROWS_QUERY_BEYOND_MAX_LOOKBACK VARCHAR, \\n\" +\n \" BEYOND_MAX_LOOKBACK_COUNT BIGINT\";",
"type": "String",
"var_name": "OUTPUT_METADATA_BEYOND_LOOKBACK_COUNTER_DDL"
},
{
"declarator": "UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\"",
"modifier": "public static final",
"original_string": "public static final String UPSERT_METADATA_SQL = \"UPSERT INTO \" + OUTPUT_METADATA_TABLE_NAME + \" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";",
"type": "String",
"var_name": "UPSERT_METADATA_SQL"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexScrutinyTableOutput.java",
"identifier": "IndexScrutinyTableOutput",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"constructor": false,
"full_signature": "public static String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"identifier": "constructOutputTableUpsert",
"modifiers": "public static",
"parameters": "(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"return": "String",
"signature": "String constructOutputTableUpsert(List<String> sourceDynamicCols,\n List<String> targetDynamicCols, Connection connection)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryAllInvalidRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryAllInvalidRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryMissingTargetRows",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryMissingTargetRows(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBadCoveredColVal",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBadCoveredColVal(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBeyondMaxLookback",
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryMetadata(Connection conn, List<String> selectCols,\n String qSourceTableName, String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"constructor": false,
"full_signature": "public static ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"identifier": "queryAllLatestMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"return": "ResultSet",
"signature": "ResultSet queryAllLatestMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"identifier": "queryAllMetadata",
"modifiers": "public static",
"parameters": "(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"return": "ResultSet",
"signature": "ResultSet queryAllMetadata(Connection conn, String qSourceTableName,\n String qTargetTableName, long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"constructor": false,
"full_signature": "public static void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"identifier": "writeJobResults",
"modifiers": "public static",
"parameters": "(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"return": "void",
"signature": "void writeJobResults(Connection conn, String[] cmdLineArgs, List<Job> completedJobs)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructMetadataParamQuery(List<String> metadataSelectCols)",
"constructor": false,
"full_signature": "static String constructMetadataParamQuery(List<String> metadataSelectCols)",
"identifier": "constructMetadataParamQuery",
"modifiers": "static",
"parameters": "(List<String> metadataSelectCols)",
"return": "String",
"signature": "String constructMetadataParamQuery(List<String> metadataSelectCols)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"constructor": false,
"full_signature": "private static String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"identifier": "getAllInvalidParamQuery",
"modifiers": "private static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames)",
"return": "String",
"signature": "String getAllInvalidParamQuery(Connection conn,\n SourceTargetColumnNames columnNames)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"constructor": false,
"full_signature": "private static String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"identifier": "bindPkCols",
"modifiers": "private static",
"parameters": "(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"return": "String",
"signature": "String bindPkCols(SourceTargetColumnNames columnNames, long scrutinyTimeMillis,\n String paramQuery)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "private static String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"identifier": "getHasTargetRowQuery",
"modifiers": "private static",
"parameters": "(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"return": "String",
"signature": "String getHasTargetRowQuery(Connection conn, SourceTargetColumnNames columnNames,\n long scrutinyTimeMillis)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPksCsv()",
"constructor": false,
"full_signature": "private static String getPksCsv()",
"identifier": "getPksCsv",
"modifiers": "private static",
"parameters": "()",
"return": "String",
"signature": "String getPksCsv()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getPkCols()",
"constructor": false,
"full_signature": "private static List<String> getPkCols()",
"identifier": "getPkCols",
"modifiers": "private static",
"parameters": "()",
"return": "List<String>",
"signature": "List<String> getPkCols()",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"constructor": false,
"full_signature": "private static String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"identifier": "constructOutputTableQuery",
"modifiers": "private static",
"parameters": "(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"return": "String",
"signature": "String constructOutputTableQuery(Connection connection,\n SourceTargetColumnNames columnNames, String conditions)",
"testcase": false
},
{
"class_method_signature": "IndexScrutinyTableOutput.getOutputTableColumns(Connection connection)",
"constructor": false,
"full_signature": "private static List<String> getOutputTableColumns(Connection connection)",
"identifier": "getOutputTableColumns",
"modifiers": "private static",
"parameters": "(Connection connection)",
"return": "List<String>",
"signature": "List<String> getOutputTableColumns(Connection connection)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis) throws SQLException {\n String whereQuery =\n constructOutputTableQuery(conn, columnNames,\n getPksCsv() + \", \" + SchemaUtil.getEscapedFullColumnName(\"HAS_TARGET_ROW\")\n + \", \" + SchemaUtil.getEscapedFullColumnName(\"BEYOND_MAX_LOOKBACK\"));\n String inClause =\n \" IN \" + QueryUtil.constructParameterizedInClause(getPkCols().size() + 2, 1);\n String paramQuery = whereQuery + inClause;\n paramQuery = bindPkCols(columnNames, scrutinyTimeMillis, paramQuery);\n paramQuery = paramQuery.replaceFirst(\"\\\\?\", \"false\"); //has_target_row false\n paramQuery = paramQuery.replaceFirst(\"\\\\?\", \"true\"); //beyond_max_lookback true\n return paramQuery;\n }",
"class_method_signature": "IndexScrutinyTableOutput.getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"constructor": false,
"full_signature": "public static String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"identifier": "getSqlQueryBeyondMaxLookback",
"invocations": [
"constructOutputTableQuery",
"getPksCsv",
"getEscapedFullColumnName",
"getEscapedFullColumnName",
"constructParameterizedInClause",
"size",
"getPkCols",
"bindPkCols",
"replaceFirst",
"replaceFirst"
],
"modifiers": "public static",
"parameters": "(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"return": "String",
"signature": "String getSqlQueryBeyondMaxLookback(Connection conn,\n SourceTargetColumnNames columnNames, long scrutinyTimeMillis)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_45 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetAutoCommit_TrueInProperties() {\n Properties props = new Properties();\n props.setProperty(\"AutoCommit\", \"true\");\n assertTrue(JDBCUtil.getAutoCommit(\"localhost\", props, false));\n }",
"class_method_signature": "JDBCUtilTest.testGetAutoCommit_TrueInProperties()",
"constructor": false,
"full_signature": "@Test public void testGetAutoCommit_TrueInProperties()",
"identifier": "testGetAutoCommit_TrueInProperties",
"invocations": [
"setProperty",
"assertTrue",
"getAutoCommit"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetAutoCommit_TrueInProperties()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue) {\n String autoCommit = findProperty(url, info, PhoenixRuntime.AUTO_COMMIT_ATTRIB);\n if (autoCommit == null) {\n return defaultValue;\n }\n return Boolean.valueOf(autoCommit);\n }",
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"invocations": [
"findProperty",
"valueOf"
],
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_107 | {
"fields": [
{
"declarator": "cache",
"modifier": "@Mock",
"original_string": "@Mock\n GuidePostsCache cache;",
"type": "GuidePostsCache",
"var_name": "cache"
},
{
"declarator": "wrapper",
"modifier": "",
"original_string": "GuidePostsCacheWrapper wrapper;",
"type": "GuidePostsCacheWrapper",
"var_name": "wrapper"
},
{
"declarator": "table = org.apache.hadoop.hbase.util.Bytes.toBytes(\"tableName\")",
"modifier": "",
"original_string": "byte[] table = org.apache.hadoop.hbase.util.Bytes.toBytes(\"tableName\");",
"type": "byte[]",
"var_name": "table"
},
{
"declarator": "columnFamily1 = Bytes.toBytesBinary(\"cf1\")",
"modifier": "",
"original_string": "byte[] columnFamily1 = Bytes.toBytesBinary(\"cf1\");",
"type": "byte[]",
"var_name": "columnFamily1"
},
{
"declarator": "columnFamily2 = Bytes.toBytesBinary(\"cf2\")",
"modifier": "",
"original_string": "byte[] columnFamily2 = Bytes.toBytesBinary(\"cf2\");",
"type": "byte[]",
"var_name": "columnFamily2"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/query/GuidePostsCacheWrapperTest.java",
"identifier": "GuidePostsCacheWrapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NullPointerException.class)\n public void invalidateAllTableDescriptorNull() {\n TableDescriptor tableDesc = null;\n wrapper.invalidateAll(tableDesc);\n }",
"class_method_signature": "GuidePostsCacheWrapperTest.invalidateAllTableDescriptorNull()",
"constructor": false,
"full_signature": "@Test(expected = NullPointerException.class) public void invalidateAllTableDescriptorNull()",
"identifier": "invalidateAllTableDescriptorNull",
"invocations": [
"invalidateAll"
],
"modifiers": "@Test(expected = NullPointerException.class) public",
"parameters": "()",
"return": "void",
"signature": "void invalidateAllTableDescriptorNull()",
"testcase": true
} | {
"fields": [
{
"declarator": "guidePostsCache",
"modifier": "private final",
"original_string": "private final GuidePostsCache guidePostsCache;",
"type": "GuidePostsCache",
"var_name": "guidePostsCache"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheWrapper.java",
"identifier": "GuidePostsCacheWrapper",
"interfaces": "",
"methods": [
{
"class_method_signature": "GuidePostsCacheWrapper.GuidePostsCacheWrapper(GuidePostsCache guidePostsCache)",
"constructor": true,
"full_signature": " GuidePostsCacheWrapper(GuidePostsCache guidePostsCache)",
"identifier": "GuidePostsCacheWrapper",
"modifiers": "",
"parameters": "(GuidePostsCache guidePostsCache)",
"return": "",
"signature": " GuidePostsCacheWrapper(GuidePostsCache guidePostsCache)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.get(GuidePostsKey key)",
"constructor": false,
"full_signature": " GuidePostsInfo get(GuidePostsKey key)",
"identifier": "get",
"modifiers": "",
"parameters": "(GuidePostsKey key)",
"return": "GuidePostsInfo",
"signature": "GuidePostsInfo get(GuidePostsKey key)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.put(GuidePostsKey key, GuidePostsInfo info)",
"constructor": false,
"full_signature": " void put(GuidePostsKey key, GuidePostsInfo info)",
"identifier": "put",
"modifiers": "",
"parameters": "(GuidePostsKey key, GuidePostsInfo info)",
"return": "void",
"signature": "void put(GuidePostsKey key, GuidePostsInfo info)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.invalidate(GuidePostsKey key)",
"constructor": false,
"full_signature": " void invalidate(GuidePostsKey key)",
"identifier": "invalidate",
"modifiers": "",
"parameters": "(GuidePostsKey key)",
"return": "void",
"signature": "void invalidate(GuidePostsKey key)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.invalidateAll()",
"constructor": false,
"full_signature": " void invalidateAll()",
"identifier": "invalidateAll",
"modifiers": "",
"parameters": "()",
"return": "void",
"signature": "void invalidateAll()",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.invalidateAll(TableDescriptor htableDesc)",
"constructor": false,
"full_signature": "public void invalidateAll(TableDescriptor htableDesc)",
"identifier": "invalidateAll",
"modifiers": "public",
"parameters": "(TableDescriptor htableDesc)",
"return": "void",
"signature": "void invalidateAll(TableDescriptor htableDesc)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheWrapper.invalidateAll(PTable table)",
"constructor": false,
"full_signature": "public void invalidateAll(PTable table)",
"identifier": "invalidateAll",
"modifiers": "public",
"parameters": "(PTable table)",
"return": "void",
"signature": "void invalidateAll(PTable table)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "void invalidateAll(){\n guidePostsCache.invalidateAll();\n }",
"class_method_signature": "GuidePostsCacheWrapper.invalidateAll()",
"constructor": false,
"full_signature": " void invalidateAll()",
"identifier": "invalidateAll",
"invocations": [
"invalidateAll"
],
"modifiers": "",
"parameters": "()",
"return": "void",
"signature": "void invalidateAll()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_12 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/ColumnInfoTest.java",
"identifier": "ColumnInfoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFromString_InvalidDataType() {\n try {\n ColumnInfo.fromString(\"COLNAME:badType\");\n } catch (RuntimeException e) {\n assertTrue(e.getCause() instanceof SQLException);\n SQLException sqlE = (SQLException)e.getCause();\n assertEquals(SQLExceptionCode.ILLEGAL_DATA.getErrorCode(), sqlE.getErrorCode());\n }\n }",
"class_method_signature": "ColumnInfoTest.testFromString_InvalidDataType()",
"constructor": false,
"full_signature": "@Test public void testFromString_InvalidDataType()",
"identifier": "testFromString_InvalidDataType",
"invocations": [
"fromString",
"assertTrue",
"getCause",
"getCause",
"assertEquals",
"getErrorCode",
"getErrorCode"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testFromString_InvalidDataType()",
"testcase": true
} | {
"fields": [
{
"declarator": "STR_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String STR_SEPARATOR = \":\";",
"type": "String",
"var_name": "STR_SEPARATOR"
},
{
"declarator": "columnName",
"modifier": "private final",
"original_string": "private final String columnName;",
"type": "String",
"var_name": "columnName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "precision",
"modifier": "private final",
"original_string": "private final Integer precision;",
"type": "Integer",
"var_name": "precision"
},
{
"declarator": "scale",
"modifier": "private final",
"original_string": "private final Integer scale;",
"type": "Integer",
"var_name": "scale"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/ColumnInfo.java",
"identifier": "ColumnInfo",
"interfaces": "",
"methods": [
{
"class_method_signature": "ColumnInfo.create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public static ColumnInfo create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"identifier": "create",
"modifiers": "public static",
"parameters": "(String columnName, int sqlType, Integer maxLength, Integer scale)",
"return": "ColumnInfo",
"signature": "ColumnInfo create(String columnName, int sqlType, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType, Integer maxLength)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"constructor": true,
"full_signature": "public ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"identifier": "ColumnInfo",
"modifiers": "public",
"parameters": "(String columnName, int sqlType, Integer precision, Integer scale)",
"return": "",
"signature": " ColumnInfo(String columnName, int sqlType, Integer precision, Integer scale)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getColumnName()",
"constructor": false,
"full_signature": "public String getColumnName()",
"identifier": "getColumnName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getColumnName()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getSqlType()",
"constructor": false,
"full_signature": "public int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getPDataType()",
"constructor": false,
"full_signature": "public PDataType getPDataType()",
"identifier": "getPDataType",
"modifiers": "public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getPDataType()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getDisplayName()",
"constructor": false,
"full_signature": "public String getDisplayName()",
"identifier": "getDisplayName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getDisplayName()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.toTypeString()",
"constructor": false,
"full_signature": "public String toTypeString()",
"identifier": "toTypeString",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String toTypeString()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.fromString(String stringRepresentation)",
"constructor": false,
"full_signature": "public static ColumnInfo fromString(String stringRepresentation)",
"identifier": "fromString",
"modifiers": "public static",
"parameters": "(String stringRepresentation)",
"return": "ColumnInfo",
"signature": "ColumnInfo fromString(String stringRepresentation)",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getMaxLength()",
"constructor": false,
"full_signature": "public Integer getMaxLength()",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getMaxLength()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getPrecision()",
"constructor": false,
"full_signature": "public Integer getPrecision()",
"identifier": "getPrecision",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getPrecision()",
"testcase": false
},
{
"class_method_signature": "ColumnInfo.getScale()",
"constructor": false,
"full_signature": "public Integer getScale()",
"identifier": "getScale",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getScale()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static ColumnInfo fromString(String stringRepresentation) {\n List<String> components =\n Lists.newArrayList(stringRepresentation.split(\":\", 2));\n\n if (components.size() != 2) {\n throw new IllegalArgumentException(\"Unparseable string: \" + stringRepresentation);\n }\n\n String[] typeParts = components.get(0).split(\" \");\n String columnName = components.get(1);\n\n Integer maxLength = null;\n Integer scale = null;\n if (typeParts[0].contains(\"(\")) {\n Matcher matcher = Pattern.compile(\"([^\\\\(]+)\\\\((\\\\d+)(?:,(\\\\d+))?\\\\)\").matcher(typeParts[0]);\n if (!matcher.matches() || matcher.groupCount() > 3) {\n throw new IllegalArgumentException(\"Unparseable type string: \" + typeParts[0]);\n }\n maxLength = Integer.valueOf(matcher.group(2));\n if (matcher.group(3) != null) {\n scale = Integer.valueOf(matcher.group(3));\n }\n // Drop the (N) or (N,N) from the original type\n typeParts[0] = matcher.group(1);\n }\n\n // Create the PDataType from the sql type name, including the second 'ARRAY' part if present\n PDataType dataType;\n if(typeParts.length < 2) {\n dataType = PDataType.fromSqlTypeName(typeParts[0]);\n }\n else {\n dataType = PDataType.fromSqlTypeName(typeParts[0] + \" \" + typeParts[1]);\n }\n \n return ColumnInfo.create(columnName, dataType.getSqlType(), maxLength, scale);\n }",
"class_method_signature": "ColumnInfo.fromString(String stringRepresentation)",
"constructor": false,
"full_signature": "public static ColumnInfo fromString(String stringRepresentation)",
"identifier": "fromString",
"invocations": [
"newArrayList",
"split",
"size",
"split",
"get",
"get",
"contains",
"matcher",
"compile",
"matches",
"groupCount",
"valueOf",
"group",
"group",
"valueOf",
"group",
"group",
"fromSqlTypeName",
"fromSqlTypeName",
"create",
"getSqlType"
],
"modifiers": "public static",
"parameters": "(String stringRepresentation)",
"return": "ColumnInfo",
"signature": "ColumnInfo fromString(String stringRepresentation)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_170 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixDriverTest.java",
"identifier": "PhoenixDriverTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testFirstConnectionWhenUrlHasTenantId() throws Exception {\n final String tenantId = \"00Dxx0000001234\";\n String url = getUrl() + \";\" + PhoenixRuntime.TENANT_ID_ATTRIB + \"=\" + tenantId;\n Driver driver = new PhoenixTestDriver();\n\n driver.connect(url, new Properties());\n }",
"class_method_signature": "PhoenixDriverTest.testFirstConnectionWhenUrlHasTenantId()",
"constructor": false,
"full_signature": "@Test public void testFirstConnectionWhenUrlHasTenantId()",
"identifier": "testFirstConnectionWhenUrlHasTenantId",
"invocations": [
"getUrl",
"connect"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testFirstConnectionWhenUrlHasTenantId()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(PhoenixDriver.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(PhoenixDriver.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INSTANCE",
"modifier": "public static final",
"original_string": "public static final PhoenixDriver INSTANCE;",
"type": "PhoenixDriver",
"var_name": "INSTANCE"
},
{
"declarator": "driverShutdownMsg",
"modifier": "private static volatile",
"original_string": "private static volatile String driverShutdownMsg;",
"type": "String",
"var_name": "driverShutdownMsg"
},
{
"declarator": "connectionQueryServicesCache =\n initializeConnectionCache()",
"modifier": "private final",
"original_string": "private final Cache<ConnectionInfo, ConnectionQueryServices> connectionQueryServicesCache =\n initializeConnectionCache();",
"type": "Cache<ConnectionInfo, ConnectionQueryServices>",
"var_name": "connectionQueryServicesCache"
},
{
"declarator": "services",
"modifier": "private volatile",
"original_string": "private volatile QueryServices services;",
"type": "QueryServices",
"var_name": "services"
},
{
"declarator": "closed = false",
"modifier": "@GuardedBy(\"closeLock\")\n private volatile",
"original_string": "@GuardedBy(\"closeLock\")\n private volatile boolean closed = false;",
"type": "boolean",
"var_name": "closed"
},
{
"declarator": "closeLock = new ReentrantReadWriteLock()",
"modifier": "private final",
"original_string": "private final ReadWriteLock closeLock = new ReentrantReadWriteLock();",
"type": "ReadWriteLock",
"var_name": "closeLock"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixDriver.java",
"identifier": "PhoenixDriver",
"interfaces": "",
"methods": [
{
"class_method_signature": "PhoenixDriver.closeInstance(PhoenixDriver instance)",
"constructor": false,
"full_signature": "private static void closeInstance(PhoenixDriver instance)",
"identifier": "closeInstance",
"modifiers": "private static",
"parameters": "(PhoenixDriver instance)",
"return": "void",
"signature": "void closeInstance(PhoenixDriver instance)",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.PhoenixDriver()",
"constructor": true,
"full_signature": "public PhoenixDriver()",
"identifier": "PhoenixDriver",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " PhoenixDriver()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.initializeConnectionCache()",
"constructor": false,
"full_signature": "private Cache<ConnectionInfo, ConnectionQueryServices> initializeConnectionCache()",
"identifier": "initializeConnectionCache",
"modifiers": "private",
"parameters": "()",
"return": "Cache<ConnectionInfo, ConnectionQueryServices>",
"signature": "Cache<ConnectionInfo, ConnectionQueryServices> initializeConnectionCache()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.getQueryServices()",
"constructor": false,
"full_signature": "@Override public QueryServices getQueryServices()",
"identifier": "getQueryServices",
"modifiers": "@Override public",
"parameters": "()",
"return": "QueryServices",
"signature": "QueryServices getQueryServices()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.acceptsURL(String url)",
"constructor": false,
"full_signature": "@Override public boolean acceptsURL(String url)",
"identifier": "acceptsURL",
"modifiers": "@Override public",
"parameters": "(String url)",
"return": "boolean",
"signature": "boolean acceptsURL(String url)",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.connect(String url, Properties info)",
"constructor": false,
"full_signature": "@Override public Connection connect(String url, Properties info)",
"identifier": "connect",
"modifiers": "@Override public",
"parameters": "(String url, Properties info)",
"return": "Connection",
"signature": "Connection connect(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.getConnectionQueryServices(String url, final Properties info)",
"constructor": false,
"full_signature": "@Override protected ConnectionQueryServices getConnectionQueryServices(String url, final Properties info)",
"identifier": "getConnectionQueryServices",
"modifiers": "@Override protected",
"parameters": "(String url, final Properties info)",
"return": "ConnectionQueryServices",
"signature": "ConnectionQueryServices getConnectionQueryServices(String url, final Properties info)",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.checkClosed()",
"constructor": false,
"full_signature": "@GuardedBy(\"closeLock\") private void checkClosed()",
"identifier": "checkClosed",
"modifiers": "@GuardedBy(\"closeLock\") private",
"parameters": "()",
"return": "void",
"signature": "void checkClosed()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.throwDriverClosedException()",
"constructor": false,
"full_signature": "private void throwDriverClosedException()",
"identifier": "throwDriverClosedException",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwDriverClosedException()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.close()",
"constructor": false,
"full_signature": "@Override public synchronized void close()",
"identifier": "close",
"modifiers": "@Override public synchronized",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.lockInterruptibly(LockMode mode)",
"constructor": false,
"full_signature": "private void lockInterruptibly(LockMode mode)",
"identifier": "lockInterruptibly",
"modifiers": "private",
"parameters": "(LockMode mode)",
"return": "void",
"signature": "void lockInterruptibly(LockMode mode)",
"testcase": false
},
{
"class_method_signature": "PhoenixDriver.unlock(LockMode mode)",
"constructor": false,
"full_signature": "private void unlock(LockMode mode)",
"identifier": "unlock",
"modifiers": "private",
"parameters": "(LockMode mode)",
"return": "void",
"signature": "void unlock(LockMode mode)",
"testcase": false
}
],
"superclass": "extends PhoenixEmbeddedDriver"
} | {
"body": "@Override\n public Connection connect(String url, Properties info) throws SQLException {\n if (!acceptsURL(url)) {\n return null;\n }\n try {\n lockInterruptibly(LockMode.READ);\n checkClosed();\n return createConnection(url, info);\n } finally {\n unlock(LockMode.READ);\n }\n }",
"class_method_signature": "PhoenixDriver.connect(String url, Properties info)",
"constructor": false,
"full_signature": "@Override public Connection connect(String url, Properties info)",
"identifier": "connect",
"invocations": [
"acceptsURL",
"lockInterruptibly",
"checkClosed",
"createConnection",
"unlock"
],
"modifiers": "@Override public",
"parameters": "(String url, Properties info)",
"return": "Connection",
"signature": "Connection connect(String url, Properties info)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_65 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateConnectionFromConfiguration() throws Exception {\n Properties props = new Properties();\n // standard lookup. this already checks if we set hbase.zookeeper.clientPort\n Configuration conf = new Configuration(false);\n conf.set(HConstants.ZOOKEEPER_QUORUM, \"localhost\");\n conf.set(HConstants.ZOOKEEPER_CLIENT_PORT, \"2181\");\n String conn = QueryUtil.getConnectionUrl(props, conf);\n validateUrl(conn);\n\n // set the zks to a few hosts, some of which are no online\n conf.set(HConstants.ZOOKEEPER_QUORUM, \"host.at.some.domain.1,localhost,\" +\n \"host.at.other.domain.3\");\n conn = QueryUtil.getConnectionUrl(props, conf);\n validateUrl(conn);\n\n // and try with different leader/peer ports\n conf.set(\"hbase.zookeeper.peerport\", \"3338\");\n conf.set(\"hbase.zookeeper.leaderport\", \"3339\");\n conn = QueryUtil.getConnectionUrl(props, conf);\n validateUrl(conn);\n }",
"class_method_signature": "QueryUtilTest.testCreateConnectionFromConfiguration()",
"constructor": false,
"full_signature": "@Test public void testCreateConnectionFromConfiguration()",
"identifier": "testCreateConnectionFromConfiguration",
"invocations": [
"set",
"set",
"getConnectionUrl",
"validateUrl",
"set",
"getConnectionUrl",
"validateUrl",
"set",
"set",
"getConnectionUrl",
"validateUrl"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCreateConnectionFromConfiguration()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String getConnectionUrl(Properties props, Configuration conf)\n throws SQLException {\n return getConnectionUrl(props, conf, null);\n }",
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"invocations": [
"getConnectionUrl"
],
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_127 | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(TestIndexWriter.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TestIndexWriter.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "testName = new IndexTableName()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public IndexTableName testName = new IndexTableName();",
"type": "IndexTableName",
"var_name": "testName"
},
{
"declarator": "row = Bytes.toBytes(\"row\")",
"modifier": "private final",
"original_string": "private final byte[] row = Bytes.toBytes(\"row\");",
"type": "byte[]",
"var_name": "row"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/write/TestIndexWriter.java",
"identifier": "TestIndexWriter",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getDefaultFailurePolicy() throws Exception {\n Configuration conf = new Configuration(false);\n RegionCoprocessorEnvironment env = Mockito.mock(RegionCoprocessorEnvironment.class);\n Region region = Mockito.mock(Region.class);\n Mockito.when(env.getRegion()).thenReturn(region);\n Mockito.when(env.getConfiguration()).thenReturn(conf);\n Mockito.when(region.getTableDescriptor()).thenReturn(\n TableDescriptorBuilder.newBuilder(TableName.valueOf(\"dummy\")).build());\n assertNotNull(IndexWriter.getFailurePolicy(env));\n }",
"class_method_signature": "TestIndexWriter.getDefaultFailurePolicy()",
"constructor": false,
"full_signature": "@Test public void getDefaultFailurePolicy()",
"identifier": "getDefaultFailurePolicy",
"invocations": [
"mock",
"mock",
"thenReturn",
"when",
"getRegion",
"thenReturn",
"when",
"getConfiguration",
"thenReturn",
"when",
"getTableDescriptor",
"build",
"newBuilder",
"valueOf",
"assertNotNull",
"getFailurePolicy"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void getDefaultFailurePolicy()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(IndexWriter.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(IndexWriter.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INDEX_COMMITTER_CONF_KEY = \"index.writer.commiter.class\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_COMMITTER_CONF_KEY = \"index.writer.commiter.class\";",
"type": "String",
"var_name": "INDEX_COMMITTER_CONF_KEY"
},
{
"declarator": "INDEX_FAILURE_POLICY_CONF_KEY = \"index.writer.failurepolicy.class\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_FAILURE_POLICY_CONF_KEY = \"index.writer.failurepolicy.class\";",
"type": "String",
"var_name": "INDEX_FAILURE_POLICY_CONF_KEY"
},
{
"declarator": "stopped = new AtomicBoolean(false)",
"modifier": "private",
"original_string": "private AtomicBoolean stopped = new AtomicBoolean(false);",
"type": "AtomicBoolean",
"var_name": "stopped"
},
{
"declarator": "writer",
"modifier": "private",
"original_string": "private IndexCommitter writer;",
"type": "IndexCommitter",
"var_name": "writer"
},
{
"declarator": "failurePolicy",
"modifier": "private",
"original_string": "private IndexFailurePolicy failurePolicy;",
"type": "IndexFailurePolicy",
"var_name": "failurePolicy"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/write/IndexWriter.java",
"identifier": "IndexWriter",
"interfaces": "implements Stoppable",
"methods": [
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, String name)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, String name)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, String name)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, String name)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(RegionCoprocessorEnvironment env, IndexCommitter indexCommitter, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getCommitter(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"identifier": "getCommitter",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexCommitter",
"signature": "IndexCommitter getCommitter(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"constructor": false,
"full_signature": "public static IndexCommitter getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"identifier": "getCommitter",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"return": "IndexCommitter",
"signature": "IndexCommitter getCommitter(RegionCoprocessorEnvironment env, Class<? extends IndexCommitter> defaultClass)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.getFailurePolicy(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"identifier": "getFailurePolicy",
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexFailurePolicy",
"signature": "IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"constructor": true,
"full_signature": "public IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name, boolean disableIndexOnFailure)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"constructor": true,
"full_signature": "public IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"identifier": "IndexWriter",
"modifiers": "public",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy,\n RegionCoprocessorEnvironment env, String name)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"constructor": true,
"full_signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"identifier": "IndexWriter",
"modifiers": "",
"parameters": "(IndexCommitter committer, IndexFailurePolicy policy)",
"return": "",
"signature": " IndexWriter(IndexCommitter committer, IndexFailurePolicy policy)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"identifier": "writeAndHandleFailure",
"modifiers": "public",
"parameters": "(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void writeAndHandleFailure(Multimap<HTableInterfaceReference, Mutation> toWrite,\n boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"identifier": "writeAndHandleFailure",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void writeAndHandleFailure(Collection<Pair<Mutation, byte[]>> indexUpdates,\n boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"return": "void",
"signature": "void write(Collection<Pair<Mutation, byte[]>> toWrite, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void write(Collection<Pair<Mutation, byte[]>> toWrite, boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"constructor": false,
"full_signature": "public void write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"identifier": "write",
"modifiers": "public",
"parameters": "(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"return": "void",
"signature": "void write(Multimap<HTableInterfaceReference, Mutation> toWrite, boolean allowLocalUpdates, int clientVersion)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"constructor": false,
"full_signature": "protected Multimap<HTableInterfaceReference, Mutation> resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"identifier": "resolveTableReferences",
"modifiers": "protected",
"parameters": "(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"return": "Multimap<HTableInterfaceReference, Mutation>",
"signature": "Multimap<HTableInterfaceReference, Mutation> resolveTableReferences(\n Collection<Pair<Mutation, byte[]>> indexUpdates)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.stop(String why)",
"constructor": false,
"full_signature": "@Override public void stop(String why)",
"identifier": "stop",
"modifiers": "@Override public",
"parameters": "(String why)",
"return": "void",
"signature": "void stop(String why)",
"testcase": false
},
{
"class_method_signature": "IndexWriter.isStopped()",
"constructor": false,
"full_signature": "@Override public boolean isStopped()",
"identifier": "isStopped",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isStopped()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)\n throws IOException {\n Configuration conf = env.getConfiguration();\n try {\n IndexFailurePolicy committer =\n conf.getClass(INDEX_FAILURE_POLICY_CONF_KEY, PhoenixIndexFailurePolicy.class,\n IndexFailurePolicy.class).newInstance();\n return committer;\n } catch (InstantiationException e) {\n throw new IOException(e);\n } catch (IllegalAccessException e) {\n throw new IOException(e);\n }\n }",
"class_method_signature": "IndexWriter.getFailurePolicy(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "public static IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"identifier": "getFailurePolicy",
"invocations": [
"getConfiguration",
"newInstance",
"getClass"
],
"modifiers": "public static",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "IndexFailurePolicy",
"signature": "IndexFailurePolicy getFailurePolicy(RegionCoprocessorEnvironment env)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_32 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBulkAllocationDescendingNextValueWithinLimit() throws SQLException {\n assertFalse(SequenceUtil.checkIfLimitReached(8, MIN_VALUE, MAX_VALUE, -2/* incrementBy */, CACHE_SIZE, 2));\n\n }",
"class_method_signature": "SequenceUtilTest.testBulkAllocationDescendingNextValueWithinLimit()",
"constructor": false,
"full_signature": "@Test public void testBulkAllocationDescendingNextValueWithinLimit()",
"identifier": "testBulkAllocationDescendingNextValueWithinLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testBulkAllocationDescendingNextValueWithinLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_1 | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(XMLResultHandlerTest.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(XMLResultHandlerTest.class);",
"type": "Logger",
"var_name": "LOGGER"
}
],
"file": "phoenix-pherf/src/test/java/org/apache/phoenix/pherf/result/impl/XMLResultHandlerTest.java",
"identifier": "XMLResultHandlerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDTDInResults() throws Exception {\n URL resultsUrl = XMLConfigParserTest.class.getResource(\"/malicious_results_with_dtd.xml\");\n assertNotNull(resultsUrl);\n File resultsFile = new File(resultsUrl.getFile());\n XMLResultHandler handler = new XMLResultHandler();\n try {\n handler.readFromResultFile(resultsFile);\n fail(\"Expected to see an exception parsing the results with a DTD\");\n } catch (UnmarshalException e) {\n // If we don't parse the DTD, the variable 'name' won't be defined in the XML\n LOGGER.debug(\"Caught expected exception\", e);\n Throwable cause = e.getLinkedException();\n assertTrue(\"Cause was a \" + cause.getClass(), cause instanceof XMLStreamException);\n }\n }",
"class_method_signature": "XMLResultHandlerTest.testDTDInResults()",
"constructor": false,
"full_signature": "@Test public void testDTDInResults()",
"identifier": "testDTDInResults",
"invocations": [
"getResource",
"assertNotNull",
"getFile",
"readFromResultFile",
"fail",
"debug",
"getLinkedException",
"assertTrue",
"getClass"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDTDInResults()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-pherf/src/main/java/org/apache/phoenix/pherf/result/impl/XMLResultHandler.java",
"identifier": "XMLResultHandler",
"interfaces": "",
"methods": [
{
"class_method_signature": "XMLResultHandler.XMLResultHandler()",
"constructor": true,
"full_signature": "public XMLResultHandler()",
"identifier": "XMLResultHandler",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " XMLResultHandler()",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.write(Result result)",
"constructor": false,
"full_signature": "@Override public synchronized void write(Result result)",
"identifier": "write",
"modifiers": "@Override public synchronized",
"parameters": "(Result result)",
"return": "void",
"signature": "void write(Result result)",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.flush()",
"constructor": false,
"full_signature": "@Override public synchronized void flush()",
"identifier": "flush",
"modifiers": "@Override public synchronized",
"parameters": "()",
"return": "void",
"signature": "void flush()",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.close()",
"constructor": false,
"full_signature": "@Override public synchronized void close()",
"identifier": "close",
"modifiers": "@Override public synchronized",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.read()",
"constructor": false,
"full_signature": "@Override public synchronized List<Result> read()",
"identifier": "read",
"modifiers": "@Override public synchronized",
"parameters": "()",
"return": "List<Result>",
"signature": "List<Result> read()",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.readFromResultFile(File resultsFile)",
"constructor": false,
"full_signature": " List<Result> readFromResultFile(File resultsFile)",
"identifier": "readFromResultFile",
"modifiers": "",
"parameters": "(File resultsFile)",
"return": "List<Result>",
"signature": "List<Result> readFromResultFile(File resultsFile)",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.isClosed()",
"constructor": false,
"full_signature": "@Override public boolean isClosed()",
"identifier": "isClosed",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isClosed()",
"testcase": false
},
{
"class_method_signature": "XMLResultHandler.setResultFileDetails(ResultFileDetails details)",
"constructor": false,
"full_signature": "@Override public void setResultFileDetails(ResultFileDetails details)",
"identifier": "setResultFileDetails",
"modifiers": "@Override public",
"parameters": "(ResultFileDetails details)",
"return": "void",
"signature": "void setResultFileDetails(ResultFileDetails details)",
"testcase": false
}
],
"superclass": "extends DefaultResultHandler"
} | {
"body": "List<Result> readFromResultFile(File resultsFile) throws Exception {\n XMLInputFactory xif = XMLInputFactory.newInstance();\n xif.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);\n xif.setProperty(XMLInputFactory.SUPPORT_DTD, false);\n JAXBContext jaxbContext = JAXBContext.newInstance(DataModelResult.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n @SuppressWarnings(\"rawtypes\")\n List<ResultValue> resultValue = new ArrayList<>();\n XMLStreamReader xmlReader = xif.createXMLStreamReader(new StreamSource(resultsFile));\n resultValue.add(new ResultValue<>(jaxbUnmarshaller.unmarshal(xmlReader)));\n List<Result> results = new ArrayList<>();\n results.add(new Result(ResultFileDetails.XML, null, resultValue));\n return results;\n }",
"class_method_signature": "XMLResultHandler.readFromResultFile(File resultsFile)",
"constructor": false,
"full_signature": " List<Result> readFromResultFile(File resultsFile)",
"identifier": "readFromResultFile",
"invocations": [
"newInstance",
"setProperty",
"setProperty",
"newInstance",
"createUnmarshaller",
"createXMLStreamReader",
"add",
"unmarshal",
"add"
],
"modifiers": "",
"parameters": "(File resultsFile)",
"return": "List<Result>",
"signature": "List<Result> readFromResultFile(File resultsFile)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_24 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDescendingNextValueLessThanMinValue() throws SQLException {\n \tassertTrue(SequenceUtil.checkIfLimitReached(2, MIN_VALUE, MAX_VALUE, -2/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testDescendingNextValueLessThanMinValue()",
"constructor": false,
"full_signature": "@Test public void testDescendingNextValueLessThanMinValue()",
"identifier": "testDescendingNextValueLessThanMinValue",
"invocations": [
"assertTrue",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDescendingNextValueLessThanMinValue()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_131 | {
"fields": [
{
"declarator": "overAllQueryMetrics",
"modifier": "private",
"original_string": "private OverAllQueryMetrics overAllQueryMetrics;",
"type": "OverAllQueryMetrics",
"var_name": "overAllQueryMetrics"
},
{
"declarator": "numParallelScans = 10L",
"modifier": "private static final",
"original_string": "private static final long numParallelScans = 10L;",
"type": "long",
"var_name": "numParallelScans"
},
{
"declarator": "delta = 1000L",
"modifier": "private static final",
"original_string": "private static final long delta = 1000L;",
"type": "long",
"var_name": "delta"
},
{
"declarator": "queryTimeouts = 5",
"modifier": "private static final",
"original_string": "private static final int queryTimeouts = 5;",
"type": "int",
"var_name": "queryTimeouts"
},
{
"declarator": "queryFailures = 8",
"modifier": "private static final",
"original_string": "private static final int queryFailures = 8;",
"type": "int",
"var_name": "queryFailures"
},
{
"declarator": "cacheRefreshesDueToSplits = 15",
"modifier": "private static final",
"original_string": "private static final int cacheRefreshesDueToSplits = 15;",
"type": "int",
"var_name": "cacheRefreshesDueToSplits"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/monitoring/OverAllQueryMetricsTest.java",
"identifier": "OverAllQueryMetricsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPublish() {\n MyClock clock = new MyClock(10L, delta);\n EnvironmentEdgeManager.injectEdge(clock);\n overAllQueryMetrics.startQuery();\n overAllQueryMetrics.startResultSetWatch();\n assertPublishedMetrics(overAllQueryMetrics.publish(), numParallelScans, queryTimeouts,\n queryFailures, cacheRefreshesDueToSplits, 0L);\n overAllQueryMetrics.endQuery();\n overAllQueryMetrics.stopResultSetWatch();\n // expect 2 * delta since we call both endQuery() and stopResultSetWatch()\n assertPublishedMetrics(overAllQueryMetrics.publish(), numParallelScans, queryTimeouts,\n queryFailures, cacheRefreshesDueToSplits, 2*delta);\n }",
"class_method_signature": "OverAllQueryMetricsTest.testPublish()",
"constructor": false,
"full_signature": "@Test public void testPublish()",
"identifier": "testPublish",
"invocations": [
"injectEdge",
"startQuery",
"startResultSetWatch",
"assertPublishedMetrics",
"publish",
"endQuery",
"stopResultSetWatch",
"assertPublishedMetrics",
"publish"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testPublish()",
"testcase": true
} | {
"fields": [
{
"declarator": "queryWatch",
"modifier": "private final",
"original_string": "private final MetricsStopWatch queryWatch;",
"type": "MetricsStopWatch",
"var_name": "queryWatch"
},
{
"declarator": "resultSetWatch",
"modifier": "private final",
"original_string": "private final MetricsStopWatch resultSetWatch;",
"type": "MetricsStopWatch",
"var_name": "resultSetWatch"
},
{
"declarator": "numParallelScans",
"modifier": "private final",
"original_string": "private final CombinableMetric numParallelScans;",
"type": "CombinableMetric",
"var_name": "numParallelScans"
},
{
"declarator": "wallClockTimeMS",
"modifier": "private final",
"original_string": "private final CombinableMetric wallClockTimeMS;",
"type": "CombinableMetric",
"var_name": "wallClockTimeMS"
},
{
"declarator": "resultSetTimeMS",
"modifier": "private final",
"original_string": "private final CombinableMetric resultSetTimeMS;",
"type": "CombinableMetric",
"var_name": "resultSetTimeMS"
},
{
"declarator": "queryTimedOut",
"modifier": "private final",
"original_string": "private final CombinableMetric queryTimedOut;",
"type": "CombinableMetric",
"var_name": "queryTimedOut"
},
{
"declarator": "queryFailed",
"modifier": "private final",
"original_string": "private final CombinableMetric queryFailed;",
"type": "CombinableMetric",
"var_name": "queryFailed"
},
{
"declarator": "cacheRefreshedDueToSplits",
"modifier": "private final",
"original_string": "private final CombinableMetric cacheRefreshedDueToSplits;",
"type": "CombinableMetric",
"var_name": "cacheRefreshedDueToSplits"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/monitoring/OverAllQueryMetrics.java",
"identifier": "OverAllQueryMetrics",
"interfaces": "",
"methods": [
{
"class_method_signature": "OverAllQueryMetrics.OverAllQueryMetrics(boolean isRequestMetricsEnabled, LogLevel connectionLogLevel)",
"constructor": true,
"full_signature": "public OverAllQueryMetrics(boolean isRequestMetricsEnabled, LogLevel connectionLogLevel)",
"identifier": "OverAllQueryMetrics",
"modifiers": "public",
"parameters": "(boolean isRequestMetricsEnabled, LogLevel connectionLogLevel)",
"return": "",
"signature": " OverAllQueryMetrics(boolean isRequestMetricsEnabled, LogLevel connectionLogLevel)",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.updateNumParallelScans(long numParallelScans)",
"constructor": false,
"full_signature": "public void updateNumParallelScans(long numParallelScans)",
"identifier": "updateNumParallelScans",
"modifiers": "public",
"parameters": "(long numParallelScans)",
"return": "void",
"signature": "void updateNumParallelScans(long numParallelScans)",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.queryTimedOut()",
"constructor": false,
"full_signature": "public void queryTimedOut()",
"identifier": "queryTimedOut",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void queryTimedOut()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.queryFailed()",
"constructor": false,
"full_signature": "public void queryFailed()",
"identifier": "queryFailed",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void queryFailed()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.cacheRefreshedDueToSplits()",
"constructor": false,
"full_signature": "public void cacheRefreshedDueToSplits()",
"identifier": "cacheRefreshedDueToSplits",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void cacheRefreshedDueToSplits()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.startQuery()",
"constructor": false,
"full_signature": "public void startQuery()",
"identifier": "startQuery",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void startQuery()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.endQuery()",
"constructor": false,
"full_signature": "public void endQuery()",
"identifier": "endQuery",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void endQuery()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.startResultSetWatch()",
"constructor": false,
"full_signature": "public void startResultSetWatch()",
"identifier": "startResultSetWatch",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void startResultSetWatch()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.stopResultSetWatch()",
"constructor": false,
"full_signature": "public void stopResultSetWatch()",
"identifier": "stopResultSetWatch",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void stopResultSetWatch()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.getWallClockTimeMs()",
"constructor": false,
"full_signature": "@VisibleForTesting long getWallClockTimeMs()",
"identifier": "getWallClockTimeMs",
"modifiers": "@VisibleForTesting",
"parameters": "()",
"return": "long",
"signature": "long getWallClockTimeMs()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.getResultSetTimeMs()",
"constructor": false,
"full_signature": "@VisibleForTesting long getResultSetTimeMs()",
"identifier": "getResultSetTimeMs",
"modifiers": "@VisibleForTesting",
"parameters": "()",
"return": "long",
"signature": "long getResultSetTimeMs()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.publish()",
"constructor": false,
"full_signature": "public Map<MetricType, Long> publish()",
"identifier": "publish",
"modifiers": "public",
"parameters": "()",
"return": "Map<MetricType, Long>",
"signature": "Map<MetricType, Long> publish()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.reset()",
"constructor": false,
"full_signature": "public void reset()",
"identifier": "reset",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void reset()",
"testcase": false
},
{
"class_method_signature": "OverAllQueryMetrics.combine(OverAllQueryMetrics metric)",
"constructor": false,
"full_signature": "public OverAllQueryMetrics combine(OverAllQueryMetrics metric)",
"identifier": "combine",
"modifiers": "public",
"parameters": "(OverAllQueryMetrics metric)",
"return": "OverAllQueryMetrics",
"signature": "OverAllQueryMetrics combine(OverAllQueryMetrics metric)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Map<MetricType, Long> publish() {\n Map<MetricType, Long> metricsForPublish = new HashMap<>();\n metricsForPublish.put(numParallelScans.getMetricType(), numParallelScans.getValue());\n metricsForPublish.put(wallClockTimeMS.getMetricType(), wallClockTimeMS.getValue());\n metricsForPublish.put(resultSetTimeMS.getMetricType(), resultSetTimeMS.getValue());\n metricsForPublish.put(queryTimedOut.getMetricType(), queryTimedOut.getValue());\n metricsForPublish.put(queryFailed.getMetricType(), queryFailed.getValue());\n metricsForPublish.put(cacheRefreshedDueToSplits.getMetricType(), cacheRefreshedDueToSplits.getValue());\n return metricsForPublish;\n }",
"class_method_signature": "OverAllQueryMetrics.publish()",
"constructor": false,
"full_signature": "public Map<MetricType, Long> publish()",
"identifier": "publish",
"invocations": [
"put",
"getMetricType",
"getValue",
"put",
"getMetricType",
"getValue",
"put",
"getMetricType",
"getValue",
"put",
"getMetricType",
"getValue",
"put",
"getMetricType",
"getValue",
"put",
"getMetricType",
"getValue"
],
"modifiers": "public",
"parameters": "()",
"return": "Map<MetricType, Long>",
"signature": "Map<MetricType, Long> publish()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_189 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/PMetaDataImplTest.java",
"identifier": "PMetaDataImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldNotEvictMoreEntriesThanNecessary() throws Exception {\n TestTimeKeeper timeKeeper = new TestTimeKeeper();\n Map<String, String> props = Maps.newHashMapWithExpectedSize(2);\n props.put(QueryServices.MAX_CLIENT_METADATA_CACHE_SIZE_ATTRIB, \"5\");\n props.put(QueryServices.CLIENT_CACHE_ENCODING, \"object\");\n PMetaData metaData = new PMetaDataImpl(5, timeKeeper, new ReadOnlyProps(props));\n addToTable(metaData, \"a\", 1, timeKeeper);\n assertEquals(1, metaData.size());\n addToTable(metaData, \"b\", 1, timeKeeper);\n assertEquals(2, metaData.size());\n assertNames(metaData, \"a\", \"b\");\n addToTable(metaData, \"c\", 3, timeKeeper);\n assertEquals(3, metaData.size());\n assertNames(metaData, \"a\", \"b\", \"c\");\n getFromTable(metaData, \"a\", timeKeeper);\n getFromTable(metaData, \"b\", timeKeeper);\n addToTable(metaData, \"d\", 3, timeKeeper);\n assertEquals(3, metaData.size());\n assertNames(metaData, \"a\", \"b\", \"d\");\n }",
"class_method_signature": "PMetaDataImplTest.shouldNotEvictMoreEntriesThanNecessary()",
"constructor": false,
"full_signature": "@Test public void shouldNotEvictMoreEntriesThanNecessary()",
"identifier": "shouldNotEvictMoreEntriesThanNecessary",
"invocations": [
"newHashMapWithExpectedSize",
"put",
"put",
"addToTable",
"assertEquals",
"size",
"addToTable",
"assertEquals",
"size",
"assertNames",
"addToTable",
"assertEquals",
"size",
"assertNames",
"getFromTable",
"getFromTable",
"addToTable",
"assertEquals",
"size",
"assertNames"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void shouldNotEvictMoreEntriesThanNecessary()",
"testcase": true
} | {
"fields": [
{
"declarator": "metaData",
"modifier": "private",
"original_string": "private PMetaDataCache metaData;",
"type": "PMetaDataCache",
"var_name": "metaData"
},
{
"declarator": "timeKeeper",
"modifier": "private final",
"original_string": "private final TimeKeeper timeKeeper;",
"type": "TimeKeeper",
"var_name": "timeKeeper"
},
{
"declarator": "tableRefFactory",
"modifier": "private final",
"original_string": "private final PTableRefFactory tableRefFactory;",
"type": "PTableRefFactory",
"var_name": "tableRefFactory"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java",
"identifier": "PMetaDataImpl",
"interfaces": "implements PMetaData",
"methods": [
{
"class_method_signature": "PMetaDataImpl.PMetaDataImpl(int initialCapacity, ReadOnlyProps props)",
"constructor": true,
"full_signature": "public PMetaDataImpl(int initialCapacity, ReadOnlyProps props)",
"identifier": "PMetaDataImpl",
"modifiers": "public",
"parameters": "(int initialCapacity, ReadOnlyProps props)",
"return": "",
"signature": " PMetaDataImpl(int initialCapacity, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.PMetaDataImpl(int initialCapacity, TimeKeeper timeKeeper, ReadOnlyProps props)",
"constructor": true,
"full_signature": "public PMetaDataImpl(int initialCapacity, TimeKeeper timeKeeper, ReadOnlyProps props)",
"identifier": "PMetaDataImpl",
"modifiers": "public",
"parameters": "(int initialCapacity, TimeKeeper timeKeeper, ReadOnlyProps props)",
"return": "",
"signature": " PMetaDataImpl(int initialCapacity, TimeKeeper timeKeeper, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.PMetaDataImpl(PMetaDataCache metaData, TimeKeeper timeKeeper, PTableRefFactory tableRefFactory)",
"constructor": true,
"full_signature": "private PMetaDataImpl(PMetaDataCache metaData, TimeKeeper timeKeeper, PTableRefFactory tableRefFactory)",
"identifier": "PMetaDataImpl",
"modifiers": "private",
"parameters": "(PMetaDataCache metaData, TimeKeeper timeKeeper, PTableRefFactory tableRefFactory)",
"return": "",
"signature": " PMetaDataImpl(PMetaDataCache metaData, TimeKeeper timeKeeper, PTableRefFactory tableRefFactory)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.clone()",
"constructor": false,
"full_signature": "@Override public PMetaDataImpl clone()",
"identifier": "clone",
"modifiers": "@Override public",
"parameters": "()",
"return": "PMetaDataImpl",
"signature": "PMetaDataImpl clone()",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.getTableRef(PTableKey key)",
"constructor": false,
"full_signature": "@Override public PTableRef getTableRef(PTableKey key)",
"identifier": "getTableRef",
"modifiers": "@Override public",
"parameters": "(PTableKey key)",
"return": "PTableRef",
"signature": "PTableRef getTableRef(PTableKey key)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.getFunction(PTableKey key)",
"constructor": false,
"full_signature": "@Override public PFunction getFunction(PTableKey key)",
"identifier": "getFunction",
"modifiers": "@Override public",
"parameters": "(PTableKey key)",
"return": "PFunction",
"signature": "PFunction getFunction(PTableKey key)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.size()",
"constructor": false,
"full_signature": "@Override public int size()",
"identifier": "size",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int size()",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.updateResolvedTimestamp(PTable table, long resolvedTimestamp)",
"constructor": false,
"full_signature": "@Override public void updateResolvedTimestamp(PTable table, long resolvedTimestamp)",
"identifier": "updateResolvedTimestamp",
"modifiers": "@Override public",
"parameters": "(PTable table, long resolvedTimestamp)",
"return": "void",
"signature": "void updateResolvedTimestamp(PTable table, long resolvedTimestamp)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.addTable(PTable table, long resolvedTime)",
"constructor": false,
"full_signature": "@Override public void addTable(PTable table, long resolvedTime)",
"identifier": "addTable",
"modifiers": "@Override public",
"parameters": "(PTable table, long resolvedTime)",
"return": "void",
"signature": "void addTable(PTable table, long resolvedTime)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.removeTable(PName tenantId, String tableName, String parentTableName, long tableTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeTable(PName tenantId, String tableName, String parentTableName, long tableTimeStamp)",
"identifier": "removeTable",
"modifiers": "@Override public",
"parameters": "(PName tenantId, String tableName, String parentTableName, long tableTimeStamp)",
"return": "void",
"signature": "void removeTable(PName tenantId, String tableName, String parentTableName, long tableTimeStamp)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.removeColumn(PName tenantId, String tableName, List<PColumn> columnsToRemove, long tableTimeStamp, long tableSeqNum, long resolvedTime)",
"constructor": false,
"full_signature": "@Override public void removeColumn(PName tenantId, String tableName, List<PColumn> columnsToRemove, long tableTimeStamp, long tableSeqNum, long resolvedTime)",
"identifier": "removeColumn",
"modifiers": "@Override public",
"parameters": "(PName tenantId, String tableName, List<PColumn> columnsToRemove, long tableTimeStamp, long tableSeqNum, long resolvedTime)",
"return": "void",
"signature": "void removeColumn(PName tenantId, String tableName, List<PColumn> columnsToRemove, long tableTimeStamp, long tableSeqNum, long resolvedTime)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.pruneTables(Pruner pruner)",
"constructor": false,
"full_signature": "@Override public void pruneTables(Pruner pruner)",
"identifier": "pruneTables",
"modifiers": "@Override public",
"parameters": "(Pruner pruner)",
"return": "void",
"signature": "void pruneTables(Pruner pruner)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.iterator()",
"constructor": false,
"full_signature": "@Override public Iterator<PTable> iterator()",
"identifier": "iterator",
"modifiers": "@Override public",
"parameters": "()",
"return": "Iterator<PTable>",
"signature": "Iterator<PTable> iterator()",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.addFunction(PFunction function)",
"constructor": false,
"full_signature": "@Override public void addFunction(PFunction function)",
"identifier": "addFunction",
"modifiers": "@Override public",
"parameters": "(PFunction function)",
"return": "void",
"signature": "void addFunction(PFunction function)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.removeFunction(PName tenantId, String function, long functionTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeFunction(PName tenantId, String function, long functionTimeStamp)",
"identifier": "removeFunction",
"modifiers": "@Override public",
"parameters": "(PName tenantId, String function, long functionTimeStamp)",
"return": "void",
"signature": "void removeFunction(PName tenantId, String function, long functionTimeStamp)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.pruneFunctions(Pruner pruner)",
"constructor": false,
"full_signature": "@Override public void pruneFunctions(Pruner pruner)",
"identifier": "pruneFunctions",
"modifiers": "@Override public",
"parameters": "(Pruner pruner)",
"return": "void",
"signature": "void pruneFunctions(Pruner pruner)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.getAge(PTableRef ref)",
"constructor": false,
"full_signature": "@Override public long getAge(PTableRef ref)",
"identifier": "getAge",
"modifiers": "@Override public",
"parameters": "(PTableRef ref)",
"return": "long",
"signature": "long getAge(PTableRef ref)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.addSchema(PSchema schema)",
"constructor": false,
"full_signature": "@Override public void addSchema(PSchema schema)",
"identifier": "addSchema",
"modifiers": "@Override public",
"parameters": "(PSchema schema)",
"return": "void",
"signature": "void addSchema(PSchema schema)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.getSchema(PTableKey key)",
"constructor": false,
"full_signature": "@Override public PSchema getSchema(PTableKey key)",
"identifier": "getSchema",
"modifiers": "@Override public",
"parameters": "(PTableKey key)",
"return": "PSchema",
"signature": "PSchema getSchema(PTableKey key)",
"testcase": false
},
{
"class_method_signature": "PMetaDataImpl.removeSchema(PSchema schema, long schemaTimeStamp)",
"constructor": false,
"full_signature": "@Override public void removeSchema(PSchema schema, long schemaTimeStamp)",
"identifier": "removeSchema",
"modifiers": "@Override public",
"parameters": "(PSchema schema, long schemaTimeStamp)",
"return": "void",
"signature": "void removeSchema(PSchema schema, long schemaTimeStamp)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public int size() {\n return metaData.size();\n }",
"class_method_signature": "PMetaDataImpl.size()",
"constructor": false,
"full_signature": "@Override public int size()",
"identifier": "size",
"invocations": [
"size"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int size()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_73 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDemonstrateSetNanosOnTimestampLosingMillis() {\n Timestamp ts1 = new Timestamp(120055);\n ts1.setNanos(60);\n \n Timestamp ts2 = new Timestamp(120100);\n ts2.setNanos(60);\n \n /*\n * This really should have been assertFalse() because we started with timestamps that \n * had different milliseconds 120055 and 120100. THe problem is that the timestamp's \n * constructor converts the milliseconds passed into seconds and assigns the left-over\n * milliseconds to the nanos part of the timestamp. If setNanos() is called after that\n * then the previous value of nanos gets overwritten resulting in loss of milliseconds.\n */\n assertTrue(ts1.equals(ts2));\n \n /*\n * The right way to deal with timestamps when you have both milliseconds and nanos to assign\n * is to use the DateUtil.getTimestamp(long millis, int nanos).\n */\n ts1 = DateUtil.getTimestamp(120055, 60);\n ts2 = DateUtil.getTimestamp(120100, 60);\n assertFalse(ts1.equals(ts2));\n assertTrue(ts2.after(ts1));\n }",
"class_method_signature": "DateUtilTest.testDemonstrateSetNanosOnTimestampLosingMillis()",
"constructor": false,
"full_signature": "@Test public void testDemonstrateSetNanosOnTimestampLosingMillis()",
"identifier": "testDemonstrateSetNanosOnTimestampLosingMillis",
"invocations": [
"setNanos",
"setNanos",
"assertTrue",
"equals",
"getTimestamp",
"getTimestamp",
"assertFalse",
"equals",
"assertTrue",
"after"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDemonstrateSetNanosOnTimestampLosingMillis()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Timestamp getTimestamp(long millis, int nanos) {\n if (nanos > MAX_ALLOWED_NANOS || nanos < 0) {\n throw new IllegalArgumentException(\"nanos > \" + MAX_ALLOWED_NANOS + \" or < 0\");\n }\n Timestamp ts = new Timestamp(millis);\n if (ts.getNanos() + nanos > MAX_ALLOWED_NANOS) {\n int millisToNanosConvertor = BigDecimal.valueOf(MILLIS_TO_NANOS_CONVERTOR).intValue();\n int overFlowMs = (ts.getNanos() + nanos) / millisToNanosConvertor;\n int overFlowNanos = (ts.getNanos() + nanos) - (overFlowMs * millisToNanosConvertor);\n ts = new Timestamp(millis + overFlowMs);\n ts.setNanos(ts.getNanos() + overFlowNanos);\n } else {\n ts.setNanos(ts.getNanos() + nanos);\n }\n return ts;\n }",
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"invocations": [
"getNanos",
"intValue",
"valueOf",
"getNanos",
"getNanos",
"setNanos",
"getNanos",
"setNanos",
"getNanos"
],
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_166 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixPreparedStatementTest.java",
"identifier": "PhoenixPreparedStatementTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testMutationUsingExecuteQueryShouldFail() throws Exception {\n Properties connectionProperties = new Properties();\n Connection connection = DriverManager.getConnection(getUrl(), connectionProperties);\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM \" + ATABLE);\n try {\n stmt.executeQuery();\n fail();\n } catch(SQLException e) {\n assertEquals(SQLExceptionCode.EXECUTE_QUERY_NOT_APPLICABLE.getErrorCode(), e.getErrorCode());\n }\n }",
"class_method_signature": "PhoenixPreparedStatementTest.testMutationUsingExecuteQueryShouldFail()",
"constructor": false,
"full_signature": "@Test public void testMutationUsingExecuteQueryShouldFail()",
"identifier": "testMutationUsingExecuteQueryShouldFail",
"invocations": [
"getConnection",
"getUrl",
"prepareStatement",
"executeQuery",
"fail",
"assertEquals",
"getErrorCode",
"getErrorCode"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testMutationUsingExecuteQueryShouldFail()",
"testcase": true
} | {
"fields": [
{
"declarator": "parameterCount",
"modifier": "private final",
"original_string": "private final int parameterCount;",
"type": "int",
"var_name": "parameterCount"
},
{
"declarator": "parameters",
"modifier": "private final",
"original_string": "private final List<Object> parameters;",
"type": "List<Object>",
"var_name": "parameters"
},
{
"declarator": "statement",
"modifier": "private final",
"original_string": "private final CompilableStatement statement;",
"type": "CompilableStatement",
"var_name": "statement"
},
{
"declarator": "query",
"modifier": "private final",
"original_string": "private final String query;",
"type": "String",
"var_name": "query"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixPreparedStatement.java",
"identifier": "PhoenixPreparedStatement",
"interfaces": "implements PreparedStatement, SQLCloseable",
"methods": [
{
"class_method_signature": "PhoenixPreparedStatement.PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser)",
"constructor": true,
"full_signature": "public PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser)",
"identifier": "PhoenixPreparedStatement",
"modifiers": "public",
"parameters": "(PhoenixConnection connection, PhoenixStatementParser parser)",
"return": "",
"signature": " PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.PhoenixPreparedStatement(PhoenixConnection connection, String query)",
"constructor": true,
"full_signature": "public PhoenixPreparedStatement(PhoenixConnection connection, String query)",
"identifier": "PhoenixPreparedStatement",
"modifiers": "public",
"parameters": "(PhoenixConnection connection, String query)",
"return": "",
"signature": " PhoenixPreparedStatement(PhoenixConnection connection, String query)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.PhoenixPreparedStatement(PhoenixPreparedStatement statement)",
"constructor": true,
"full_signature": "public PhoenixPreparedStatement(PhoenixPreparedStatement statement)",
"identifier": "PhoenixPreparedStatement",
"modifiers": "public",
"parameters": "(PhoenixPreparedStatement statement)",
"return": "",
"signature": " PhoenixPreparedStatement(PhoenixPreparedStatement statement)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.addBatch()",
"constructor": false,
"full_signature": "@Override public void addBatch()",
"identifier": "addBatch",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void addBatch()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setParameter(int parameterIndex, Object value)",
"constructor": false,
"full_signature": "private void setParameter(int parameterIndex, Object value)",
"identifier": "setParameter",
"modifiers": "private",
"parameters": "(int parameterIndex, Object value)",
"return": "void",
"signature": "void setParameter(int parameterIndex, Object value)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.clearParameters()",
"constructor": false,
"full_signature": "@Override public void clearParameters()",
"identifier": "clearParameters",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void clearParameters()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.getParameters()",
"constructor": false,
"full_signature": "@Override public List<Object> getParameters()",
"identifier": "getParameters",
"modifiers": "@Override public",
"parameters": "()",
"return": "List<Object>",
"signature": "List<Object> getParameters()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.throwIfUnboundParameters()",
"constructor": false,
"full_signature": "private void throwIfUnboundParameters()",
"identifier": "throwIfUnboundParameters",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfUnboundParameters()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.compileQuery()",
"constructor": false,
"full_signature": "public QueryPlan compileQuery()",
"identifier": "compileQuery",
"modifiers": "public",
"parameters": "()",
"return": "QueryPlan",
"signature": "QueryPlan compileQuery()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.compileMutation()",
"constructor": false,
"full_signature": "public MutationPlan compileMutation()",
"identifier": "compileMutation",
"modifiers": "public",
"parameters": "()",
"return": "MutationPlan",
"signature": "MutationPlan compileMutation()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.execute(boolean batched)",
"constructor": false,
"full_signature": " boolean execute(boolean batched)",
"identifier": "execute",
"modifiers": "",
"parameters": "(boolean batched)",
"return": "boolean",
"signature": "boolean execute(boolean batched)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.execute()",
"constructor": false,
"full_signature": "@Override public boolean execute()",
"identifier": "execute",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean execute()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.executeQuery()",
"constructor": false,
"full_signature": "@Override public ResultSet executeQuery()",
"identifier": "executeQuery",
"modifiers": "@Override public",
"parameters": "()",
"return": "ResultSet",
"signature": "ResultSet executeQuery()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.executeUpdate()",
"constructor": false,
"full_signature": "@Override public int executeUpdate()",
"identifier": "executeUpdate",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int executeUpdate()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.optimizeQuery()",
"constructor": false,
"full_signature": "public QueryPlan optimizeQuery()",
"identifier": "optimizeQuery",
"modifiers": "public",
"parameters": "()",
"return": "QueryPlan",
"signature": "QueryPlan optimizeQuery()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.getMetaData()",
"constructor": false,
"full_signature": "@Override public ResultSetMetaData getMetaData()",
"identifier": "getMetaData",
"modifiers": "@Override public",
"parameters": "()",
"return": "ResultSetMetaData",
"signature": "ResultSetMetaData getMetaData()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.getParameterMetaData()",
"constructor": false,
"full_signature": "@Override public ParameterMetaData getParameterMetaData()",
"identifier": "getParameterMetaData",
"modifiers": "@Override public",
"parameters": "()",
"return": "ParameterMetaData",
"signature": "ParameterMetaData getParameterMetaData()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setArray(int parameterIndex, Array x)",
"constructor": false,
"full_signature": "@Override public void setArray(int parameterIndex, Array x)",
"identifier": "setArray",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Array x)",
"return": "void",
"signature": "void setArray(int parameterIndex, Array x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setAsciiStream(int parameterIndex, InputStream x)",
"constructor": false,
"full_signature": "@Override public void setAsciiStream(int parameterIndex, InputStream x)",
"identifier": "setAsciiStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x)",
"return": "void",
"signature": "void setAsciiStream(int parameterIndex, InputStream x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setAsciiStream(int parameterIndex, InputStream x, int length)",
"constructor": false,
"full_signature": "@Override public void setAsciiStream(int parameterIndex, InputStream x, int length)",
"identifier": "setAsciiStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x, int length)",
"return": "void",
"signature": "void setAsciiStream(int parameterIndex, InputStream x, int length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setAsciiStream(int parameterIndex, InputStream x, long length)",
"constructor": false,
"full_signature": "@Override public void setAsciiStream(int parameterIndex, InputStream x, long length)",
"identifier": "setAsciiStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x, long length)",
"return": "void",
"signature": "void setAsciiStream(int parameterIndex, InputStream x, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBigDecimal(int parameterIndex, BigDecimal x)",
"constructor": false,
"full_signature": "@Override public void setBigDecimal(int parameterIndex, BigDecimal x)",
"identifier": "setBigDecimal",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, BigDecimal x)",
"return": "void",
"signature": "void setBigDecimal(int parameterIndex, BigDecimal x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBytes(int parameterIndex, byte[] x)",
"constructor": false,
"full_signature": "@Override public void setBytes(int parameterIndex, byte[] x)",
"identifier": "setBytes",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, byte[] x)",
"return": "void",
"signature": "void setBytes(int parameterIndex, byte[] x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBinaryStream(int parameterIndex, InputStream x)",
"constructor": false,
"full_signature": "@Override public void setBinaryStream(int parameterIndex, InputStream x)",
"identifier": "setBinaryStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x)",
"return": "void",
"signature": "void setBinaryStream(int parameterIndex, InputStream x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBinaryStream(int parameterIndex, InputStream x, int length)",
"constructor": false,
"full_signature": "@Override public void setBinaryStream(int parameterIndex, InputStream x, int length)",
"identifier": "setBinaryStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x, int length)",
"return": "void",
"signature": "void setBinaryStream(int parameterIndex, InputStream x, int length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBinaryStream(int parameterIndex, InputStream x, long length)",
"constructor": false,
"full_signature": "@Override public void setBinaryStream(int parameterIndex, InputStream x, long length)",
"identifier": "setBinaryStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x, long length)",
"return": "void",
"signature": "void setBinaryStream(int parameterIndex, InputStream x, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBlob(int parameterIndex, Blob x)",
"constructor": false,
"full_signature": "@Override public void setBlob(int parameterIndex, Blob x)",
"identifier": "setBlob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Blob x)",
"return": "void",
"signature": "void setBlob(int parameterIndex, Blob x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBlob(int parameterIndex, InputStream inputStream)",
"constructor": false,
"full_signature": "@Override public void setBlob(int parameterIndex, InputStream inputStream)",
"identifier": "setBlob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream inputStream)",
"return": "void",
"signature": "void setBlob(int parameterIndex, InputStream inputStream)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBlob(int parameterIndex, InputStream inputStream, long length)",
"constructor": false,
"full_signature": "@Override public void setBlob(int parameterIndex, InputStream inputStream, long length)",
"identifier": "setBlob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream inputStream, long length)",
"return": "void",
"signature": "void setBlob(int parameterIndex, InputStream inputStream, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setBoolean(int parameterIndex, boolean x)",
"constructor": false,
"full_signature": "@Override public void setBoolean(int parameterIndex, boolean x)",
"identifier": "setBoolean",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, boolean x)",
"return": "void",
"signature": "void setBoolean(int parameterIndex, boolean x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setByte(int parameterIndex, byte x)",
"constructor": false,
"full_signature": "@Override public void setByte(int parameterIndex, byte x)",
"identifier": "setByte",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, byte x)",
"return": "void",
"signature": "void setByte(int parameterIndex, byte x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setCharacterStream(int parameterIndex, Reader reader)",
"constructor": false,
"full_signature": "@Override public void setCharacterStream(int parameterIndex, Reader reader)",
"identifier": "setCharacterStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader)",
"return": "void",
"signature": "void setCharacterStream(int parameterIndex, Reader reader)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setCharacterStream(int parameterIndex, Reader reader, int length)",
"constructor": false,
"full_signature": "@Override public void setCharacterStream(int parameterIndex, Reader reader, int length)",
"identifier": "setCharacterStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader, int length)",
"return": "void",
"signature": "void setCharacterStream(int parameterIndex, Reader reader, int length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setCharacterStream(int parameterIndex, Reader reader, long length)",
"constructor": false,
"full_signature": "@Override public void setCharacterStream(int parameterIndex, Reader reader, long length)",
"identifier": "setCharacterStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader, long length)",
"return": "void",
"signature": "void setCharacterStream(int parameterIndex, Reader reader, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setClob(int parameterIndex, Clob x)",
"constructor": false,
"full_signature": "@Override public void setClob(int parameterIndex, Clob x)",
"identifier": "setClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Clob x)",
"return": "void",
"signature": "void setClob(int parameterIndex, Clob x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setClob(int parameterIndex, Reader reader)",
"constructor": false,
"full_signature": "@Override public void setClob(int parameterIndex, Reader reader)",
"identifier": "setClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader)",
"return": "void",
"signature": "void setClob(int parameterIndex, Reader reader)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setClob(int parameterIndex, Reader reader, long length)",
"constructor": false,
"full_signature": "@Override public void setClob(int parameterIndex, Reader reader, long length)",
"identifier": "setClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader, long length)",
"return": "void",
"signature": "void setClob(int parameterIndex, Reader reader, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setDate(int parameterIndex, Date x)",
"constructor": false,
"full_signature": "@Override public void setDate(int parameterIndex, Date x)",
"identifier": "setDate",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Date x)",
"return": "void",
"signature": "void setDate(int parameterIndex, Date x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setDate(int parameterIndex, Date x, Calendar cal)",
"constructor": false,
"full_signature": "@Override public void setDate(int parameterIndex, Date x, Calendar cal)",
"identifier": "setDate",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Date x, Calendar cal)",
"return": "void",
"signature": "void setDate(int parameterIndex, Date x, Calendar cal)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setDouble(int parameterIndex, double x)",
"constructor": false,
"full_signature": "@Override public void setDouble(int parameterIndex, double x)",
"identifier": "setDouble",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, double x)",
"return": "void",
"signature": "void setDouble(int parameterIndex, double x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setFloat(int parameterIndex, float x)",
"constructor": false,
"full_signature": "@Override public void setFloat(int parameterIndex, float x)",
"identifier": "setFloat",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, float x)",
"return": "void",
"signature": "void setFloat(int parameterIndex, float x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setInt(int parameterIndex, int x)",
"constructor": false,
"full_signature": "@Override public void setInt(int parameterIndex, int x)",
"identifier": "setInt",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, int x)",
"return": "void",
"signature": "void setInt(int parameterIndex, int x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setLong(int parameterIndex, long x)",
"constructor": false,
"full_signature": "@Override public void setLong(int parameterIndex, long x)",
"identifier": "setLong",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, long x)",
"return": "void",
"signature": "void setLong(int parameterIndex, long x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNCharacterStream(int parameterIndex, Reader value)",
"constructor": false,
"full_signature": "@Override public void setNCharacterStream(int parameterIndex, Reader value)",
"identifier": "setNCharacterStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader value)",
"return": "void",
"signature": "void setNCharacterStream(int parameterIndex, Reader value)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNCharacterStream(int parameterIndex, Reader value, long length)",
"constructor": false,
"full_signature": "@Override public void setNCharacterStream(int parameterIndex, Reader value, long length)",
"identifier": "setNCharacterStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader value, long length)",
"return": "void",
"signature": "void setNCharacterStream(int parameterIndex, Reader value, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNClob(int parameterIndex, NClob value)",
"constructor": false,
"full_signature": "@Override public void setNClob(int parameterIndex, NClob value)",
"identifier": "setNClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, NClob value)",
"return": "void",
"signature": "void setNClob(int parameterIndex, NClob value)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNClob(int parameterIndex, Reader reader)",
"constructor": false,
"full_signature": "@Override public void setNClob(int parameterIndex, Reader reader)",
"identifier": "setNClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader)",
"return": "void",
"signature": "void setNClob(int parameterIndex, Reader reader)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNClob(int parameterIndex, Reader reader, long length)",
"constructor": false,
"full_signature": "@Override public void setNClob(int parameterIndex, Reader reader, long length)",
"identifier": "setNClob",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Reader reader, long length)",
"return": "void",
"signature": "void setNClob(int parameterIndex, Reader reader, long length)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNString(int parameterIndex, String value)",
"constructor": false,
"full_signature": "@Override public void setNString(int parameterIndex, String value)",
"identifier": "setNString",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, String value)",
"return": "void",
"signature": "void setNString(int parameterIndex, String value)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNull(int parameterIndex, int sqlType)",
"constructor": false,
"full_signature": "@Override public void setNull(int parameterIndex, int sqlType)",
"identifier": "setNull",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, int sqlType)",
"return": "void",
"signature": "void setNull(int parameterIndex, int sqlType)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setNull(int parameterIndex, int sqlType, String typeName)",
"constructor": false,
"full_signature": "@Override public void setNull(int parameterIndex, int sqlType, String typeName)",
"identifier": "setNull",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, int sqlType, String typeName)",
"return": "void",
"signature": "void setNull(int parameterIndex, int sqlType, String typeName)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setObject(int parameterIndex, Object o)",
"constructor": false,
"full_signature": "@Override public void setObject(int parameterIndex, Object o)",
"identifier": "setObject",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Object o)",
"return": "void",
"signature": "void setObject(int parameterIndex, Object o)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setObject(int parameterIndex, Object o, int targetSqlType)",
"constructor": false,
"full_signature": "@Override public void setObject(int parameterIndex, Object o, int targetSqlType)",
"identifier": "setObject",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Object o, int targetSqlType)",
"return": "void",
"signature": "void setObject(int parameterIndex, Object o, int targetSqlType)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)",
"constructor": false,
"full_signature": "@Override public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)",
"identifier": "setObject",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)",
"return": "void",
"signature": "void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setRef(int parameterIndex, Ref x)",
"constructor": false,
"full_signature": "@Override public void setRef(int parameterIndex, Ref x)",
"identifier": "setRef",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Ref x)",
"return": "void",
"signature": "void setRef(int parameterIndex, Ref x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setRowId(int parameterIndex, RowId x)",
"constructor": false,
"full_signature": "@Override public void setRowId(int parameterIndex, RowId x)",
"identifier": "setRowId",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, RowId x)",
"return": "void",
"signature": "void setRowId(int parameterIndex, RowId x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setSQLXML(int parameterIndex, SQLXML xmlObject)",
"constructor": false,
"full_signature": "@Override public void setSQLXML(int parameterIndex, SQLXML xmlObject)",
"identifier": "setSQLXML",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, SQLXML xmlObject)",
"return": "void",
"signature": "void setSQLXML(int parameterIndex, SQLXML xmlObject)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setShort(int parameterIndex, short x)",
"constructor": false,
"full_signature": "@Override public void setShort(int parameterIndex, short x)",
"identifier": "setShort",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, short x)",
"return": "void",
"signature": "void setShort(int parameterIndex, short x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setString(int parameterIndex, String x)",
"constructor": false,
"full_signature": "@Override public void setString(int parameterIndex, String x)",
"identifier": "setString",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, String x)",
"return": "void",
"signature": "void setString(int parameterIndex, String x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setTime(int parameterIndex, Time x)",
"constructor": false,
"full_signature": "@Override public void setTime(int parameterIndex, Time x)",
"identifier": "setTime",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Time x)",
"return": "void",
"signature": "void setTime(int parameterIndex, Time x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setTime(int parameterIndex, Time x, Calendar cal)",
"constructor": false,
"full_signature": "@Override public void setTime(int parameterIndex, Time x, Calendar cal)",
"identifier": "setTime",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Time x, Calendar cal)",
"return": "void",
"signature": "void setTime(int parameterIndex, Time x, Calendar cal)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setTimestampParameter(int parameterIndex, Timestamp x, Calendar cal)",
"constructor": false,
"full_signature": "private void setTimestampParameter(int parameterIndex, Timestamp x, Calendar cal)",
"identifier": "setTimestampParameter",
"modifiers": "private",
"parameters": "(int parameterIndex, Timestamp x, Calendar cal)",
"return": "void",
"signature": "void setTimestampParameter(int parameterIndex, Timestamp x, Calendar cal)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setTimestamp(int parameterIndex, Timestamp x)",
"constructor": false,
"full_signature": "@Override public void setTimestamp(int parameterIndex, Timestamp x)",
"identifier": "setTimestamp",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Timestamp x)",
"return": "void",
"signature": "void setTimestamp(int parameterIndex, Timestamp x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)",
"constructor": false,
"full_signature": "@Override public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)",
"identifier": "setTimestamp",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, Timestamp x, Calendar cal)",
"return": "void",
"signature": "void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setURL(int parameterIndex, URL x)",
"constructor": false,
"full_signature": "@Override public void setURL(int parameterIndex, URL x)",
"identifier": "setURL",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, URL x)",
"return": "void",
"signature": "void setURL(int parameterIndex, URL x)",
"testcase": false
},
{
"class_method_signature": "PhoenixPreparedStatement.setUnicodeStream(int parameterIndex, InputStream x, int length)",
"constructor": false,
"full_signature": "@Override public void setUnicodeStream(int parameterIndex, InputStream x, int length)",
"identifier": "setUnicodeStream",
"modifiers": "@Override public",
"parameters": "(int parameterIndex, InputStream x, int length)",
"return": "void",
"signature": "void setUnicodeStream(int parameterIndex, InputStream x, int length)",
"testcase": false
}
],
"superclass": "extends PhoenixStatement"
} | {
"body": "@Override\n public ResultSet executeQuery() throws SQLException {\n throwIfUnboundParameters();\n if (statement.getOperation().isMutation()) {\n throw new ExecuteQueryNotApplicableException(statement.getOperation());\n }\n \n return executeQuery(statement,createQueryLogger(statement,query));\n }",
"class_method_signature": "PhoenixPreparedStatement.executeQuery()",
"constructor": false,
"full_signature": "@Override public ResultSet executeQuery()",
"identifier": "executeQuery",
"invocations": [
"throwIfUnboundParameters",
"isMutation",
"getOperation",
"getOperation",
"executeQuery",
"createQueryLogger"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "ResultSet",
"signature": "ResultSet executeQuery()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_49 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetConsistency_TIMELINE_InProperties() {\n Properties props = new Properties();\n props.setProperty(PhoenixRuntime.CONSISTENCY_ATTRIB, \"TIMELINE\");\n assertTrue(JDBCUtil.getConsistencyLevel(\"localhost\", props, Consistency.STRONG.toString())\n == Consistency.TIMELINE);\n }",
"class_method_signature": "JDBCUtilTest.testGetConsistency_TIMELINE_InProperties()",
"constructor": false,
"full_signature": "@Test public void testGetConsistency_TIMELINE_InProperties()",
"identifier": "testGetConsistency_TIMELINE_InProperties",
"invocations": [
"setProperty",
"assertTrue",
"getConsistencyLevel",
"toString"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetConsistency_TIMELINE_InProperties()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue) {\n String consistency = findProperty(url, info, PhoenixRuntime.CONSISTENCY_ATTRIB);\n\n if(consistency != null && consistency.equalsIgnoreCase(Consistency.TIMELINE.toString())){\n return Consistency.TIMELINE;\n }\n\n return Consistency.STRONG;\n }",
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"invocations": [
"findProperty",
"equalsIgnoreCase",
"toString"
],
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_100 | {
"fields": [
{
"declarator": "bytesA = Bytes.toBytes(\"a\")",
"modifier": "",
"original_string": "byte[] bytesA = Bytes.toBytes(\"a\");",
"type": "byte[]",
"var_name": "bytesA"
},
{
"declarator": "bytesB = Bytes.toBytes(\"b\")",
"modifier": "",
"original_string": "byte[] bytesB = Bytes.toBytes(\"b\");",
"type": "byte[]",
"var_name": "bytesB"
},
{
"declarator": "bytesC = Bytes.toBytes(\"c\")",
"modifier": "",
"original_string": "byte[] bytesC = Bytes.toBytes(\"c\");",
"type": "byte[]",
"var_name": "bytesC"
},
{
"declarator": "bytesD = Bytes.toBytes(\"d\")",
"modifier": "",
"original_string": "byte[] bytesD = Bytes.toBytes(\"d\");",
"type": "byte[]",
"var_name": "bytesD"
},
{
"declarator": "bytesE = Bytes.toBytes(\"e\")",
"modifier": "",
"original_string": "byte[] bytesE = Bytes.toBytes(\"e\");",
"type": "byte[]",
"var_name": "bytesE"
},
{
"declarator": "a_b",
"modifier": "",
"original_string": "Bar a_b;",
"type": "Bar",
"var_name": "a_b"
},
{
"declarator": "b_c",
"modifier": "",
"original_string": "Bar b_c;",
"type": "Bar",
"var_name": "b_c"
},
{
"declarator": "c_d",
"modifier": "",
"original_string": "Bar c_d;",
"type": "Bar",
"var_name": "c_d"
},
{
"declarator": "d_e",
"modifier": "",
"original_string": "Bar d_e;",
"type": "Bar",
"var_name": "d_e"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/EquiDepthStreamHistogramTest.java",
"identifier": "EquiDepthStreamHistogramTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSplitBar() {\n EquiDepthStreamHistogram histo = new EquiDepthStreamHistogram(10);\n Bar targetBar = new Bar(bytesA, bytesC);\n targetBar.incrementCount(31);\n histo.bars.add(targetBar);\n histo.splitBar(targetBar);\n assertEquals(2, histo.bars.size());\n Bar newLeft = histo.bars.get(0);\n assertArrayEquals(bytesA, newLeft.getLeftBoundInclusive());\n assertArrayEquals(bytesB, newLeft.getRightBoundExclusive());\n assertEquals(15, newLeft.getSize());\n Bar newRight = histo.bars.get(1);\n assertArrayEquals(bytesB, newRight.getLeftBoundInclusive());\n assertArrayEquals(bytesC, newRight.getRightBoundExclusive());\n assertEquals(16, newRight.getSize());\n\n // test blocked bars are distributed correctly\n histo.bars.clear();\n targetBar = new Bar(bytesA, bytesE);\n targetBar.incrementCount(10);\n a_b.incrementCount(3);\n targetBar.addBlockedBar(a_b);\n b_c.incrementCount(4);\n targetBar.addBlockedBar(b_c);\n c_d.incrementCount(2);\n targetBar.addBlockedBar(c_d);\n d_e.incrementCount(1);\n targetBar.addBlockedBar(d_e);\n histo.bars.add(targetBar);\n histo.splitBar(targetBar);\n newLeft = histo.bars.get(0);\n newRight = histo.bars.get(1);\n assertEquals(10, newLeft.getSize());\n assertEquals(a_b, newLeft.getBlockedBars().get(0));\n assertEquals(d_e, newLeft.getBlockedBars().get(1));\n assertEquals(10, newRight.getSize());\n assertEquals(b_c, newRight.getBlockedBars().get(0));\n assertEquals(c_d, newRight.getBlockedBars().get(1));\n }",
"class_method_signature": "EquiDepthStreamHistogramTest.testSplitBar()",
"constructor": false,
"full_signature": "@Test public void testSplitBar()",
"identifier": "testSplitBar",
"invocations": [
"incrementCount",
"add",
"splitBar",
"assertEquals",
"size",
"get",
"assertArrayEquals",
"getLeftBoundInclusive",
"assertArrayEquals",
"getRightBoundExclusive",
"assertEquals",
"getSize",
"get",
"assertArrayEquals",
"getLeftBoundInclusive",
"assertArrayEquals",
"getRightBoundExclusive",
"assertEquals",
"getSize",
"clear",
"incrementCount",
"incrementCount",
"addBlockedBar",
"incrementCount",
"addBlockedBar",
"incrementCount",
"addBlockedBar",
"incrementCount",
"addBlockedBar",
"add",
"splitBar",
"get",
"get",
"assertEquals",
"getSize",
"assertEquals",
"get",
"getBlockedBars",
"assertEquals",
"get",
"getBlockedBars",
"assertEquals",
"getSize",
"assertEquals",
"get",
"getBlockedBars",
"assertEquals",
"get",
"getBlockedBars"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testSplitBar()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(EquiDepthStreamHistogram.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(EquiDepthStreamHistogram.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "MAX_COEF = 1.7",
"modifier": "private static final",
"original_string": "private static final double MAX_COEF = 1.7;",
"type": "double",
"var_name": "MAX_COEF"
},
{
"declarator": "DEFAULT_EXPANSION_FACTOR = 7",
"modifier": "private static final",
"original_string": "private static final short DEFAULT_EXPANSION_FACTOR = 7;",
"type": "short",
"var_name": "DEFAULT_EXPANSION_FACTOR"
},
{
"declarator": "numBuckets",
"modifier": "private",
"original_string": "private int numBuckets;",
"type": "int",
"var_name": "numBuckets"
},
{
"declarator": "maxBars",
"modifier": "private",
"original_string": "private int maxBars;",
"type": "int",
"var_name": "maxBars"
},
{
"declarator": "totalCount",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n long totalCount;",
"type": "long",
"var_name": "totalCount"
},
{
"declarator": "bars",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n List<Bar> bars;",
"type": "List<Bar>",
"var_name": "bars"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/EquiDepthStreamHistogram.java",
"identifier": "EquiDepthStreamHistogram",
"interfaces": "",
"methods": [
{
"class_method_signature": "EquiDepthStreamHistogram.EquiDepthStreamHistogram(int numBuckets)",
"constructor": true,
"full_signature": "public EquiDepthStreamHistogram(int numBuckets)",
"identifier": "EquiDepthStreamHistogram",
"modifiers": "public",
"parameters": "(int numBuckets)",
"return": "",
"signature": " EquiDepthStreamHistogram(int numBuckets)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"constructor": true,
"full_signature": "public EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"identifier": "EquiDepthStreamHistogram",
"modifiers": "public",
"parameters": "(int numBuckets, int expansionFactor)",
"return": "",
"signature": " EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.addValue(byte[] value)",
"constructor": false,
"full_signature": "public void addValue(byte[] value)",
"identifier": "addValue",
"modifiers": "public",
"parameters": "(byte[] value)",
"return": "void",
"signature": "void addValue(byte[] value)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.computeBuckets()",
"constructor": false,
"full_signature": "public List<Bucket> computeBuckets()",
"identifier": "computeBuckets",
"modifiers": "public",
"parameters": "()",
"return": "List<Bucket>",
"signature": "List<Bucket> computeBuckets()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getTotalCount()",
"constructor": false,
"full_signature": "public long getTotalCount()",
"identifier": "getTotalCount",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getTotalCount()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.splitBar(Bar origBar)",
"constructor": false,
"full_signature": "@VisibleForTesting void splitBar(Bar origBar)",
"identifier": "splitBar",
"modifiers": "@VisibleForTesting",
"parameters": "(Bar origBar)",
"return": "void",
"signature": "void splitBar(Bar origBar)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.mergeBars()",
"constructor": false,
"full_signature": "@VisibleForTesting boolean mergeBars()",
"identifier": "mergeBars",
"modifiers": "@VisibleForTesting",
"parameters": "()",
"return": "boolean",
"signature": "boolean mergeBars()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getBar(byte[] value)",
"constructor": false,
"full_signature": "@VisibleForTesting Bar getBar(byte[] value)",
"identifier": "getBar",
"modifiers": "@VisibleForTesting",
"parameters": "(byte[] value)",
"return": "Bar",
"signature": "Bar getBar(byte[] value)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getMaxBarSize()",
"constructor": false,
"full_signature": "private long getMaxBarSize()",
"identifier": "getMaxBarSize",
"modifiers": "private",
"parameters": "()",
"return": "long",
"signature": "long getMaxBarSize()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n void splitBar(Bar origBar) {\n // short circuit - don't split a bar of length 1\n if (Bytes.compareTo(origBar.leftBoundInclusive, origBar.rightBoundExclusive) == 0) {\n return;\n }\n if (bars.size() == maxBars) { // max bars hit, need to merge two existing bars first\n boolean mergeSuccessful = mergeBars();\n if (!mergeSuccessful) return; // don't split if we couldn't merge\n }\n byte[] mid = Bytes.split(origBar.getLeftBoundInclusive(), origBar.getRightBoundExclusive(), 1)[1];\n Bar newLeft = new Bar(origBar.getLeftBoundInclusive(), mid);\n Bar newRight = new Bar(mid, origBar.getRightBoundExclusive());\n // distribute blocked bars between the new bars\n long leftSize = 0;\n long bbAggCount = origBar.getBlockedBarsSize();\n for (Bar bb : origBar.getBlockedBars()) {\n long bbSize = bb.getSize();\n if (leftSize + bbSize < bbAggCount/2) {\n leftSize += bbSize;\n newLeft.addBlockedBar(bb);\n } else {\n newRight.addBlockedBar(bb);\n }\n }\n // at this point the two new bars may have different counts,\n // distribute the rest of origBar's count to make them as close as possible\n long countToDistribute = origBar.getSize() - bbAggCount;\n long rightSize = newRight.getSize();\n long sizeDiff = Math.abs(leftSize - rightSize);\n Bar smallerBar = leftSize <= rightSize ? newLeft : newRight;\n if (sizeDiff <= countToDistribute) {\n smallerBar.incrementCount(sizeDiff);\n countToDistribute -= sizeDiff;\n long halfDistrib = countToDistribute / 2;\n newLeft.incrementCount(halfDistrib);\n newRight.incrementCount(countToDistribute - halfDistrib);\n } else {\n smallerBar.incrementCount(countToDistribute);\n }\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(String.format(\"Split orig=%s , newLeft=%s , newRight=%s\",\n origBar, newLeft, newRight));\n }\n bars.remove(origBar);\n bars.add(newLeft);\n bars.add(newRight);\n // technically don't need to sort here, as we can get the index from getBar,\n // and put the new bars in the same index. But we'd have to handle merge as well,\n // doable but not worth the more complicated code since bars.size is fixed and generally small\n Collections.sort(bars);\n }",
"class_method_signature": "EquiDepthStreamHistogram.splitBar(Bar origBar)",
"constructor": false,
"full_signature": "@VisibleForTesting void splitBar(Bar origBar)",
"identifier": "splitBar",
"invocations": [
"compareTo",
"size",
"mergeBars",
"split",
"getLeftBoundInclusive",
"getRightBoundExclusive",
"getLeftBoundInclusive",
"getRightBoundExclusive",
"getBlockedBarsSize",
"getBlockedBars",
"getSize",
"addBlockedBar",
"addBlockedBar",
"getSize",
"getSize",
"abs",
"incrementCount",
"incrementCount",
"incrementCount",
"incrementCount",
"isTraceEnabled",
"trace",
"format",
"remove",
"add",
"add",
"sort"
],
"modifiers": "@VisibleForTesting",
"parameters": "(Bar origBar)",
"return": "void",
"signature": "void splitBar(Bar origBar)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_15 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/PhoenixRuntimeTest.java",
"identifier": "PhoenixRuntimeTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testParseArguments_FullOption() {\n PhoenixRuntime.ExecutionCommand execCmd = PhoenixRuntime.ExecutionCommand.parseArgs(\n new String[] { \"-t\", \"mytable\", \"myzkhost:2181\", \"--strict\", \"file1.sql\",\n \"test.csv\", \"file2.sql\", \"--header\", \"one, two,three\", \"-a\", \"!\", \"-d\",\n \":\", \"-q\", \"3\", \"-e\", \"4\" });\n\n assertEquals(\"myzkhost:2181\", execCmd.getConnectionString());\n\n assertEquals(ImmutableList.of(\"file1.sql\", \"test.csv\", \"file2.sql\"),\n execCmd.getInputFiles());\n\n assertEquals(':', execCmd.getFieldDelimiter());\n assertEquals('3', execCmd.getQuoteCharacter());\n assertEquals(Character.valueOf('4'), execCmd.getEscapeCharacter());\n\n assertEquals(\"mytable\", execCmd.getTableName());\n\n assertEquals(ImmutableList.of(\"one\", \"two\", \"three\"), execCmd.getColumns());\n assertTrue(execCmd.isStrict());\n assertEquals(\"!\", execCmd.getArrayElementSeparator());\n }",
"class_method_signature": "PhoenixRuntimeTest.testParseArguments_FullOption()",
"constructor": false,
"full_signature": "@Test public void testParseArguments_FullOption()",
"identifier": "testParseArguments_FullOption",
"invocations": [
"parseArgs",
"assertEquals",
"getConnectionString",
"assertEquals",
"of",
"getInputFiles",
"assertEquals",
"getFieldDelimiter",
"assertEquals",
"getQuoteCharacter",
"assertEquals",
"valueOf",
"getEscapeCharacter",
"assertEquals",
"getTableName",
"assertEquals",
"of",
"getColumns",
"assertTrue",
"isStrict",
"assertEquals",
"getArrayElementSeparator"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseArguments_FullOption()",
"testcase": true
} | {
"fields": [
{
"declarator": "JDBC_PROTOCOL = \"jdbc:phoenix\"",
"modifier": "public final static",
"original_string": "public final static String JDBC_PROTOCOL = \"jdbc:phoenix\";",
"type": "String",
"var_name": "JDBC_PROTOCOL"
},
{
"declarator": "JDBC_THIN_PROTOCOL = \"jdbc:phoenix:thin\"",
"modifier": "public final static",
"original_string": "public final static String JDBC_THIN_PROTOCOL = \"jdbc:phoenix:thin\";",
"type": "String",
"var_name": "JDBC_THIN_PROTOCOL"
},
{
"declarator": "JDBC_PROTOCOL_TERMINATOR = ';'",
"modifier": "public final static",
"original_string": "public final static char JDBC_PROTOCOL_TERMINATOR = ';';",
"type": "char",
"var_name": "JDBC_PROTOCOL_TERMINATOR"
},
{
"declarator": "JDBC_PROTOCOL_SEPARATOR = ':'",
"modifier": "public final static",
"original_string": "public final static char JDBC_PROTOCOL_SEPARATOR = ':';",
"type": "char",
"var_name": "JDBC_PROTOCOL_SEPARATOR"
},
{
"declarator": "EMBEDDED_JDBC_PROTOCOL = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR",
"modifier": "@Deprecated\n public final static",
"original_string": "@Deprecated\n public final static String EMBEDDED_JDBC_PROTOCOL = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR;",
"type": "String",
"var_name": "EMBEDDED_JDBC_PROTOCOL"
},
{
"declarator": "CURRENT_SCN_ATTRIB = \"CurrentSCN\"",
"modifier": "public static final",
"original_string": "public static final String CURRENT_SCN_ATTRIB = \"CurrentSCN\";",
"type": "String",
"var_name": "CURRENT_SCN_ATTRIB"
},
{
"declarator": "BUILD_INDEX_AT_ATTRIB = \"BuildIndexAt\"",
"modifier": "public static final",
"original_string": "public static final String BUILD_INDEX_AT_ATTRIB = \"BuildIndexAt\";",
"type": "String",
"var_name": "BUILD_INDEX_AT_ATTRIB"
},
{
"declarator": "TENANT_ID_ATTRIB = \"TenantId\"",
"modifier": "public static final",
"original_string": "public static final String TENANT_ID_ATTRIB = \"TenantId\";",
"type": "String",
"var_name": "TENANT_ID_ATTRIB"
},
{
"declarator": "NO_UPGRADE_ATTRIB = \"NoUpgrade\"",
"modifier": "public static final",
"original_string": "public static final String NO_UPGRADE_ATTRIB = \"NoUpgrade\";",
"type": "String",
"var_name": "NO_UPGRADE_ATTRIB"
},
{
"declarator": "UPSERT_BATCH_SIZE_ATTRIB = \"UpsertBatchSize\"",
"modifier": "public final static",
"original_string": "public final static String UPSERT_BATCH_SIZE_ATTRIB = \"UpsertBatchSize\";",
"type": "String",
"var_name": "UPSERT_BATCH_SIZE_ATTRIB"
},
{
"declarator": "UPSERT_BATCH_SIZE_BYTES_ATTRIB = \"UpsertBatchSizeBytes\"",
"modifier": "public final static",
"original_string": "public final static String UPSERT_BATCH_SIZE_BYTES_ATTRIB = \"UpsertBatchSizeBytes\";",
"type": "String",
"var_name": "UPSERT_BATCH_SIZE_BYTES_ATTRIB"
},
{
"declarator": "AUTO_COMMIT_ATTRIB = \"AutoCommit\"",
"modifier": "public static final",
"original_string": "public static final String AUTO_COMMIT_ATTRIB = \"AutoCommit\";",
"type": "String",
"var_name": "AUTO_COMMIT_ATTRIB"
},
{
"declarator": "CONSISTENCY_ATTRIB = \"Consistency\"",
"modifier": "public static final",
"original_string": "public static final String CONSISTENCY_ATTRIB = \"Consistency\";",
"type": "String",
"var_name": "CONSISTENCY_ATTRIB"
},
{
"declarator": "REQUEST_METRIC_ATTRIB = \"RequestMetric\"",
"modifier": "public static final",
"original_string": "public static final String REQUEST_METRIC_ATTRIB = \"RequestMetric\";",
"type": "String",
"var_name": "REQUEST_METRIC_ATTRIB"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_BYTES_ESTIMATE_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_BYTES_ESTIMATE_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ROWS_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ROWS_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN"
},
{
"declarator": "CONNECTION_PROPERTIES = {\n CURRENT_SCN_ATTRIB,\n TENANT_ID_ATTRIB,\n UPSERT_BATCH_SIZE_ATTRIB,\n AUTO_COMMIT_ATTRIB,\n CONSISTENCY_ATTRIB,\n REQUEST_METRIC_ATTRIB,\n }",
"modifier": "public final static",
"original_string": "public final static String[] CONNECTION_PROPERTIES = {\n CURRENT_SCN_ATTRIB,\n TENANT_ID_ATTRIB,\n UPSERT_BATCH_SIZE_ATTRIB,\n AUTO_COMMIT_ATTRIB,\n CONSISTENCY_ATTRIB,\n REQUEST_METRIC_ATTRIB,\n };",
"type": "String[]",
"var_name": "CONNECTION_PROPERTIES"
},
{
"declarator": "CONNECTIONLESS = \"none\"",
"modifier": "public final static",
"original_string": "public final static String CONNECTIONLESS = \"none\";",
"type": "String",
"var_name": "CONNECTIONLESS"
},
{
"declarator": "ANNOTATION_ATTRIB_PREFIX = \"phoenix.annotation.\"",
"modifier": "public static final",
"original_string": "public static final String ANNOTATION_ATTRIB_PREFIX = \"phoenix.annotation.\";",
"type": "String",
"var_name": "ANNOTATION_ATTRIB_PREFIX"
},
{
"declarator": "HEADER_IN_LINE = \"in-line\"",
"modifier": "private static final",
"original_string": "private static final String HEADER_IN_LINE = \"in-line\";",
"type": "String",
"var_name": "HEADER_IN_LINE"
},
{
"declarator": "SQL_FILE_EXT = \".sql\"",
"modifier": "private static final",
"original_string": "private static final String SQL_FILE_EXT = \".sql\";",
"type": "String",
"var_name": "SQL_FILE_EXT"
},
{
"declarator": "CSV_FILE_EXT = \".csv\"",
"modifier": "private static final",
"original_string": "private static final String CSV_FILE_EXT = \".csv\";",
"type": "String",
"var_name": "CSV_FILE_EXT"
},
{
"declarator": "PHOENIX_TEST_DRIVER_URL_PARAM = \"test=true\"",
"modifier": "public static final",
"original_string": "public static final String PHOENIX_TEST_DRIVER_URL_PARAM = \"test=true\";",
"type": "String",
"var_name": "PHOENIX_TEST_DRIVER_URL_PARAM"
},
{
"declarator": "SCHEMA_ATTRIB = \"schema\"",
"modifier": "public static final",
"original_string": "public static final String SCHEMA_ATTRIB = \"schema\";",
"type": "String",
"var_name": "SCHEMA_ATTRIB"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java",
"identifier": "PhoenixRuntime",
"interfaces": "",
"methods": [
{
"class_method_signature": "PhoenixRuntime.main(String [] args)",
"constructor": false,
"full_signature": "public static void main(String [] args)",
"identifier": "main",
"modifiers": "public static",
"parameters": "(String [] args)",
"return": "void",
"signature": "void main(String [] args)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.PhoenixRuntime()",
"constructor": true,
"full_signature": "private PhoenixRuntime()",
"identifier": "PhoenixRuntime",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " PhoenixRuntime()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.executeStatements(Connection conn, Reader reader, List<Object> binds)",
"constructor": false,
"full_signature": "public static int executeStatements(Connection conn, Reader reader, List<Object> binds)",
"identifier": "executeStatements",
"modifiers": "public static",
"parameters": "(Connection conn, Reader reader, List<Object> binds)",
"return": "int",
"signature": "int executeStatements(Connection conn, Reader reader, List<Object> binds)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedData(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated public static List<Cell> getUncommittedData(Connection conn)",
"identifier": "getUncommittedData",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn)",
"return": "List<Cell>",
"signature": "List<Cell> getUncommittedData(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedDataIterator(Connection conn)",
"constructor": false,
"full_signature": "public static Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn)",
"identifier": "getUncommittedDataIterator",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Iterator<Pair<byte[],List<Cell>>>",
"signature": "Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"constructor": false,
"full_signature": "public static Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"identifier": "getUncommittedDataIterator",
"modifiers": "public static",
"parameters": "(Connection conn, boolean includeMutableIndexes)",
"return": "Iterator<Pair<byte[],List<Cell>>>",
"signature": "Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTableNoCache(Connection conn, String name)",
"constructor": false,
"full_signature": "public static PTable getTableNoCache(Connection conn, String name)",
"identifier": "getTableNoCache",
"modifiers": "public static",
"parameters": "(Connection conn, String name)",
"return": "PTable",
"signature": "PTable getTableNoCache(Connection conn, String name)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, String name)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, String name)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, String name)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, String name)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, String tenantId, String fullTableName)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, String tenantId, String fullTableName)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, String tenantId, String fullTableName)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, String tenantId, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"constructor": false,
"full_signature": "public static List<ColumnInfo> generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"identifier": "generateColumnInfo",
"modifiers": "public static",
"parameters": "(Connection conn,\n String tableName, List<String> columns)",
"return": "List<ColumnInfo>",
"signature": "List<ColumnInfo> generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumnInfo(PTable table, String columnName)",
"constructor": false,
"full_signature": "public static ColumnInfo getColumnInfo(PTable table, String columnName)",
"identifier": "getColumnInfo",
"modifiers": "public static",
"parameters": "(PTable table, String columnName)",
"return": "ColumnInfo",
"signature": "ColumnInfo getColumnInfo(PTable table, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumnInfo(PColumn pColumn)",
"constructor": false,
"full_signature": "public static ColumnInfo getColumnInfo(PColumn pColumn)",
"identifier": "getColumnInfo",
"modifiers": "public static",
"parameters": "(PColumn pColumn)",
"return": "ColumnInfo",
"signature": "ColumnInfo getColumnInfo(PColumn pColumn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOptimizedQueryPlan(PreparedStatement stmt)",
"constructor": false,
"full_signature": "public static QueryPlan getOptimizedQueryPlan(PreparedStatement stmt)",
"identifier": "getOptimizedQueryPlan",
"modifiers": "public static",
"parameters": "(PreparedStatement stmt)",
"return": "QueryPlan",
"signature": "QueryPlan getOptimizedQueryPlan(PreparedStatement stmt)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.hasOrderBy(QueryPlan plan)",
"constructor": false,
"full_signature": "public static boolean hasOrderBy(QueryPlan plan)",
"identifier": "hasOrderBy",
"modifiers": "public static",
"parameters": "(QueryPlan plan)",
"return": "boolean",
"signature": "boolean hasOrderBy(QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getLimit(QueryPlan plan)",
"constructor": false,
"full_signature": "public static int getLimit(QueryPlan plan)",
"identifier": "getLimit",
"modifiers": "public static",
"parameters": "(QueryPlan plan)",
"return": "int",
"signature": "int getLimit(QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.addQuotes(String str)",
"constructor": false,
"full_signature": "private static String addQuotes(String str)",
"identifier": "addQuotes",
"modifiers": "private static",
"parameters": "(String str)",
"return": "String",
"signature": "String addQuotes(String str)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsForSql(Connection conn, QueryPlan plan)",
"constructor": false,
"full_signature": "public static List<Pair<String, String>> getPkColsForSql(Connection conn, QueryPlan plan)",
"identifier": "getPkColsForSql",
"modifiers": "public static",
"parameters": "(Connection conn, QueryPlan plan)",
"return": "List<Pair<String, String>>",
"signature": "List<Pair<String, String>> getPkColsForSql(Connection conn, QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated public static void getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"identifier": "getPkColsForSql",
"modifiers": "@Deprecated public static",
"parameters": "(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"return": "void",
"signature": "void getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated public static void getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"identifier": "getPkColsDataTypesForSql",
"modifiers": "@Deprecated public static",
"parameters": "(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"return": "void",
"signature": "void getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getSqlTypeName(PColumn pCol)",
"constructor": false,
"full_signature": "public static String getSqlTypeName(PColumn pCol)",
"identifier": "getSqlTypeName",
"modifiers": "public static",
"parameters": "(PColumn pCol)",
"return": "String",
"signature": "String getSqlTypeName(PColumn pCol)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public static String getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"identifier": "getSqlTypeName",
"modifiers": "public static",
"parameters": "(PDataType dataType, Integer maxLength, Integer scale)",
"return": "String",
"signature": "String getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"constructor": false,
"full_signature": "public static String getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"identifier": "getArraySqlTypeName",
"modifiers": "public static",
"parameters": "(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"return": "String",
"signature": "String getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"constructor": false,
"full_signature": "private static String appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"identifier": "appendMaxLengthAndScale",
"modifiers": "private static",
"parameters": "(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"return": "String",
"signature": "String appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated private static List<PColumn> getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"identifier": "getPkColumns",
"modifiers": "@Deprecated private static",
"parameters": "(PTable ptable, Connection conn, boolean forDataTable)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColumns(PTable ptable, Connection conn)",
"constructor": false,
"full_signature": "private static List<PColumn> getPkColumns(PTable ptable, Connection conn)",
"identifier": "getPkColumns",
"modifiers": "private static",
"parameters": "(PTable ptable, Connection conn)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPkColumns(PTable ptable, Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated public static byte[] encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"identifier": "encodeValues",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"return": "byte[]",
"signature": "byte[] encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated public static Object[] decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"identifier": "decodeValues",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"return": "Object[]",
"signature": "Object[] decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "public static byte[] encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"identifier": "encodeColumnValues",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"return": "byte[]",
"signature": "byte[] encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "public static Object[] decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"identifier": "decodeColumnValues",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"return": "Object[]",
"signature": "Object[] decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.buildKeyValueSchema(List<PColumn> columns)",
"constructor": false,
"full_signature": "public static KeyValueSchema buildKeyValueSchema(List<PColumn> columns)",
"identifier": "buildKeyValueSchema",
"modifiers": "public static",
"parameters": "(List<PColumn> columns)",
"return": "KeyValueSchema",
"signature": "KeyValueSchema buildKeyValueSchema(List<PColumn> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getMinNullableIndex(List<PColumn> columns)",
"constructor": false,
"full_signature": "private static int getMinNullableIndex(List<PColumn> columns)",
"identifier": "getMinNullableIndex",
"modifiers": "private static",
"parameters": "(List<PColumn> columns)",
"return": "int",
"signature": "int getMinNullableIndex(List<PColumn> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated private static List<PColumn> getPColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getPColumns",
"modifiers": "@Deprecated private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPColumn(PTable table, @Nullable String familyName, String columnName)",
"constructor": false,
"full_signature": "@Deprecated private static PColumn getPColumn(PTable table, @Nullable String familyName, String columnName)",
"identifier": "getPColumn",
"modifiers": "@Deprecated private static",
"parameters": "(PTable table, @Nullable String familyName, String columnName)",
"return": "PColumn",
"signature": "PColumn getPColumn(PTable table, @Nullable String familyName, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getColumns",
"modifiers": "private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumn(PTable table, @Nullable String familyName, String columnName)",
"constructor": false,
"full_signature": "private static PColumn getColumn(PTable table, @Nullable String familyName, String columnName)",
"identifier": "getColumn",
"modifiers": "private static",
"parameters": "(PTable table, @Nullable String familyName, String columnName)",
"return": "PColumn",
"signature": "PColumn getColumn(PTable table, @Nullable String familyName, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTenantIdExpression(Connection conn, String fullTableName)",
"constructor": false,
"full_signature": "public static Expression getTenantIdExpression(Connection conn, String fullTableName)",
"identifier": "getTenantIdExpression",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName)",
"return": "Expression",
"signature": "Expression getTenantIdExpression(Connection conn, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getFirstPKColumnExpression(Connection conn, String fullTableName)",
"constructor": false,
"full_signature": "public static Expression getFirstPKColumnExpression(Connection conn, String fullTableName)",
"identifier": "getFirstPKColumnExpression",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName)",
"return": "Expression",
"signature": "Expression getFirstPKColumnExpression(Connection conn, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getFirstPKColumnExpression(PTable table)",
"constructor": false,
"full_signature": "private static Expression getFirstPKColumnExpression(PTable table)",
"identifier": "getFirstPKColumnExpression",
"modifiers": "private static",
"parameters": "(PTable table)",
"return": "Expression",
"signature": "Expression getFirstPKColumnExpression(PTable table)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getGlobalPhoenixClientMetrics()",
"constructor": false,
"full_signature": "public static Collection<GlobalMetric> getGlobalPhoenixClientMetrics()",
"identifier": "getGlobalPhoenixClientMetrics",
"modifiers": "public static",
"parameters": "()",
"return": "Collection<GlobalMetric>",
"signature": "Collection<GlobalMetric> getGlobalPhoenixClientMetrics()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.areGlobalClientMetricsBeingCollected()",
"constructor": false,
"full_signature": "public static boolean areGlobalClientMetricsBeingCollected()",
"identifier": "areGlobalClientMetricsBeingCollected",
"modifiers": "public static",
"parameters": "()",
"return": "boolean",
"signature": "boolean areGlobalClientMetricsBeingCollected()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.createMetricMap(Map<MetricType, Long> metricInfoMap)",
"constructor": false,
"full_signature": "private static Map<String, Long> createMetricMap(Map<MetricType, Long> metricInfoMap)",
"identifier": "createMetricMap",
"modifiers": "private static",
"parameters": "(Map<MetricType, Long> metricInfoMap)",
"return": "Map<String, Long>",
"signature": "Map<String, Long> createMetricMap(Map<MetricType, Long> metricInfoMap)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"constructor": false,
"full_signature": "private static Map<String, Map<String, Long>> transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"identifier": "transformMetrics",
"modifiers": "private static",
"parameters": "(Map<String, Map<MetricType, Long>> metricMap)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getRequestReadMetricInfo(ResultSet rs)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getRequestReadMetricInfo(ResultSet rs)",
"identifier": "getRequestReadMetricInfo",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getRequestReadMetricInfo(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getRequestReadMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "@Deprecated // use getRequestReadMetricInfo public static Map<String, Map<String, Long>> getRequestReadMetrics(ResultSet rs)",
"identifier": "getRequestReadMetrics",
"modifiers": "@Deprecated // use getRequestReadMetricInfo public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getRequestReadMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOverAllReadRequestMetricInfo(ResultSet rs)",
"constructor": false,
"full_signature": "public static Map<MetricType, Long> getOverAllReadRequestMetricInfo(ResultSet rs)",
"identifier": "getOverAllReadRequestMetricInfo",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "Map<MetricType, Long>",
"signature": "Map<MetricType, Long> getOverAllReadRequestMetricInfo(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOverAllReadRequestMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "@Deprecated // use getOverAllReadRequestMetricInfo public static Map<String, Long> getOverAllReadRequestMetrics(ResultSet rs)",
"identifier": "getOverAllReadRequestMetrics",
"modifiers": "@Deprecated // use getOverAllReadRequestMetricInfo public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Long>",
"signature": "Map<String, Long> getOverAllReadRequestMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"identifier": "getWriteMetricInfoForMutationsSinceLastReset",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated // use getWriteMetricInfoForMutationsSinceLastReset public static Map<String, Map<String, Long>> getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"identifier": "getWriteMetricsForMutationsSinceLastReset",
"modifiers": "@Deprecated // use getWriteMetricInfoForMutationsSinceLastReset public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"identifier": "getReadMetricInfoForMutationsSinceLastReset",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getReadMetricsForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated // use getReadMetricInfoForMutationsSinceLastReset public static Map<String, Map<String, Long>> getReadMetricsForMutationsSinceLastReset(Connection conn)",
"identifier": "getReadMetricsForMutationsSinceLastReset",
"modifiers": "@Deprecated // use getReadMetricInfoForMutationsSinceLastReset public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getReadMetricsForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.resetMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "public static void resetMetrics(ResultSet rs)",
"identifier": "resetMetrics",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "void",
"signature": "void resetMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.resetMetrics(Connection conn)",
"constructor": false,
"full_signature": "public static void resetMetrics(Connection conn)",
"identifier": "resetMetrics",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "void",
"signature": "void resetMetrics(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"constructor": false,
"full_signature": "public static long getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"identifier": "getWallClockTimeFromCellTimeStamp",
"modifiers": "public static",
"parameters": "(long tsOfCell)",
"return": "long",
"signature": "long getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getCurrentScn(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getCurrentScn(ReadOnlyProps props)",
"identifier": "getCurrentScn",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "long",
"signature": "long getCurrentScn(ReadOnlyProps props)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns) throws SQLException {\n List<PColumn> pColumns = new ArrayList<PColumn>(columns.size());\n for (Pair<String, String> column : columns) {\n pColumns.add(getColumn(table, column.getFirst(), column.getSecond()));\n }\n return pColumns;\n }",
"class_method_signature": "PhoenixRuntime.getColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getColumns",
"invocations": [
"size",
"add",
"getColumn",
"getFirst",
"getSecond"
],
"modifiers": "private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_157 | {
"fields": [
{
"declarator": "TABLE_NAME = TableName.create(null,\"TABLE1\")",
"modifier": "private static",
"original_string": "private static TableName TABLE_NAME = TableName.create(null,\"TABLE1\");",
"type": "TableName",
"var_name": "TABLE_NAME"
},
{
"declarator": "offsetCompiler",
"modifier": "",
"original_string": "RVCOffsetCompiler offsetCompiler;",
"type": "RVCOffsetCompiler",
"var_name": "offsetCompiler"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/compile/RVCOffsetCompilerTest.java",
"identifier": "RVCOffsetCompilerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void buildListOfRowKeyColumnExpressionsIndexTest() throws Exception {\n List<Expression> expressions = new ArrayList<>();\n\n PColumn\n column = new PColumnImpl(PName.EMPTY_COLUMN_NAME, PName.EMPTY_NAME, PDecimal.INSTANCE, 10, 1,\n true, 1, SortOrder.getDefault(), 0, null, false, null, false, false, null, HConstants.LATEST_TIMESTAMP);\n\n\n RowKeyColumnExpression rvc1 = new RowKeyColumnExpression(column,null);\n RowKeyColumnExpression rvc2 = new RowKeyColumnExpression(column, null);\n\n Expression coerce1 = CoerceExpression.create(rvc1,PDecimal.INSTANCE);\n Expression coerce2 = CoerceExpression.create(rvc2,PDecimal.INSTANCE);\n\n ComparisonExpression expression1 = mock(ComparisonExpression.class);\n ComparisonExpression expression2 = mock(ComparisonExpression.class);\n\n Mockito.when(expression1.getChildren()).thenReturn(Lists.newArrayList(coerce1));\n Mockito.when(expression2.getChildren()).thenReturn(Lists.newArrayList(coerce2));\n\n expressions.add(expression1);\n expressions.add(expression2);\n\n AndExpression expression = mock(AndExpression.class);\n Mockito.when(expression.getChildren()).thenReturn(expressions);\n\n RVCOffsetCompiler.RowKeyColumnExpressionOutput\n output = offsetCompiler.buildListOfRowKeyColumnExpressions(expression, true);\n List<RowKeyColumnExpression>\n result = output.getRowKeyColumnExpressions();\n\n assertEquals(2,result.size());\n assertEquals(rvc1,result.get(0));\n assertEquals(rvc2,result.get(1));\n }",
"class_method_signature": "RVCOffsetCompilerTest.buildListOfRowKeyColumnExpressionsIndexTest()",
"constructor": false,
"full_signature": "@Test public void buildListOfRowKeyColumnExpressionsIndexTest()",
"identifier": "buildListOfRowKeyColumnExpressionsIndexTest",
"invocations": [
"getDefault",
"create",
"create",
"mock",
"mock",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"add",
"add",
"mock",
"thenReturn",
"when",
"getChildren",
"buildListOfRowKeyColumnExpressions",
"getRowKeyColumnExpressions",
"assertEquals",
"size",
"assertEquals",
"get",
"assertEquals",
"get"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void buildListOfRowKeyColumnExpressionsIndexTest()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class)",
"modifier": "private final static",
"original_string": "private final static Logger LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INSTANCE = new RVCOffsetCompiler()",
"modifier": "private final static",
"original_string": "private final static RVCOffsetCompiler INSTANCE = new RVCOffsetCompiler();",
"type": "RVCOffsetCompiler",
"var_name": "INSTANCE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/compile/RVCOffsetCompiler.java",
"identifier": "RVCOffsetCompiler",
"interfaces": "",
"methods": [
{
"class_method_signature": "RVCOffsetCompiler.RVCOffsetCompiler()",
"constructor": true,
"full_signature": "private RVCOffsetCompiler()",
"identifier": "RVCOffsetCompiler",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " RVCOffsetCompiler()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getInstance()",
"constructor": false,
"full_signature": "public static RVCOffsetCompiler getInstance()",
"identifier": "getInstance",
"modifiers": "public static",
"parameters": "()",
"return": "RVCOffsetCompiler",
"signature": "RVCOffsetCompiler getInstance()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"constructor": false,
"full_signature": "public CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"identifier": "getRVCOffset",
"modifiers": "public",
"parameters": "(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"return": "CompiledOffset",
"signature": "CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"identifier": "buildListOfColumnParseNodes",
"modifiers": "@VisibleForTesting",
"parameters": "(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"return": "List<ColumnParseNode>",
"signature": "List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions (\n Expression whereExpression, boolean isIndex)\n throws RowValueConstructorOffsetNotCoercibleException, RowValueConstructorOffsetInternalErrorException {\n\n boolean trailingNull = false;\n List<Expression> expressions;\n if((whereExpression instanceof AndExpression)) {\n expressions = whereExpression.getChildren();\n } else if (whereExpression instanceof ComparisonExpression || whereExpression instanceof IsNullExpression) {\n expressions = Lists.newArrayList(whereExpression);\n } else {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset, expected either a Comparison/IsNull Expression of a AndExpression got \"\n + whereExpression.getClass().getName());\n throw new RowValueConstructorOffsetInternalErrorException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n List<RowKeyColumnExpression>\n rowKeyColumnExpressionList =\n new ArrayList<RowKeyColumnExpression>();\n for (int i = 0; i < expressions.size(); i++) {\n Expression child = expressions.get(i);\n if (!(child instanceof ComparisonExpression || child instanceof IsNullExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n //if this is the last position\n if(i == expressions.size() - 1) {\n if(child instanceof IsNullExpression) {\n trailingNull = true;\n }\n }\n\n //For either case comparison/isNull the first child should be the rowkey\n Expression possibleRowKeyColumnExpression = child.getChildren().get(0);\n\n // Note that since we store indexes in variable length form there may be casts from fixed types to\n // variable length\n if (isIndex) {\n if (possibleRowKeyColumnExpression instanceof CoerceExpression) {\n // Cast today has 1 child\n possibleRowKeyColumnExpression =\n ((CoerceExpression) possibleRowKeyColumnExpression).getChild();\n }\n }\n\n if (!(possibleRowKeyColumnExpression instanceof RowKeyColumnExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n rowKeyColumnExpressionList.add((RowKeyColumnExpression) possibleRowKeyColumnExpression);\n }\n return new RowKeyColumnExpressionOutput(rowKeyColumnExpressionList,trailingNull);\n }",
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"invocations": [
"getChildren",
"newArrayList",
"warn",
"getName",
"getClass",
"size",
"get",
"warn",
"size",
"get",
"getChildren",
"getChild",
"warn",
"add"
],
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_42 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetAutoCommit_NotSpecified_DefaultFalse() {\n assertFalse(JDBCUtil.getAutoCommit(\"localhost\", new Properties(), false));\n }",
"class_method_signature": "JDBCUtilTest.testGetAutoCommit_NotSpecified_DefaultFalse()",
"constructor": false,
"full_signature": "@Test public void testGetAutoCommit_NotSpecified_DefaultFalse()",
"identifier": "testGetAutoCommit_NotSpecified_DefaultFalse",
"invocations": [
"assertFalse",
"getAutoCommit"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetAutoCommit_NotSpecified_DefaultFalse()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue) {\n String autoCommit = findProperty(url, info, PhoenixRuntime.AUTO_COMMIT_ATTRIB);\n if (autoCommit == null) {\n return defaultValue;\n }\n return Boolean.valueOf(autoCommit);\n }",
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"invocations": [
"findProperty",
"valueOf"
],
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_54 | {
"fields": [
{
"declarator": "conn",
"modifier": "private",
"original_string": "private Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "converter",
"modifier": "private",
"original_string": "private StringToArrayConverter converter;",
"type": "StringToArrayConverter",
"var_name": "converter"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/csv/StringToArrayConverterTest.java",
"identifier": "StringToArrayConverterTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testToArray_IntegerValues() throws SQLException {\n StringToArrayConverter intArrayConverter = new StringToArrayConverter(\n conn, \":\", PInteger.INSTANCE);\n Array intArray = intArrayConverter.toArray(\"1:2:3\");\n assertArrayEquals(\n new int[]{1, 2, 3},\n (int[]) intArray.getArray());\n }",
"class_method_signature": "StringToArrayConverterTest.testToArray_IntegerValues()",
"constructor": false,
"full_signature": "@Test public void testToArray_IntegerValues()",
"identifier": "testToArray_IntegerValues",
"invocations": [
"toArray",
"assertArrayEquals",
"getArray"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToArray_IntegerValues()",
"testcase": true
} | {
"fields": [
{
"declarator": "splitter",
"modifier": "private final",
"original_string": "private final Splitter splitter;",
"type": "Splitter",
"var_name": "splitter"
},
{
"declarator": "conn",
"modifier": "private final",
"original_string": "private final Connection conn;",
"type": "Connection",
"var_name": "conn"
},
{
"declarator": "elementDataType",
"modifier": "private final",
"original_string": "private final PDataType elementDataType;",
"type": "PDataType",
"var_name": "elementDataType"
},
{
"declarator": "elementConvertFunction",
"modifier": "private final",
"original_string": "private final CsvUpsertExecutor.SimpleDatatypeConversionFunction elementConvertFunction;",
"type": "CsvUpsertExecutor.SimpleDatatypeConversionFunction",
"var_name": "elementConvertFunction"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/csv/StringToArrayConverter.java",
"identifier": "StringToArrayConverter",
"interfaces": "",
"methods": [
{
"class_method_signature": "StringToArrayConverter.StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"constructor": true,
"full_signature": "public StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"identifier": "StringToArrayConverter",
"modifiers": "public",
"parameters": "(Connection conn, String separatorString,\n PDataType elementDataType)",
"return": "",
"signature": " StringToArrayConverter(Connection conn, String separatorString,\n PDataType elementDataType)",
"testcase": false
},
{
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Array toArray(String input) throws SQLException {\n if (input == null || input.isEmpty()) {\n return conn.createArrayOf(elementDataType.getSqlTypeName(), new Object[0]);\n }\n return conn.createArrayOf(\n elementDataType.getSqlTypeName(),\n Lists.newArrayList(\n Iterables.transform(\n splitter.split(input),\n elementConvertFunction)).toArray());\n }",
"class_method_signature": "StringToArrayConverter.toArray(String input)",
"constructor": false,
"full_signature": "public Array toArray(String input)",
"identifier": "toArray",
"invocations": [
"isEmpty",
"createArrayOf",
"getSqlTypeName",
"createArrayOf",
"getSqlTypeName",
"toArray",
"newArrayList",
"transform",
"split"
],
"modifiers": "public",
"parameters": "(String input)",
"return": "Array",
"signature": "Array toArray(String input)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_141 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/iterate/OrderedResultIteratorTest.java",
"identifier": "OrderedResultIteratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNullIteratorOnClose() throws SQLException {\n ResultIterator delegate = ResultIterator.EMPTY_ITERATOR;\n List<OrderByExpression> orderByExpressions = Collections.singletonList(null);\n int thresholdBytes = Integer.MAX_VALUE;\n boolean spoolingEnabled = true;\n OrderedResultIterator iterator =\n new OrderedResultIterator(delegate, orderByExpressions, spoolingEnabled,\n thresholdBytes);\n // Should not throw an exception\n iterator.close();\n }",
"class_method_signature": "OrderedResultIteratorTest.testNullIteratorOnClose()",
"constructor": false,
"full_signature": "@Test public void testNullIteratorOnClose()",
"identifier": "testNullIteratorOnClose",
"invocations": [
"singletonList",
"close"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testNullIteratorOnClose()",
"testcase": true
} | {
"fields": [
{
"declarator": "TO_EXPRESSION = new Function<OrderByExpression, Expression>() {\n @Override\n public Expression apply(OrderByExpression column) {\n return column.getExpression();\n }\n }",
"modifier": "private static final",
"original_string": "private static final Function<OrderByExpression, Expression> TO_EXPRESSION = new Function<OrderByExpression, Expression>() {\n @Override\n public Expression apply(OrderByExpression column) {\n return column.getExpression();\n }\n };",
"type": "Function<OrderByExpression, Expression>",
"var_name": "TO_EXPRESSION"
},
{
"declarator": "spoolingEnabled",
"modifier": "private final",
"original_string": "private final boolean spoolingEnabled;",
"type": "boolean",
"var_name": "spoolingEnabled"
},
{
"declarator": "thresholdBytes",
"modifier": "private final",
"original_string": "private final long thresholdBytes;",
"type": "long",
"var_name": "thresholdBytes"
},
{
"declarator": "limit",
"modifier": "private final",
"original_string": "private final Integer limit;",
"type": "Integer",
"var_name": "limit"
},
{
"declarator": "offset",
"modifier": "private final",
"original_string": "private final Integer offset;",
"type": "Integer",
"var_name": "offset"
},
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final ResultIterator delegate;",
"type": "ResultIterator",
"var_name": "delegate"
},
{
"declarator": "orderByExpressions",
"modifier": "private final",
"original_string": "private final List<OrderByExpression> orderByExpressions;",
"type": "List<OrderByExpression>",
"var_name": "orderByExpressions"
},
{
"declarator": "estimatedByteSize",
"modifier": "private final",
"original_string": "private final long estimatedByteSize;",
"type": "long",
"var_name": "estimatedByteSize"
},
{
"declarator": "resultIterator",
"modifier": "private",
"original_string": "private PeekingResultIterator resultIterator;",
"type": "PeekingResultIterator",
"var_name": "resultIterator"
},
{
"declarator": "byteSize",
"modifier": "private",
"original_string": "private long byteSize;",
"type": "long",
"var_name": "byteSize"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java",
"identifier": "OrderedResultIterator",
"interfaces": "implements PeekingResultIterator",
"methods": [
{
"class_method_signature": "OrderedResultIterator.getDelegate()",
"constructor": false,
"full_signature": "protected ResultIterator getDelegate()",
"identifier": "getDelegate",
"modifiers": "protected",
"parameters": "()",
"return": "ResultIterator",
"signature": "ResultIterator getDelegate()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes, Integer limit, Integer offset)",
"constructor": true,
"full_signature": "public OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes, Integer limit, Integer offset)",
"identifier": "OrderedResultIterator",
"modifiers": "public",
"parameters": "(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes, Integer limit, Integer offset)",
"return": "",
"signature": " OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes, Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes)",
"constructor": true,
"full_signature": "public OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes)",
"identifier": "OrderedResultIterator",
"modifiers": "public",
"parameters": "(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes)",
"return": "",
"signature": " OrderedResultIterator(ResultIterator delegate, List<OrderByExpression> orderByExpressions,\n boolean spoolingEnabled, long thresholdBytes)",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.OrderedResultIterator(ResultIterator delegate,\n List<OrderByExpression> orderByExpressions, boolean spoolingEnabled,\n long thresholdBytes, Integer limit, Integer offset, int estimatedRowSize)",
"constructor": true,
"full_signature": "public OrderedResultIterator(ResultIterator delegate,\n List<OrderByExpression> orderByExpressions, boolean spoolingEnabled,\n long thresholdBytes, Integer limit, Integer offset, int estimatedRowSize)",
"identifier": "OrderedResultIterator",
"modifiers": "public",
"parameters": "(ResultIterator delegate,\n List<OrderByExpression> orderByExpressions, boolean spoolingEnabled,\n long thresholdBytes, Integer limit, Integer offset, int estimatedRowSize)",
"return": "",
"signature": " OrderedResultIterator(ResultIterator delegate,\n List<OrderByExpression> orderByExpressions, boolean spoolingEnabled,\n long thresholdBytes, Integer limit, Integer offset, int estimatedRowSize)",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.getLimit()",
"constructor": false,
"full_signature": "public Integer getLimit()",
"identifier": "getLimit",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getLimit()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.getEstimatedByteSize()",
"constructor": false,
"full_signature": "public long getEstimatedByteSize()",
"identifier": "getEstimatedByteSize",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getEstimatedByteSize()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.getByteSize()",
"constructor": false,
"full_signature": "public long getByteSize()",
"identifier": "getByteSize",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getByteSize()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.buildComparator(List<OrderByExpression> orderByExpressions)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") private static Comparator<ResultEntry> buildComparator(List<OrderByExpression> orderByExpressions)",
"identifier": "buildComparator",
"modifiers": "@SuppressWarnings(\"unchecked\") private static",
"parameters": "(List<OrderByExpression> orderByExpressions)",
"return": "Comparator<ResultEntry>",
"signature": "Comparator<ResultEntry> buildComparator(List<OrderByExpression> orderByExpressions)",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.buildDescVarLengthComparator()",
"constructor": false,
"full_signature": "private static Comparator<ImmutableBytesWritable> buildDescVarLengthComparator()",
"identifier": "buildDescVarLengthComparator",
"modifiers": "private static",
"parameters": "()",
"return": "Comparator<ImmutableBytesWritable>",
"signature": "Comparator<ImmutableBytesWritable> buildDescVarLengthComparator()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.next()",
"constructor": false,
"full_signature": "@Override public Tuple next()",
"identifier": "next",
"modifiers": "@Override public",
"parameters": "()",
"return": "Tuple",
"signature": "Tuple next()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.getResultIterator()",
"constructor": false,
"full_signature": "private PeekingResultIterator getResultIterator()",
"identifier": "getResultIterator",
"modifiers": "private",
"parameters": "()",
"return": "PeekingResultIterator",
"signature": "PeekingResultIterator getResultIterator()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.peek()",
"constructor": false,
"full_signature": "@Override public Tuple peek()",
"identifier": "peek",
"modifiers": "@Override public",
"parameters": "()",
"return": "Tuple",
"signature": "Tuple peek()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.explain(List<String> planSteps)",
"constructor": false,
"full_signature": "@Override public void explain(List<String> planSteps)",
"identifier": "explain",
"modifiers": "@Override public",
"parameters": "(List<String> planSteps)",
"return": "void",
"signature": "void explain(List<String> planSteps)",
"testcase": false
},
{
"class_method_signature": "OrderedResultIterator.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public void close() throws SQLException {\n // Guard against resultIterator being null\n if (null != resultIterator) {\n resultIterator.close();\n }\n resultIterator = PeekingResultIterator.EMPTY_ITERATOR;\n }",
"class_method_signature": "OrderedResultIterator.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"close"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_116 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/util/TestIndexManagementUtil.java",
"identifier": "TestIndexManagementUtil",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testUncompressedWal() throws Exception {\n Configuration conf = new Configuration(false);\n // works with WALEditcodec\n conf.set(WALCellCodec.WAL_CELL_CODEC_CLASS_KEY, IndexedWALEditCodec.class.getName());\n IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);\n // clear the codec and set the wal reader\n conf = new Configuration(false);\n conf.set(IndexManagementUtil.HLOG_READER_IMPL_KEY, IndexedHLogReader.class.getName());\n IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);\n }",
"class_method_signature": "TestIndexManagementUtil.testUncompressedWal()",
"constructor": false,
"full_signature": "@Test public void testUncompressedWal()",
"identifier": "testUncompressedWal",
"invocations": [
"set",
"getName",
"ensureMutableIndexingCorrectlyConfigured",
"set",
"getName",
"ensureMutableIndexingCorrectlyConfigured"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testUncompressedWal()",
"testcase": true
} | {
"fields": [
{
"declarator": "INDEX_WAL_EDIT_CODEC_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_WAL_EDIT_CODEC_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec\";",
"type": "String",
"var_name": "INDEX_WAL_EDIT_CODEC_CLASS_NAME"
},
{
"declarator": "HLOG_READER_IMPL_KEY = \"hbase.regionserver.hlog.reader.impl\"",
"modifier": "public static final",
"original_string": "public static final String HLOG_READER_IMPL_KEY = \"hbase.regionserver.hlog.reader.impl\";",
"type": "String",
"var_name": "HLOG_READER_IMPL_KEY"
},
{
"declarator": "WAL_EDIT_CODEC_CLASS_KEY = \"hbase.regionserver.wal.codec\"",
"modifier": "public static final",
"original_string": "public static final String WAL_EDIT_CODEC_CLASS_KEY = \"hbase.regionserver.wal.codec\";",
"type": "String",
"var_name": "WAL_EDIT_CODEC_CLASS_KEY"
},
{
"declarator": "INDEX_HLOG_READER_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader\"",
"modifier": "private static final",
"original_string": "private static final String INDEX_HLOG_READER_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader\";",
"type": "String",
"var_name": "INDEX_HLOG_READER_CLASS_NAME"
},
{
"declarator": "LOGGER = LoggerFactory.getLogger(IndexManagementUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(IndexManagementUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/util/IndexManagementUtil.java",
"identifier": "IndexManagementUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexManagementUtil.IndexManagementUtil()",
"constructor": true,
"full_signature": "private IndexManagementUtil()",
"identifier": "IndexManagementUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " IndexManagementUtil()",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.isWALEditCodecSet(Configuration conf)",
"constructor": false,
"full_signature": "public static boolean isWALEditCodecSet(Configuration conf)",
"identifier": "isWALEditCodecSet",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "boolean",
"signature": "boolean isWALEditCodecSet(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"constructor": false,
"full_signature": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"identifier": "ensureMutableIndexingCorrectlyConfigured",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "void",
"signature": "void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"constructor": false,
"full_signature": "public static ValueGetter createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"identifier": "createGetterFromScanner",
"modifiers": "public static",
"parameters": "(CoveredDeleteScanner scanner, byte[] currentRow)",
"return": "ValueGetter",
"signature": "ValueGetter createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"constructor": false,
"full_signature": "public static boolean updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"identifier": "updateMatchesColumns",
"modifiers": "public static",
"parameters": "(Collection<KeyValue> update, List<ColumnReference> columns)",
"return": "boolean",
"signature": "boolean updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"constructor": false,
"full_signature": "public static boolean columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"identifier": "columnMatchesUpdate",
"modifiers": "public static",
"parameters": "(List<ColumnReference> columns, Collection<KeyValue> update)",
"return": "boolean",
"signature": "boolean columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"constructor": false,
"full_signature": "public static Scan newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"identifier": "newLocalStateScan",
"modifiers": "public static",
"parameters": "(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"return": "Scan",
"signature": "Scan newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"constructor": false,
"full_signature": "public static Scan newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"identifier": "newLocalStateScan",
"modifiers": "public static",
"parameters": "(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"return": "Scan",
"signature": "Scan newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.rethrowIndexingException(Throwable e)",
"constructor": false,
"full_signature": "public static void rethrowIndexingException(Throwable e)",
"identifier": "rethrowIndexingException",
"modifiers": "public static",
"parameters": "(Throwable e)",
"return": "void",
"signature": "void rethrowIndexingException(Throwable e)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.setIfNotSet(Configuration conf, String key, int value)",
"constructor": false,
"full_signature": "public static void setIfNotSet(Configuration conf, String key, int value)",
"identifier": "setIfNotSet",
"modifiers": "public static",
"parameters": "(Configuration conf, String key, int value)",
"return": "void",
"signature": "void setIfNotSet(Configuration conf, String key, int value)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"constructor": false,
"full_signature": "public static void createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"identifier": "createTimestampBatchesFromKeyValues",
"modifiers": "public static",
"parameters": "(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"return": "void",
"signature": "void createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createTimestampBatchesFromMutation(Mutation m)",
"constructor": false,
"full_signature": "public static Collection<Batch> createTimestampBatchesFromMutation(Mutation m)",
"identifier": "createTimestampBatchesFromMutation",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "Collection<Batch>",
"signature": "Collection<Batch> createTimestampBatchesFromMutation(Mutation m)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"constructor": false,
"full_signature": "public static Collection<? extends Mutation> flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"identifier": "flattenMutationsByTimestamp",
"modifiers": "public static",
"parameters": "(Collection<? extends Mutation> mutations)",
"return": "Collection<? extends Mutation>",
"signature": "Collection<? extends Mutation> flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf) throws IllegalStateException {\n\n // check to see if the WALEditCodec is installed\n if (isWALEditCodecSet(conf)) { return; }\n\n // otherwise, we have to install the indexedhlogreader, but it cannot have compression\n String codecClass = INDEX_WAL_EDIT_CODEC_CLASS_NAME;\n String indexLogReaderName = INDEX_HLOG_READER_CLASS_NAME;\n try {\n // Use reflection to load the IndexedHLogReader, since it may not load with an older version\n // of HBase\n Class.forName(indexLogReaderName);\n } catch (ClassNotFoundException e) {\n throw new IllegalStateException(codecClass + \" is not installed, but \"\n + indexLogReaderName + \" hasn't been installed in hbase-site.xml under \" + HLOG_READER_IMPL_KEY);\n }\n if (indexLogReaderName.equals(conf.get(HLOG_READER_IMPL_KEY, indexLogReaderName))) {\n if (conf.getBoolean(HConstants.ENABLE_WAL_COMPRESSION, false)) { throw new IllegalStateException(\n \"WAL Compression is only supported with \" + codecClass\n + \". You can install in hbase-site.xml, under \" + WALCellCodec.WAL_CELL_CODEC_CLASS_KEY);\n }\n } else {\n throw new IllegalStateException(codecClass + \" is not installed, but \"\n + indexLogReaderName + \" hasn't been installed in hbase-site.xml under \" + HLOG_READER_IMPL_KEY);\n }\n\n }",
"class_method_signature": "IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"constructor": false,
"full_signature": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"identifier": "ensureMutableIndexingCorrectlyConfigured",
"invocations": [
"isWALEditCodecSet",
"forName",
"equals",
"get",
"getBoolean"
],
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "void",
"signature": "void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_97 | {
"fields": [
{
"declarator": "con",
"modifier": "@Mock",
"original_string": "@Mock PhoenixConnection con;",
"type": "PhoenixConnection",
"var_name": "con"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/LogUtilTest.java",
"identifier": "LogUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddCustomAnnotations() {\n \twhen(con.getCustomTracingAnnotations()).thenReturn(ImmutableMap.of(\"a1\", \"v1\", \"a2\", \"v2\"));\n \t\n \tString logLine = LogUtil.addCustomAnnotations(\"log line\", con);\n \tassertTrue(logLine.contains(\"log line\"));\n \tassertTrue(logLine.contains(\"a1=v1\"));\n \tassertTrue(logLine.contains(\"a2=v2\"));\n }",
"class_method_signature": "LogUtilTest.testAddCustomAnnotations()",
"constructor": false,
"full_signature": "@Test public void testAddCustomAnnotations()",
"identifier": "testAddCustomAnnotations",
"invocations": [
"thenReturn",
"when",
"getCustomTracingAnnotations",
"of",
"addCustomAnnotations",
"assertTrue",
"contains",
"assertTrue",
"contains",
"assertTrue",
"contains"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAddCustomAnnotations()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/LogUtil.java",
"identifier": "LogUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "LogUtil.LogUtil()",
"constructor": true,
"full_signature": "private LogUtil()",
"identifier": "LogUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " LogUtil()",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable byte[] annotations)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"testcase": false
},
{
"class_method_signature": "LogUtil.customAnnotationsToString(@Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String customAnnotationsToString(@Nullable PhoenixConnection con)",
"identifier": "customAnnotationsToString",
"modifiers": "public static",
"parameters": "(@Nullable PhoenixConnection con)",
"return": "String",
"signature": "String customAnnotationsToString(@Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.getCallerStackTrace()",
"constructor": false,
"full_signature": "public static String getCallerStackTrace()",
"identifier": "getCallerStackTrace",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getCallerStackTrace()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con) {\n \tif (con == null || con.getCustomTracingAnnotations() == null || con.getCustomTracingAnnotations().isEmpty()) {\n return logLine;\n \t} else {\n \t\treturn customAnnotationsToString(con) + ' ' + logLine;\n \t}\n }",
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"invocations": [
"getCustomTracingAnnotations",
"isEmpty",
"getCustomTracingAnnotations",
"customAnnotationsToString"
],
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_182 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSeparatorBytes() {\n byte biggest = (byte) 0xFF;\n assertEquals(biggest, QueryConstants.DESC_SEPARATOR_BYTE);\n byte[] array = new byte[1];\n for (int i = Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++) {\n array[0] = (byte) i;\n assertTrue(Bytes.compareTo(array, QueryConstants.DESC_SEPARATOR_BYTE_ARRAY) <= 0);\n }\n }",
"class_method_signature": "PDataTypeTest.testSeparatorBytes()",
"constructor": false,
"full_signature": "@Test public void testSeparatorBytes()",
"identifier": "testSeparatorBytes",
"invocations": [
"assertEquals",
"assertTrue",
"compareTo"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testSeparatorBytes()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType) {\n Preconditions.checkNotNull(lhsSortOrder);\n Preconditions.checkNotNull(rhsSortOrder);\n if (this.isBytesComparableWith(rhsType)) { // directly compare the bytes\n // Special case as we may be comparing two arrays that have different separator characters due to PHOENIX-2067\n if (!this.isArrayType() || !rhsType.isArrayType() || \n PArrayDataType.isRowKeyOrderOptimized(this, lhsSortOrder, lhs, lhsOffset, lhsLength) == PArrayDataType.isRowKeyOrderOptimized(rhsType, rhsSortOrder, rhs, rhsOffset, rhsLength)) {\n // Ignore trailing zero bytes if fixed byte length (for example TIMESTAMP compared to DATE)\n if (lhsLength != rhsLength && this.isFixedWidth() && rhsType.isFixedWidth() && this.getByteSize() != null && rhsType.getByteSize() != null) {\n if (lhsLength > rhsLength) {\n int minOffset = lhsOffset + rhsLength;\n for (int i = lhsOffset + lhsLength - 1; i >= minOffset && lhsSortOrder.normalize(lhs[i]) == 0; i--,lhsLength--) {\n }\n } else {\n int minOffset = rhsOffset + lhsLength;\n for (int i = rhsOffset + rhsLength - 1; i >= minOffset && rhsSortOrder.normalize(rhs[i]) == 0; i--,rhsLength--) {\n }\n }\n }\n return compareTo(lhs, lhsOffset, lhsLength, lhsSortOrder, rhs, rhsOffset, rhsLength, rhsSortOrder);\n }\n }\n PDataCodec lhsCodec = this.getCodec();\n if ( lhsCodec == null ) {\n byte[] rhsConverted;\n Object o = this.toObject(rhs, rhsOffset, rhsLength, rhsType, rhsSortOrder);\n \n // No lhs native type representation, so convert rhsType to bytes representation of lhs type\n // Due to PHOENIX-2067, favor the array that is already in the new format so we don't have to convert both.\n if ( this.isArrayType() && PArrayDataType.isRowKeyOrderOptimized(this, lhsSortOrder, lhs, lhsOffset, lhsLength) == PArrayDataType.isRowKeyOrderOptimized(rhsType, rhsSortOrder, rhs, rhsOffset, rhsLength)) {\n rhsConverted = ((PArrayDataType)this).toBytes(o, PArrayDataType.arrayBaseType(this), lhsSortOrder, PArrayDataType.isRowKeyOrderOptimized(this, lhsSortOrder, lhs, lhsOffset, lhsLength));\n } else {\n rhsConverted = this.toBytes(o);\n if (rhsSortOrder == SortOrder.DESC) {\n rhsSortOrder = SortOrder.ASC;\n }\n if (lhsSortOrder == SortOrder.DESC) {\n lhs = SortOrder.invert(lhs, lhsOffset, new byte[lhsLength], 0, lhsLength);\n lhsOffset = 0;\n }\n }\n return Bytes.compareTo(lhs, lhsOffset, lhsLength, rhsConverted, 0, rhsConverted.length);\n }\n PDataCodec rhsCodec = rhsType.getCodec();\n if (rhsCodec == null) {\n byte[] lhsConverted;\n Object o = rhsType.toObject(lhs, lhsOffset, lhsLength, this, lhsSortOrder);\n \n // No rhs native type representation, so convert lhsType to bytes representation of rhs type\n // Due to PHOENIX-2067, favor the array that is already in the new format so we don't have to convert both.\n if ( rhsType.isArrayType() && PArrayDataType.isRowKeyOrderOptimized(rhsType, rhsSortOrder, rhs, rhsOffset, rhsLength) == PArrayDataType.isRowKeyOrderOptimized(this, lhsSortOrder, lhs, lhsOffset, lhsLength)) {\n lhsConverted = ((PArrayDataType)rhsType).toBytes(o, PArrayDataType.arrayBaseType(rhsType), rhsSortOrder, PArrayDataType.isRowKeyOrderOptimized(rhsType, rhsSortOrder, rhs, rhsOffset, rhsLength));\n } else {\n lhsConverted = rhsType.toBytes(o);\n if (lhsSortOrder == SortOrder.DESC) {\n lhsSortOrder = SortOrder.ASC;\n }\n if (rhsSortOrder == SortOrder.DESC) {\n rhs = SortOrder.invert(rhs, rhsOffset, new byte[rhsLength], 0, rhsLength);\n }\n }\n return Bytes.compareTo(lhsConverted, 0, lhsConverted.length, rhs, rhsOffset, rhsLength);\n }\n // convert to native and compare\n if ( (this.isCoercibleTo(PLong.INSTANCE) || this.isCoercibleTo(PDate.INSTANCE)) && \n (rhsType.isCoercibleTo(PLong.INSTANCE) || rhsType.isCoercibleTo(PDate.INSTANCE)) ) {\n return Longs.compare(this.getCodec().decodeLong(lhs, lhsOffset, lhsSortOrder), rhsType.getCodec()\n .decodeLong(rhs, rhsOffset, rhsSortOrder));\n } else if (isDoubleOrFloat(this) && isDoubleOrFloat(rhsType)) { // native double to double comparison\n return Doubles.compare(this.getCodec().decodeDouble(lhs, lhsOffset, lhsSortOrder), rhsType.getCodec()\n .decodeDouble(rhs, rhsOffset, rhsSortOrder));\n } else { // native float/double to long comparison\n float fvalue = 0.0F;\n double dvalue = 0.0;\n long lvalue = 0;\n boolean isFloat = false;\n int invert = 1;\n\n if (this.isCoercibleTo(PLong.INSTANCE)) {\n lvalue = this.getCodec().decodeLong(lhs, lhsOffset, lhsSortOrder);\n } else if (this.getClass() == PFloat.class) {\n isFloat = true;\n fvalue = this.getCodec().decodeFloat(lhs, lhsOffset, lhsSortOrder);\n } else if (this.isCoercibleTo(PDouble.INSTANCE)) {\n dvalue = this.getCodec().decodeDouble(lhs, lhsOffset, lhsSortOrder);\n }\n if (rhsType.isCoercibleTo(PLong.INSTANCE)) {\n lvalue = rhsType.getCodec().decodeLong(rhs, rhsOffset, rhsSortOrder);\n } else if (rhsType == PFloat.INSTANCE) {\n invert = -1;\n isFloat = true;\n fvalue = rhsType.getCodec().decodeFloat(rhs, rhsOffset, rhsSortOrder);\n } else if (rhsType.isCoercibleTo(PDouble.INSTANCE)) {\n invert = -1;\n dvalue = rhsType.getCodec().decodeDouble(rhs, rhsOffset, rhsSortOrder);\n }\n // Invert the comparison if float/double value is on the RHS\n return invert * (isFloat ? compareFloatToLong(fvalue, lvalue) : compareDoubleToLong(dvalue, lvalue));\n }\n }",
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"invocations": [
"checkNotNull",
"checkNotNull",
"isBytesComparableWith",
"isArrayType",
"isArrayType",
"isRowKeyOrderOptimized",
"isRowKeyOrderOptimized",
"isFixedWidth",
"isFixedWidth",
"getByteSize",
"getByteSize",
"normalize",
"normalize",
"compareTo",
"getCodec",
"toObject",
"isArrayType",
"isRowKeyOrderOptimized",
"isRowKeyOrderOptimized",
"toBytes",
"arrayBaseType",
"isRowKeyOrderOptimized",
"toBytes",
"invert",
"compareTo",
"getCodec",
"toObject",
"isArrayType",
"isRowKeyOrderOptimized",
"isRowKeyOrderOptimized",
"toBytes",
"arrayBaseType",
"isRowKeyOrderOptimized",
"toBytes",
"invert",
"compareTo",
"isCoercibleTo",
"isCoercibleTo",
"isCoercibleTo",
"isCoercibleTo",
"compare",
"decodeLong",
"getCodec",
"decodeLong",
"getCodec",
"isDoubleOrFloat",
"isDoubleOrFloat",
"compare",
"decodeDouble",
"getCodec",
"decodeDouble",
"getCodec",
"isCoercibleTo",
"decodeLong",
"getCodec",
"getClass",
"decodeFloat",
"getCodec",
"isCoercibleTo",
"decodeDouble",
"getCodec",
"isCoercibleTo",
"decodeLong",
"getCodec",
"decodeFloat",
"getCodec",
"isCoercibleTo",
"decodeDouble",
"getCodec",
"compareFloatToLong",
"compareDoubleToLong"
],
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_78 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected=IllegalDataException.class)\n public void testParseTime_InvalidTime() {\n DateUtil.parseDate(\"not-a-time\");\n }",
"class_method_signature": "DateUtilTest.testParseTime_InvalidTime()",
"constructor": false,
"full_signature": "@Test(expected=IllegalDataException.class) public void testParseTime_InvalidTime()",
"identifier": "testParseTime_InvalidTime",
"invocations": [
"parseDate"
],
"modifiers": "@Test(expected=IllegalDataException.class) public",
"parameters": "()",
"return": "void",
"signature": "void testParseTime_InvalidTime()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Date parseDate(String dateValue) {\n return new Date(parseDateTime(dateValue));\n }",
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"invocations": [
"parseDateTime"
],
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_39 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCustomTracingAnnotationInBothPropertiesAndURL() {\n String annotKey1 = \"key1\";\n String annotVal1 = \"val1\";\n String annotKey2 = \"key2\";\n String annotVal2 = \"val2\";\n String annotKey3 = \"key3\";\n String annotVal3 = \"val3\";\n \n String url= \"localhost;\" + ANNOTATION_ATTRIB_PREFIX + annotKey1 + '=' + annotVal1;\n \n Properties prop = new Properties();\n prop.put(ANNOTATION_ATTRIB_PREFIX + annotKey2, annotVal2);\n prop.put(ANNOTATION_ATTRIB_PREFIX + annotKey3, annotVal3);\n \n Map<String, String> customAnnotations = JDBCUtil.getAnnotations(url, prop);\n assertEquals(3, customAnnotations.size());\n assertEquals(annotVal1, customAnnotations.get(annotKey1));\n assertEquals(annotVal2, customAnnotations.get(annotKey2));\n assertEquals(annotVal3, customAnnotations.get(annotKey3));\n }",
"class_method_signature": "JDBCUtilTest.testGetCustomTracingAnnotationInBothPropertiesAndURL()",
"constructor": false,
"full_signature": "@Test public void testGetCustomTracingAnnotationInBothPropertiesAndURL()",
"identifier": "testGetCustomTracingAnnotationInBothPropertiesAndURL",
"invocations": [
"put",
"put",
"getAnnotations",
"assertEquals",
"size",
"assertEquals",
"get",
"assertEquals",
"get",
"assertEquals",
"get"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetCustomTracingAnnotationInBothPropertiesAndURL()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info) {\n Preconditions.checkNotNull(url);\n Preconditions.checkNotNull(info);\n \n \tMap<String, String> combinedProperties = getCombinedConnectionProperties(url, info);\n \tMap<String, String> result = newHashMapWithExpectedSize(combinedProperties.size());\n \tfor (Map.Entry<String, String> prop : combinedProperties.entrySet()) {\n \t\tif (prop.getKey().startsWith(ANNOTATION_ATTRIB_PREFIX) &&\n \t\t\t\tprop.getKey().length() > ANNOTATION_ATTRIB_PREFIX.length()) {\n \t\t\tresult.put(prop.getKey().substring(ANNOTATION_ATTRIB_PREFIX.length()), prop.getValue());\n \t\t}\n \t}\n \treturn result;\n }",
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"invocations": [
"checkNotNull",
"checkNotNull",
"getCombinedConnectionProperties",
"newHashMapWithExpectedSize",
"size",
"entrySet",
"startsWith",
"getKey",
"length",
"getKey",
"length",
"put",
"substring",
"getKey",
"length",
"getValue"
],
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_194 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/expression/InListExpressionTest.java",
"identifier": "InListExpressionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetSortedRowValueConstructorExpressionList() {\n byte[] bytesValueOne = ByteBuffer.allocate(4).putInt(1).array();\n byte[] bytesValueTwo = ByteBuffer.allocate(4).putInt(1).array();\n // mock literal\n List<Expression> literalExpressions = new ArrayList<>();\n LiteralExpression literalChild1 = Mockito.mock(LiteralExpression.class);\n when(literalChild1.getDataType()).thenReturn(PInteger.INSTANCE);\n when(literalChild1.getBytes()).thenReturn(bytesValueOne);\n when(literalChild1.getDeterminism()).thenReturn(Determinism.ALWAYS);\n literalExpressions.add(literalChild1);\n\n LiteralExpression literalChild2 = Mockito.mock(LiteralExpression.class);\n when(literalChild2.getDataType()).thenReturn(PInteger.INSTANCE);\n when(literalChild2.getBytes()).thenReturn(bytesValueTwo);\n when(literalChild2.getDeterminism()).thenReturn(Determinism.ALWAYS);\n literalExpressions.add(literalChild2);\n\n List<Expression> expressionChildren = new ArrayList<>();\n RowKeyColumnExpression rowKeyColumnExpressionMock1 = Mockito.mock(RowKeyColumnExpression.class);\n RowKeyColumnExpression rowKeyColumnExpressionMock2 = Mockito.mock(RowKeyColumnExpression.class);\n expressionChildren.add(rowKeyColumnExpressionMock1);\n expressionChildren.add(rowKeyColumnExpressionMock2);\n\n when(rowKeyColumnExpressionMock1.getPosition()).thenReturn(1);\n when(rowKeyColumnExpressionMock1.getDeterminism()).thenReturn(Determinism.ALWAYS);\n when(rowKeyColumnExpressionMock2.getPosition()).thenReturn(2);\n when(rowKeyColumnExpressionMock2.getDeterminism()).thenReturn(Determinism.ALWAYS);\n when(rowKeyColumnExpressionMock1.getChildren()).thenReturn(expressionChildren);\n when(rowKeyColumnExpressionMock2.getChildren()).thenReturn(literalExpressions);\n\n //construct sorted InListColumnKeyValuePair list\n List<InListExpression.InListColumnKeyValuePair> children = new ArrayList<>();\n InListExpression.InListColumnKeyValuePair rvc1 =\n new InListExpression.InListColumnKeyValuePair(rowKeyColumnExpressionMock1);\n rvc1.addToLiteralExpressionList(literalChild1);\n children.add(rvc1);\n InListExpression.InListColumnKeyValuePair rvc2 =\n new InListExpression.InListColumnKeyValuePair(rowKeyColumnExpressionMock2);\n rvc2.addToLiteralExpressionList(literalChild2);\n children.add(rvc2);\n\n List<Expression> result = InListExpression.getSortedRowValueConstructorExpressionList(\n children,true, 1);\n\n assertTrue(result.get(0).getChildren().get(0) instanceof RowKeyColumnExpression);\n assertTrue(result.get(0).getChildren().get(1) instanceof RowKeyColumnExpression);\n assertEquals(1, ((RowKeyColumnExpression)result.get(0).getChildren().get(0)).getPosition());\n assertEquals(2, ((RowKeyColumnExpression)result.get(0).getChildren().get(1)).getPosition());\n\n assertTrue(result.get(1).getChildren().get(0) instanceof LiteralExpression);\n assertTrue(result.get(1).getChildren().get(1) instanceof LiteralExpression);\n assertEquals(bytesValueOne, ((LiteralExpression)result.get(1).getChildren().get(0)).getBytes());\n assertEquals(bytesValueTwo, ((LiteralExpression)result.get(1).getChildren().get(1)).getBytes());\n }",
"class_method_signature": "InListExpressionTest.testGetSortedRowValueConstructorExpressionList()",
"constructor": false,
"full_signature": "@Test public void testGetSortedRowValueConstructorExpressionList()",
"identifier": "testGetSortedRowValueConstructorExpressionList",
"invocations": [
"array",
"putInt",
"allocate",
"array",
"putInt",
"allocate",
"mock",
"thenReturn",
"when",
"getDataType",
"thenReturn",
"when",
"getBytes",
"thenReturn",
"when",
"getDeterminism",
"add",
"mock",
"thenReturn",
"when",
"getDataType",
"thenReturn",
"when",
"getBytes",
"thenReturn",
"when",
"getDeterminism",
"add",
"mock",
"mock",
"add",
"add",
"thenReturn",
"when",
"getPosition",
"thenReturn",
"when",
"getDeterminism",
"thenReturn",
"when",
"getPosition",
"thenReturn",
"when",
"getDeterminism",
"thenReturn",
"when",
"getChildren",
"thenReturn",
"when",
"getChildren",
"addToLiteralExpressionList",
"add",
"addToLiteralExpressionList",
"add",
"getSortedRowValueConstructorExpressionList",
"assertTrue",
"get",
"getChildren",
"get",
"assertTrue",
"get",
"getChildren",
"get",
"assertEquals",
"getPosition",
"get",
"getChildren",
"get",
"assertEquals",
"getPosition",
"get",
"getChildren",
"get",
"assertTrue",
"get",
"getChildren",
"get",
"assertTrue",
"get",
"getChildren",
"get",
"assertEquals",
"getBytes",
"get",
"getChildren",
"get",
"assertEquals",
"getBytes",
"get",
"getChildren",
"get"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetSortedRowValueConstructorExpressionList()",
"testcase": true
} | {
"fields": [
{
"declarator": "values",
"modifier": "private",
"original_string": "private Set<ImmutableBytesPtr> values;",
"type": "Set<ImmutableBytesPtr>",
"var_name": "values"
},
{
"declarator": "minValue",
"modifier": "private",
"original_string": "private ImmutableBytesPtr minValue;",
"type": "ImmutableBytesPtr",
"var_name": "minValue"
},
{
"declarator": "maxValue",
"modifier": "private",
"original_string": "private ImmutableBytesPtr maxValue;",
"type": "ImmutableBytesPtr",
"var_name": "maxValue"
},
{
"declarator": "valuesByteLength",
"modifier": "private",
"original_string": "private int valuesByteLength;",
"type": "int",
"var_name": "valuesByteLength"
},
{
"declarator": "fixedWidth = -1",
"modifier": "private",
"original_string": "private int fixedWidth = -1;",
"type": "int",
"var_name": "fixedWidth"
},
{
"declarator": "keyExpressions",
"modifier": "private",
"original_string": "private List<Expression> keyExpressions;",
"type": "List<Expression>",
"var_name": "keyExpressions"
},
{
"declarator": "rowKeyOrderOptimizable",
"modifier": "private",
"original_string": "private boolean rowKeyOrderOptimizable;",
"type": "boolean",
"var_name": "rowKeyOrderOptimizable"
},
{
"declarator": "hashCode = -1",
"modifier": "private",
"original_string": "private int hashCode = -1;",
"type": "int",
"var_name": "hashCode"
},
{
"declarator": "hashCodeSet = false",
"modifier": "private",
"original_string": "private boolean hashCodeSet = false;",
"type": "boolean",
"var_name": "hashCodeSet"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/expression/InListExpression.java",
"identifier": "InListExpression",
"interfaces": "",
"methods": [
{
"class_method_signature": "InListExpression.create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public static Expression create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"identifier": "create",
"modifiers": "public static",
"parameters": "(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"return": "Expression",
"signature": "Expression create(List<Expression> children, boolean isNegate, ImmutableBytesWritable ptr, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression()",
"constructor": true,
"full_signature": "public InListExpression()",
"identifier": "InListExpression",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " InListExpression()",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression(List<ImmutableBytesPtr> values)",
"constructor": true,
"full_signature": "@VisibleForTesting protected InListExpression(List<ImmutableBytesPtr> values)",
"identifier": "InListExpression",
"modifiers": "@VisibleForTesting protected",
"parameters": "(List<ImmutableBytesPtr> values)",
"return": "",
"signature": " InListExpression(List<ImmutableBytesPtr> values)",
"testcase": false
},
{
"class_method_signature": "InListExpression.InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"constructor": true,
"full_signature": "public InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"identifier": "InListExpression",
"modifiers": "public",
"parameters": "(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"return": "",
"signature": " InListExpression(List<Expression> keyExpressions, boolean rowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "InListExpression.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "InListExpression.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "InListExpression.equals(Object obj)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object obj)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object obj)",
"return": "boolean",
"signature": "boolean equals(Object obj)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getDataType()",
"constructor": false,
"full_signature": "@Override public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "@Override public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "InListExpression.readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"constructor": false,
"full_signature": "private int readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"identifier": "readValue",
"modifiers": "private",
"parameters": "(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"return": "int",
"signature": "int readValue(DataInput input, byte[] valuesBytes, int offset, ImmutableBytesPtr ptr)",
"testcase": false
},
{
"class_method_signature": "InListExpression.readFields(DataInput input)",
"constructor": false,
"full_signature": "@Override public void readFields(DataInput input)",
"identifier": "readFields",
"modifiers": "@Override public",
"parameters": "(DataInput input)",
"return": "void",
"signature": "void readFields(DataInput input)",
"testcase": false
},
{
"class_method_signature": "InListExpression.write(DataOutput output)",
"constructor": false,
"full_signature": "@Override public void write(DataOutput output)",
"identifier": "write",
"modifiers": "@Override public",
"parameters": "(DataOutput output)",
"return": "void",
"signature": "void write(DataOutput output)",
"testcase": false
},
{
"class_method_signature": "InListExpression.accept(ExpressionVisitor<T> visitor)",
"constructor": false,
"full_signature": "@Override public final T accept(ExpressionVisitor<T> visitor)",
"identifier": "accept",
"modifiers": "@Override public final",
"parameters": "(ExpressionVisitor<T> visitor)",
"return": "T",
"signature": "T accept(ExpressionVisitor<T> visitor)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getKeyExpressions()",
"constructor": false,
"full_signature": "public List<Expression> getKeyExpressions()",
"identifier": "getKeyExpressions",
"modifiers": "public",
"parameters": "()",
"return": "List<Expression>",
"signature": "List<Expression> getKeyExpressions()",
"testcase": false
},
{
"class_method_signature": "InListExpression.getMinKey()",
"constructor": false,
"full_signature": "public ImmutableBytesWritable getMinKey()",
"identifier": "getMinKey",
"modifiers": "public",
"parameters": "()",
"return": "ImmutableBytesWritable",
"signature": "ImmutableBytesWritable getMinKey()",
"testcase": false
},
{
"class_method_signature": "InListExpression.getMaxKey()",
"constructor": false,
"full_signature": "public ImmutableBytesWritable getMaxKey()",
"identifier": "getMaxKey",
"modifiers": "public",
"parameters": "()",
"return": "ImmutableBytesWritable",
"signature": "ImmutableBytesWritable getMaxKey()",
"testcase": false
},
{
"class_method_signature": "InListExpression.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "InListExpression.clone(List<Expression> l)",
"constructor": false,
"full_signature": "public InListExpression clone(List<Expression> l)",
"identifier": "clone",
"modifiers": "public",
"parameters": "(List<Expression> l)",
"return": "InListExpression",
"signature": "InListExpression clone(List<Expression> l)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getSortedInListColumnKeyValuePair(List<Expression> children)",
"constructor": false,
"full_signature": "public static List<InListColumnKeyValuePair> getSortedInListColumnKeyValuePair(List<Expression> children)",
"identifier": "getSortedInListColumnKeyValuePair",
"modifiers": "public static",
"parameters": "(List<Expression> children)",
"return": "List<InListColumnKeyValuePair>",
"signature": "List<InListColumnKeyValuePair> getSortedInListColumnKeyValuePair(List<Expression> children)",
"testcase": false
},
{
"class_method_signature": "InListExpression.getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"constructor": false,
"full_signature": "public static List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"identifier": "getSortedRowValueConstructorExpressionList",
"modifiers": "public static",
"parameters": "(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"return": "List<Expression>",
"signature": "List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"testcase": false
}
],
"superclass": "extends BaseSingleExpression"
} | {
"body": "public static List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows) {\n List<Expression> l = new ArrayList<>();\n //reconstruct columns\n List<Expression> keyExpressions = new ArrayList<>();\n for (int i = 0; i < inListColumnKeyValuePairList.size(); i++) {\n keyExpressions.add(inListColumnKeyValuePairList.get(i).getRowKeyColumnExpression());\n }\n l.add(new RowValueConstructorExpression(keyExpressions,isStateless));\n\n //reposition to corresponding values\n List<List<Expression>> valueExpressionsList = new ArrayList<>();\n\n for (int j = 0; j < inListColumnKeyValuePairList.size(); j++) {\n List<LiteralExpression> valueList = inListColumnKeyValuePairList.get(j).getLiteralExpressionList();\n for (int i = 0; i < numberOfRows; i++) {\n if (j == 0) {\n valueExpressionsList.add(new ArrayList<Expression>());\n }\n valueExpressionsList.get(i).add(valueList.get(i));\n }\n }\n for (List<Expression> valueExpressions: valueExpressionsList) {\n l.add(new RowValueConstructorExpression(valueExpressions, isStateless));\n }\n return l;\n }",
"class_method_signature": "InListExpression.getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"constructor": false,
"full_signature": "public static List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"identifier": "getSortedRowValueConstructorExpressionList",
"invocations": [
"size",
"add",
"getRowKeyColumnExpression",
"get",
"add",
"size",
"getLiteralExpressionList",
"get",
"add",
"add",
"get",
"get",
"add"
],
"modifiers": "public static",
"parameters": "(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"return": "List<Expression>",
"signature": "List<Expression> getSortedRowValueConstructorExpressionList(\n List<InListColumnKeyValuePair> inListColumnKeyValuePairList, boolean isStateless, int numberOfRows)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_81 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseTimestamp_WithNanos() {\n assertEquals(123000000, DateUtil.parseTimestamp(\"1970-01-01 00:00:10.123\").getNanos());\n\n assertEquals(123456780, DateUtil.parseTimestamp(\"1970-01-01 00:00:10.12345678\").getNanos\n ());\n assertEquals(999999999, DateUtil.parseTimestamp(\"1970-01-01 00:00:10.999999999\").getNanos\n ());\n\n }",
"class_method_signature": "DateUtilTest.testParseTimestamp_WithNanos()",
"constructor": false,
"full_signature": "@Test public void testParseTimestamp_WithNanos()",
"identifier": "testParseTimestamp_WithNanos",
"invocations": [
"assertEquals",
"getNanos",
"parseTimestamp",
"assertEquals",
"getNanos",
"parseTimestamp",
"assertEquals",
"getNanos",
"parseTimestamp"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseTimestamp_WithNanos()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Timestamp parseTimestamp(String timestampValue) {\n Timestamp timestamp = new Timestamp(parseDateTime(timestampValue));\n int period = timestampValue.indexOf('.');\n if (period > 0) {\n String nanosStr = timestampValue.substring(period + 1);\n if (nanosStr.length() > 9)\n throw new IllegalDataException(\"nanos > 999999999 or < 0\");\n if(nanosStr.length() > 3 ) {\n int nanos = Integer.parseInt(nanosStr);\n for (int i = 0; i < 9 - nanosStr.length(); i++) {\n nanos *= 10;\n }\n timestamp.setNanos(nanos);\n }\n }\n return timestamp;\n }",
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"invocations": [
"parseDateTime",
"indexOf",
"substring",
"length",
"length",
"parseInt",
"length",
"setNanos"
],
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_19 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAscendingNextValueReachLimit() throws SQLException {\n \tassertFalse(SequenceUtil.checkIfLimitReached(6, MIN_VALUE, MAX_VALUE, 2/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testAscendingNextValueReachLimit()",
"constructor": false,
"full_signature": "@Test public void testAscendingNextValueReachLimit()",
"identifier": "testAscendingNextValueReachLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAscendingNextValueReachLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_58 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected=IllegalArgumentException.class)\n public void testConstructGenericUpsertStatement_NoColumns() {\n QueryUtil.constructGenericUpsertStatement(\"MYTAB\", 0);\n }",
"class_method_signature": "QueryUtilTest.testConstructGenericUpsertStatement_NoColumns()",
"constructor": false,
"full_signature": "@Test(expected=IllegalArgumentException.class) public void testConstructGenericUpsertStatement_NoColumns()",
"identifier": "testConstructGenericUpsertStatement_NoColumns",
"invocations": [
"constructGenericUpsertStatement"
],
"modifiers": "@Test(expected=IllegalArgumentException.class) public",
"parameters": "()",
"return": "void",
"signature": "void testConstructGenericUpsertStatement_NoColumns()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructGenericUpsertStatement(String tableName, int numColumns) {\n\n\n if (numColumns == 0) {\n throw new IllegalArgumentException(\"At least one column must be provided for upserts\");\n }\n\n List<String> parameterList = Lists.newArrayListWithCapacity(numColumns);\n for (int i = 0; i < numColumns; i++) {\n parameterList.add(\"?\");\n }\n return String.format(\"UPSERT INTO %s VALUES (%s)\", tableName, Joiner.on(\", \").join(parameterList));\n }",
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"invocations": [
"newArrayListWithCapacity",
"add",
"format",
"join",
"on"
],
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_74 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseDate() {\n assertEquals(10000L, DateUtil.parseDate(\"1970-01-01 00:00:10\").getTime());\n }",
"class_method_signature": "DateUtilTest.testParseDate()",
"constructor": false,
"full_signature": "@Test public void testParseDate()",
"identifier": "testParseDate",
"invocations": [
"assertEquals",
"getTime",
"parseDate"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseDate()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Date parseDate(String dateValue) {\n return new Date(parseDateTime(dateValue));\n }",
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"invocations": [
"parseDateTime"
],
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_161 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/cache/ServerCacheClientTest.java",
"identifier": "ServerCacheClientTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddServerCache() throws SQLException {\n PhoenixConnection connection = Mockito.mock(PhoenixConnection.class);\n ConnectionQueryServices services = Mockito.mock(ConnectionQueryServices.class);\n Mockito.when(services.getExecutor()).thenReturn(null);\n Mockito.when(connection.getQueryServices()).thenReturn(services);\n byte[] tableName = Bytes.toBytes(\"TableName\");\n PTableImpl pTable = Mockito.mock(PTableImpl.class);\n Mockito.when(pTable.getPhysicalName()).thenReturn(PNameFactory.newName(\"TableName\"));\n Mockito.when(services.getAllTableRegions(tableName)).thenThrow(new SQLException(\"Test Exception\"));\n ServerCacheClient client = new ServerCacheClient(connection);\n try {\n client.addServerCache(null, null, null, null, pTable, false);\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Test Exception\");\n }\n }",
"class_method_signature": "ServerCacheClientTest.testAddServerCache()",
"constructor": false,
"full_signature": "@Test public void testAddServerCache()",
"identifier": "testAddServerCache",
"invocations": [
"mock",
"mock",
"thenReturn",
"when",
"getExecutor",
"thenReturn",
"when",
"getQueryServices",
"toBytes",
"mock",
"thenReturn",
"when",
"getPhysicalName",
"newName",
"thenThrow",
"when",
"getAllTableRegions",
"addServerCache",
"assertEquals",
"getMessage"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAddServerCache()",
"testcase": true
} | {
"fields": [
{
"declarator": "UUID_LENGTH = Bytes.SIZEOF_LONG",
"modifier": "public static final",
"original_string": "public static final int UUID_LENGTH = Bytes.SIZEOF_LONG;",
"type": "int",
"var_name": "UUID_LENGTH"
},
{
"declarator": "KEY_IN_FIRST_REGION = new byte[]{0}",
"modifier": "public static final",
"original_string": "public static final byte[] KEY_IN_FIRST_REGION = new byte[]{0};",
"type": "byte[]",
"var_name": "KEY_IN_FIRST_REGION"
},
{
"declarator": "LOGGER = LoggerFactory.getLogger(ServerCacheClient.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ServerCacheClient.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "RANDOM = new Random()",
"modifier": "private static final",
"original_string": "private static final Random RANDOM = new Random();",
"type": "Random",
"var_name": "RANDOM"
},
{
"declarator": "HASH_JOIN_SERVER_CACHE_RESEND_PER_SERVER = \"hash.join.server.cache.resend.per.server\"",
"modifier": "public static final",
"original_string": "public static final String HASH_JOIN_SERVER_CACHE_RESEND_PER_SERVER = \"hash.join.server.cache.resend.per.server\";",
"type": "String",
"var_name": "HASH_JOIN_SERVER_CACHE_RESEND_PER_SERVER"
},
{
"declarator": "connection",
"modifier": "private final",
"original_string": "private final PhoenixConnection connection;",
"type": "PhoenixConnection",
"var_name": "connection"
},
{
"declarator": "cacheUsingTableMap = new ConcurrentHashMap<Integer, PTable>()",
"modifier": "private final",
"original_string": "private final Map<Integer, PTable> cacheUsingTableMap = new ConcurrentHashMap<Integer, PTable>();",
"type": "Map<Integer, PTable>",
"var_name": "cacheUsingTableMap"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java",
"identifier": "ServerCacheClient",
"interfaces": "",
"methods": [
{
"class_method_signature": "ServerCacheClient.ServerCacheClient(PhoenixConnection connection)",
"constructor": true,
"full_signature": "public ServerCacheClient(PhoenixConnection connection)",
"identifier": "ServerCacheClient",
"modifiers": "public",
"parameters": "(PhoenixConnection connection)",
"return": "",
"signature": " ServerCacheClient(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.getConnection()",
"constructor": false,
"full_signature": "public PhoenixConnection getConnection()",
"identifier": "getConnection",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixConnection",
"signature": "PhoenixConnection getConnection()",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.createServerCache(byte[] cacheId, QueryPlan delegate)",
"constructor": false,
"full_signature": "public ServerCache createServerCache(byte[] cacheId, QueryPlan delegate)",
"identifier": "createServerCache",
"modifiers": "public",
"parameters": "(byte[] cacheId, QueryPlan delegate)",
"return": "ServerCache",
"signature": "ServerCache createServerCache(byte[] cacheId, QueryPlan delegate)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"constructor": false,
"full_signature": "public ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"identifier": "addServerCache",
"modifiers": "public",
"parameters": "(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"return": "ServerCache",
"signature": "ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable,\n boolean storeCacheOnClient)",
"constructor": false,
"full_signature": "public ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable,\n boolean storeCacheOnClient)",
"identifier": "addServerCache",
"modifiers": "public",
"parameters": "(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable,\n boolean storeCacheOnClient)",
"return": "ServerCache",
"signature": "ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable,\n boolean storeCacheOnClient)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.addServerCache(\n ScanRanges keyRanges, final byte[] cacheId, final ImmutableBytesWritable cachePtr,\n final byte[] txState, final ServerCacheFactory cacheFactory,\n final PTable cacheUsingTable, final boolean usePersistentCache,\n boolean storeCacheOnClient)",
"constructor": false,
"full_signature": "public ServerCache addServerCache(\n ScanRanges keyRanges, final byte[] cacheId, final ImmutableBytesWritable cachePtr,\n final byte[] txState, final ServerCacheFactory cacheFactory,\n final PTable cacheUsingTable, final boolean usePersistentCache,\n boolean storeCacheOnClient)",
"identifier": "addServerCache",
"modifiers": "public",
"parameters": "(\n ScanRanges keyRanges, final byte[] cacheId, final ImmutableBytesWritable cachePtr,\n final byte[] txState, final ServerCacheFactory cacheFactory,\n final PTable cacheUsingTable, final boolean usePersistentCache,\n boolean storeCacheOnClient)",
"return": "ServerCache",
"signature": "ServerCache addServerCache(\n ScanRanges keyRanges, final byte[] cacheId, final ImmutableBytesWritable cachePtr,\n final byte[] txState, final ServerCacheFactory cacheFactory,\n final PTable cacheUsingTable, final boolean usePersistentCache,\n boolean storeCacheOnClient)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.removeServerCache(final ServerCache cache, Set<HRegionLocation> remainingOnServers)",
"constructor": false,
"full_signature": "private void removeServerCache(final ServerCache cache, Set<HRegionLocation> remainingOnServers)",
"identifier": "removeServerCache",
"modifiers": "private",
"parameters": "(final ServerCache cache, Set<HRegionLocation> remainingOnServers)",
"return": "void",
"signature": "void removeServerCache(final ServerCache cache, Set<HRegionLocation> remainingOnServers)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.generateId()",
"constructor": false,
"full_signature": "public static byte[] generateId()",
"identifier": "generateId",
"modifiers": "public static",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] generateId()",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.idToString(byte[] uuid)",
"constructor": false,
"full_signature": "public static String idToString(byte[] uuid)",
"identifier": "idToString",
"modifiers": "public static",
"parameters": "(byte[] uuid)",
"return": "String",
"signature": "String idToString(byte[] uuid)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.getKeyInRegion(byte[] regionStartKey)",
"constructor": false,
"full_signature": "private static byte[] getKeyInRegion(byte[] regionStartKey)",
"identifier": "getKeyInRegion",
"modifiers": "private static",
"parameters": "(byte[] regionStartKey)",
"return": "byte[]",
"signature": "byte[] getKeyInRegion(byte[] regionStartKey)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.addServerCache(byte[] startkeyOfRegion, ServerCache cache, HashCacheFactory cacheFactory,\n byte[] txState, PTable pTable)",
"constructor": false,
"full_signature": "public boolean addServerCache(byte[] startkeyOfRegion, ServerCache cache, HashCacheFactory cacheFactory,\n byte[] txState, PTable pTable)",
"identifier": "addServerCache",
"modifiers": "public",
"parameters": "(byte[] startkeyOfRegion, ServerCache cache, HashCacheFactory cacheFactory,\n byte[] txState, PTable pTable)",
"return": "boolean",
"signature": "boolean addServerCache(byte[] startkeyOfRegion, ServerCache cache, HashCacheFactory cacheFactory,\n byte[] txState, PTable pTable)",
"testcase": false
},
{
"class_method_signature": "ServerCacheClient.addServerCache(Table htable, byte[] key, final PTable cacheUsingTable, final byte[] cacheId,\n final ImmutableBytesWritable cachePtr, final ServerCacheFactory cacheFactory, final byte[] txState, final boolean usePersistentCache)",
"constructor": false,
"full_signature": "public boolean addServerCache(Table htable, byte[] key, final PTable cacheUsingTable, final byte[] cacheId,\n final ImmutableBytesWritable cachePtr, final ServerCacheFactory cacheFactory, final byte[] txState, final boolean usePersistentCache)",
"identifier": "addServerCache",
"modifiers": "public",
"parameters": "(Table htable, byte[] key, final PTable cacheUsingTable, final byte[] cacheId,\n final ImmutableBytesWritable cachePtr, final ServerCacheFactory cacheFactory, final byte[] txState, final boolean usePersistentCache)",
"return": "boolean",
"signature": "boolean addServerCache(Table htable, byte[] key, final PTable cacheUsingTable, final byte[] cacheId,\n final ImmutableBytesWritable cachePtr, final ServerCacheFactory cacheFactory, final byte[] txState, final boolean usePersistentCache)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)\n throws SQLException {\n return addServerCache(keyRanges, cachePtr, txState, cacheFactory, cacheUsingTable, false);\n }",
"class_method_signature": "ServerCacheClient.addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"constructor": false,
"full_signature": "public ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"identifier": "addServerCache",
"invocations": [
"addServerCache"
],
"modifiers": "public",
"parameters": "(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"return": "ServerCache",
"signature": "ServerCache addServerCache(\n ScanRanges keyRanges, final ImmutableBytesWritable cachePtr, final byte[] txState,\n final ServerCacheFactory cacheFactory, final PTable cacheUsingTable)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_6 | {
"fields": [
{
"declarator": "exit = ExpectedSystemExit.none()",
"modifier": "@Rule\n public final",
"original_string": "@Rule\n public final ExpectedSystemExit exit = ExpectedSystemExit.none();",
"type": "ExpectedSystemExit",
"var_name": "exit"
}
],
"file": "phoenix-pherf/src/test/java/org/apache/phoenix/pherf/PherfTest.java",
"identifier": "PherfTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testListArgument() {\n String[] args = {\"-listFiles\"};\n Pherf.main(args);\n }",
"class_method_signature": "PherfTest.testListArgument()",
"constructor": false,
"full_signature": "@Test public void testListArgument()",
"identifier": "testListArgument",
"invocations": [
"main"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testListArgument()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(Pherf.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Pherf.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "options = new Options()",
"modifier": "private static final",
"original_string": "private static final Options options = new Options();",
"type": "Options",
"var_name": "options"
},
{
"declarator": "phoenixUtil = PhoenixUtil.create()",
"modifier": "private final",
"original_string": "private final PhoenixUtil phoenixUtil = PhoenixUtil.create();",
"type": "PhoenixUtil",
"var_name": "phoenixUtil"
},
{
"declarator": "zookeeper",
"modifier": "private final",
"original_string": "private final String zookeeper;",
"type": "String",
"var_name": "zookeeper"
},
{
"declarator": "scenarioFile",
"modifier": "private final",
"original_string": "private final String scenarioFile;",
"type": "String",
"var_name": "scenarioFile"
},
{
"declarator": "schemaFile",
"modifier": "private final",
"original_string": "private final String schemaFile;",
"type": "String",
"var_name": "schemaFile"
},
{
"declarator": "queryHint",
"modifier": "private final",
"original_string": "private final String queryHint;",
"type": "String",
"var_name": "queryHint"
},
{
"declarator": "properties",
"modifier": "private final",
"original_string": "private final Properties properties;",
"type": "Properties",
"var_name": "properties"
},
{
"declarator": "preLoadData",
"modifier": "private final",
"original_string": "private final boolean preLoadData;",
"type": "boolean",
"var_name": "preLoadData"
},
{
"declarator": "dropPherfTablesRegEx",
"modifier": "private final",
"original_string": "private final String dropPherfTablesRegEx;",
"type": "String",
"var_name": "dropPherfTablesRegEx"
},
{
"declarator": "executeQuerySets",
"modifier": "private final",
"original_string": "private final boolean executeQuerySets;",
"type": "boolean",
"var_name": "executeQuerySets"
},
{
"declarator": "isFunctional",
"modifier": "private final",
"original_string": "private final boolean isFunctional;",
"type": "boolean",
"var_name": "isFunctional"
},
{
"declarator": "monitor",
"modifier": "private final",
"original_string": "private final boolean monitor;",
"type": "boolean",
"var_name": "monitor"
},
{
"declarator": "rowCountOverride",
"modifier": "private final",
"original_string": "private final int rowCountOverride;",
"type": "int",
"var_name": "rowCountOverride"
},
{
"declarator": "listFiles",
"modifier": "private final",
"original_string": "private final boolean listFiles;",
"type": "boolean",
"var_name": "listFiles"
},
{
"declarator": "applySchema",
"modifier": "private final",
"original_string": "private final boolean applySchema;",
"type": "boolean",
"var_name": "applySchema"
},
{
"declarator": "writeRuntimeResults",
"modifier": "private final",
"original_string": "private final boolean writeRuntimeResults;",
"type": "boolean",
"var_name": "writeRuntimeResults"
},
{
"declarator": "generateStatistics",
"modifier": "private final",
"original_string": "private final GeneratePhoenixStats generateStatistics;",
"type": "GeneratePhoenixStats",
"var_name": "generateStatistics"
},
{
"declarator": "label",
"modifier": "private final",
"original_string": "private final String label;",
"type": "String",
"var_name": "label"
},
{
"declarator": "compareResults",
"modifier": "private final",
"original_string": "private final String compareResults;",
"type": "String",
"var_name": "compareResults"
},
{
"declarator": "compareType",
"modifier": "private final",
"original_string": "private final CompareType compareType;",
"type": "CompareType",
"var_name": "compareType"
},
{
"declarator": "thinDriver",
"modifier": "private final",
"original_string": "private final boolean thinDriver;",
"type": "boolean",
"var_name": "thinDriver"
},
{
"declarator": "queryServerUrl",
"modifier": "private final",
"original_string": "private final String queryServerUrl;",
"type": "String",
"var_name": "queryServerUrl"
},
{
"declarator": "workloadExecutor",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n WorkloadExecutor workloadExecutor;",
"type": "WorkloadExecutor",
"var_name": "workloadExecutor"
}
],
"file": "phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java",
"identifier": "Pherf",
"interfaces": "",
"methods": [
{
"class_method_signature": "Pherf.Pherf(String[] args)",
"constructor": true,
"full_signature": "public Pherf(String[] args)",
"identifier": "Pherf",
"modifiers": "public",
"parameters": "(String[] args)",
"return": "",
"signature": " Pherf(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.getLogPerNRow(CommandLine command)",
"constructor": false,
"full_signature": "private String getLogPerNRow(CommandLine command)",
"identifier": "getLogPerNRow",
"modifiers": "private",
"parameters": "(CommandLine command)",
"return": "String",
"signature": "String getLogPerNRow(CommandLine command)",
"testcase": false
},
{
"class_method_signature": "Pherf.getProperties()",
"constructor": false,
"full_signature": "public Properties getProperties()",
"identifier": "getProperties",
"modifiers": "public",
"parameters": "()",
"return": "Properties",
"signature": "Properties getProperties()",
"testcase": false
},
{
"class_method_signature": "Pherf.main(String[] args)",
"constructor": false,
"full_signature": "public static void main(String[] args)",
"identifier": "main",
"modifiers": "public static",
"parameters": "(String[] args)",
"return": "void",
"signature": "void main(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.run()",
"constructor": false,
"full_signature": "public void run()",
"identifier": "run",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void main(String[] args) {\n try {\n new Pherf(args).run();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"class_method_signature": "Pherf.main(String[] args)",
"constructor": false,
"full_signature": "public static void main(String[] args)",
"identifier": "main",
"invocations": [
"run",
"printStackTrace",
"exit"
],
"modifiers": "public static",
"parameters": "(String[] args)",
"return": "void",
"signature": "void main(String[] args)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_23 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDescendingNextValueReachLimit() throws SQLException {\n \tassertFalse(SequenceUtil.checkIfLimitReached(5, MIN_VALUE, MAX_VALUE, -2/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testDescendingNextValueReachLimit()",
"constructor": false,
"full_signature": "@Test public void testDescendingNextValueReachLimit()",
"identifier": "testDescendingNextValueReachLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDescendingNextValueReachLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_136 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/monitoring/MetricUtilTest.java",
"identifier": "MetricUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetMetricsStopWatchWithMetricsFalse() throws Exception {\n MetricsStopWatch metricsStopWatch = MetricUtil.getMetricsStopWatch(false,\n LogLevel.OFF, WALL_CLOCK_TIME_MS);\n assertFalse(metricsStopWatch.getMetricsEnabled());\n }",
"class_method_signature": "MetricUtilTest.testGetMetricsStopWatchWithMetricsFalse()",
"constructor": false,
"full_signature": "@Test public void testGetMetricsStopWatchWithMetricsFalse()",
"identifier": "testGetMetricsStopWatchWithMetricsFalse",
"invocations": [
"getMetricsStopWatch",
"assertFalse",
"getMetricsEnabled"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetMetricsStopWatchWithMetricsFalse()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/monitoring/MetricUtil.java",
"identifier": "MetricUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetricUtil.getCombinableMetric(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"constructor": false,
"full_signature": "public static CombinableMetric getCombinableMetric(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"identifier": "getCombinableMetric",
"modifiers": "public static",
"parameters": "(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"return": "CombinableMetric",
"signature": "CombinableMetric getCombinableMetric(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"testcase": false
},
{
"class_method_signature": "MetricUtil.getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"constructor": false,
"full_signature": "public static MetricsStopWatch getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"identifier": "getMetricsStopWatch",
"modifiers": "public static",
"parameters": "(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"return": "MetricsStopWatch",
"signature": "MetricsStopWatch getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static MetricsStopWatch getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type) {\n if(!type.isLoggingEnabled(connectionLogLevel) && !isRequestMetricsEnabled) {\n return new MetricsStopWatch(false); }\n return new MetricsStopWatch(true);\n }",
"class_method_signature": "MetricUtil.getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"constructor": false,
"full_signature": "public static MetricsStopWatch getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"identifier": "getMetricsStopWatch",
"invocations": [
"isLoggingEnabled"
],
"modifiers": "public static",
"parameters": "(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"return": "MetricsStopWatch",
"signature": "MetricsStopWatch getMetricsStopWatch(boolean isRequestMetricsEnabled,\n LogLevel connectionLogLevel,\n MetricType type)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_120 | {
"fields": [
{
"declarator": "TEST_TABLE_STRING = \"TEST_TABLE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_STRING = \"TEST_TABLE\";",
"type": "String",
"var_name": "TEST_TABLE_STRING"
},
{
"declarator": "TEST_TABLE_DDL = \"CREATE TABLE IF NOT EXISTS \" +\n TEST_TABLE_STRING + \" (\\n\" +\n \" ORGANIZATION_ID CHAR(4) NOT NULL,\\n\" +\n \" ENTITY_ID CHAR(7) NOT NULL,\\n\" +\n \" SCORE INTEGER,\\n\" +\n \" LAST_UPDATE_TIME TIMESTAMP\\n\" +\n \" CONSTRAINT TEST_TABLE_PK PRIMARY KEY (\\n\" +\n \" ORGANIZATION_ID,\\n\" +\n \" ENTITY_ID\\n\" +\n \" )\\n\" +\n \") VERSIONS=1, MULTI_TENANT=TRUE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_DDL = \"CREATE TABLE IF NOT EXISTS \" +\n TEST_TABLE_STRING + \" (\\n\" +\n \" ORGANIZATION_ID CHAR(4) NOT NULL,\\n\" +\n \" ENTITY_ID CHAR(7) NOT NULL,\\n\" +\n \" SCORE INTEGER,\\n\" +\n \" LAST_UPDATE_TIME TIMESTAMP\\n\" +\n \" CONSTRAINT TEST_TABLE_PK PRIMARY KEY (\\n\" +\n \" ORGANIZATION_ID,\\n\" +\n \" ENTITY_ID\\n\" +\n \" )\\n\" +\n \") VERSIONS=1, MULTI_TENANT=TRUE\";",
"type": "String",
"var_name": "TEST_TABLE_DDL"
},
{
"declarator": "TEST_TABLE_INDEX_STRING = \"TEST_TABLE_SCORE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_INDEX_STRING = \"TEST_TABLE_SCORE\";",
"type": "String",
"var_name": "TEST_TABLE_INDEX_STRING"
},
{
"declarator": "TEST_TABLE_INDEX_DDL = \"CREATE INDEX IF NOT EXISTS \" +\n TEST_TABLE_INDEX_STRING\n + \" ON \" + TEST_TABLE_STRING + \" (SCORE DESC, ENTITY_ID DESC)\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_INDEX_DDL = \"CREATE INDEX IF NOT EXISTS \" +\n TEST_TABLE_INDEX_STRING\n + \" ON \" + TEST_TABLE_STRING + \" (SCORE DESC, ENTITY_ID DESC)\";",
"type": "String",
"var_name": "TEST_TABLE_INDEX_DDL"
},
{
"declarator": "ROW = Bytes.toBytes(\"org1entity1\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"org1entity1\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "FAM_STRING = QueryConstants.DEFAULT_COLUMN_FAMILY",
"modifier": "private static final",
"original_string": "private static final String FAM_STRING = QueryConstants.DEFAULT_COLUMN_FAMILY;",
"type": "String",
"var_name": "FAM_STRING"
},
{
"declarator": "FAM = Bytes.toBytes(FAM_STRING)",
"modifier": "private static final",
"original_string": "private static final byte[] FAM = Bytes.toBytes(FAM_STRING);",
"type": "byte[]",
"var_name": "FAM"
},
{
"declarator": "INDEXED_QUALIFIER = Bytes.toBytes(\"SCORE\")",
"modifier": "private static final",
"original_string": "private static final byte[] INDEXED_QUALIFIER = Bytes.toBytes(\"SCORE\");",
"type": "byte[]",
"var_name": "INDEXED_QUALIFIER"
},
{
"declarator": "VALUE_1 = Bytes.toBytes(111)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_1 = Bytes.toBytes(111);",
"type": "byte[]",
"var_name": "VALUE_1"
},
{
"declarator": "VALUE_2 = Bytes.toBytes(222)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_2 = Bytes.toBytes(222);",
"type": "byte[]",
"var_name": "VALUE_2"
},
{
"declarator": "VALUE_3 = Bytes.toBytes(333)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_3 = Bytes.toBytes(333);",
"type": "byte[]",
"var_name": "VALUE_3"
},
{
"declarator": "VALUE_4 = Bytes.toBytes(444)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_4 = Bytes.toBytes(444);",
"type": "byte[]",
"var_name": "VALUE_4"
},
{
"declarator": "indexBuilder",
"modifier": "private",
"original_string": "private NonTxIndexBuilder indexBuilder;",
"type": "NonTxIndexBuilder",
"var_name": "indexBuilder"
},
{
"declarator": "mockIndexMetaData",
"modifier": "private",
"original_string": "private PhoenixIndexMetaData mockIndexMetaData;",
"type": "PhoenixIndexMetaData",
"var_name": "mockIndexMetaData"
},
{
"declarator": "currentRowCells",
"modifier": "private",
"original_string": "private List<Cell> currentRowCells;",
"type": "List<Cell>",
"var_name": "currentRowCells"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/covered/NonTxIndexBuilderTest.java",
"identifier": "NonTxIndexBuilderTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testRebuildMultipleVersionRow() throws IOException {\n // when doing a rebuild, we are replaying mutations so we want to ignore newer mutations\n // see LocalTable#getCurrentRowState()\n Mockito.when(mockIndexMetaData.getReplayWrite()).thenReturn(ReplayWrite.INDEX_ONLY);\n\n // the current row state has 3 versions, but if we rebuild as of t=2, scanner in LocalTable\n // should only return first\n Cell currentCell1 = PhoenixKeyValueUtil.newKeyValue(ROW, FAM, INDEXED_QUALIFIER, 1, VALUE_1);\n Cell currentCell2 = PhoenixKeyValueUtil.newKeyValue(ROW, FAM, INDEXED_QUALIFIER, 2, VALUE_2);\n Cell currentCell3 = PhoenixKeyValueUtil.newKeyValue(ROW, FAM, INDEXED_QUALIFIER, 3, VALUE_3);\n Cell currentCell4 = PhoenixKeyValueUtil.newKeyValue(ROW, FAM, INDEXED_QUALIFIER, 4, VALUE_4);\n setCurrentRowState(Arrays.asList(currentCell4, currentCell3, currentCell2, currentCell1));\n\n // rebuilder replays mutations starting from t=2\n MultiMutation mutation = new MultiMutation(new ImmutableBytesPtr(ROW));\n Put put = new Put(ROW);\n put.addImmutable(FAM, INDEXED_QUALIFIER, 4, VALUE_4);\n mutation.addAll(put);\n put = new Put(ROW);\n put.addImmutable(FAM, INDEXED_QUALIFIER, 3, VALUE_3);\n mutation.addAll(put);\n put = new Put(ROW);\n put.addImmutable(FAM, INDEXED_QUALIFIER, 2, VALUE_2);\n mutation.addAll(put);\n\n Collection<Pair<Mutation, byte[]>> indexUpdates = Lists.newArrayList();\n Collection<? extends Mutation> mutations =\n IndexManagementUtil.flattenMutationsByTimestamp(Collections.singletonList(mutation));\n\n CachedLocalTable cachedLocalTable = CachedLocalTable.build(\n mutations,\n this.mockIndexMetaData,\n this.indexBuilder.getEnv().getRegion());\n\n for (Mutation m : mutations) {\n indexUpdates.addAll(indexBuilder.getIndexUpdate(m, mockIndexMetaData, cachedLocalTable));\n }\n // 3 puts and 3 deletes (one to hide existing index row for VALUE_1, and two to hide index\n // rows for VALUE_2, VALUE_3)\n assertEquals(6, indexUpdates.size());\n\n assertContains(indexUpdates, 2, ROW, KeyValue.Type.DeleteFamily, FAM,\n new byte[0] /* qual not needed */, 2);\n assertContains(indexUpdates, ColumnTracker.NO_NEWER_PRIMARY_TABLE_ENTRY_TIMESTAMP, ROW,\n KeyValue.Type.Put, FAM, QueryConstants.EMPTY_COLUMN_BYTES, 2);\n assertContains(indexUpdates, 3, ROW, KeyValue.Type.DeleteFamily, FAM,\n new byte[0] /* qual not needed */, 3);\n assertContains(indexUpdates, ColumnTracker.NO_NEWER_PRIMARY_TABLE_ENTRY_TIMESTAMP, ROW,\n KeyValue.Type.Put, FAM, QueryConstants.EMPTY_COLUMN_BYTES, 3);\n assertContains(indexUpdates, 4, ROW, KeyValue.Type.DeleteFamily, FAM,\n new byte[0] /* qual not needed */, 4);\n assertContains(indexUpdates, ColumnTracker.NO_NEWER_PRIMARY_TABLE_ENTRY_TIMESTAMP, ROW,\n KeyValue.Type.Put, FAM, QueryConstants.EMPTY_COLUMN_BYTES, 4);\n }",
"class_method_signature": "NonTxIndexBuilderTest.testRebuildMultipleVersionRow()",
"constructor": false,
"full_signature": "@Test public void testRebuildMultipleVersionRow()",
"identifier": "testRebuildMultipleVersionRow",
"invocations": [
"thenReturn",
"when",
"getReplayWrite",
"newKeyValue",
"newKeyValue",
"newKeyValue",
"newKeyValue",
"setCurrentRowState",
"asList",
"addImmutable",
"addAll",
"addImmutable",
"addAll",
"addImmutable",
"addAll",
"newArrayList",
"flattenMutationsByTimestamp",
"singletonList",
"build",
"getRegion",
"getEnv",
"addAll",
"getIndexUpdate",
"assertEquals",
"size",
"assertContains",
"assertContains",
"assertContains",
"assertContains",
"assertContains",
"assertContains"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testRebuildMultipleVersionRow()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(NonTxIndexBuilder.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(NonTxIndexBuilder.class);",
"type": "Logger",
"var_name": "LOGGER"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/NonTxIndexBuilder.java",
"identifier": "NonTxIndexBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "NonTxIndexBuilder.setup(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "@Override public void setup(RegionCoprocessorEnvironment env)",
"identifier": "setup",
"modifiers": "@Override public",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "void",
"signature": "void setup(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"identifier": "getIndexUpdate",
"modifiers": "@Override public",
"parameters": "(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private void batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"identifier": "batchMutationAndAddUpdates",
"modifiers": "private",
"parameters": "(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private boolean addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"identifier": "addMutationsForBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"return": "boolean",
"signature": "boolean addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private long addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"identifier": "addUpdateForGivenTimestamp",
"modifiers": "private",
"parameters": "(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"return": "long",
"signature": "long addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private void addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"identifier": "addCleanupForCurrentBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private long addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"identifier": "addCurrentStateMutationsForBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"return": "long",
"signature": "long addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "protected void addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"identifier": "addDeleteUpdatesToMap",
"modifiers": "protected",
"parameters": "(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"identifier": "getIndexUpdateForFilteredRows",
"modifiers": "@Override public",
"parameters": "(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"testcase": false
}
],
"superclass": "extends BaseIndexBuilder"
} | {
"body": "@Override\n public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState) throws IOException {\n \t// create a state manager, so we can manage each batch\n LocalTableState state = new LocalTableState(localHBaseState, mutation);\n // build the index updates for each group\n IndexUpdateManager manager = new IndexUpdateManager(indexMetaData);\n\n batchMutationAndAddUpdates(manager, state, mutation, indexMetaData);\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Found index updates for Mutation: \" + mutation + \"\\n\" + manager);\n }\n\n return manager.toMap();\n }",
"class_method_signature": "NonTxIndexBuilder.getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"identifier": "getIndexUpdate",
"invocations": [
"batchMutationAndAddUpdates",
"isTraceEnabled",
"trace",
"toMap"
],
"modifiers": "@Override public",
"parameters": "(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_35 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsCycleAllowedForStandardAllocation() {\n assertTrue(SequenceUtil.isCycleAllowed(1));\n }",
"class_method_signature": "SequenceUtilTest.testIsCycleAllowedForStandardAllocation()",
"constructor": false,
"full_signature": "@Test public void testIsCycleAllowedForStandardAllocation()",
"identifier": "testIsCycleAllowedForStandardAllocation",
"invocations": [
"assertTrue",
"isCycleAllowed"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testIsCycleAllowedForStandardAllocation()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean isCycleAllowed(long numToAllocate) {\n return !isBulkAllocation(numToAllocate); \n \n }",
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"invocations": [
"isBulkAllocation"
],
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_198 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/parse/CastParseNodeTest.java",
"identifier": "CastParseNodeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToSQL() {\n ColumnParseNode columnParseNode = new ColumnParseNode(TableName.create(\"SCHEMA1\", \"TABLE1\"), \"V\");\n CastParseNode castParseNode = new CastParseNode(columnParseNode, PLong.INSTANCE, null, null, false);\n StringBuilder stringBuilder = new StringBuilder();\n castParseNode.toSQL(null, stringBuilder);\n assertEquals(\" CAST(TABLE1.V AS BIGINT)\", stringBuilder.toString());\n }",
"class_method_signature": "CastParseNodeTest.testToSQL()",
"constructor": false,
"full_signature": "@Test public void testToSQL()",
"identifier": "testToSQL",
"invocations": [
"create",
"toSQL",
"assertEquals",
"toString"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToSQL()",
"testcase": true
} | {
"fields": [
{
"declarator": "dt",
"modifier": "private final",
"original_string": "private final PDataType dt;",
"type": "PDataType",
"var_name": "dt"
},
{
"declarator": "maxLength",
"modifier": "private final",
"original_string": "private final Integer maxLength;",
"type": "Integer",
"var_name": "maxLength"
},
{
"declarator": "scale",
"modifier": "private final",
"original_string": "private final Integer scale;",
"type": "Integer",
"var_name": "scale"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/parse/CastParseNode.java",
"identifier": "CastParseNode",
"interfaces": "",
"methods": [
{
"class_method_signature": "CastParseNode.CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"constructor": true,
"full_signature": " CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"identifier": "CastParseNode",
"modifiers": "",
"parameters": "(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"return": "",
"signature": " CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"constructor": true,
"full_signature": " CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"identifier": "CastParseNode",
"modifiers": "",
"parameters": "(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"return": "",
"signature": " CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.accept(ParseNodeVisitor<T> visitor)",
"constructor": false,
"full_signature": "@Override public T accept(ParseNodeVisitor<T> visitor)",
"identifier": "accept",
"modifiers": "@Override public",
"parameters": "(ParseNodeVisitor<T> visitor)",
"return": "T",
"signature": "T accept(ParseNodeVisitor<T> visitor)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getDataType()",
"constructor": false,
"full_signature": "public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getMaxLength()",
"constructor": false,
"full_signature": "public Integer getMaxLength()",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getMaxLength()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getScale()",
"constructor": false,
"full_signature": "public Integer getScale()",
"identifier": "getScale",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getScale()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.equals(Object obj)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object obj)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object obj)",
"return": "boolean",
"signature": "boolean equals(Object obj)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.toSQL(ColumnResolver resolver, StringBuilder buf)",
"constructor": false,
"full_signature": "@Override public void toSQL(ColumnResolver resolver, StringBuilder buf)",
"identifier": "toSQL",
"modifiers": "@Override public",
"parameters": "(ColumnResolver resolver, StringBuilder buf)",
"return": "void",
"signature": "void toSQL(ColumnResolver resolver, StringBuilder buf)",
"testcase": false
}
],
"superclass": "extends UnaryParseNode"
} | {
"body": "@Override\n public void toSQL(ColumnResolver resolver, StringBuilder buf) {\n List<ParseNode> children = getChildren();\n buf.append(\" CAST(\");\n children.get(0).toSQL(resolver, buf);\n buf.append(\" AS \");\n boolean isArray = dt.isArrayType();\n PDataType type = isArray ? PDataType.arrayBaseType(dt) : dt;\n buf.append(type.getSqlTypeName());\n if (maxLength != null) {\n buf.append('(');\n buf.append(maxLength);\n if (scale != null) {\n buf.append(',');\n buf.append(scale); // has both max length and scale. For ex- decimal(10,2)\n } \n buf.append(')');\n }\n if (isArray) {\n buf.append(' ');\n buf.append(PDataType.ARRAY_TYPE_SUFFIX);\n }\n buf.append(\")\");\n }",
"class_method_signature": "CastParseNode.toSQL(ColumnResolver resolver, StringBuilder buf)",
"constructor": false,
"full_signature": "@Override public void toSQL(ColumnResolver resolver, StringBuilder buf)",
"identifier": "toSQL",
"invocations": [
"getChildren",
"append",
"toSQL",
"get",
"append",
"isArrayType",
"arrayBaseType",
"append",
"getSqlTypeName",
"append",
"append",
"append",
"append",
"append",
"append",
"append",
"append"
],
"modifiers": "@Override public",
"parameters": "(ColumnResolver resolver, StringBuilder buf)",
"return": "void",
"signature": "void toSQL(ColumnResolver resolver, StringBuilder buf)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_177 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDateConversions() {\n long now = System.currentTimeMillis();\n Date date = new Date(now);\n Time t = new Time(now);\n Timestamp ts = new Timestamp(now);\n \n Object o = PDate.INSTANCE.toObject(ts, PTimestamp.INSTANCE);\n assertEquals(o.getClass(), java.sql.Date.class);\n o = PDate.INSTANCE.toObject(t, PTime.INSTANCE);\n assertEquals(o.getClass(), java.sql.Date.class);\n \n o = PTime.INSTANCE.toObject(date, PDate.INSTANCE);\n assertEquals(o.getClass(), java.sql.Time.class);\n o = PTime.INSTANCE.toObject(ts, PTimestamp.INSTANCE);\n assertEquals(o.getClass(), java.sql.Time.class);\n \n o = PTimestamp.INSTANCE.toObject(date, PDate.INSTANCE);\n assertEquals(o.getClass(), java.sql.Timestamp.class);\n o = PTimestamp.INSTANCE.toObject(t, PTime.INSTANCE);\n assertEquals(o.getClass(), java.sql.Timestamp.class); \n }",
"class_method_signature": "PDataTypeTest.testDateConversions()",
"constructor": false,
"full_signature": "@Test public void testDateConversions()",
"identifier": "testDateConversions",
"invocations": [
"currentTimeMillis",
"toObject",
"assertEquals",
"getClass",
"toObject",
"assertEquals",
"getClass",
"toObject",
"assertEquals",
"getClass",
"toObject",
"assertEquals",
"getClass",
"toObject",
"assertEquals",
"getClass",
"toObject",
"assertEquals",
"getClass"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDateConversions()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public abstract Object toObject(String value);",
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"invocations": [],
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_62 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructSelectStatementWithCaseSensitiveTable() {\n final String tableName = SchemaUtil.getEscapedArgument(\"mytab\");\n final String schemaName = SchemaUtil.getEscapedArgument(\"a\");\n final String fullTableName = SchemaUtil.getTableName(schemaName, tableName);\n assertEquals(\n \"SELECT \\\"ID\\\" , \\\"NAME\\\" FROM \\\"a\\\".\\\"mytab\\\"\",\n QueryUtil.constructSelectStatement(fullTableName, ImmutableList.of(ID_COLUMN,NAME_COLUMN),null));\n }",
"class_method_signature": "QueryUtilTest.testConstructSelectStatementWithCaseSensitiveTable()",
"constructor": false,
"full_signature": "@Test public void testConstructSelectStatementWithCaseSensitiveTable()",
"identifier": "testConstructSelectStatementWithCaseSensitiveTable",
"invocations": [
"getEscapedArgument",
"getEscapedArgument",
"getTableName",
"assertEquals",
"constructSelectStatement",
"of"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructSelectStatementWithCaseSensitiveTable()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions) {\n List<String> columns = Lists.transform(columnInfos, new Function<ColumnInfo, String>(){\n @Override\n public String apply(ColumnInfo input) {\n return input.getColumnName();\n }});\n return constructSelectStatement(fullTableName, columns , conditions, null, false);\n }",
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"invocations": [
"transform",
"getColumnName",
"constructSelectStatement"
],
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_199 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/parse/CastParseNodeTest.java",
"identifier": "CastParseNodeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToSQL_WithLengthAndScale() {\n ColumnParseNode columnParseNode = new ColumnParseNode(TableName.create(\"SCHEMA1\", \"TABLE1\"), \"V\");\n CastParseNode castParseNode = new CastParseNode(columnParseNode, PDecimal.INSTANCE, 5, 3, false);\n StringBuilder stringBuilder = new StringBuilder();\n castParseNode.toSQL(null, stringBuilder);\n assertEquals(\" CAST(TABLE1.V AS DECIMAL(5,3))\", stringBuilder.toString());\n }",
"class_method_signature": "CastParseNodeTest.testToSQL_WithLengthAndScale()",
"constructor": false,
"full_signature": "@Test public void testToSQL_WithLengthAndScale()",
"identifier": "testToSQL_WithLengthAndScale",
"invocations": [
"create",
"toSQL",
"assertEquals",
"toString"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testToSQL_WithLengthAndScale()",
"testcase": true
} | {
"fields": [
{
"declarator": "dt",
"modifier": "private final",
"original_string": "private final PDataType dt;",
"type": "PDataType",
"var_name": "dt"
},
{
"declarator": "maxLength",
"modifier": "private final",
"original_string": "private final Integer maxLength;",
"type": "Integer",
"var_name": "maxLength"
},
{
"declarator": "scale",
"modifier": "private final",
"original_string": "private final Integer scale;",
"type": "Integer",
"var_name": "scale"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/parse/CastParseNode.java",
"identifier": "CastParseNode",
"interfaces": "",
"methods": [
{
"class_method_signature": "CastParseNode.CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"constructor": true,
"full_signature": " CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"identifier": "CastParseNode",
"modifiers": "",
"parameters": "(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"return": "",
"signature": " CastParseNode(ParseNode expr, String dataType, Integer maxLength, Integer scale, boolean arr)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"constructor": true,
"full_signature": " CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"identifier": "CastParseNode",
"modifiers": "",
"parameters": "(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"return": "",
"signature": " CastParseNode(ParseNode expr, PDataType dataType, Integer maxLength, Integer scale, boolean arr)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.accept(ParseNodeVisitor<T> visitor)",
"constructor": false,
"full_signature": "@Override public T accept(ParseNodeVisitor<T> visitor)",
"identifier": "accept",
"modifiers": "@Override public",
"parameters": "(ParseNodeVisitor<T> visitor)",
"return": "T",
"signature": "T accept(ParseNodeVisitor<T> visitor)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getDataType()",
"constructor": false,
"full_signature": "public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getMaxLength()",
"constructor": false,
"full_signature": "public Integer getMaxLength()",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getMaxLength()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.getScale()",
"constructor": false,
"full_signature": "public Integer getScale()",
"identifier": "getScale",
"modifiers": "public",
"parameters": "()",
"return": "Integer",
"signature": "Integer getScale()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "CastParseNode.equals(Object obj)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object obj)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object obj)",
"return": "boolean",
"signature": "boolean equals(Object obj)",
"testcase": false
},
{
"class_method_signature": "CastParseNode.toSQL(ColumnResolver resolver, StringBuilder buf)",
"constructor": false,
"full_signature": "@Override public void toSQL(ColumnResolver resolver, StringBuilder buf)",
"identifier": "toSQL",
"modifiers": "@Override public",
"parameters": "(ColumnResolver resolver, StringBuilder buf)",
"return": "void",
"signature": "void toSQL(ColumnResolver resolver, StringBuilder buf)",
"testcase": false
}
],
"superclass": "extends UnaryParseNode"
} | {
"body": "@Override\n public void toSQL(ColumnResolver resolver, StringBuilder buf) {\n List<ParseNode> children = getChildren();\n buf.append(\" CAST(\");\n children.get(0).toSQL(resolver, buf);\n buf.append(\" AS \");\n boolean isArray = dt.isArrayType();\n PDataType type = isArray ? PDataType.arrayBaseType(dt) : dt;\n buf.append(type.getSqlTypeName());\n if (maxLength != null) {\n buf.append('(');\n buf.append(maxLength);\n if (scale != null) {\n buf.append(',');\n buf.append(scale); // has both max length and scale. For ex- decimal(10,2)\n } \n buf.append(')');\n }\n if (isArray) {\n buf.append(' ');\n buf.append(PDataType.ARRAY_TYPE_SUFFIX);\n }\n buf.append(\")\");\n }",
"class_method_signature": "CastParseNode.toSQL(ColumnResolver resolver, StringBuilder buf)",
"constructor": false,
"full_signature": "@Override public void toSQL(ColumnResolver resolver, StringBuilder buf)",
"identifier": "toSQL",
"invocations": [
"getChildren",
"append",
"toSQL",
"get",
"append",
"isArrayType",
"arrayBaseType",
"append",
"getSqlTypeName",
"append",
"append",
"append",
"append",
"append",
"append",
"append",
"append"
],
"modifiers": "@Override public",
"parameters": "(ColumnResolver resolver, StringBuilder buf)",
"return": "void",
"signature": "void toSQL(ColumnResolver resolver, StringBuilder buf)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_176 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testValueCoersion() throws Exception {\n // Testing coercing integer to other values.\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, 0.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, Double.valueOf(Float.MAX_VALUE) + Double.valueOf(Float.MAX_VALUE)));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, Double.valueOf(Long.MAX_VALUE) + Double.valueOf(Long.MAX_VALUE)));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -100000.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -1000.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -100000.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -1000.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 10.0));\n assertTrue(PDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 0.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, -10.0));\n assertFalse(PDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, Double.MAX_VALUE));\n \n assertTrue(PFloat.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, Float.valueOf(Long.MAX_VALUE) + Float.valueOf(Long.MAX_VALUE)));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -100000.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -1000.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -100000.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -10.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -1000.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 10.0f));\n assertTrue(PFloat.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 0.0f));\n assertFalse(PFloat.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, -10.0f));\n \n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PFloat.INSTANCE, Double.MAX_VALUE));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PLong.INSTANCE, Double.MAX_VALUE));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 10.0));\n assertTrue(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 0.0));\n assertFalse(PUnsignedDouble.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, Double.MAX_VALUE));\n \n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PLong.INSTANCE, Float.MAX_VALUE));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0.0f));\n assertFalse(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0.0f));\n assertTrue(PUnsignedFloat.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n \n // Testing coercing integer to other values.\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PLong.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -100000));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -1000));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -100000));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -10));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -1000));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, -10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 0));\n assertFalse(PInteger.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, -10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 10));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 0));\n assertTrue(PInteger.INSTANCE.isCoercibleTo(PVarbinary.INSTANCE, 0));\n\n // Testing coercing long to other values.\n assertTrue(PLong.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Long.MAX_VALUE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Integer.MAX_VALUE + 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (long)Integer.MAX_VALUE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Integer.MAX_VALUE - 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 0L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, -10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Integer.MIN_VALUE + 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (long)Integer.MIN_VALUE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Integer.MIN_VALUE - 10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, Long.MIN_VALUE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, 0L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, -10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, Long.MAX_VALUE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, -10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, Long.MIN_VALUE));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, -100000L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, -1000L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, -100000L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10L));\n assertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -10L));\n assertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, -1000L));\n\t\tassertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 10L));\n\t\tassertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, 0L));\n\t\tassertFalse(PLong.INSTANCE\n\t\t\t\t.isCoercibleTo(PUnsignedDouble.INSTANCE, -1L));\n\t\tassertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 10L));\n\t\tassertTrue(PLong.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, 0L));\n\t\tassertFalse(PLong.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, -1L));\n \n // Testing coercing smallint to other values.\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (short)0));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (short)-10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (short)0));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)0));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)1000));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)-10));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)1000));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (short)-1));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (short)10));\n assertTrue(PSmallint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (short)0));\n assertFalse(PSmallint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (short)-1));\n \n // Testing coercing tinyint to other values.\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (byte)0));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (byte)-10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (byte)0));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (byte)-10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (byte)100));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (byte)0));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (byte)-10));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (byte)-10));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (byte)-10));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (byte)-10));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (byte)-10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE, (byte)-1));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (byte)10));\n assertTrue(PTinyint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (byte)0));\n assertFalse(PTinyint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE, (byte)-1));\n\n // Testing coercing unsigned_int to other values.\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 0));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PLong.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PLong.INSTANCE, 0));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, 0));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 100000));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 1000));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n assertTrue(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n\n // Testing coercing unsigned_long to other values.\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 10L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PInteger.INSTANCE, 0L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 10L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, 0L));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 10L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, 0L));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 10L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 0L));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, 100000L));\n assertFalse(PUnsignedInt.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 10L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 0L));\n assertFalse(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, 1000L));\n assertTrue(PUnsignedLong.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n \n // Testing coercing unsigned_smallint to other values.\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (short)0));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (short)0));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (short)0));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (short)0));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (short)0));\n assertFalse(PUnsignedSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)0));\n assertFalse(PUnsignedSmallint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (short)1000));\n assertFalse(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)10));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)0));\n assertFalse(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedTinyint.INSTANCE, (short)1000));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n assertTrue(PUnsignedSmallint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n \n // Testing coercing unsigned_tinyint to other values.\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PDouble.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PFloat.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PInteger.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PLong.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedLong.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedInt.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PSmallint.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PTinyint.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (byte)10));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedSmallint.INSTANCE, (byte)0));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedDouble.INSTANCE));\n assertTrue(PUnsignedTinyint.INSTANCE.isCoercibleTo(PUnsignedFloat.INSTANCE));\n \n // Testing coercing Date types\n assertTrue(PDate.INSTANCE.isCoercibleTo(PTimestamp.INSTANCE));\n assertTrue(PDate.INSTANCE.isCoercibleTo(PTime.INSTANCE));\n assertFalse(PTimestamp.INSTANCE.isCoercibleTo(PDate.INSTANCE));\n assertFalse(PTimestamp.INSTANCE.isCoercibleTo(PTime.INSTANCE));\n assertTrue(PTime.INSTANCE.isCoercibleTo(PTimestamp.INSTANCE));\n assertTrue(PTime.INSTANCE.isCoercibleTo(PDate.INSTANCE));\n }",
"class_method_signature": "PDataTypeTest.testValueCoersion()",
"constructor": false,
"full_signature": "@Test public void testValueCoersion()",
"identifier": "testValueCoersion",
"invocations": [
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"valueOf",
"valueOf",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"valueOf",
"valueOf",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"valueOf",
"valueOf",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertFalse",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo",
"assertTrue",
"isCoercibleTo"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testValueCoersion()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public boolean isCoercibleTo(PDataType targetType) {\n return this.equals(targetType) || targetType.equals(PVarbinary.INSTANCE);\n }",
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"invocations": [
"equals",
"equals"
],
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_63 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructSelectWithHint() {\n assertEquals(\n \"SELECT /*+ NO_INDEX */ \\\"col1\\\" , \\\"col2\\\" FROM MYTAB WHERE (\\\"col2\\\"=? and \\\"col3\\\" is null)\",\n QueryUtil.constructSelectStatement(\"MYTAB\", Lists.newArrayList(\"col1\", \"col2\"),\n \"\\\"col2\\\"=? and \\\"col3\\\" is null\", Hint.NO_INDEX, true));\n }",
"class_method_signature": "QueryUtilTest.testConstructSelectWithHint()",
"constructor": false,
"full_signature": "@Test public void testConstructSelectWithHint()",
"identifier": "testConstructSelectWithHint",
"invocations": [
"assertEquals",
"constructSelectStatement",
"newArrayList"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructSelectWithHint()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions) {\n List<String> columns = Lists.transform(columnInfos, new Function<ColumnInfo, String>(){\n @Override\n public String apply(ColumnInfo input) {\n return input.getColumnName();\n }});\n return constructSelectStatement(fullTableName, columns , conditions, null, false);\n }",
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"invocations": [
"transform",
"getColumnName",
"constructSelectStatement"
],
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_121 | {
"fields": [
{
"declarator": "TEST_TABLE_STRING = \"TEST_TABLE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_STRING = \"TEST_TABLE\";",
"type": "String",
"var_name": "TEST_TABLE_STRING"
},
{
"declarator": "TEST_TABLE_DDL = \"CREATE TABLE IF NOT EXISTS \" +\n TEST_TABLE_STRING + \" (\\n\" +\n \" ORGANIZATION_ID CHAR(4) NOT NULL,\\n\" +\n \" ENTITY_ID CHAR(7) NOT NULL,\\n\" +\n \" SCORE INTEGER,\\n\" +\n \" LAST_UPDATE_TIME TIMESTAMP\\n\" +\n \" CONSTRAINT TEST_TABLE_PK PRIMARY KEY (\\n\" +\n \" ORGANIZATION_ID,\\n\" +\n \" ENTITY_ID\\n\" +\n \" )\\n\" +\n \") VERSIONS=1, MULTI_TENANT=TRUE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_DDL = \"CREATE TABLE IF NOT EXISTS \" +\n TEST_TABLE_STRING + \" (\\n\" +\n \" ORGANIZATION_ID CHAR(4) NOT NULL,\\n\" +\n \" ENTITY_ID CHAR(7) NOT NULL,\\n\" +\n \" SCORE INTEGER,\\n\" +\n \" LAST_UPDATE_TIME TIMESTAMP\\n\" +\n \" CONSTRAINT TEST_TABLE_PK PRIMARY KEY (\\n\" +\n \" ORGANIZATION_ID,\\n\" +\n \" ENTITY_ID\\n\" +\n \" )\\n\" +\n \") VERSIONS=1, MULTI_TENANT=TRUE\";",
"type": "String",
"var_name": "TEST_TABLE_DDL"
},
{
"declarator": "TEST_TABLE_INDEX_STRING = \"TEST_TABLE_SCORE\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_INDEX_STRING = \"TEST_TABLE_SCORE\";",
"type": "String",
"var_name": "TEST_TABLE_INDEX_STRING"
},
{
"declarator": "TEST_TABLE_INDEX_DDL = \"CREATE INDEX IF NOT EXISTS \" +\n TEST_TABLE_INDEX_STRING\n + \" ON \" + TEST_TABLE_STRING + \" (SCORE DESC, ENTITY_ID DESC)\"",
"modifier": "private static final",
"original_string": "private static final String TEST_TABLE_INDEX_DDL = \"CREATE INDEX IF NOT EXISTS \" +\n TEST_TABLE_INDEX_STRING\n + \" ON \" + TEST_TABLE_STRING + \" (SCORE DESC, ENTITY_ID DESC)\";",
"type": "String",
"var_name": "TEST_TABLE_INDEX_DDL"
},
{
"declarator": "ROW = Bytes.toBytes(\"org1entity1\")",
"modifier": "private static final",
"original_string": "private static final byte[] ROW = Bytes.toBytes(\"org1entity1\");",
"type": "byte[]",
"var_name": "ROW"
},
{
"declarator": "FAM_STRING = QueryConstants.DEFAULT_COLUMN_FAMILY",
"modifier": "private static final",
"original_string": "private static final String FAM_STRING = QueryConstants.DEFAULT_COLUMN_FAMILY;",
"type": "String",
"var_name": "FAM_STRING"
},
{
"declarator": "FAM = Bytes.toBytes(FAM_STRING)",
"modifier": "private static final",
"original_string": "private static final byte[] FAM = Bytes.toBytes(FAM_STRING);",
"type": "byte[]",
"var_name": "FAM"
},
{
"declarator": "INDEXED_QUALIFIER = Bytes.toBytes(\"SCORE\")",
"modifier": "private static final",
"original_string": "private static final byte[] INDEXED_QUALIFIER = Bytes.toBytes(\"SCORE\");",
"type": "byte[]",
"var_name": "INDEXED_QUALIFIER"
},
{
"declarator": "VALUE_1 = Bytes.toBytes(111)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_1 = Bytes.toBytes(111);",
"type": "byte[]",
"var_name": "VALUE_1"
},
{
"declarator": "VALUE_2 = Bytes.toBytes(222)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_2 = Bytes.toBytes(222);",
"type": "byte[]",
"var_name": "VALUE_2"
},
{
"declarator": "VALUE_3 = Bytes.toBytes(333)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_3 = Bytes.toBytes(333);",
"type": "byte[]",
"var_name": "VALUE_3"
},
{
"declarator": "VALUE_4 = Bytes.toBytes(444)",
"modifier": "private static final",
"original_string": "private static final byte[] VALUE_4 = Bytes.toBytes(444);",
"type": "byte[]",
"var_name": "VALUE_4"
},
{
"declarator": "indexBuilder",
"modifier": "private",
"original_string": "private NonTxIndexBuilder indexBuilder;",
"type": "NonTxIndexBuilder",
"var_name": "indexBuilder"
},
{
"declarator": "mockIndexMetaData",
"modifier": "private",
"original_string": "private PhoenixIndexMetaData mockIndexMetaData;",
"type": "PhoenixIndexMetaData",
"var_name": "mockIndexMetaData"
},
{
"declarator": "currentRowCells",
"modifier": "private",
"original_string": "private List<Cell> currentRowCells;",
"type": "List<Cell>",
"var_name": "currentRowCells"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/covered/NonTxIndexBuilderTest.java",
"identifier": "NonTxIndexBuilderTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test(timeout = 10000)\n public void testManyVersions() throws IOException {\n // when doing a rebuild, we are replaying mutations so we want to ignore newer mutations\n // see LocalTable#getCurrentRowState()\n Mockito.when(mockIndexMetaData.getReplayWrite()).thenReturn(ReplayWrite.INDEX_ONLY);\n MultiMutation mutation = getMultipleVersionMutation(200);\n currentRowCells = mutation.getFamilyCellMap().get(FAM);\n\n Collection<? extends Mutation> mutations =\n IndexManagementUtil.flattenMutationsByTimestamp(Collections.singletonList(mutation));\n\n CachedLocalTable cachedLocalTable = CachedLocalTable.build(\n mutations,\n this.mockIndexMetaData,\n this.indexBuilder.getEnv().getRegion());\n\n Collection<Pair<Mutation, byte[]>> indexUpdates = Lists.newArrayList();\n for (Mutation m : IndexManagementUtil.flattenMutationsByTimestamp(Collections.singletonList(mutation))) {\n indexUpdates.addAll(indexBuilder.getIndexUpdate(m, mockIndexMetaData, cachedLocalTable));\n }\n assertNotEquals(0, indexUpdates.size());\n }",
"class_method_signature": "NonTxIndexBuilderTest.testManyVersions()",
"constructor": false,
"full_signature": "@Test(timeout = 10000) public void testManyVersions()",
"identifier": "testManyVersions",
"invocations": [
"thenReturn",
"when",
"getReplayWrite",
"getMultipleVersionMutation",
"get",
"getFamilyCellMap",
"flattenMutationsByTimestamp",
"singletonList",
"build",
"getRegion",
"getEnv",
"newArrayList",
"flattenMutationsByTimestamp",
"singletonList",
"addAll",
"getIndexUpdate",
"assertNotEquals",
"size"
],
"modifiers": "@Test(timeout = 10000) public",
"parameters": "()",
"return": "void",
"signature": "void testManyVersions()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(NonTxIndexBuilder.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(NonTxIndexBuilder.class);",
"type": "Logger",
"var_name": "LOGGER"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/NonTxIndexBuilder.java",
"identifier": "NonTxIndexBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "NonTxIndexBuilder.setup(RegionCoprocessorEnvironment env)",
"constructor": false,
"full_signature": "@Override public void setup(RegionCoprocessorEnvironment env)",
"identifier": "setup",
"modifiers": "@Override public",
"parameters": "(RegionCoprocessorEnvironment env)",
"return": "void",
"signature": "void setup(RegionCoprocessorEnvironment env)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"identifier": "getIndexUpdate",
"modifiers": "@Override public",
"parameters": "(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private void batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"identifier": "batchMutationAndAddUpdates",
"modifiers": "private",
"parameters": "(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void batchMutationAndAddUpdates(IndexUpdateManager manager, LocalTableState state, Mutation m, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private boolean addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"identifier": "addMutationsForBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"return": "boolean",
"signature": "boolean addMutationsForBatch(IndexUpdateManager updateMap, Batch batch, LocalTableState state,\n IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private long addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"identifier": "addUpdateForGivenTimestamp",
"modifiers": "private",
"parameters": "(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"return": "long",
"signature": "long addUpdateForGivenTimestamp(long ts, LocalTableState state, IndexUpdateManager updateMap, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private void addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"identifier": "addCleanupForCurrentBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void addCleanupForCurrentBatch(IndexUpdateManager updateMap, long batchTs, LocalTableState state, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "private long addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"identifier": "addCurrentStateMutationsForBatch",
"modifiers": "private",
"parameters": "(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"return": "long",
"signature": "long addCurrentStateMutationsForBatch(IndexUpdateManager updateMap, LocalTableState state, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "protected void addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"identifier": "addDeleteUpdatesToMap",
"modifiers": "protected",
"parameters": "(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"return": "void",
"signature": "void addDeleteUpdatesToMap(IndexUpdateManager updateMap, LocalTableState state, long ts, IndexMetaData indexMetaData)",
"testcase": false
},
{
"class_method_signature": "NonTxIndexBuilder.getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"identifier": "getIndexUpdateForFilteredRows",
"modifiers": "@Override public",
"parameters": "(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdateForFilteredRows(Collection<Cell> filtered, IndexMetaData indexMetaData)",
"testcase": false
}
],
"superclass": "extends BaseIndexBuilder"
} | {
"body": "@Override\n public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState) throws IOException {\n \t// create a state manager, so we can manage each batch\n LocalTableState state = new LocalTableState(localHBaseState, mutation);\n // build the index updates for each group\n IndexUpdateManager manager = new IndexUpdateManager(indexMetaData);\n\n batchMutationAndAddUpdates(manager, state, mutation, indexMetaData);\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Found index updates for Mutation: \" + mutation + \"\\n\" + manager);\n }\n\n return manager.toMap();\n }",
"class_method_signature": "NonTxIndexBuilder.getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"constructor": false,
"full_signature": "@Override public Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"identifier": "getIndexUpdate",
"invocations": [
"batchMutationAndAddUpdates",
"isTraceEnabled",
"trace",
"toMap"
],
"modifiers": "@Override public",
"parameters": "(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"return": "Collection<Pair<Mutation, byte[]>>",
"signature": "Collection<Pair<Mutation, byte[]>> getIndexUpdate(Mutation mutation, IndexMetaData indexMetaData, LocalHBaseState localHBaseState)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_34 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsCycleAllowedForBulkAllocation() {\n assertFalse(SequenceUtil.isCycleAllowed(2));\n }",
"class_method_signature": "SequenceUtilTest.testIsCycleAllowedForBulkAllocation()",
"constructor": false,
"full_signature": "@Test public void testIsCycleAllowedForBulkAllocation()",
"identifier": "testIsCycleAllowedForBulkAllocation",
"invocations": [
"assertFalse",
"isCycleAllowed"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testIsCycleAllowedForBulkAllocation()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean isCycleAllowed(long numToAllocate) {\n return !isBulkAllocation(numToAllocate); \n \n }",
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"invocations": [
"isBulkAllocation"
],
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_7 | {
"fields": [
{
"declarator": "exit = ExpectedSystemExit.none()",
"modifier": "@Rule\n public final",
"original_string": "@Rule\n public final ExpectedSystemExit exit = ExpectedSystemExit.none();",
"type": "ExpectedSystemExit",
"var_name": "exit"
}
],
"file": "phoenix-pherf/src/test/java/org/apache/phoenix/pherf/PherfTest.java",
"identifier": "PherfTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testUnknownOption() {\n String[] args = {\"-drop\", \"all\", \"-q\", \"-m\",\"-bsOption\"};\n\n // Makes sure that System.exit(1) is called.\n exit.expectSystemExitWithStatus(1);\n Pherf.main(args);\n }",
"class_method_signature": "PherfTest.testUnknownOption()",
"constructor": false,
"full_signature": "@Test public void testUnknownOption()",
"identifier": "testUnknownOption",
"invocations": [
"expectSystemExitWithStatus",
"main"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testUnknownOption()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(Pherf.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Pherf.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "options = new Options()",
"modifier": "private static final",
"original_string": "private static final Options options = new Options();",
"type": "Options",
"var_name": "options"
},
{
"declarator": "phoenixUtil = PhoenixUtil.create()",
"modifier": "private final",
"original_string": "private final PhoenixUtil phoenixUtil = PhoenixUtil.create();",
"type": "PhoenixUtil",
"var_name": "phoenixUtil"
},
{
"declarator": "zookeeper",
"modifier": "private final",
"original_string": "private final String zookeeper;",
"type": "String",
"var_name": "zookeeper"
},
{
"declarator": "scenarioFile",
"modifier": "private final",
"original_string": "private final String scenarioFile;",
"type": "String",
"var_name": "scenarioFile"
},
{
"declarator": "schemaFile",
"modifier": "private final",
"original_string": "private final String schemaFile;",
"type": "String",
"var_name": "schemaFile"
},
{
"declarator": "queryHint",
"modifier": "private final",
"original_string": "private final String queryHint;",
"type": "String",
"var_name": "queryHint"
},
{
"declarator": "properties",
"modifier": "private final",
"original_string": "private final Properties properties;",
"type": "Properties",
"var_name": "properties"
},
{
"declarator": "preLoadData",
"modifier": "private final",
"original_string": "private final boolean preLoadData;",
"type": "boolean",
"var_name": "preLoadData"
},
{
"declarator": "dropPherfTablesRegEx",
"modifier": "private final",
"original_string": "private final String dropPherfTablesRegEx;",
"type": "String",
"var_name": "dropPherfTablesRegEx"
},
{
"declarator": "executeQuerySets",
"modifier": "private final",
"original_string": "private final boolean executeQuerySets;",
"type": "boolean",
"var_name": "executeQuerySets"
},
{
"declarator": "isFunctional",
"modifier": "private final",
"original_string": "private final boolean isFunctional;",
"type": "boolean",
"var_name": "isFunctional"
},
{
"declarator": "monitor",
"modifier": "private final",
"original_string": "private final boolean monitor;",
"type": "boolean",
"var_name": "monitor"
},
{
"declarator": "rowCountOverride",
"modifier": "private final",
"original_string": "private final int rowCountOverride;",
"type": "int",
"var_name": "rowCountOverride"
},
{
"declarator": "listFiles",
"modifier": "private final",
"original_string": "private final boolean listFiles;",
"type": "boolean",
"var_name": "listFiles"
},
{
"declarator": "applySchema",
"modifier": "private final",
"original_string": "private final boolean applySchema;",
"type": "boolean",
"var_name": "applySchema"
},
{
"declarator": "writeRuntimeResults",
"modifier": "private final",
"original_string": "private final boolean writeRuntimeResults;",
"type": "boolean",
"var_name": "writeRuntimeResults"
},
{
"declarator": "generateStatistics",
"modifier": "private final",
"original_string": "private final GeneratePhoenixStats generateStatistics;",
"type": "GeneratePhoenixStats",
"var_name": "generateStatistics"
},
{
"declarator": "label",
"modifier": "private final",
"original_string": "private final String label;",
"type": "String",
"var_name": "label"
},
{
"declarator": "compareResults",
"modifier": "private final",
"original_string": "private final String compareResults;",
"type": "String",
"var_name": "compareResults"
},
{
"declarator": "compareType",
"modifier": "private final",
"original_string": "private final CompareType compareType;",
"type": "CompareType",
"var_name": "compareType"
},
{
"declarator": "thinDriver",
"modifier": "private final",
"original_string": "private final boolean thinDriver;",
"type": "boolean",
"var_name": "thinDriver"
},
{
"declarator": "queryServerUrl",
"modifier": "private final",
"original_string": "private final String queryServerUrl;",
"type": "String",
"var_name": "queryServerUrl"
},
{
"declarator": "workloadExecutor",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n WorkloadExecutor workloadExecutor;",
"type": "WorkloadExecutor",
"var_name": "workloadExecutor"
}
],
"file": "phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java",
"identifier": "Pherf",
"interfaces": "",
"methods": [
{
"class_method_signature": "Pherf.Pherf(String[] args)",
"constructor": true,
"full_signature": "public Pherf(String[] args)",
"identifier": "Pherf",
"modifiers": "public",
"parameters": "(String[] args)",
"return": "",
"signature": " Pherf(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.getLogPerNRow(CommandLine command)",
"constructor": false,
"full_signature": "private String getLogPerNRow(CommandLine command)",
"identifier": "getLogPerNRow",
"modifiers": "private",
"parameters": "(CommandLine command)",
"return": "String",
"signature": "String getLogPerNRow(CommandLine command)",
"testcase": false
},
{
"class_method_signature": "Pherf.getProperties()",
"constructor": false,
"full_signature": "public Properties getProperties()",
"identifier": "getProperties",
"modifiers": "public",
"parameters": "()",
"return": "Properties",
"signature": "Properties getProperties()",
"testcase": false
},
{
"class_method_signature": "Pherf.main(String[] args)",
"constructor": false,
"full_signature": "public static void main(String[] args)",
"identifier": "main",
"modifiers": "public static",
"parameters": "(String[] args)",
"return": "void",
"signature": "void main(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.run()",
"constructor": false,
"full_signature": "public void run()",
"identifier": "run",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void main(String[] args) {\n try {\n new Pherf(args).run();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"class_method_signature": "Pherf.main(String[] args)",
"constructor": false,
"full_signature": "public static void main(String[] args)",
"identifier": "main",
"invocations": [
"run",
"printStackTrace",
"exit"
],
"modifiers": "public static",
"parameters": "(String[] args)",
"return": "void",
"signature": "void main(String[] args)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_22 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDescendingNextValueWithinLimit() throws SQLException {\n \tassertFalse(SequenceUtil.checkIfLimitReached(6, MIN_VALUE, MAX_VALUE, -2/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testDescendingNextValueWithinLimit()",
"constructor": false,
"full_signature": "@Test public void testDescendingNextValueWithinLimit()",
"identifier": "testDescendingNextValueWithinLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDescendingNextValueWithinLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_137 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/execute/DescVarLengthFastByteComparisonsTest.java",
"identifier": "DescVarLengthFastByteComparisonsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNullIsSmallest() {\n byte[] b1 = ByteUtil.EMPTY_BYTE_ARRAY;\n byte[] b2 = Bytes.toBytes(\"a\");\n int cmp = DescVarLengthFastByteComparisons.compareTo(b1, 0, b1.length, b2, 0, b2.length);\n assertTrue(cmp < 0);\n cmp = DescVarLengthFastByteComparisons.compareTo(b2, 0, b2.length, b1, 0, b1.length);\n assertTrue(cmp > 0);\n }",
"class_method_signature": "DescVarLengthFastByteComparisonsTest.testNullIsSmallest()",
"constructor": false,
"full_signature": "@Test public void testNullIsSmallest()",
"identifier": "testNullIsSmallest",
"invocations": [
"toBytes",
"compareTo",
"assertTrue",
"compareTo",
"assertTrue"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testNullIsSmallest()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/execute/DescVarLengthFastByteComparisons.java",
"identifier": "DescVarLengthFastByteComparisons",
"interfaces": "",
"methods": [
{
"class_method_signature": "DescVarLengthFastByteComparisons.DescVarLengthFastByteComparisons()",
"constructor": true,
"full_signature": "private DescVarLengthFastByteComparisons()",
"identifier": "DescVarLengthFastByteComparisons",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DescVarLengthFastByteComparisons()",
"testcase": false
},
{
"class_method_signature": "DescVarLengthFastByteComparisons.compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"constructor": false,
"full_signature": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"identifier": "compareTo",
"modifiers": "public static",
"parameters": "(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"return": "int",
"signature": "int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"testcase": false
},
{
"class_method_signature": "DescVarLengthFastByteComparisons.lexicographicalComparerJavaImpl()",
"constructor": false,
"full_signature": "private static Comparer<byte[]> lexicographicalComparerJavaImpl()",
"identifier": "lexicographicalComparerJavaImpl",
"modifiers": "private static",
"parameters": "()",
"return": "Comparer<byte[]>",
"signature": "Comparer<byte[]> lexicographicalComparerJavaImpl()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {\n return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2);\n }",
"class_method_signature": "DescVarLengthFastByteComparisons.compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"constructor": false,
"full_signature": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"identifier": "compareTo",
"invocations": [
"compareTo"
],
"modifiers": "public static",
"parameters": "(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"return": "int",
"signature": "int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_75 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseDate_PureDate() {\n assertEquals(0L, DateUtil.parseDate(\"1970-01-01\").getTime());\n }",
"class_method_signature": "DateUtilTest.testParseDate_PureDate()",
"constructor": false,
"full_signature": "@Test public void testParseDate_PureDate()",
"identifier": "testParseDate_PureDate",
"invocations": [
"assertEquals",
"getTime",
"parseDate"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseDate_PureDate()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Date parseDate(String dateValue) {\n return new Date(parseDateTime(dateValue));\n }",
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"invocations": [
"parseDateTime"
],
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_160 | {
"fields": [
{
"declarator": "TABLE_NAME = TableName.create(null,\"TABLE1\")",
"modifier": "private static",
"original_string": "private static TableName TABLE_NAME = TableName.create(null,\"TABLE1\");",
"type": "TableName",
"var_name": "TABLE_NAME"
},
{
"declarator": "offsetCompiler",
"modifier": "",
"original_string": "RVCOffsetCompiler offsetCompiler;",
"type": "RVCOffsetCompiler",
"var_name": "offsetCompiler"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/compile/RVCOffsetCompilerTest.java",
"identifier": "RVCOffsetCompilerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void buildListOfRowKeyColumnExpressionsIsNullTest() throws Exception {\n List<Expression> expressions = new ArrayList<>();\n\n RowKeyColumnExpression rvc1 = new RowKeyColumnExpression();\n RowKeyColumnExpression rvc2 = new RowKeyColumnExpression();\n\n IsNullExpression expression1 = mock(IsNullExpression.class);\n IsNullExpression expression2 = mock(IsNullExpression.class);\n\n Mockito.when(expression1.getChildren()).thenReturn(Lists.<Expression>newArrayList(rvc1));\n Mockito.when(expression2.getChildren()).thenReturn(Lists.<Expression>newArrayList(rvc2));\n\n expressions.add(expression1);\n expressions.add(expression2);\n\n AndExpression expression = mock(AndExpression.class);\n Mockito.when(expression.getChildren()).thenReturn(expressions);\n\n RVCOffsetCompiler.RowKeyColumnExpressionOutput output = offsetCompiler.buildListOfRowKeyColumnExpressions(expression, false);\n\n List<RowKeyColumnExpression> result = output.getRowKeyColumnExpressions();\n\n assertEquals(2,result.size());\n assertEquals(rvc1,result.get(0));\n assertEquals(rvc2,result.get(1));\n\n assertTrue(output.isTrailingNull());\n }",
"class_method_signature": "RVCOffsetCompilerTest.buildListOfRowKeyColumnExpressionsIsNullTest()",
"constructor": false,
"full_signature": "@Test public void buildListOfRowKeyColumnExpressionsIsNullTest()",
"identifier": "buildListOfRowKeyColumnExpressionsIsNullTest",
"invocations": [
"mock",
"mock",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"add",
"add",
"mock",
"thenReturn",
"when",
"getChildren",
"buildListOfRowKeyColumnExpressions",
"getRowKeyColumnExpressions",
"assertEquals",
"size",
"assertEquals",
"get",
"assertEquals",
"get",
"assertTrue",
"isTrailingNull"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void buildListOfRowKeyColumnExpressionsIsNullTest()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class)",
"modifier": "private final static",
"original_string": "private final static Logger LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INSTANCE = new RVCOffsetCompiler()",
"modifier": "private final static",
"original_string": "private final static RVCOffsetCompiler INSTANCE = new RVCOffsetCompiler();",
"type": "RVCOffsetCompiler",
"var_name": "INSTANCE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/compile/RVCOffsetCompiler.java",
"identifier": "RVCOffsetCompiler",
"interfaces": "",
"methods": [
{
"class_method_signature": "RVCOffsetCompiler.RVCOffsetCompiler()",
"constructor": true,
"full_signature": "private RVCOffsetCompiler()",
"identifier": "RVCOffsetCompiler",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " RVCOffsetCompiler()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getInstance()",
"constructor": false,
"full_signature": "public static RVCOffsetCompiler getInstance()",
"identifier": "getInstance",
"modifiers": "public static",
"parameters": "()",
"return": "RVCOffsetCompiler",
"signature": "RVCOffsetCompiler getInstance()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"constructor": false,
"full_signature": "public CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"identifier": "getRVCOffset",
"modifiers": "public",
"parameters": "(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"return": "CompiledOffset",
"signature": "CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"identifier": "buildListOfColumnParseNodes",
"modifiers": "@VisibleForTesting",
"parameters": "(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"return": "List<ColumnParseNode>",
"signature": "List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions (\n Expression whereExpression, boolean isIndex)\n throws RowValueConstructorOffsetNotCoercibleException, RowValueConstructorOffsetInternalErrorException {\n\n boolean trailingNull = false;\n List<Expression> expressions;\n if((whereExpression instanceof AndExpression)) {\n expressions = whereExpression.getChildren();\n } else if (whereExpression instanceof ComparisonExpression || whereExpression instanceof IsNullExpression) {\n expressions = Lists.newArrayList(whereExpression);\n } else {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset, expected either a Comparison/IsNull Expression of a AndExpression got \"\n + whereExpression.getClass().getName());\n throw new RowValueConstructorOffsetInternalErrorException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n List<RowKeyColumnExpression>\n rowKeyColumnExpressionList =\n new ArrayList<RowKeyColumnExpression>();\n for (int i = 0; i < expressions.size(); i++) {\n Expression child = expressions.get(i);\n if (!(child instanceof ComparisonExpression || child instanceof IsNullExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n //if this is the last position\n if(i == expressions.size() - 1) {\n if(child instanceof IsNullExpression) {\n trailingNull = true;\n }\n }\n\n //For either case comparison/isNull the first child should be the rowkey\n Expression possibleRowKeyColumnExpression = child.getChildren().get(0);\n\n // Note that since we store indexes in variable length form there may be casts from fixed types to\n // variable length\n if (isIndex) {\n if (possibleRowKeyColumnExpression instanceof CoerceExpression) {\n // Cast today has 1 child\n possibleRowKeyColumnExpression =\n ((CoerceExpression) possibleRowKeyColumnExpression).getChild();\n }\n }\n\n if (!(possibleRowKeyColumnExpression instanceof RowKeyColumnExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n rowKeyColumnExpressionList.add((RowKeyColumnExpression) possibleRowKeyColumnExpression);\n }\n return new RowKeyColumnExpressionOutput(rowKeyColumnExpressionList,trailingNull);\n }",
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"invocations": [
"getChildren",
"newArrayList",
"warn",
"getName",
"getClass",
"size",
"get",
"warn",
"size",
"get",
"getChildren",
"getChild",
"warn",
"add"
],
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_59 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructSelectStatement() {\n assertEquals(\n \"SELECT \\\"ID\\\" , \\\"NAME\\\" FROM MYTAB\",\n QueryUtil.constructSelectStatement(\"MYTAB\", ImmutableList.of(ID_COLUMN,NAME_COLUMN),null));\n }",
"class_method_signature": "QueryUtilTest.testConstructSelectStatement()",
"constructor": false,
"full_signature": "@Test public void testConstructSelectStatement()",
"identifier": "testConstructSelectStatement",
"invocations": [
"assertEquals",
"constructSelectStatement",
"of"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructSelectStatement()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions) {\n List<String> columns = Lists.transform(columnInfos, new Function<ColumnInfo, String>(){\n @Override\n public String apply(ColumnInfo input) {\n return input.getColumnName();\n }});\n return constructSelectStatement(fullTableName, columns , conditions, null, false);\n }",
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"invocations": [
"transform",
"getColumnName",
"constructSelectStatement"
],
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_18 | {
"fields": [
{
"declarator": "MIN_VALUE = 1",
"modifier": "private static",
"original_string": "private static long MIN_VALUE = 1;",
"type": "long",
"var_name": "MIN_VALUE"
},
{
"declarator": "MAX_VALUE = 10",
"modifier": "private static",
"original_string": "private static long MAX_VALUE = 10;",
"type": "long",
"var_name": "MAX_VALUE"
},
{
"declarator": "CACHE_SIZE = 2",
"modifier": "private static",
"original_string": "private static long CACHE_SIZE = 2;",
"type": "long",
"var_name": "CACHE_SIZE"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/SequenceUtilTest.java",
"identifier": "SequenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAscendingNextValueWithinLimit() throws SQLException {\n assertFalse(SequenceUtil.checkIfLimitReached(5, MIN_VALUE, MAX_VALUE, 2/* incrementBy */, CACHE_SIZE));\n }",
"class_method_signature": "SequenceUtilTest.testAscendingNextValueWithinLimit()",
"constructor": false,
"full_signature": "@Test public void testAscendingNextValueWithinLimit()",
"identifier": "testAscendingNextValueWithinLimit",
"invocations": [
"assertFalse",
"checkIfLimitReached"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAscendingNextValueWithinLimit()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L",
"modifier": "public static final",
"original_string": "public static final long DEFAULT_NUM_SLOTS_TO_ALLOCATE = 1L;",
"type": "long",
"var_name": "DEFAULT_NUM_SLOTS_TO_ALLOCATE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/SequenceUtil.java",
"identifier": "SequenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.checkIfLimitReached(SequenceInfo info)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(SequenceInfo info)",
"identifier": "checkIfLimitReached",
"modifiers": "public static",
"parameters": "(SequenceInfo info)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(SequenceInfo info)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isBulkAllocation(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isBulkAllocation(long numToAllocate)",
"identifier": "isBulkAllocation",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isBulkAllocation(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.isCycleAllowed(long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean isCycleAllowed(long numToAllocate)",
"identifier": "isCycleAllowed",
"modifiers": "public static",
"parameters": "(long numToAllocate)",
"return": "boolean",
"signature": "boolean isCycleAllowed(long numToAllocate)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"constructor": false,
"full_signature": "public static SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"identifier": "getException",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName,\n SQLExceptionCode code)",
"return": "SQLException",
"signature": "SQLException getException(String schemaName, String tableName,\n SQLExceptionCode code)",
"testcase": false
},
{
"class_method_signature": "SequenceUtil.getLimitReachedErrorCode(boolean increasingSeq)",
"constructor": false,
"full_signature": "public static SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"identifier": "getLimitReachedErrorCode",
"modifiers": "public static",
"parameters": "(boolean increasingSeq)",
"return": "SQLExceptionCode",
"signature": "SQLExceptionCode getLimitReachedErrorCode(boolean increasingSeq)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate) {\n long nextValue = 0;\n boolean increasingSeq = incrementBy > 0 ? true : false;\n // advance currentValue while checking for overflow \n try {\n long incrementValue;\n if (isBulkAllocation(numToAllocate)) {\n // For bulk allocation we increment independent of cache size\n incrementValue = LongMath.checkedMultiply(incrementBy, numToAllocate);\n } else {\n incrementValue = LongMath.checkedMultiply(incrementBy, cacheSize);\n }\n nextValue = LongMath.checkedAdd(currentValue, incrementValue);\n } catch (ArithmeticException e) {\n return true;\n }\n\n // check if limit was reached\n\t\tif ((increasingSeq && nextValue > maxValue)\n\t\t\t\t|| (!increasingSeq && nextValue < minValue)) {\n return true;\n }\n return false;\n }",
"class_method_signature": "SequenceUtil.checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"constructor": false,
"full_signature": "public static boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"identifier": "checkIfLimitReached",
"invocations": [
"isBulkAllocation",
"checkedMultiply",
"checkedMultiply",
"checkedAdd"
],
"modifiers": "public static",
"parameters": "(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"return": "boolean",
"signature": "boolean checkIfLimitReached(long currentValue, long minValue, long maxValue,\n long incrementBy, long cacheSize, long numToAllocate)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_195 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/expression/function/ExternalSqlTypeIdFunctionTest.java",
"identifier": "ExternalSqlTypeIdFunctionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEvaluate() throws SQLException {\n Expression inputArg = LiteralExpression.newConstant(\n PInteger.INSTANCE.getSqlType(), PInteger.INSTANCE);\n\n Object returnValue = executeFunction(inputArg);\n\n assertEquals(Types.INTEGER, returnValue);\n }",
"class_method_signature": "ExternalSqlTypeIdFunctionTest.testEvaluate()",
"constructor": false,
"full_signature": "@Test public void testEvaluate()",
"identifier": "testEvaluate",
"invocations": [
"newConstant",
"getSqlType",
"executeFunction",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testEvaluate()",
"testcase": true
} | {
"fields": [
{
"declarator": "NAME = \"ExternalSqlTypeId\"",
"modifier": "public static final",
"original_string": "public static final String NAME = \"ExternalSqlTypeId\";",
"type": "String",
"var_name": "NAME"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/expression/function/ExternalSqlTypeIdFunction.java",
"identifier": "ExternalSqlTypeIdFunction",
"interfaces": "",
"methods": [
{
"class_method_signature": "ExternalSqlTypeIdFunction.ExternalSqlTypeIdFunction()",
"constructor": true,
"full_signature": "public ExternalSqlTypeIdFunction()",
"identifier": "ExternalSqlTypeIdFunction",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " ExternalSqlTypeIdFunction()",
"testcase": false
},
{
"class_method_signature": "ExternalSqlTypeIdFunction.ExternalSqlTypeIdFunction(List<Expression> children)",
"constructor": true,
"full_signature": "public ExternalSqlTypeIdFunction(List<Expression> children)",
"identifier": "ExternalSqlTypeIdFunction",
"modifiers": "public",
"parameters": "(List<Expression> children)",
"return": "",
"signature": " ExternalSqlTypeIdFunction(List<Expression> children)",
"testcase": false
},
{
"class_method_signature": "ExternalSqlTypeIdFunction.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "ExternalSqlTypeIdFunction.getDataType()",
"constructor": false,
"full_signature": "@Override public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "@Override public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "ExternalSqlTypeIdFunction.getName()",
"constructor": false,
"full_signature": "@Override public String getName()",
"identifier": "getName",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String getName()",
"testcase": false
}
],
"superclass": "extends ScalarFunction"
} | {
"body": "@Override\n public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {\n Expression child = children.get(0);\n if (!child.evaluate(tuple, ptr)) {\n return false;\n }\n if (ptr.getLength() == 0) {\n return true;\n }\n int sqlType = child.getDataType().getCodec().decodeInt(ptr, child.getSortOrder());\n try {\n byte[] externalIdTypeBytes = PInteger.INSTANCE.toBytes(\n PDataType.fromTypeId(sqlType).getResultSetSqlType());\n ptr.set(externalIdTypeBytes);\n } catch (IllegalDataException e) {\n ptr.set(ByteUtil.EMPTY_BYTE_ARRAY);\n }\n return true;\n }",
"class_method_signature": "ExternalSqlTypeIdFunction.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"invocations": [
"get",
"evaluate",
"getLength",
"decodeInt",
"getCodec",
"getDataType",
"getSortOrder",
"toBytes",
"getResultSetSqlType",
"fromTypeId",
"set",
"set"
],
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_80 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseTimestamp_WithMillis() {\n assertEquals(10123L, DateUtil.parseTimestamp(\"1970-01-01 00:00:10.123\").getTime());\n }",
"class_method_signature": "DateUtilTest.testParseTimestamp_WithMillis()",
"constructor": false,
"full_signature": "@Test public void testParseTimestamp_WithMillis()",
"identifier": "testParseTimestamp_WithMillis",
"invocations": [
"assertEquals",
"getTime",
"parseTimestamp"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseTimestamp_WithMillis()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Timestamp parseTimestamp(String timestampValue) {\n Timestamp timestamp = new Timestamp(parseDateTime(timestampValue));\n int period = timestampValue.indexOf('.');\n if (period > 0) {\n String nanosStr = timestampValue.substring(period + 1);\n if (nanosStr.length() > 9)\n throw new IllegalDataException(\"nanos > 999999999 or < 0\");\n if(nanosStr.length() > 3 ) {\n int nanos = Integer.parseInt(nanosStr);\n for (int i = 0; i < 9 - nanosStr.length(); i++) {\n nanos *= 10;\n }\n timestamp.setNanos(nanos);\n }\n }\n return timestamp;\n }",
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"invocations": [
"parseDateTime",
"indexOf",
"substring",
"length",
"length",
"parseInt",
"length",
"setNanos"
],
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_38 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCustomTracingAnnotationsWithNone() {\n String url = \"localhost;TenantId=abc;\";\n Map<String, String> customAnnotations = JDBCUtil.getAnnotations(url, new Properties());\n assertTrue(customAnnotations.isEmpty());\n }",
"class_method_signature": "JDBCUtilTest.testGetCustomTracingAnnotationsWithNone()",
"constructor": false,
"full_signature": "@Test public void testGetCustomTracingAnnotationsWithNone()",
"identifier": "testGetCustomTracingAnnotationsWithNone",
"invocations": [
"getAnnotations",
"assertTrue",
"isEmpty"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetCustomTracingAnnotationsWithNone()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info) {\n Preconditions.checkNotNull(url);\n Preconditions.checkNotNull(info);\n \n \tMap<String, String> combinedProperties = getCombinedConnectionProperties(url, info);\n \tMap<String, String> result = newHashMapWithExpectedSize(combinedProperties.size());\n \tfor (Map.Entry<String, String> prop : combinedProperties.entrySet()) {\n \t\tif (prop.getKey().startsWith(ANNOTATION_ATTRIB_PREFIX) &&\n \t\t\t\tprop.getKey().length() > ANNOTATION_ATTRIB_PREFIX.length()) {\n \t\t\tresult.put(prop.getKey().substring(ANNOTATION_ATTRIB_PREFIX.length()), prop.getValue());\n \t\t}\n \t}\n \treturn result;\n }",
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"invocations": [
"checkNotNull",
"checkNotNull",
"getCombinedConnectionProperties",
"newHashMapWithExpectedSize",
"size",
"entrySet",
"startsWith",
"getKey",
"length",
"getKey",
"length",
"put",
"substring",
"getKey",
"length",
"getValue"
],
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_96 | {
"fields": [
{
"declarator": "con",
"modifier": "@Mock",
"original_string": "@Mock PhoenixConnection con;",
"type": "PhoenixConnection",
"var_name": "con"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/LogUtilTest.java",
"identifier": "LogUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddCustomAnnotationsWithNullAnnotations() {\n \twhen(con.getCustomTracingAnnotations()).thenReturn(null);\n \t\n \tString logLine = LogUtil.addCustomAnnotations(\"log line\", con);\n \tassertEquals(logLine, \"log line\");\n }",
"class_method_signature": "LogUtilTest.testAddCustomAnnotationsWithNullAnnotations()",
"constructor": false,
"full_signature": "@Test public void testAddCustomAnnotationsWithNullAnnotations()",
"identifier": "testAddCustomAnnotationsWithNullAnnotations",
"invocations": [
"thenReturn",
"when",
"getCustomTracingAnnotations",
"addCustomAnnotations",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAddCustomAnnotationsWithNullAnnotations()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/LogUtil.java",
"identifier": "LogUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "LogUtil.LogUtil()",
"constructor": true,
"full_signature": "private LogUtil()",
"identifier": "LogUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " LogUtil()",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable byte[] annotations)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"testcase": false
},
{
"class_method_signature": "LogUtil.customAnnotationsToString(@Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String customAnnotationsToString(@Nullable PhoenixConnection con)",
"identifier": "customAnnotationsToString",
"modifiers": "public static",
"parameters": "(@Nullable PhoenixConnection con)",
"return": "String",
"signature": "String customAnnotationsToString(@Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.getCallerStackTrace()",
"constructor": false,
"full_signature": "public static String getCallerStackTrace()",
"identifier": "getCallerStackTrace",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getCallerStackTrace()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con) {\n \tif (con == null || con.getCustomTracingAnnotations() == null || con.getCustomTracingAnnotations().isEmpty()) {\n return logLine;\n \t} else {\n \t\treturn customAnnotationsToString(con) + ' ' + logLine;\n \t}\n }",
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"invocations": [
"getCustomTracingAnnotations",
"isEmpty",
"getCustomTracingAnnotations",
"customAnnotationsToString"
],
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_183 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFromSqlTypeName() {\n assertEquals(PVarchar.INSTANCE, PDataType.fromSqlTypeName(\"varchar\"));\n }",
"class_method_signature": "PDataTypeTest.testFromSqlTypeName()",
"constructor": false,
"full_signature": "@Test public void testFromSqlTypeName()",
"identifier": "testFromSqlTypeName",
"invocations": [
"assertEquals",
"fromSqlTypeName"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testFromSqlTypeName()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static PDataType fromSqlTypeName(String sqlTypeName) {\n for (PDataType t : PDataTypeFactory.getInstance().getTypes()) {\n if (t.getSqlTypeName().equalsIgnoreCase(sqlTypeName)) return t;\n }\n throw newIllegalDataException(\"Unsupported sql type: \" + sqlTypeName);\n }",
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"invocations": [
"getTypes",
"getInstance",
"equalsIgnoreCase",
"getSqlTypeName",
"newIllegalDataException"
],
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_79 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseTimestamp() {\n assertEquals(10000L, DateUtil.parseTimestamp(\"1970-01-01 00:00:10\").getTime());\n }",
"class_method_signature": "DateUtilTest.testParseTimestamp()",
"constructor": false,
"full_signature": "@Test public void testParseTimestamp()",
"identifier": "testParseTimestamp",
"invocations": [
"assertEquals",
"getTime",
"parseTimestamp"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseTimestamp()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Timestamp parseTimestamp(String timestampValue) {\n Timestamp timestamp = new Timestamp(parseDateTime(timestampValue));\n int period = timestampValue.indexOf('.');\n if (period > 0) {\n String nanosStr = timestampValue.substring(period + 1);\n if (nanosStr.length() > 9)\n throw new IllegalDataException(\"nanos > 999999999 or < 0\");\n if(nanosStr.length() > 3 ) {\n int nanos = Integer.parseInt(nanosStr);\n for (int i = 0; i < 9 - nanosStr.length(); i++) {\n nanos *= 10;\n }\n timestamp.setNanos(nanos);\n }\n }\n return timestamp;\n }",
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"invocations": [
"parseDateTime",
"indexOf",
"substring",
"length",
"length",
"parseInt",
"length",
"setNanos"
],
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_117 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/hbase/index/util/TestIndexManagementUtil.java",
"identifier": "TestIndexManagementUtil",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompressedWALWithCodec() throws Exception {\n Configuration conf = new Configuration(false);\n conf.setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);\n // works with WALEditcodec\n conf.set(WALCellCodec.WAL_CELL_CODEC_CLASS_KEY, IndexedWALEditCodec.class.getName());\n IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(conf);\n }",
"class_method_signature": "TestIndexManagementUtil.testCompressedWALWithCodec()",
"constructor": false,
"full_signature": "@Test public void testCompressedWALWithCodec()",
"identifier": "testCompressedWALWithCodec",
"invocations": [
"setBoolean",
"set",
"getName",
"ensureMutableIndexingCorrectlyConfigured"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCompressedWALWithCodec()",
"testcase": true
} | {
"fields": [
{
"declarator": "INDEX_WAL_EDIT_CODEC_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec\"",
"modifier": "public static final",
"original_string": "public static final String INDEX_WAL_EDIT_CODEC_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec\";",
"type": "String",
"var_name": "INDEX_WAL_EDIT_CODEC_CLASS_NAME"
},
{
"declarator": "HLOG_READER_IMPL_KEY = \"hbase.regionserver.hlog.reader.impl\"",
"modifier": "public static final",
"original_string": "public static final String HLOG_READER_IMPL_KEY = \"hbase.regionserver.hlog.reader.impl\";",
"type": "String",
"var_name": "HLOG_READER_IMPL_KEY"
},
{
"declarator": "WAL_EDIT_CODEC_CLASS_KEY = \"hbase.regionserver.wal.codec\"",
"modifier": "public static final",
"original_string": "public static final String WAL_EDIT_CODEC_CLASS_KEY = \"hbase.regionserver.wal.codec\";",
"type": "String",
"var_name": "WAL_EDIT_CODEC_CLASS_KEY"
},
{
"declarator": "INDEX_HLOG_READER_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader\"",
"modifier": "private static final",
"original_string": "private static final String INDEX_HLOG_READER_CLASS_NAME = \"org.apache.hadoop.hbase.regionserver.wal.IndexedHLogReader\";",
"type": "String",
"var_name": "INDEX_HLOG_READER_CLASS_NAME"
},
{
"declarator": "LOGGER = LoggerFactory.getLogger(IndexManagementUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(IndexManagementUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/hbase/index/util/IndexManagementUtil.java",
"identifier": "IndexManagementUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "IndexManagementUtil.IndexManagementUtil()",
"constructor": true,
"full_signature": "private IndexManagementUtil()",
"identifier": "IndexManagementUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " IndexManagementUtil()",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.isWALEditCodecSet(Configuration conf)",
"constructor": false,
"full_signature": "public static boolean isWALEditCodecSet(Configuration conf)",
"identifier": "isWALEditCodecSet",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "boolean",
"signature": "boolean isWALEditCodecSet(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"constructor": false,
"full_signature": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"identifier": "ensureMutableIndexingCorrectlyConfigured",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "void",
"signature": "void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"constructor": false,
"full_signature": "public static ValueGetter createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"identifier": "createGetterFromScanner",
"modifiers": "public static",
"parameters": "(CoveredDeleteScanner scanner, byte[] currentRow)",
"return": "ValueGetter",
"signature": "ValueGetter createGetterFromScanner(CoveredDeleteScanner scanner, byte[] currentRow)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"constructor": false,
"full_signature": "public static boolean updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"identifier": "updateMatchesColumns",
"modifiers": "public static",
"parameters": "(Collection<KeyValue> update, List<ColumnReference> columns)",
"return": "boolean",
"signature": "boolean updateMatchesColumns(Collection<KeyValue> update, List<ColumnReference> columns)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"constructor": false,
"full_signature": "public static boolean columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"identifier": "columnMatchesUpdate",
"modifiers": "public static",
"parameters": "(List<ColumnReference> columns, Collection<KeyValue> update)",
"return": "boolean",
"signature": "boolean columnMatchesUpdate(List<ColumnReference> columns, Collection<KeyValue> update)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"constructor": false,
"full_signature": "public static Scan newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"identifier": "newLocalStateScan",
"modifiers": "public static",
"parameters": "(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"return": "Scan",
"signature": "Scan newLocalStateScan(List<? extends Iterable<? extends ColumnReference>> refsArray)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"constructor": false,
"full_signature": "public static Scan newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"identifier": "newLocalStateScan",
"modifiers": "public static",
"parameters": "(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"return": "Scan",
"signature": "Scan newLocalStateScan(Scan scan, List<? extends Iterable<? extends ColumnReference>> refsArray)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.rethrowIndexingException(Throwable e)",
"constructor": false,
"full_signature": "public static void rethrowIndexingException(Throwable e)",
"identifier": "rethrowIndexingException",
"modifiers": "public static",
"parameters": "(Throwable e)",
"return": "void",
"signature": "void rethrowIndexingException(Throwable e)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.setIfNotSet(Configuration conf, String key, int value)",
"constructor": false,
"full_signature": "public static void setIfNotSet(Configuration conf, String key, int value)",
"identifier": "setIfNotSet",
"modifiers": "public static",
"parameters": "(Configuration conf, String key, int value)",
"return": "void",
"signature": "void setIfNotSet(Configuration conf, String key, int value)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"constructor": false,
"full_signature": "public static void createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"identifier": "createTimestampBatchesFromKeyValues",
"modifiers": "public static",
"parameters": "(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"return": "void",
"signature": "void createTimestampBatchesFromKeyValues(Collection<KeyValue> kvs, Map<Long, Batch> batches)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.createTimestampBatchesFromMutation(Mutation m)",
"constructor": false,
"full_signature": "public static Collection<Batch> createTimestampBatchesFromMutation(Mutation m)",
"identifier": "createTimestampBatchesFromMutation",
"modifiers": "public static",
"parameters": "(Mutation m)",
"return": "Collection<Batch>",
"signature": "Collection<Batch> createTimestampBatchesFromMutation(Mutation m)",
"testcase": false
},
{
"class_method_signature": "IndexManagementUtil.flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"constructor": false,
"full_signature": "public static Collection<? extends Mutation> flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"identifier": "flattenMutationsByTimestamp",
"modifiers": "public static",
"parameters": "(Collection<? extends Mutation> mutations)",
"return": "Collection<? extends Mutation>",
"signature": "Collection<? extends Mutation> flattenMutationsByTimestamp(Collection<? extends Mutation> mutations)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf) throws IllegalStateException {\n\n // check to see if the WALEditCodec is installed\n if (isWALEditCodecSet(conf)) { return; }\n\n // otherwise, we have to install the indexedhlogreader, but it cannot have compression\n String codecClass = INDEX_WAL_EDIT_CODEC_CLASS_NAME;\n String indexLogReaderName = INDEX_HLOG_READER_CLASS_NAME;\n try {\n // Use reflection to load the IndexedHLogReader, since it may not load with an older version\n // of HBase\n Class.forName(indexLogReaderName);\n } catch (ClassNotFoundException e) {\n throw new IllegalStateException(codecClass + \" is not installed, but \"\n + indexLogReaderName + \" hasn't been installed in hbase-site.xml under \" + HLOG_READER_IMPL_KEY);\n }\n if (indexLogReaderName.equals(conf.get(HLOG_READER_IMPL_KEY, indexLogReaderName))) {\n if (conf.getBoolean(HConstants.ENABLE_WAL_COMPRESSION, false)) { throw new IllegalStateException(\n \"WAL Compression is only supported with \" + codecClass\n + \". You can install in hbase-site.xml, under \" + WALCellCodec.WAL_CELL_CODEC_CLASS_KEY);\n }\n } else {\n throw new IllegalStateException(codecClass + \" is not installed, but \"\n + indexLogReaderName + \" hasn't been installed in hbase-site.xml under \" + HLOG_READER_IMPL_KEY);\n }\n\n }",
"class_method_signature": "IndexManagementUtil.ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"constructor": false,
"full_signature": "public static void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"identifier": "ensureMutableIndexingCorrectlyConfigured",
"invocations": [
"isWALEditCodecSet",
"forName",
"equals",
"get",
"getBoolean"
],
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "void",
"signature": "void ensureMutableIndexingCorrectlyConfigured(Configuration conf)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_55 | {
"fields": [
{
"declarator": "ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo ID_COLUMN = new ColumnInfo(\"ID\", Types.BIGINT);",
"type": "ColumnInfo",
"var_name": "ID_COLUMN"
},
{
"declarator": "NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR)",
"modifier": "private static final",
"original_string": "private static final ColumnInfo NAME_COLUMN = new ColumnInfo(\"NAME\", Types.VARCHAR);",
"type": "ColumnInfo",
"var_name": "NAME_COLUMN"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/QueryUtilTest.java",
"identifier": "QueryUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructUpsertStatement_ColumnInfos() {\n assertEquals(\n \"UPSERT INTO MYTAB (\\\"ID\\\", \\\"NAME\\\") VALUES (?, ?)\",\n QueryUtil.constructUpsertStatement(\"MYTAB\", ImmutableList.of(ID_COLUMN, NAME_COLUMN)));\n\n }",
"class_method_signature": "QueryUtilTest.testConstructUpsertStatement_ColumnInfos()",
"constructor": false,
"full_signature": "@Test public void testConstructUpsertStatement_ColumnInfos()",
"identifier": "testConstructUpsertStatement_ColumnInfos",
"invocations": [
"assertEquals",
"constructUpsertStatement",
"of"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testConstructUpsertStatement_ColumnInfos()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(QueryUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(QueryUtil.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "COLUMN_FAMILY_POSITION = 25",
"modifier": "public static final",
"original_string": "public static final int COLUMN_FAMILY_POSITION = 25;",
"type": "int",
"var_name": "COLUMN_FAMILY_POSITION"
},
{
"declarator": "COLUMN_NAME_POSITION = 4",
"modifier": "public static final",
"original_string": "public static final int COLUMN_NAME_POSITION = 4;",
"type": "int",
"var_name": "COLUMN_NAME_POSITION"
},
{
"declarator": "DATA_TYPE_POSITION = 5",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_POSITION = 5;",
"type": "int",
"var_name": "DATA_TYPE_POSITION"
},
{
"declarator": "DATA_TYPE_NAME_POSITION = 6",
"modifier": "public static final",
"original_string": "public static final int DATA_TYPE_NAME_POSITION = 6;",
"type": "int",
"var_name": "DATA_TYPE_NAME_POSITION"
},
{
"declarator": "IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\"",
"modifier": "public static final",
"original_string": "public static final String IS_SERVER_CONNECTION = \"IS_SERVER_CONNECTION\";",
"type": "String",
"var_name": "IS_SERVER_CONNECTION"
},
{
"declarator": "SELECT = \"SELECT\"",
"modifier": "private static final",
"original_string": "private static final String SELECT = \"SELECT\";",
"type": "String",
"var_name": "SELECT"
},
{
"declarator": "FROM = \"FROM\"",
"modifier": "private static final",
"original_string": "private static final String FROM = \"FROM\";",
"type": "String",
"var_name": "FROM"
},
{
"declarator": "WHERE = \"WHERE\"",
"modifier": "private static final",
"original_string": "private static final String WHERE = \"WHERE\";",
"type": "String",
"var_name": "WHERE"
},
{
"declarator": "AND = \"AND\"",
"modifier": "private static final",
"original_string": "private static final String AND = \"AND\";",
"type": "String",
"var_name": "AND"
},
{
"declarator": "CompareOpString = new String[CompareOp.values().length]",
"modifier": "private static final",
"original_string": "private static final String[] CompareOpString = new String[CompareOp.values().length];",
"type": "String[]",
"var_name": "CompareOpString"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java",
"identifier": "QueryUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "QueryUtil.toSQL(CompareOp op)",
"constructor": false,
"full_signature": "public static String toSQL(CompareOp op)",
"identifier": "toSQL",
"modifiers": "public static",
"parameters": "(CompareOp op)",
"return": "String",
"signature": "String toSQL(CompareOp op)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.QueryUtil()",
"constructor": true,
"full_signature": "private QueryUtil()",
"identifier": "QueryUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " QueryUtil()",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"identifier": "constructUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, List<String> columns, Hint hint)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<String> columns, Hint hint)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructGenericUpsertStatement(String tableName, int numColumns)",
"constructor": false,
"full_signature": "public static String constructGenericUpsertStatement(String tableName, int numColumns)",
"identifier": "constructGenericUpsertStatement",
"modifiers": "public static",
"parameters": "(String tableName, int numColumns)",
"return": "String",
"signature": "String constructGenericUpsertStatement(String tableName, int numColumns)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<ColumnInfo> columnInfos,final String conditions)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"constructor": false,
"full_signature": "public static String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"identifier": "constructSelectStatement",
"modifiers": "public static",
"parameters": "(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"return": "String",
"signature": "String constructSelectStatement(String fullTableName, List<String> columns,\n final String whereClause, Hint hint, boolean escapeCols)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.constructParameterizedInClause(int numWhereCols, int numBatches)",
"constructor": false,
"full_signature": "public static String constructParameterizedInClause(int numWhereCols, int numBatches)",
"identifier": "constructParameterizedInClause",
"modifiers": "public static",
"parameters": "(int numWhereCols, int numBatches)",
"return": "String",
"signature": "String constructParameterizedInClause(int numWhereCols, int numBatches)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum)",
"return": "String",
"signature": "String getUrl(String zkQuorum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int clientPort)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int clientPort)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int clientPort)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int clientPort)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, int port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, int port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, int port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, int port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "public static String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrl",
"modifiers": "public static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrl(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"constructor": false,
"full_signature": "private static String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"identifier": "getUrlInternal",
"modifiers": "private static",
"parameters": "(String zkQuorum, Integer port, String znodeParent, String principal)",
"return": "String",
"signature": "String getUrlInternal(String zkQuorum, Integer port, String znodeParent, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultSet rs)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultSet rs)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "String",
"signature": "String getExplainPlan(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getExplainPlan(ResultIterator iterator)",
"constructor": false,
"full_signature": "public static String getExplainPlan(ResultIterator iterator)",
"identifier": "getExplainPlan",
"modifiers": "public static",
"parameters": "(ResultIterator iterator)",
"return": "String",
"signature": "String getExplainPlan(ResultIterator iterator)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.setServerConnection(Properties props)",
"constructor": false,
"full_signature": "public static void setServerConnection(Properties props)",
"identifier": "setServerConnection",
"modifiers": "public static",
"parameters": "(Properties props)",
"return": "void",
"signature": "void setServerConnection(Properties props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.isServerConnection(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static boolean isServerConnection(ReadOnlyProps props)",
"identifier": "isServerConnection",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "boolean",
"signature": "boolean isServerConnection(ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServer(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServer(Properties props, Configuration conf)",
"identifier": "getConnectionOnServer",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnectionOnServer(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"constructor": false,
"full_signature": "public static Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"identifier": "getConnectionOnServerWithCustomUrl",
"modifiers": "public static",
"parameters": "(Properties props, String principal)",
"return": "Connection",
"signature": "Connection getConnectionOnServerWithCustomUrl(Properties props, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Configuration conf)",
"constructor": false,
"full_signature": "public static Connection getConnection(Configuration conf)",
"identifier": "getConnection",
"modifiers": "public static",
"parameters": "(Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnection(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static Connection getConnection(Properties props, Configuration conf)",
"identifier": "getConnection",
"modifiers": "private static",
"parameters": "(Properties props, Configuration conf)",
"return": "Connection",
"signature": "Connection getConnection(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionUrl(Properties props, Configuration conf, String principal)",
"constructor": false,
"full_signature": "public static String getConnectionUrl(Properties props, Configuration conf, String principal)",
"identifier": "getConnectionUrl",
"modifiers": "public static",
"parameters": "(Properties props, Configuration conf, String principal)",
"return": "String",
"signature": "String getConnectionUrl(Properties props, Configuration conf, String principal)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getInt(String key, int defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"identifier": "getInt",
"modifiers": "private static",
"parameters": "(String key, int defaultValue, Properties props, Configuration conf)",
"return": "int",
"signature": "int getInt(String key, int defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getString(String key, String defaultValue, Properties props, Configuration conf)",
"constructor": false,
"full_signature": "private static String getString(String key, String defaultValue, Properties props, Configuration conf)",
"identifier": "getString",
"modifiers": "private static",
"parameters": "(String key, String defaultValue, Properties props, Configuration conf)",
"return": "String",
"signature": "String getString(String key, String defaultValue, Properties props, Configuration conf)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewStatement(String schemaName, String tableName, String where)",
"constructor": false,
"full_signature": "public static String getViewStatement(String schemaName, String tableName, String where)",
"identifier": "getViewStatement",
"modifiers": "public static",
"parameters": "(String schemaName, String tableName, String where)",
"return": "String",
"signature": "String getViewStatement(String schemaName, String tableName, String where)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getOffsetLimit(Integer limit, Integer offset)",
"constructor": false,
"full_signature": "public static Integer getOffsetLimit(Integer limit, Integer offset)",
"identifier": "getOffsetLimit",
"modifiers": "public static",
"parameters": "(Integer limit, Integer offset)",
"return": "Integer",
"signature": "Integer getOffsetLimit(Integer limit, Integer offset)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getRemainingOffset(Tuple offsetTuple)",
"constructor": false,
"full_signature": "public static Integer getRemainingOffset(Tuple offsetTuple)",
"identifier": "getRemainingOffset",
"modifiers": "public static",
"parameters": "(Tuple offsetTuple)",
"return": "Integer",
"signature": "Integer getRemainingOffset(Tuple offsetTuple)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"constructor": false,
"full_signature": "public static String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"identifier": "getViewPartitionClause",
"modifiers": "public static",
"parameters": "(String partitionColumnName, long autoPartitionNum)",
"return": "String",
"signature": "String getViewPartitionClause(String partitionColumnName, long autoPartitionNum)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getConnectionForQueryLog(Configuration config)",
"constructor": false,
"full_signature": "public static Connection getConnectionForQueryLog(Configuration config)",
"identifier": "getConnectionForQueryLog",
"modifiers": "public static",
"parameters": "(Configuration config)",
"return": "Connection",
"signature": "Connection getConnectionForQueryLog(Configuration config)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getCatalogsStmt(PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"identifier": "getCatalogsStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection)",
"return": "PreparedStatement",
"signature": "PreparedStatement getCatalogsStmt(PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"identifier": "getSchemasStmt",
"modifiers": "public static",
"parameters": "(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSchemasStmt(\n PhoenixConnection connection, String catalog, String schemaPattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"constructor": false,
"full_signature": "public static PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"identifier": "getSuperTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"return": "PreparedStatement",
"signature": "PreparedStatement getSuperTablesStmt(PhoenixConnection connection,\n String catalog, String schemaPattern, String tableNamePattern)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"constructor": false,
"full_signature": "public static PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"identifier": "getIndexInfoStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"return": "PreparedStatement",
"signature": "PreparedStatement getIndexInfoStmt(PhoenixConnection connection,\n String catalog, String schema, String table, boolean unique, boolean approximate)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"constructor": false,
"full_signature": "public static PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"identifier": "getTablesStmt",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"return": "PreparedStatement",
"signature": "PreparedStatement getTablesStmt(PhoenixConnection connection, String catalog, String schemaPattern,\n String tableNamePattern, String[] types)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"constructor": false,
"full_signature": "public static void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"identifier": "addTenantIdFilter",
"modifiers": "public static",
"parameters": "(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"return": "void",
"signature": "void addTenantIdFilter(PhoenixConnection connection, StringBuilder buf, String tenantIdPattern,\n List<String> parameterValues)",
"testcase": false
},
{
"class_method_signature": "QueryUtil.appendConjunction(StringBuilder buf)",
"constructor": false,
"full_signature": "private static void appendConjunction(StringBuilder buf)",
"identifier": "appendConjunction",
"modifiers": "private static",
"parameters": "(StringBuilder buf)",
"return": "void",
"signature": "void appendConjunction(StringBuilder buf)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos) {\n\n if (columnInfos.isEmpty()) {\n throw new IllegalArgumentException(\"At least one column must be provided for upserts\");\n }\n\n final List<String> columnNames = Lists.transform(columnInfos, new Function<ColumnInfo,String>() {\n @Override\n public String apply(ColumnInfo columnInfo) {\n return columnInfo.getColumnName();\n }\n });\n return constructUpsertStatement(tableName, columnNames, null);\n\n }",
"class_method_signature": "QueryUtil.constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"constructor": false,
"full_signature": "public static String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"identifier": "constructUpsertStatement",
"invocations": [
"isEmpty",
"transform",
"getColumnName",
"constructUpsertStatement"
],
"modifiers": "public static",
"parameters": "(String tableName, List<ColumnInfo> columnInfos)",
"return": "String",
"signature": "String constructUpsertStatement(String tableName, List<ColumnInfo> columnInfos)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_140 | {
"fields": [
{
"declarator": "exceptionRule = ExpectedException.none()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public ExpectedException exceptionRule = ExpectedException.none();",
"type": "ExpectedException",
"var_name": "exceptionRule"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/execute/MutationStateTest.java",
"identifier": "MutationStateTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetMutationBatchList() {\n byte[] r1 = Bytes.toBytes(1);\n byte[] r2 = Bytes.toBytes(2);\n byte[] r3 = Bytes.toBytes(3);\n byte[] r4 = Bytes.toBytes(4);\n // one put and one delete as a group\n {\n List<Mutation> list = ImmutableList.of(new Put(r1), new Put(r2), new Delete(r2));\n List<List<Mutation>> batchLists = MutationState.getMutationBatchList(2, 10, list);\n assertTrue(batchLists.size() == 2);\n assertEquals(batchLists.get(0).size(), 1);\n assertEquals(batchLists.get(1).size(), 2);\n }\n\n {\n List<Mutation> list = ImmutableList.of(new Put(r1), new Delete(r1), new Put(r2));\n List<List<Mutation>> batchLists = MutationState.getMutationBatchList(2, 10, list);\n assertTrue(batchLists.size() == 2);\n assertEquals(batchLists.get(0).size(), 2);\n assertEquals(batchLists.get(1).size(), 1);\n }\n\n {\n List<Mutation> list = ImmutableList.of(new Put(r3), new Put(r1), new Delete(r1), new Put(r2), new Put(r4), new Delete(r4));\n List<List<Mutation>> batchLists = MutationState.getMutationBatchList(2, 10, list);\n assertTrue(batchLists.size() == 4);\n assertEquals(batchLists.get(0).size(), 1);\n assertEquals(batchLists.get(1).size(), 2);\n assertEquals(batchLists.get(2).size(), 1);\n assertEquals(batchLists.get(3).size(), 2);\n }\n\n }",
"class_method_signature": "MutationStateTest.testGetMutationBatchList()",
"constructor": false,
"full_signature": "@Test public void testGetMutationBatchList()",
"identifier": "testGetMutationBatchList",
"invocations": [
"toBytes",
"toBytes",
"toBytes",
"toBytes",
"of",
"getMutationBatchList",
"assertTrue",
"size",
"assertEquals",
"size",
"get",
"assertEquals",
"size",
"get",
"of",
"getMutationBatchList",
"assertTrue",
"size",
"assertEquals",
"size",
"get",
"assertEquals",
"size",
"get",
"of",
"getMutationBatchList",
"assertTrue",
"size",
"assertEquals",
"size",
"get",
"assertEquals",
"size",
"get",
"assertEquals",
"size",
"get",
"assertEquals",
"size",
"get"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetMutationBatchList()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(MutationState.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(MutationState.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "EMPTY_STATEMENT_INDEX_ARRAY = new int[0]",
"modifier": "private static final",
"original_string": "private static final int[] EMPTY_STATEMENT_INDEX_ARRAY = new int[0];",
"type": "int[]",
"var_name": "EMPTY_STATEMENT_INDEX_ARRAY"
},
{
"declarator": "MAX_COMMIT_RETRIES = 3",
"modifier": "private static final",
"original_string": "private static final int MAX_COMMIT_RETRIES = 3;",
"type": "int",
"var_name": "MAX_COMMIT_RETRIES"
},
{
"declarator": "connection",
"modifier": "private final",
"original_string": "private final PhoenixConnection connection;",
"type": "PhoenixConnection",
"var_name": "connection"
},
{
"declarator": "maxSize",
"modifier": "private final",
"original_string": "private final int maxSize;",
"type": "int",
"var_name": "maxSize"
},
{
"declarator": "maxSizeBytes",
"modifier": "private final",
"original_string": "private final long maxSizeBytes;",
"type": "long",
"var_name": "maxSizeBytes"
},
{
"declarator": "batchSize",
"modifier": "private final",
"original_string": "private final long batchSize;",
"type": "long",
"var_name": "batchSize"
},
{
"declarator": "batchSizeBytes",
"modifier": "private final",
"original_string": "private final long batchSizeBytes;",
"type": "long",
"var_name": "batchSizeBytes"
},
{
"declarator": "batchCount = 0L",
"modifier": "private",
"original_string": "private long batchCount = 0L;",
"type": "long",
"var_name": "batchCount"
},
{
"declarator": "mutations",
"modifier": "private final",
"original_string": "private final Map<TableRef, MultiRowMutationState> mutations;",
"type": "Map<TableRef, MultiRowMutationState>",
"var_name": "mutations"
},
{
"declarator": "uncommittedPhysicalNames = Sets.newHashSetWithExpectedSize(10)",
"modifier": "private final",
"original_string": "private final Set<String> uncommittedPhysicalNames = Sets.newHashSetWithExpectedSize(10);",
"type": "Set<String>",
"var_name": "uncommittedPhysicalNames"
},
{
"declarator": "sizeOffset",
"modifier": "private",
"original_string": "private long sizeOffset;",
"type": "long",
"var_name": "sizeOffset"
},
{
"declarator": "numRows = 0",
"modifier": "private",
"original_string": "private int numRows = 0;",
"type": "int",
"var_name": "numRows"
},
{
"declarator": "estimatedSize = 0",
"modifier": "private",
"original_string": "private long estimatedSize = 0;",
"type": "long",
"var_name": "estimatedSize"
},
{
"declarator": "uncommittedStatementIndexes = EMPTY_STATEMENT_INDEX_ARRAY",
"modifier": "private",
"original_string": "private int[] uncommittedStatementIndexes = EMPTY_STATEMENT_INDEX_ARRAY;",
"type": "int[]",
"var_name": "uncommittedStatementIndexes"
},
{
"declarator": "isExternalTxContext = false",
"modifier": "private",
"original_string": "private boolean isExternalTxContext = false;",
"type": "boolean",
"var_name": "isExternalTxContext"
},
{
"declarator": "txMutations = Collections.emptyMap()",
"modifier": "private",
"original_string": "private Map<TableRef, MultiRowMutationState> txMutations = Collections.emptyMap();",
"type": "Map<TableRef, MultiRowMutationState>",
"var_name": "txMutations"
},
{
"declarator": "phoenixTransactionContext = PhoenixTransactionContext.NULL_CONTEXT",
"modifier": "private",
"original_string": "private PhoenixTransactionContext phoenixTransactionContext = PhoenixTransactionContext.NULL_CONTEXT;",
"type": "PhoenixTransactionContext",
"var_name": "phoenixTransactionContext"
},
{
"declarator": "mutationMetricQueue",
"modifier": "private final",
"original_string": "private final MutationMetricQueue mutationMetricQueue;",
"type": "MutationMetricQueue",
"var_name": "mutationMetricQueue"
},
{
"declarator": "readMetricQueue",
"modifier": "private",
"original_string": "private ReadMetricQueue readMetricQueue;",
"type": "ReadMetricQueue",
"var_name": "readMetricQueue"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java",
"identifier": "MutationState",
"interfaces": "implements SQLCloseable",
"methods": [
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"constructor": true,
"full_signature": "public MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n PhoenixTransactionContext txContext)",
"constructor": true,
"full_signature": "public MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n PhoenixTransactionContext txContext)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n PhoenixTransactionContext txContext)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n PhoenixTransactionContext txContext)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(MutationState mutationState)",
"constructor": true,
"full_signature": "public MutationState(MutationState mutationState)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(MutationState mutationState)",
"return": "",
"signature": " MutationState(MutationState mutationState)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(MutationState mutationState, PhoenixConnection connection)",
"constructor": true,
"full_signature": "public MutationState(MutationState mutationState, PhoenixConnection connection)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(MutationState mutationState, PhoenixConnection connection)",
"return": "",
"signature": " MutationState(MutationState mutationState, PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n long sizeOffset)",
"constructor": true,
"full_signature": "public MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n long sizeOffset)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n long sizeOffset)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n long sizeOffset)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext)",
"constructor": true,
"full_signature": "private MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext)",
"identifier": "MutationState",
"modifiers": "private",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext, long sizeOffset)",
"constructor": true,
"full_signature": "private MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext, long sizeOffset)",
"identifier": "MutationState",
"modifiers": "private",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext, long sizeOffset)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n boolean subTask, PhoenixTransactionContext txContext, long sizeOffset)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n Map<TableRef, MultiRowMutationState> mutations, boolean subTask, PhoenixTransactionContext txContext)",
"constructor": true,
"full_signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n Map<TableRef, MultiRowMutationState> mutations, boolean subTask, PhoenixTransactionContext txContext)",
"identifier": "MutationState",
"modifiers": "",
"parameters": "(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n Map<TableRef, MultiRowMutationState> mutations, boolean subTask, PhoenixTransactionContext txContext)",
"return": "",
"signature": " MutationState(int maxSize, long maxSizeBytes, PhoenixConnection connection,\n Map<TableRef, MultiRowMutationState> mutations, boolean subTask, PhoenixTransactionContext txContext)",
"testcase": false
},
{
"class_method_signature": "MutationState.MutationState(TableRef table, MultiRowMutationState mutations, long sizeOffset,\n int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"constructor": true,
"full_signature": "public MutationState(TableRef table, MultiRowMutationState mutations, long sizeOffset,\n int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"identifier": "MutationState",
"modifiers": "public",
"parameters": "(TableRef table, MultiRowMutationState mutations, long sizeOffset,\n int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"return": "",
"signature": " MutationState(TableRef table, MultiRowMutationState mutations, long sizeOffset,\n int maxSize, long maxSizeBytes, PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "MutationState.getEstimatedSize()",
"constructor": false,
"full_signature": "public long getEstimatedSize()",
"identifier": "getEstimatedSize",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getEstimatedSize()",
"testcase": false
},
{
"class_method_signature": "MutationState.getMaxSize()",
"constructor": false,
"full_signature": "public int getMaxSize()",
"identifier": "getMaxSize",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getMaxSize()",
"testcase": false
},
{
"class_method_signature": "MutationState.getMaxSizeBytes()",
"constructor": false,
"full_signature": "public long getMaxSizeBytes()",
"identifier": "getMaxSizeBytes",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getMaxSizeBytes()",
"testcase": false
},
{
"class_method_signature": "MutationState.getPhoenixTransactionContext()",
"constructor": false,
"full_signature": "public PhoenixTransactionContext getPhoenixTransactionContext()",
"identifier": "getPhoenixTransactionContext",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixTransactionContext",
"signature": "PhoenixTransactionContext getPhoenixTransactionContext()",
"testcase": false
},
{
"class_method_signature": "MutationState.commitDDLFence(PTable dataTable)",
"constructor": false,
"full_signature": "public void commitDDLFence(PTable dataTable)",
"identifier": "commitDDLFence",
"modifiers": "public",
"parameters": "(PTable dataTable)",
"return": "void",
"signature": "void commitDDLFence(PTable dataTable)",
"testcase": false
},
{
"class_method_signature": "MutationState.checkpointIfNeccessary(MutationPlan plan)",
"constructor": false,
"full_signature": "public boolean checkpointIfNeccessary(MutationPlan plan)",
"identifier": "checkpointIfNeccessary",
"modifiers": "public",
"parameters": "(MutationPlan plan)",
"return": "boolean",
"signature": "boolean checkpointIfNeccessary(MutationPlan plan)",
"testcase": false
},
{
"class_method_signature": "MutationState.getHTable(PTable table)",
"constructor": false,
"full_signature": "public Table getHTable(PTable table)",
"identifier": "getHTable",
"modifiers": "public",
"parameters": "(PTable table)",
"return": "Table",
"signature": "Table getHTable(PTable table)",
"testcase": false
},
{
"class_method_signature": "MutationState.getConnection()",
"constructor": false,
"full_signature": "public PhoenixConnection getConnection()",
"identifier": "getConnection",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixConnection",
"signature": "PhoenixConnection getConnection()",
"testcase": false
},
{
"class_method_signature": "MutationState.isTransactionStarted()",
"constructor": false,
"full_signature": "public boolean isTransactionStarted()",
"identifier": "isTransactionStarted",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isTransactionStarted()",
"testcase": false
},
{
"class_method_signature": "MutationState.getInitialWritePointer()",
"constructor": false,
"full_signature": "public long getInitialWritePointer()",
"identifier": "getInitialWritePointer",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getInitialWritePointer()",
"testcase": false
},
{
"class_method_signature": "MutationState.getWritePointer()",
"constructor": false,
"full_signature": "public long getWritePointer()",
"identifier": "getWritePointer",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getWritePointer()",
"testcase": false
},
{
"class_method_signature": "MutationState.getVisibilityLevel()",
"constructor": false,
"full_signature": "public PhoenixVisibilityLevel getVisibilityLevel()",
"identifier": "getVisibilityLevel",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixVisibilityLevel",
"signature": "PhoenixVisibilityLevel getVisibilityLevel()",
"testcase": false
},
{
"class_method_signature": "MutationState.startTransaction(Provider provider)",
"constructor": false,
"full_signature": "public boolean startTransaction(Provider provider)",
"identifier": "startTransaction",
"modifiers": "public",
"parameters": "(Provider provider)",
"return": "boolean",
"signature": "boolean startTransaction(Provider provider)",
"testcase": false
},
{
"class_method_signature": "MutationState.emptyMutationState(int maxSize, long maxSizeBytes,\n PhoenixConnection connection)",
"constructor": false,
"full_signature": "public static MutationState emptyMutationState(int maxSize, long maxSizeBytes,\n PhoenixConnection connection)",
"identifier": "emptyMutationState",
"modifiers": "public static",
"parameters": "(int maxSize, long maxSizeBytes,\n PhoenixConnection connection)",
"return": "MutationState",
"signature": "MutationState emptyMutationState(int maxSize, long maxSizeBytes,\n PhoenixConnection connection)",
"testcase": false
},
{
"class_method_signature": "MutationState.throwIfTooBig()",
"constructor": false,
"full_signature": "private void throwIfTooBig()",
"identifier": "throwIfTooBig",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfTooBig()",
"testcase": false
},
{
"class_method_signature": "MutationState.getUpdateCount()",
"constructor": false,
"full_signature": "public long getUpdateCount()",
"identifier": "getUpdateCount",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getUpdateCount()",
"testcase": false
},
{
"class_method_signature": "MutationState.getNumRows()",
"constructor": false,
"full_signature": "public int getNumRows()",
"identifier": "getNumRows",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getNumRows()",
"testcase": false
},
{
"class_method_signature": "MutationState.joinMutationState(TableRef tableRef, MultiRowMutationState srcRows,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"constructor": false,
"full_signature": "private void joinMutationState(TableRef tableRef, MultiRowMutationState srcRows,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"identifier": "joinMutationState",
"modifiers": "private",
"parameters": "(TableRef tableRef, MultiRowMutationState srcRows,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"return": "void",
"signature": "void joinMutationState(TableRef tableRef, MultiRowMutationState srcRows,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"testcase": false
},
{
"class_method_signature": "MutationState.joinMutationState(Map<TableRef, MultiRowMutationState> srcMutations,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"constructor": false,
"full_signature": "private void joinMutationState(Map<TableRef, MultiRowMutationState> srcMutations,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"identifier": "joinMutationState",
"modifiers": "private",
"parameters": "(Map<TableRef, MultiRowMutationState> srcMutations,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"return": "void",
"signature": "void joinMutationState(Map<TableRef, MultiRowMutationState> srcMutations,\n Map<TableRef, MultiRowMutationState> dstMutations)",
"testcase": false
},
{
"class_method_signature": "MutationState.join(MutationState newMutationState)",
"constructor": false,
"full_signature": "public void join(MutationState newMutationState)",
"identifier": "join",
"modifiers": "public",
"parameters": "(MutationState newMutationState)",
"return": "void",
"signature": "void join(MutationState newMutationState)",
"testcase": false
},
{
"class_method_signature": "MutationState.getNewRowKeyWithRowTimestamp(ImmutableBytesPtr ptr, long rowTimestamp, PTable table)",
"constructor": false,
"full_signature": "private static ImmutableBytesPtr getNewRowKeyWithRowTimestamp(ImmutableBytesPtr ptr, long rowTimestamp, PTable table)",
"identifier": "getNewRowKeyWithRowTimestamp",
"modifiers": "private static",
"parameters": "(ImmutableBytesPtr ptr, long rowTimestamp, PTable table)",
"return": "ImmutableBytesPtr",
"signature": "ImmutableBytesPtr getNewRowKeyWithRowTimestamp(ImmutableBytesPtr ptr, long rowTimestamp, PTable table)",
"testcase": false
},
{
"class_method_signature": "MutationState.addRowMutations(final TableRef tableRef,\n final MultiRowMutationState values, final long mutationTimestamp, final long serverTimestamp,\n boolean includeAllIndexes, final boolean sendAll)",
"constructor": false,
"full_signature": "private Iterator<Pair<PTable, List<Mutation>>> addRowMutations(final TableRef tableRef,\n final MultiRowMutationState values, final long mutationTimestamp, final long serverTimestamp,\n boolean includeAllIndexes, final boolean sendAll)",
"identifier": "addRowMutations",
"modifiers": "private",
"parameters": "(final TableRef tableRef,\n final MultiRowMutationState values, final long mutationTimestamp, final long serverTimestamp,\n boolean includeAllIndexes, final boolean sendAll)",
"return": "Iterator<Pair<PTable, List<Mutation>>>",
"signature": "Iterator<Pair<PTable, List<Mutation>>> addRowMutations(final TableRef tableRef,\n final MultiRowMutationState values, final long mutationTimestamp, final long serverTimestamp,\n boolean includeAllIndexes, final boolean sendAll)",
"testcase": false
},
{
"class_method_signature": "MutationState.generateMutations(final TableRef tableRef, final long mutationTimestamp, final long serverTimestamp,\n final MultiRowMutationState values, final List<Mutation> mutationList,\n final List<Mutation> mutationsPertainingToIndex)",
"constructor": false,
"full_signature": "private void generateMutations(final TableRef tableRef, final long mutationTimestamp, final long serverTimestamp,\n final MultiRowMutationState values, final List<Mutation> mutationList,\n final List<Mutation> mutationsPertainingToIndex)",
"identifier": "generateMutations",
"modifiers": "private",
"parameters": "(final TableRef tableRef, final long mutationTimestamp, final long serverTimestamp,\n final MultiRowMutationState values, final List<Mutation> mutationList,\n final List<Mutation> mutationsPertainingToIndex)",
"return": "void",
"signature": "void generateMutations(final TableRef tableRef, final long mutationTimestamp, final long serverTimestamp,\n final MultiRowMutationState values, final List<Mutation> mutationList,\n final List<Mutation> mutationsPertainingToIndex)",
"testcase": false
},
{
"class_method_signature": "MutationState.toMutations(Long timestamp)",
"constructor": false,
"full_signature": "public Iterator<Pair<byte[], List<Mutation>>> toMutations(Long timestamp)",
"identifier": "toMutations",
"modifiers": "public",
"parameters": "(Long timestamp)",
"return": "Iterator<Pair<byte[], List<Mutation>>>",
"signature": "Iterator<Pair<byte[], List<Mutation>>> toMutations(Long timestamp)",
"testcase": false
},
{
"class_method_signature": "MutationState.toMutations()",
"constructor": false,
"full_signature": "public Iterator<Pair<byte[], List<Mutation>>> toMutations()",
"identifier": "toMutations",
"modifiers": "public",
"parameters": "()",
"return": "Iterator<Pair<byte[], List<Mutation>>>",
"signature": "Iterator<Pair<byte[], List<Mutation>>> toMutations()",
"testcase": false
},
{
"class_method_signature": "MutationState.toMutations(final boolean includeMutableIndexes)",
"constructor": false,
"full_signature": "public Iterator<Pair<byte[], List<Mutation>>> toMutations(final boolean includeMutableIndexes)",
"identifier": "toMutations",
"modifiers": "public",
"parameters": "(final boolean includeMutableIndexes)",
"return": "Iterator<Pair<byte[], List<Mutation>>>",
"signature": "Iterator<Pair<byte[], List<Mutation>>> toMutations(final boolean includeMutableIndexes)",
"testcase": false
},
{
"class_method_signature": "MutationState.toMutations(final boolean includeMutableIndexes,\n final Long tableTimestamp)",
"constructor": false,
"full_signature": "public Iterator<Pair<byte[], List<Mutation>>> toMutations(final boolean includeMutableIndexes,\n final Long tableTimestamp)",
"identifier": "toMutations",
"modifiers": "public",
"parameters": "(final boolean includeMutableIndexes,\n final Long tableTimestamp)",
"return": "Iterator<Pair<byte[], List<Mutation>>>",
"signature": "Iterator<Pair<byte[], List<Mutation>>> toMutations(final boolean includeMutableIndexes,\n final Long tableTimestamp)",
"testcase": false
},
{
"class_method_signature": "MutationState.getTableTimestamp(final Long tableTimestamp, Long scn)",
"constructor": false,
"full_signature": "public static long getTableTimestamp(final Long tableTimestamp, Long scn)",
"identifier": "getTableTimestamp",
"modifiers": "public static",
"parameters": "(final Long tableTimestamp, Long scn)",
"return": "long",
"signature": "long getTableTimestamp(final Long tableTimestamp, Long scn)",
"testcase": false
},
{
"class_method_signature": "MutationState.getMutationTimestamp(final Long scn)",
"constructor": false,
"full_signature": "public static long getMutationTimestamp(final Long scn)",
"identifier": "getMutationTimestamp",
"modifiers": "public static",
"parameters": "(final Long scn)",
"return": "long",
"signature": "long getMutationTimestamp(final Long scn)",
"testcase": false
},
{
"class_method_signature": "MutationState.validateAll()",
"constructor": false,
"full_signature": "private long[] validateAll()",
"identifier": "validateAll",
"modifiers": "private",
"parameters": "()",
"return": "long[]",
"signature": "long[] validateAll()",
"testcase": false
},
{
"class_method_signature": "MutationState.validateAndGetServerTimestamp(TableRef tableRef, MultiRowMutationState rowKeyToColumnMap)",
"constructor": false,
"full_signature": "private long validateAndGetServerTimestamp(TableRef tableRef, MultiRowMutationState rowKeyToColumnMap)",
"identifier": "validateAndGetServerTimestamp",
"modifiers": "private",
"parameters": "(TableRef tableRef, MultiRowMutationState rowKeyToColumnMap)",
"return": "long",
"signature": "long validateAndGetServerTimestamp(TableRef tableRef, MultiRowMutationState rowKeyToColumnMap)",
"testcase": false
},
{
"class_method_signature": "MutationState.calculateMutationSize(List<Mutation> mutations)",
"constructor": false,
"full_signature": "private static long calculateMutationSize(List<Mutation> mutations)",
"identifier": "calculateMutationSize",
"modifiers": "private static",
"parameters": "(List<Mutation> mutations)",
"return": "long",
"signature": "long calculateMutationSize(List<Mutation> mutations)",
"testcase": false
},
{
"class_method_signature": "MutationState.getBatchSizeBytes()",
"constructor": false,
"full_signature": "public long getBatchSizeBytes()",
"identifier": "getBatchSizeBytes",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getBatchSizeBytes()",
"testcase": false
},
{
"class_method_signature": "MutationState.getBatchCount()",
"constructor": false,
"full_signature": "public long getBatchCount()",
"identifier": "getBatchCount",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getBatchCount()",
"testcase": false
},
{
"class_method_signature": "MutationState.send(Iterator<TableRef> tableRefIterator)",
"constructor": false,
"full_signature": "private void send(Iterator<TableRef> tableRefIterator)",
"identifier": "send",
"modifiers": "private",
"parameters": "(Iterator<TableRef> tableRefIterator)",
"return": "void",
"signature": "void send(Iterator<TableRef> tableRefIterator)",
"testcase": false
},
{
"class_method_signature": "MutationState.sendMutations(Iterator<Entry<TableInfo, List<Mutation>>> mutationsIterator, Span span, ImmutableBytesWritable indexMetaDataPtr, boolean isVerifiedPhase)",
"constructor": false,
"full_signature": "private void sendMutations(Iterator<Entry<TableInfo, List<Mutation>>> mutationsIterator, Span span, ImmutableBytesWritable indexMetaDataPtr, boolean isVerifiedPhase)",
"identifier": "sendMutations",
"modifiers": "private",
"parameters": "(Iterator<Entry<TableInfo, List<Mutation>>> mutationsIterator, Span span, ImmutableBytesWritable indexMetaDataPtr, boolean isVerifiedPhase)",
"return": "void",
"signature": "void sendMutations(Iterator<Entry<TableInfo, List<Mutation>>> mutationsIterator, Span span, ImmutableBytesWritable indexMetaDataPtr, boolean isVerifiedPhase)",
"testcase": false
},
{
"class_method_signature": "MutationState.filterIndexCheckerMutations(Map<TableInfo, List<Mutation>> mutationMap,\n Map<TableInfo, List<Mutation>> unverifiedIndexMutations,\n Map<TableInfo, List<Mutation>> verifiedOrDeletedIndexMutations)",
"constructor": false,
"full_signature": "private void filterIndexCheckerMutations(Map<TableInfo, List<Mutation>> mutationMap,\n Map<TableInfo, List<Mutation>> unverifiedIndexMutations,\n Map<TableInfo, List<Mutation>> verifiedOrDeletedIndexMutations)",
"identifier": "filterIndexCheckerMutations",
"modifiers": "private",
"parameters": "(Map<TableInfo, List<Mutation>> mutationMap,\n Map<TableInfo, List<Mutation>> unverifiedIndexMutations,\n Map<TableInfo, List<Mutation>> verifiedOrDeletedIndexMutations)",
"return": "void",
"signature": "void filterIndexCheckerMutations(Map<TableInfo, List<Mutation>> mutationMap,\n Map<TableInfo, List<Mutation>> unverifiedIndexMutations,\n Map<TableInfo, List<Mutation>> verifiedOrDeletedIndexMutations)",
"testcase": false
},
{
"class_method_signature": "MutationState.addToMap(Map<TableInfo, List<Mutation>> map, TableInfo tableInfo, Mutation mutation)",
"constructor": false,
"full_signature": "private void addToMap(Map<TableInfo, List<Mutation>> map, TableInfo tableInfo, Mutation mutation)",
"identifier": "addToMap",
"modifiers": "private",
"parameters": "(Map<TableInfo, List<Mutation>> map, TableInfo tableInfo, Mutation mutation)",
"return": "void",
"signature": "void addToMap(Map<TableInfo, List<Mutation>> map, TableInfo tableInfo, Mutation mutation)",
"testcase": false
},
{
"class_method_signature": "MutationState.getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"constructor": false,
"full_signature": "public static List<List<Mutation>> getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"identifier": "getMutationBatchList",
"modifiers": "public static",
"parameters": "(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"return": "List<List<Mutation>>",
"signature": "List<List<Mutation>> getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"testcase": false
},
{
"class_method_signature": "MutationState.encodeTransaction()",
"constructor": false,
"full_signature": "public byte[] encodeTransaction()",
"identifier": "encodeTransaction",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] encodeTransaction()",
"testcase": false
},
{
"class_method_signature": "MutationState.addUncommittedStatementIndexes(Collection<RowMutationState> rowMutations)",
"constructor": false,
"full_signature": "private void addUncommittedStatementIndexes(Collection<RowMutationState> rowMutations)",
"identifier": "addUncommittedStatementIndexes",
"modifiers": "private",
"parameters": "(Collection<RowMutationState> rowMutations)",
"return": "void",
"signature": "void addUncommittedStatementIndexes(Collection<RowMutationState> rowMutations)",
"testcase": false
},
{
"class_method_signature": "MutationState.getUncommittedStatementIndexes()",
"constructor": false,
"full_signature": "private int[] getUncommittedStatementIndexes()",
"identifier": "getUncommittedStatementIndexes",
"modifiers": "private",
"parameters": "()",
"return": "int[]",
"signature": "int[] getUncommittedStatementIndexes()",
"testcase": false
},
{
"class_method_signature": "MutationState.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void close()",
"testcase": false
},
{
"class_method_signature": "MutationState.resetState()",
"constructor": false,
"full_signature": "private void resetState()",
"identifier": "resetState",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void resetState()",
"testcase": false
},
{
"class_method_signature": "MutationState.resetTransactionalState()",
"constructor": false,
"full_signature": "private void resetTransactionalState()",
"identifier": "resetTransactionalState",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void resetTransactionalState()",
"testcase": false
},
{
"class_method_signature": "MutationState.rollback()",
"constructor": false,
"full_signature": "public void rollback()",
"identifier": "rollback",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void rollback()",
"testcase": false
},
{
"class_method_signature": "MutationState.commit()",
"constructor": false,
"full_signature": "public void commit()",
"identifier": "commit",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void commit()",
"testcase": false
},
{
"class_method_signature": "MutationState.shouldResubmitTransaction(Set<TableRef> txTableRefs)",
"constructor": false,
"full_signature": "private boolean shouldResubmitTransaction(Set<TableRef> txTableRefs)",
"identifier": "shouldResubmitTransaction",
"modifiers": "private",
"parameters": "(Set<TableRef> txTableRefs)",
"return": "boolean",
"signature": "boolean shouldResubmitTransaction(Set<TableRef> txTableRefs)",
"testcase": false
},
{
"class_method_signature": "MutationState.sendUncommitted()",
"constructor": false,
"full_signature": "public boolean sendUncommitted()",
"identifier": "sendUncommitted",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean sendUncommitted()",
"testcase": false
},
{
"class_method_signature": "MutationState.sendUncommitted(Iterator<TableRef> tableRefs)",
"constructor": false,
"full_signature": "public boolean sendUncommitted(Iterator<TableRef> tableRefs)",
"identifier": "sendUncommitted",
"modifiers": "public",
"parameters": "(Iterator<TableRef> tableRefs)",
"return": "boolean",
"signature": "boolean sendUncommitted(Iterator<TableRef> tableRefs)",
"testcase": false
},
{
"class_method_signature": "MutationState.send()",
"constructor": false,
"full_signature": "public void send()",
"identifier": "send",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void send()",
"testcase": false
},
{
"class_method_signature": "MutationState.joinSortedIntArrays(int[] a, int[] b)",
"constructor": false,
"full_signature": "public static int[] joinSortedIntArrays(int[] a, int[] b)",
"identifier": "joinSortedIntArrays",
"modifiers": "public static",
"parameters": "(int[] a, int[] b)",
"return": "int[]",
"signature": "int[] joinSortedIntArrays(int[] a, int[] b)",
"testcase": false
},
{
"class_method_signature": "MutationState.getReadMetricQueue()",
"constructor": false,
"full_signature": "public ReadMetricQueue getReadMetricQueue()",
"identifier": "getReadMetricQueue",
"modifiers": "public",
"parameters": "()",
"return": "ReadMetricQueue",
"signature": "ReadMetricQueue getReadMetricQueue()",
"testcase": false
},
{
"class_method_signature": "MutationState.setReadMetricQueue(ReadMetricQueue readMetricQueue)",
"constructor": false,
"full_signature": "public void setReadMetricQueue(ReadMetricQueue readMetricQueue)",
"identifier": "setReadMetricQueue",
"modifiers": "public",
"parameters": "(ReadMetricQueue readMetricQueue)",
"return": "void",
"signature": "void setReadMetricQueue(ReadMetricQueue readMetricQueue)",
"testcase": false
},
{
"class_method_signature": "MutationState.getMutationMetricQueue()",
"constructor": false,
"full_signature": "public MutationMetricQueue getMutationMetricQueue()",
"identifier": "getMutationMetricQueue",
"modifiers": "public",
"parameters": "()",
"return": "MutationMetricQueue",
"signature": "MutationMetricQueue getMutationMetricQueue()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static List<List<Mutation>> getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList) {\n Preconditions.checkArgument(batchSize> 1,\n \"Mutation types are put or delete, for one row all mutations must be in one batch.\");\n Preconditions.checkArgument(batchSizeBytes > 0, \"Batch size must be larger than 0\");\n List<List<Mutation>> mutationBatchList = Lists.newArrayList();\n List<Mutation> currentList = Lists.newArrayList();\n List<Mutation> sameRowList = Lists.newArrayList();\n long currentBatchSizeBytes = 0L;\n for (int i = 0; i < allMutationList.size(); ) {\n long sameRowBatchSize = 1L;\n Mutation mutation = allMutationList.get(i);\n long sameRowMutationSizeBytes = PhoenixKeyValueUtil.calculateMutationDiskSize(mutation);\n sameRowList.add(mutation);\n while (i + 1 < allMutationList.size() &&\n Bytes.compareTo(allMutationList.get(i + 1).getRow(), mutation.getRow()) == 0) {\n Mutation sameRowMutation = allMutationList.get(i + 1);\n sameRowList.add(sameRowMutation);\n sameRowMutationSizeBytes += PhoenixKeyValueUtil.calculateMutationDiskSize(sameRowMutation);\n sameRowBatchSize++;\n i++;\n }\n\n if (currentList.size() + sameRowBatchSize > batchSize ||\n currentBatchSizeBytes + sameRowMutationSizeBytes > batchSizeBytes) {\n if (currentList.size() > 0) {\n mutationBatchList.add(currentList);\n currentList = Lists.newArrayList();\n currentBatchSizeBytes = 0L;\n }\n }\n\n currentList.addAll(sameRowList);\n currentBatchSizeBytes += sameRowMutationSizeBytes;\n sameRowList.clear();\n i++;\n }\n\n if (currentList.size() > 0) {\n mutationBatchList.add(currentList);\n }\n return mutationBatchList;\n }",
"class_method_signature": "MutationState.getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"constructor": false,
"full_signature": "public static List<List<Mutation>> getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"identifier": "getMutationBatchList",
"invocations": [
"checkArgument",
"checkArgument",
"newArrayList",
"newArrayList",
"newArrayList",
"size",
"get",
"calculateMutationDiskSize",
"add",
"size",
"compareTo",
"getRow",
"get",
"getRow",
"get",
"add",
"calculateMutationDiskSize",
"size",
"size",
"add",
"newArrayList",
"addAll",
"clear",
"size",
"add"
],
"modifiers": "public static",
"parameters": "(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"return": "List<List<Mutation>>",
"signature": "List<List<Mutation>> getMutationBatchList(long batchSize, long batchSizeBytes, List<Mutation> allMutationList)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_156 | {
"fields": [
{
"declarator": "TABLE_NAME = TableName.create(null,\"TABLE1\")",
"modifier": "private static",
"original_string": "private static TableName TABLE_NAME = TableName.create(null,\"TABLE1\");",
"type": "TableName",
"var_name": "TABLE_NAME"
},
{
"declarator": "offsetCompiler",
"modifier": "",
"original_string": "RVCOffsetCompiler offsetCompiler;",
"type": "RVCOffsetCompiler",
"var_name": "offsetCompiler"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/compile/RVCOffsetCompilerTest.java",
"identifier": "RVCOffsetCompilerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void buildListOfRowKeyColumnExpressionsTest() throws Exception {\n List<Expression> expressions = new ArrayList<>();\n\n RowKeyColumnExpression rvc1 = new RowKeyColumnExpression();\n RowKeyColumnExpression rvc2 = new RowKeyColumnExpression();\n\n ComparisonExpression expression1 = mock(ComparisonExpression.class);\n ComparisonExpression expression2 = mock(ComparisonExpression.class);\n\n Mockito.when(expression1.getChildren()).thenReturn(Lists.<Expression>newArrayList(rvc1));\n Mockito.when(expression2.getChildren()).thenReturn(Lists.<Expression>newArrayList(rvc2));\n\n expressions.add(expression1);\n expressions.add(expression2);\n\n AndExpression expression = mock(AndExpression.class);\n Mockito.when(expression.getChildren()).thenReturn(expressions);\n\n RVCOffsetCompiler.RowKeyColumnExpressionOutput\n output = offsetCompiler.buildListOfRowKeyColumnExpressions(expression, false);\n List<RowKeyColumnExpression>\n result = output.getRowKeyColumnExpressions();\n\n assertEquals(2,result.size());\n assertEquals(rvc1,result.get(0));\n\n assertEquals(rvc2,result.get(1));\n }",
"class_method_signature": "RVCOffsetCompilerTest.buildListOfRowKeyColumnExpressionsTest()",
"constructor": false,
"full_signature": "@Test public void buildListOfRowKeyColumnExpressionsTest()",
"identifier": "buildListOfRowKeyColumnExpressionsTest",
"invocations": [
"mock",
"mock",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"thenReturn",
"when",
"getChildren",
"newArrayList",
"add",
"add",
"mock",
"thenReturn",
"when",
"getChildren",
"buildListOfRowKeyColumnExpressions",
"getRowKeyColumnExpressions",
"assertEquals",
"size",
"assertEquals",
"get",
"assertEquals",
"get"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void buildListOfRowKeyColumnExpressionsTest()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class)",
"modifier": "private final static",
"original_string": "private final static Logger LOGGER = LoggerFactory.getLogger(RVCOffsetCompiler.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "INSTANCE = new RVCOffsetCompiler()",
"modifier": "private final static",
"original_string": "private final static RVCOffsetCompiler INSTANCE = new RVCOffsetCompiler();",
"type": "RVCOffsetCompiler",
"var_name": "INSTANCE"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/compile/RVCOffsetCompiler.java",
"identifier": "RVCOffsetCompiler",
"interfaces": "",
"methods": [
{
"class_method_signature": "RVCOffsetCompiler.RVCOffsetCompiler()",
"constructor": true,
"full_signature": "private RVCOffsetCompiler()",
"identifier": "RVCOffsetCompiler",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " RVCOffsetCompiler()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getInstance()",
"constructor": false,
"full_signature": "public static RVCOffsetCompiler getInstance()",
"identifier": "getInstance",
"modifiers": "public static",
"parameters": "()",
"return": "RVCOffsetCompiler",
"signature": "RVCOffsetCompiler getInstance()",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"constructor": false,
"full_signature": "public CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"identifier": "getRVCOffset",
"modifiers": "public",
"parameters": "(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"return": "CompiledOffset",
"signature": "CompiledOffset getRVCOffset(StatementContext context, FilterableStatement statement,\n boolean inJoin, boolean inUnion, OffsetNode offsetNode)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
},
{
"class_method_signature": "RVCOffsetCompiler.buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"identifier": "buildListOfColumnParseNodes",
"modifiers": "@VisibleForTesting",
"parameters": "(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"return": "List<ColumnParseNode>",
"signature": "List<ColumnParseNode> buildListOfColumnParseNodes(\n RowValueConstructorParseNode rvcColumnsParseNode, boolean isIndex)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions (\n Expression whereExpression, boolean isIndex)\n throws RowValueConstructorOffsetNotCoercibleException, RowValueConstructorOffsetInternalErrorException {\n\n boolean trailingNull = false;\n List<Expression> expressions;\n if((whereExpression instanceof AndExpression)) {\n expressions = whereExpression.getChildren();\n } else if (whereExpression instanceof ComparisonExpression || whereExpression instanceof IsNullExpression) {\n expressions = Lists.newArrayList(whereExpression);\n } else {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset, expected either a Comparison/IsNull Expression of a AndExpression got \"\n + whereExpression.getClass().getName());\n throw new RowValueConstructorOffsetInternalErrorException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n List<RowKeyColumnExpression>\n rowKeyColumnExpressionList =\n new ArrayList<RowKeyColumnExpression>();\n for (int i = 0; i < expressions.size(); i++) {\n Expression child = expressions.get(i);\n if (!(child instanceof ComparisonExpression || child instanceof IsNullExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n\n //if this is the last position\n if(i == expressions.size() - 1) {\n if(child instanceof IsNullExpression) {\n trailingNull = true;\n }\n }\n\n //For either case comparison/isNull the first child should be the rowkey\n Expression possibleRowKeyColumnExpression = child.getChildren().get(0);\n\n // Note that since we store indexes in variable length form there may be casts from fixed types to\n // variable length\n if (isIndex) {\n if (possibleRowKeyColumnExpression instanceof CoerceExpression) {\n // Cast today has 1 child\n possibleRowKeyColumnExpression =\n ((CoerceExpression) possibleRowKeyColumnExpression).getChild();\n }\n }\n\n if (!(possibleRowKeyColumnExpression instanceof RowKeyColumnExpression)) {\n LOGGER.warn(\"Unexpected error while compiling RVC Offset\");\n throw new RowValueConstructorOffsetNotCoercibleException(\n \"RVC Offset must specify the tables PKs.\");\n }\n rowKeyColumnExpressionList.add((RowKeyColumnExpression) possibleRowKeyColumnExpression);\n }\n return new RowKeyColumnExpressionOutput(rowKeyColumnExpressionList,trailingNull);\n }",
"class_method_signature": "RVCOffsetCompiler.buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"constructor": false,
"full_signature": "@VisibleForTesting RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"identifier": "buildListOfRowKeyColumnExpressions",
"invocations": [
"getChildren",
"newArrayList",
"warn",
"getName",
"getClass",
"size",
"get",
"warn",
"size",
"get",
"getChildren",
"getChild",
"warn",
"add"
],
"modifiers": "@VisibleForTesting",
"parameters": "(\n Expression whereExpression, boolean isIndex)",
"return": "RowKeyColumnExpressionOutput",
"signature": "RowKeyColumnExpressionOutput buildListOfRowKeyColumnExpressions(\n Expression whereExpression, boolean isIndex)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_43 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/JDBCUtilTest.java",
"identifier": "JDBCUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetAutoCommit_TrueInUrl() {\n assertTrue(JDBCUtil.getAutoCommit(\"localhost;AutoCommit=TrUe\", new Properties(), false));\n }",
"class_method_signature": "JDBCUtilTest.testGetAutoCommit_TrueInUrl()",
"constructor": false,
"full_signature": "@Test public void testGetAutoCommit_TrueInUrl()",
"identifier": "testGetAutoCommit_TrueInUrl",
"invocations": [
"assertTrue",
"getAutoCommit"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetAutoCommit_TrueInUrl()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/JDBCUtil.java",
"identifier": "JDBCUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JDBCUtil.JDBCUtil()",
"constructor": true,
"full_signature": "private JDBCUtil()",
"identifier": "JDBCUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " JDBCUtil()",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.findProperty(String url, Properties info, String propName)",
"constructor": false,
"full_signature": "public static String findProperty(String url, Properties info, String propName)",
"identifier": "findProperty",
"modifiers": "public static",
"parameters": "(String url, Properties info, String propName)",
"return": "String",
"signature": "String findProperty(String url, Properties info, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.removeProperty(String url, String propName)",
"constructor": false,
"full_signature": "public static String removeProperty(String url, String propName)",
"identifier": "removeProperty",
"modifiers": "public static",
"parameters": "(String url, String propName)",
"return": "String",
"signature": "String removeProperty(String url, String propName)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCombinedConnectionProperties(String url, Properties info)",
"constructor": false,
"full_signature": "private static Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"identifier": "getCombinedConnectionProperties",
"modifiers": "private static",
"parameters": "(String url, Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getCombinedConnectionProperties(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAnnotations(@NonNull String url, @NonNull Properties info)",
"constructor": false,
"full_signature": "public static Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"identifier": "getAnnotations",
"modifiers": "public static",
"parameters": "(@NonNull String url, @NonNull Properties info)",
"return": "Map<String, String>",
"signature": "Map<String, String> getAnnotations(@NonNull String url, @NonNull Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getCurrentSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getCurrentSCN(String url, Properties info)",
"identifier": "getCurrentSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getCurrentSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getBuildIndexSCN(String url, Properties info)",
"constructor": false,
"full_signature": "public static Long getBuildIndexSCN(String url, Properties info)",
"identifier": "getBuildIndexSCN",
"modifiers": "public static",
"parameters": "(String url, Properties info)",
"return": "Long",
"signature": "Long getBuildIndexSCN(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSize",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "int",
"signature": "int getMutateBatchSize(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"identifier": "getMutateBatchSizeBytes",
"modifiers": "public static",
"parameters": "(String url, Properties info, ReadOnlyProps props)",
"return": "long",
"signature": "long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getTenantId(String url, Properties info)",
"constructor": false,
"full_signature": "public static @Nullable PName getTenantId(String url, Properties info)",
"identifier": "getTenantId",
"modifiers": "public static @Nullable",
"parameters": "(String url, Properties info)",
"return": "PName",
"signature": "PName getTenantId(String url, Properties info)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getConsistencyLevel(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"identifier": "getConsistencyLevel",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "Consistency",
"signature": "Consistency getConsistencyLevel(String url, Properties info, String defaultValue)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"constructor": false,
"full_signature": "public static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"identifier": "isCollectingRequestLevelMetricsEnabled",
"modifiers": "public static",
"parameters": "(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"return": "boolean",
"signature": "boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps)",
"testcase": false
},
{
"class_method_signature": "JDBCUtil.getSchema(String url, Properties info, String defaultValue)",
"constructor": false,
"full_signature": "public static String getSchema(String url, Properties info, String defaultValue)",
"identifier": "getSchema",
"modifiers": "public static",
"parameters": "(String url, Properties info, String defaultValue)",
"return": "String",
"signature": "String getSchema(String url, Properties info, String defaultValue)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue) {\n String autoCommit = findProperty(url, info, PhoenixRuntime.AUTO_COMMIT_ATTRIB);\n if (autoCommit == null) {\n return defaultValue;\n }\n return Boolean.valueOf(autoCommit);\n }",
"class_method_signature": "JDBCUtil.getAutoCommit(String url, Properties info, boolean defaultValue)",
"constructor": false,
"full_signature": "public static boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"identifier": "getAutoCommit",
"invocations": [
"findProperty",
"valueOf"
],
"modifiers": "public static",
"parameters": "(String url, Properties info, boolean defaultValue)",
"return": "boolean",
"signature": "boolean getAutoCommit(String url, Properties info, boolean defaultValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_101 | {
"fields": [
{
"declarator": "bytesA = Bytes.toBytes(\"a\")",
"modifier": "",
"original_string": "byte[] bytesA = Bytes.toBytes(\"a\");",
"type": "byte[]",
"var_name": "bytesA"
},
{
"declarator": "bytesB = Bytes.toBytes(\"b\")",
"modifier": "",
"original_string": "byte[] bytesB = Bytes.toBytes(\"b\");",
"type": "byte[]",
"var_name": "bytesB"
},
{
"declarator": "bytesC = Bytes.toBytes(\"c\")",
"modifier": "",
"original_string": "byte[] bytesC = Bytes.toBytes(\"c\");",
"type": "byte[]",
"var_name": "bytesC"
},
{
"declarator": "bytesD = Bytes.toBytes(\"d\")",
"modifier": "",
"original_string": "byte[] bytesD = Bytes.toBytes(\"d\");",
"type": "byte[]",
"var_name": "bytesD"
},
{
"declarator": "bytesE = Bytes.toBytes(\"e\")",
"modifier": "",
"original_string": "byte[] bytesE = Bytes.toBytes(\"e\");",
"type": "byte[]",
"var_name": "bytesE"
},
{
"declarator": "a_b",
"modifier": "",
"original_string": "Bar a_b;",
"type": "Bar",
"var_name": "a_b"
},
{
"declarator": "b_c",
"modifier": "",
"original_string": "Bar b_c;",
"type": "Bar",
"var_name": "b_c"
},
{
"declarator": "c_d",
"modifier": "",
"original_string": "Bar c_d;",
"type": "Bar",
"var_name": "c_d"
},
{
"declarator": "d_e",
"modifier": "",
"original_string": "Bar d_e;",
"type": "Bar",
"var_name": "d_e"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/EquiDepthStreamHistogramTest.java",
"identifier": "EquiDepthStreamHistogramTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddValues() {\n EquiDepthStreamHistogram histo = new EquiDepthStreamHistogram(3);\n for (int i = 0; i < 100; i++) {\n histo.addValue(Bytes.toBytes(i + \"\"));\n }\n // (expansion factor 7) * (3 buckets)\n assertEquals(21, histo.bars.size());\n long total = 0;\n for (Bar b : histo.bars) {\n total += b.getSize();\n }\n assertEquals(100, total);\n }",
"class_method_signature": "EquiDepthStreamHistogramTest.testAddValues()",
"constructor": false,
"full_signature": "@Test public void testAddValues()",
"identifier": "testAddValues",
"invocations": [
"addValue",
"toBytes",
"assertEquals",
"size",
"getSize",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAddValues()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(EquiDepthStreamHistogram.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(EquiDepthStreamHistogram.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "MAX_COEF = 1.7",
"modifier": "private static final",
"original_string": "private static final double MAX_COEF = 1.7;",
"type": "double",
"var_name": "MAX_COEF"
},
{
"declarator": "DEFAULT_EXPANSION_FACTOR = 7",
"modifier": "private static final",
"original_string": "private static final short DEFAULT_EXPANSION_FACTOR = 7;",
"type": "short",
"var_name": "DEFAULT_EXPANSION_FACTOR"
},
{
"declarator": "numBuckets",
"modifier": "private",
"original_string": "private int numBuckets;",
"type": "int",
"var_name": "numBuckets"
},
{
"declarator": "maxBars",
"modifier": "private",
"original_string": "private int maxBars;",
"type": "int",
"var_name": "maxBars"
},
{
"declarator": "totalCount",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n long totalCount;",
"type": "long",
"var_name": "totalCount"
},
{
"declarator": "bars",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n List<Bar> bars;",
"type": "List<Bar>",
"var_name": "bars"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/EquiDepthStreamHistogram.java",
"identifier": "EquiDepthStreamHistogram",
"interfaces": "",
"methods": [
{
"class_method_signature": "EquiDepthStreamHistogram.EquiDepthStreamHistogram(int numBuckets)",
"constructor": true,
"full_signature": "public EquiDepthStreamHistogram(int numBuckets)",
"identifier": "EquiDepthStreamHistogram",
"modifiers": "public",
"parameters": "(int numBuckets)",
"return": "",
"signature": " EquiDepthStreamHistogram(int numBuckets)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"constructor": true,
"full_signature": "public EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"identifier": "EquiDepthStreamHistogram",
"modifiers": "public",
"parameters": "(int numBuckets, int expansionFactor)",
"return": "",
"signature": " EquiDepthStreamHistogram(int numBuckets, int expansionFactor)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.addValue(byte[] value)",
"constructor": false,
"full_signature": "public void addValue(byte[] value)",
"identifier": "addValue",
"modifiers": "public",
"parameters": "(byte[] value)",
"return": "void",
"signature": "void addValue(byte[] value)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.computeBuckets()",
"constructor": false,
"full_signature": "public List<Bucket> computeBuckets()",
"identifier": "computeBuckets",
"modifiers": "public",
"parameters": "()",
"return": "List<Bucket>",
"signature": "List<Bucket> computeBuckets()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getTotalCount()",
"constructor": false,
"full_signature": "public long getTotalCount()",
"identifier": "getTotalCount",
"modifiers": "public",
"parameters": "()",
"return": "long",
"signature": "long getTotalCount()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.splitBar(Bar origBar)",
"constructor": false,
"full_signature": "@VisibleForTesting void splitBar(Bar origBar)",
"identifier": "splitBar",
"modifiers": "@VisibleForTesting",
"parameters": "(Bar origBar)",
"return": "void",
"signature": "void splitBar(Bar origBar)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.mergeBars()",
"constructor": false,
"full_signature": "@VisibleForTesting boolean mergeBars()",
"identifier": "mergeBars",
"modifiers": "@VisibleForTesting",
"parameters": "()",
"return": "boolean",
"signature": "boolean mergeBars()",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getBar(byte[] value)",
"constructor": false,
"full_signature": "@VisibleForTesting Bar getBar(byte[] value)",
"identifier": "getBar",
"modifiers": "@VisibleForTesting",
"parameters": "(byte[] value)",
"return": "Bar",
"signature": "Bar getBar(byte[] value)",
"testcase": false
},
{
"class_method_signature": "EquiDepthStreamHistogram.getMaxBarSize()",
"constructor": false,
"full_signature": "private long getMaxBarSize()",
"identifier": "getMaxBarSize",
"modifiers": "private",
"parameters": "()",
"return": "long",
"signature": "long getMaxBarSize()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void addValue(byte[] value) {\n Bar bar = getBar(value);\n bar.incrementCount();\n totalCount++;\n // split the bar if necessary\n if (bar.getSize() > getMaxBarSize()) {\n splitBar(bar);\n }\n }",
"class_method_signature": "EquiDepthStreamHistogram.addValue(byte[] value)",
"constructor": false,
"full_signature": "public void addValue(byte[] value)",
"identifier": "addValue",
"invocations": [
"getBar",
"incrementCount",
"getSize",
"getMaxBarSize",
"splitBar"
],
"modifiers": "public",
"parameters": "(byte[] value)",
"return": "void",
"signature": "void addValue(byte[] value)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_14 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/PhoenixRuntimeTest.java",
"identifier": "PhoenixRuntimeTest",
"interfaces": "",
"superclass": "extends BaseConnectionlessQueryTest"
} | {
"body": "@Test\n public void testParseArguments_MinimalCase() {\n PhoenixRuntime.ExecutionCommand execCmd = PhoenixRuntime.ExecutionCommand.parseArgs(\n new String[] { \"localhost\", \"test.csv\" });\n\n\n assertEquals(\n \"localhost\",\n execCmd.getConnectionString());\n\n assertEquals(\n ImmutableList.of(\"test.csv\"),\n execCmd.getInputFiles());\n\n assertEquals(',', execCmd.getFieldDelimiter());\n assertEquals('\"', execCmd.getQuoteCharacter());\n assertNull(execCmd.getEscapeCharacter());\n\n assertNull(execCmd.getTableName());\n\n assertNull(execCmd.getColumns());\n\n assertFalse(execCmd.isStrict());\n\n assertEquals(\n CSVCommonsLoader.DEFAULT_ARRAY_ELEMENT_SEPARATOR,\n execCmd.getArrayElementSeparator());\n }",
"class_method_signature": "PhoenixRuntimeTest.testParseArguments_MinimalCase()",
"constructor": false,
"full_signature": "@Test public void testParseArguments_MinimalCase()",
"identifier": "testParseArguments_MinimalCase",
"invocations": [
"parseArgs",
"assertEquals",
"getConnectionString",
"assertEquals",
"of",
"getInputFiles",
"assertEquals",
"getFieldDelimiter",
"assertEquals",
"getQuoteCharacter",
"assertNull",
"getEscapeCharacter",
"assertNull",
"getTableName",
"assertNull",
"getColumns",
"assertFalse",
"isStrict",
"assertEquals",
"getArrayElementSeparator"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testParseArguments_MinimalCase()",
"testcase": true
} | {
"fields": [
{
"declarator": "JDBC_PROTOCOL = \"jdbc:phoenix\"",
"modifier": "public final static",
"original_string": "public final static String JDBC_PROTOCOL = \"jdbc:phoenix\";",
"type": "String",
"var_name": "JDBC_PROTOCOL"
},
{
"declarator": "JDBC_THIN_PROTOCOL = \"jdbc:phoenix:thin\"",
"modifier": "public final static",
"original_string": "public final static String JDBC_THIN_PROTOCOL = \"jdbc:phoenix:thin\";",
"type": "String",
"var_name": "JDBC_THIN_PROTOCOL"
},
{
"declarator": "JDBC_PROTOCOL_TERMINATOR = ';'",
"modifier": "public final static",
"original_string": "public final static char JDBC_PROTOCOL_TERMINATOR = ';';",
"type": "char",
"var_name": "JDBC_PROTOCOL_TERMINATOR"
},
{
"declarator": "JDBC_PROTOCOL_SEPARATOR = ':'",
"modifier": "public final static",
"original_string": "public final static char JDBC_PROTOCOL_SEPARATOR = ':';",
"type": "char",
"var_name": "JDBC_PROTOCOL_SEPARATOR"
},
{
"declarator": "EMBEDDED_JDBC_PROTOCOL = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR",
"modifier": "@Deprecated\n public final static",
"original_string": "@Deprecated\n public final static String EMBEDDED_JDBC_PROTOCOL = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR;",
"type": "String",
"var_name": "EMBEDDED_JDBC_PROTOCOL"
},
{
"declarator": "CURRENT_SCN_ATTRIB = \"CurrentSCN\"",
"modifier": "public static final",
"original_string": "public static final String CURRENT_SCN_ATTRIB = \"CurrentSCN\";",
"type": "String",
"var_name": "CURRENT_SCN_ATTRIB"
},
{
"declarator": "BUILD_INDEX_AT_ATTRIB = \"BuildIndexAt\"",
"modifier": "public static final",
"original_string": "public static final String BUILD_INDEX_AT_ATTRIB = \"BuildIndexAt\";",
"type": "String",
"var_name": "BUILD_INDEX_AT_ATTRIB"
},
{
"declarator": "TENANT_ID_ATTRIB = \"TenantId\"",
"modifier": "public static final",
"original_string": "public static final String TENANT_ID_ATTRIB = \"TenantId\";",
"type": "String",
"var_name": "TENANT_ID_ATTRIB"
},
{
"declarator": "NO_UPGRADE_ATTRIB = \"NoUpgrade\"",
"modifier": "public static final",
"original_string": "public static final String NO_UPGRADE_ATTRIB = \"NoUpgrade\";",
"type": "String",
"var_name": "NO_UPGRADE_ATTRIB"
},
{
"declarator": "UPSERT_BATCH_SIZE_ATTRIB = \"UpsertBatchSize\"",
"modifier": "public final static",
"original_string": "public final static String UPSERT_BATCH_SIZE_ATTRIB = \"UpsertBatchSize\";",
"type": "String",
"var_name": "UPSERT_BATCH_SIZE_ATTRIB"
},
{
"declarator": "UPSERT_BATCH_SIZE_BYTES_ATTRIB = \"UpsertBatchSizeBytes\"",
"modifier": "public final static",
"original_string": "public final static String UPSERT_BATCH_SIZE_BYTES_ATTRIB = \"UpsertBatchSizeBytes\";",
"type": "String",
"var_name": "UPSERT_BATCH_SIZE_BYTES_ATTRIB"
},
{
"declarator": "AUTO_COMMIT_ATTRIB = \"AutoCommit\"",
"modifier": "public static final",
"original_string": "public static final String AUTO_COMMIT_ATTRIB = \"AutoCommit\";",
"type": "String",
"var_name": "AUTO_COMMIT_ATTRIB"
},
{
"declarator": "CONSISTENCY_ATTRIB = \"Consistency\"",
"modifier": "public static final",
"original_string": "public static final String CONSISTENCY_ATTRIB = \"Consistency\";",
"type": "String",
"var_name": "CONSISTENCY_ATTRIB"
},
{
"declarator": "REQUEST_METRIC_ATTRIB = \"RequestMetric\"",
"modifier": "public static final",
"original_string": "public static final String REQUEST_METRIC_ATTRIB = \"RequestMetric\";",
"type": "String",
"var_name": "REQUEST_METRIC_ATTRIB"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_BYTES_ESTIMATE_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_BYTES_ESTIMATE_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATED_BYTES_READ_COLUMN"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ROWS_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ROWS_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATED_ROWS_READ_COLUMN"
},
{
"declarator": "EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN_ALIAS",
"modifier": "public static final",
"original_string": "public static final String EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN =\n PhoenixStatement.EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN_ALIAS;",
"type": "String",
"var_name": "EXPLAIN_PLAN_ESTIMATE_INFO_TS_COLUMN"
},
{
"declarator": "CONNECTION_PROPERTIES = {\n CURRENT_SCN_ATTRIB,\n TENANT_ID_ATTRIB,\n UPSERT_BATCH_SIZE_ATTRIB,\n AUTO_COMMIT_ATTRIB,\n CONSISTENCY_ATTRIB,\n REQUEST_METRIC_ATTRIB,\n }",
"modifier": "public final static",
"original_string": "public final static String[] CONNECTION_PROPERTIES = {\n CURRENT_SCN_ATTRIB,\n TENANT_ID_ATTRIB,\n UPSERT_BATCH_SIZE_ATTRIB,\n AUTO_COMMIT_ATTRIB,\n CONSISTENCY_ATTRIB,\n REQUEST_METRIC_ATTRIB,\n };",
"type": "String[]",
"var_name": "CONNECTION_PROPERTIES"
},
{
"declarator": "CONNECTIONLESS = \"none\"",
"modifier": "public final static",
"original_string": "public final static String CONNECTIONLESS = \"none\";",
"type": "String",
"var_name": "CONNECTIONLESS"
},
{
"declarator": "ANNOTATION_ATTRIB_PREFIX = \"phoenix.annotation.\"",
"modifier": "public static final",
"original_string": "public static final String ANNOTATION_ATTRIB_PREFIX = \"phoenix.annotation.\";",
"type": "String",
"var_name": "ANNOTATION_ATTRIB_PREFIX"
},
{
"declarator": "HEADER_IN_LINE = \"in-line\"",
"modifier": "private static final",
"original_string": "private static final String HEADER_IN_LINE = \"in-line\";",
"type": "String",
"var_name": "HEADER_IN_LINE"
},
{
"declarator": "SQL_FILE_EXT = \".sql\"",
"modifier": "private static final",
"original_string": "private static final String SQL_FILE_EXT = \".sql\";",
"type": "String",
"var_name": "SQL_FILE_EXT"
},
{
"declarator": "CSV_FILE_EXT = \".csv\"",
"modifier": "private static final",
"original_string": "private static final String CSV_FILE_EXT = \".csv\";",
"type": "String",
"var_name": "CSV_FILE_EXT"
},
{
"declarator": "PHOENIX_TEST_DRIVER_URL_PARAM = \"test=true\"",
"modifier": "public static final",
"original_string": "public static final String PHOENIX_TEST_DRIVER_URL_PARAM = \"test=true\";",
"type": "String",
"var_name": "PHOENIX_TEST_DRIVER_URL_PARAM"
},
{
"declarator": "SCHEMA_ATTRIB = \"schema\"",
"modifier": "public static final",
"original_string": "public static final String SCHEMA_ATTRIB = \"schema\";",
"type": "String",
"var_name": "SCHEMA_ATTRIB"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java",
"identifier": "PhoenixRuntime",
"interfaces": "",
"methods": [
{
"class_method_signature": "PhoenixRuntime.main(String [] args)",
"constructor": false,
"full_signature": "public static void main(String [] args)",
"identifier": "main",
"modifiers": "public static",
"parameters": "(String [] args)",
"return": "void",
"signature": "void main(String [] args)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.PhoenixRuntime()",
"constructor": true,
"full_signature": "private PhoenixRuntime()",
"identifier": "PhoenixRuntime",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " PhoenixRuntime()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.executeStatements(Connection conn, Reader reader, List<Object> binds)",
"constructor": false,
"full_signature": "public static int executeStatements(Connection conn, Reader reader, List<Object> binds)",
"identifier": "executeStatements",
"modifiers": "public static",
"parameters": "(Connection conn, Reader reader, List<Object> binds)",
"return": "int",
"signature": "int executeStatements(Connection conn, Reader reader, List<Object> binds)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedData(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated public static List<Cell> getUncommittedData(Connection conn)",
"identifier": "getUncommittedData",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn)",
"return": "List<Cell>",
"signature": "List<Cell> getUncommittedData(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedDataIterator(Connection conn)",
"constructor": false,
"full_signature": "public static Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn)",
"identifier": "getUncommittedDataIterator",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Iterator<Pair<byte[],List<Cell>>>",
"signature": "Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"constructor": false,
"full_signature": "public static Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"identifier": "getUncommittedDataIterator",
"modifiers": "public static",
"parameters": "(Connection conn, boolean includeMutableIndexes)",
"return": "Iterator<Pair<byte[],List<Cell>>>",
"signature": "Iterator<Pair<byte[],List<Cell>>> getUncommittedDataIterator(Connection conn, boolean includeMutableIndexes)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTableNoCache(Connection conn, String name)",
"constructor": false,
"full_signature": "public static PTable getTableNoCache(Connection conn, String name)",
"identifier": "getTableNoCache",
"modifiers": "public static",
"parameters": "(Connection conn, String name)",
"return": "PTable",
"signature": "PTable getTableNoCache(Connection conn, String name)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, String name)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, String name)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, String name)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, String name)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, String tenantId, String fullTableName)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, String tenantId, String fullTableName)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, String tenantId, String fullTableName)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, String tenantId, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"constructor": false,
"full_signature": "public static PTable getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"identifier": "getTable",
"modifiers": "public static",
"parameters": "(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"return": "PTable",
"signature": "PTable getTable(Connection conn, @Nullable String tenantId, String fullTableName,\n @Nullable Long timestamp)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"constructor": false,
"full_signature": "public static List<ColumnInfo> generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"identifier": "generateColumnInfo",
"modifiers": "public static",
"parameters": "(Connection conn,\n String tableName, List<String> columns)",
"return": "List<ColumnInfo>",
"signature": "List<ColumnInfo> generateColumnInfo(Connection conn,\n String tableName, List<String> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumnInfo(PTable table, String columnName)",
"constructor": false,
"full_signature": "public static ColumnInfo getColumnInfo(PTable table, String columnName)",
"identifier": "getColumnInfo",
"modifiers": "public static",
"parameters": "(PTable table, String columnName)",
"return": "ColumnInfo",
"signature": "ColumnInfo getColumnInfo(PTable table, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumnInfo(PColumn pColumn)",
"constructor": false,
"full_signature": "public static ColumnInfo getColumnInfo(PColumn pColumn)",
"identifier": "getColumnInfo",
"modifiers": "public static",
"parameters": "(PColumn pColumn)",
"return": "ColumnInfo",
"signature": "ColumnInfo getColumnInfo(PColumn pColumn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOptimizedQueryPlan(PreparedStatement stmt)",
"constructor": false,
"full_signature": "public static QueryPlan getOptimizedQueryPlan(PreparedStatement stmt)",
"identifier": "getOptimizedQueryPlan",
"modifiers": "public static",
"parameters": "(PreparedStatement stmt)",
"return": "QueryPlan",
"signature": "QueryPlan getOptimizedQueryPlan(PreparedStatement stmt)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.hasOrderBy(QueryPlan plan)",
"constructor": false,
"full_signature": "public static boolean hasOrderBy(QueryPlan plan)",
"identifier": "hasOrderBy",
"modifiers": "public static",
"parameters": "(QueryPlan plan)",
"return": "boolean",
"signature": "boolean hasOrderBy(QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getLimit(QueryPlan plan)",
"constructor": false,
"full_signature": "public static int getLimit(QueryPlan plan)",
"identifier": "getLimit",
"modifiers": "public static",
"parameters": "(QueryPlan plan)",
"return": "int",
"signature": "int getLimit(QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.addQuotes(String str)",
"constructor": false,
"full_signature": "private static String addQuotes(String str)",
"identifier": "addQuotes",
"modifiers": "private static",
"parameters": "(String str)",
"return": "String",
"signature": "String addQuotes(String str)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsForSql(Connection conn, QueryPlan plan)",
"constructor": false,
"full_signature": "public static List<Pair<String, String>> getPkColsForSql(Connection conn, QueryPlan plan)",
"identifier": "getPkColsForSql",
"modifiers": "public static",
"parameters": "(Connection conn, QueryPlan plan)",
"return": "List<Pair<String, String>>",
"signature": "List<Pair<String, String>> getPkColsForSql(Connection conn, QueryPlan plan)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated public static void getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"identifier": "getPkColsForSql",
"modifiers": "@Deprecated public static",
"parameters": "(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"return": "void",
"signature": "void getPkColsForSql(List<Pair<String, String>> columns, QueryPlan plan, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated public static void getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"identifier": "getPkColsDataTypesForSql",
"modifiers": "@Deprecated public static",
"parameters": "(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"return": "void",
"signature": "void getPkColsDataTypesForSql(List<Pair<String, String>> columns, List<String> dataTypes, QueryPlan plan, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getSqlTypeName(PColumn pCol)",
"constructor": false,
"full_signature": "public static String getSqlTypeName(PColumn pCol)",
"identifier": "getSqlTypeName",
"modifiers": "public static",
"parameters": "(PColumn pCol)",
"return": "String",
"signature": "String getSqlTypeName(PColumn pCol)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public static String getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"identifier": "getSqlTypeName",
"modifiers": "public static",
"parameters": "(PDataType dataType, Integer maxLength, Integer scale)",
"return": "String",
"signature": "String getSqlTypeName(PDataType dataType, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"constructor": false,
"full_signature": "public static String getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"identifier": "getArraySqlTypeName",
"modifiers": "public static",
"parameters": "(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"return": "String",
"signature": "String getArraySqlTypeName(@Nullable Integer maxLength, @Nullable Integer scale, PDataType arrayType)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"constructor": false,
"full_signature": "private static String appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"identifier": "appendMaxLengthAndScale",
"modifiers": "private static",
"parameters": "(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"return": "String",
"signature": "String appendMaxLengthAndScale(@Nullable Integer maxLength, @Nullable Integer scale, String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"constructor": false,
"full_signature": "@Deprecated private static List<PColumn> getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"identifier": "getPkColumns",
"modifiers": "@Deprecated private static",
"parameters": "(PTable ptable, Connection conn, boolean forDataTable)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPkColumns(PTable ptable, Connection conn, boolean forDataTable)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPkColumns(PTable ptable, Connection conn)",
"constructor": false,
"full_signature": "private static List<PColumn> getPkColumns(PTable ptable, Connection conn)",
"identifier": "getPkColumns",
"modifiers": "private static",
"parameters": "(PTable ptable, Connection conn)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPkColumns(PTable ptable, Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated public static byte[] encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"identifier": "encodeValues",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"return": "byte[]",
"signature": "byte[] encodeValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated public static Object[] decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"identifier": "decodeValues",
"modifiers": "@Deprecated public static",
"parameters": "(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"return": "Object[]",
"signature": "Object[] decodeValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "public static byte[] encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"identifier": "encodeColumnValues",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"return": "byte[]",
"signature": "byte[] encodeColumnValues(Connection conn, String fullTableName, Object[] values, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "public static Object[] decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"identifier": "decodeColumnValues",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"return": "Object[]",
"signature": "Object[] decodeColumnValues(Connection conn, String fullTableName, byte[] value, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.buildKeyValueSchema(List<PColumn> columns)",
"constructor": false,
"full_signature": "public static KeyValueSchema buildKeyValueSchema(List<PColumn> columns)",
"identifier": "buildKeyValueSchema",
"modifiers": "public static",
"parameters": "(List<PColumn> columns)",
"return": "KeyValueSchema",
"signature": "KeyValueSchema buildKeyValueSchema(List<PColumn> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getMinNullableIndex(List<PColumn> columns)",
"constructor": false,
"full_signature": "private static int getMinNullableIndex(List<PColumn> columns)",
"identifier": "getMinNullableIndex",
"modifiers": "private static",
"parameters": "(List<PColumn> columns)",
"return": "int",
"signature": "int getMinNullableIndex(List<PColumn> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "@Deprecated private static List<PColumn> getPColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getPColumns",
"modifiers": "@Deprecated private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getPColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getPColumn(PTable table, @Nullable String familyName, String columnName)",
"constructor": false,
"full_signature": "@Deprecated private static PColumn getPColumn(PTable table, @Nullable String familyName, String columnName)",
"identifier": "getPColumn",
"modifiers": "@Deprecated private static",
"parameters": "(PTable table, @Nullable String familyName, String columnName)",
"return": "PColumn",
"signature": "PColumn getPColumn(PTable table, @Nullable String familyName, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getColumns",
"modifiers": "private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getColumn(PTable table, @Nullable String familyName, String columnName)",
"constructor": false,
"full_signature": "private static PColumn getColumn(PTable table, @Nullable String familyName, String columnName)",
"identifier": "getColumn",
"modifiers": "private static",
"parameters": "(PTable table, @Nullable String familyName, String columnName)",
"return": "PColumn",
"signature": "PColumn getColumn(PTable table, @Nullable String familyName, String columnName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getTenantIdExpression(Connection conn, String fullTableName)",
"constructor": false,
"full_signature": "public static Expression getTenantIdExpression(Connection conn, String fullTableName)",
"identifier": "getTenantIdExpression",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName)",
"return": "Expression",
"signature": "Expression getTenantIdExpression(Connection conn, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getFirstPKColumnExpression(Connection conn, String fullTableName)",
"constructor": false,
"full_signature": "public static Expression getFirstPKColumnExpression(Connection conn, String fullTableName)",
"identifier": "getFirstPKColumnExpression",
"modifiers": "public static",
"parameters": "(Connection conn, String fullTableName)",
"return": "Expression",
"signature": "Expression getFirstPKColumnExpression(Connection conn, String fullTableName)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getFirstPKColumnExpression(PTable table)",
"constructor": false,
"full_signature": "private static Expression getFirstPKColumnExpression(PTable table)",
"identifier": "getFirstPKColumnExpression",
"modifiers": "private static",
"parameters": "(PTable table)",
"return": "Expression",
"signature": "Expression getFirstPKColumnExpression(PTable table)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getGlobalPhoenixClientMetrics()",
"constructor": false,
"full_signature": "public static Collection<GlobalMetric> getGlobalPhoenixClientMetrics()",
"identifier": "getGlobalPhoenixClientMetrics",
"modifiers": "public static",
"parameters": "()",
"return": "Collection<GlobalMetric>",
"signature": "Collection<GlobalMetric> getGlobalPhoenixClientMetrics()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.areGlobalClientMetricsBeingCollected()",
"constructor": false,
"full_signature": "public static boolean areGlobalClientMetricsBeingCollected()",
"identifier": "areGlobalClientMetricsBeingCollected",
"modifiers": "public static",
"parameters": "()",
"return": "boolean",
"signature": "boolean areGlobalClientMetricsBeingCollected()",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.createMetricMap(Map<MetricType, Long> metricInfoMap)",
"constructor": false,
"full_signature": "private static Map<String, Long> createMetricMap(Map<MetricType, Long> metricInfoMap)",
"identifier": "createMetricMap",
"modifiers": "private static",
"parameters": "(Map<MetricType, Long> metricInfoMap)",
"return": "Map<String, Long>",
"signature": "Map<String, Long> createMetricMap(Map<MetricType, Long> metricInfoMap)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"constructor": false,
"full_signature": "private static Map<String, Map<String, Long>> transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"identifier": "transformMetrics",
"modifiers": "private static",
"parameters": "(Map<String, Map<MetricType, Long>> metricMap)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> transformMetrics(Map<String, Map<MetricType, Long>> metricMap)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getRequestReadMetricInfo(ResultSet rs)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getRequestReadMetricInfo(ResultSet rs)",
"identifier": "getRequestReadMetricInfo",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getRequestReadMetricInfo(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getRequestReadMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "@Deprecated // use getRequestReadMetricInfo public static Map<String, Map<String, Long>> getRequestReadMetrics(ResultSet rs)",
"identifier": "getRequestReadMetrics",
"modifiers": "@Deprecated // use getRequestReadMetricInfo public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getRequestReadMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOverAllReadRequestMetricInfo(ResultSet rs)",
"constructor": false,
"full_signature": "public static Map<MetricType, Long> getOverAllReadRequestMetricInfo(ResultSet rs)",
"identifier": "getOverAllReadRequestMetricInfo",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "Map<MetricType, Long>",
"signature": "Map<MetricType, Long> getOverAllReadRequestMetricInfo(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getOverAllReadRequestMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "@Deprecated // use getOverAllReadRequestMetricInfo public static Map<String, Long> getOverAllReadRequestMetrics(ResultSet rs)",
"identifier": "getOverAllReadRequestMetrics",
"modifiers": "@Deprecated // use getOverAllReadRequestMetricInfo public static",
"parameters": "(ResultSet rs)",
"return": "Map<String, Long>",
"signature": "Map<String, Long> getOverAllReadRequestMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"identifier": "getWriteMetricInfoForMutationsSinceLastReset",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getWriteMetricInfoForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated // use getWriteMetricInfoForMutationsSinceLastReset public static Map<String, Map<String, Long>> getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"identifier": "getWriteMetricsForMutationsSinceLastReset",
"modifiers": "@Deprecated // use getWriteMetricInfoForMutationsSinceLastReset public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getWriteMetricsForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "public static Map<String, Map<MetricType, Long>> getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"identifier": "getReadMetricInfoForMutationsSinceLastReset",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<MetricType, Long>>",
"signature": "Map<String, Map<MetricType, Long>> getReadMetricInfoForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getReadMetricsForMutationsSinceLastReset(Connection conn)",
"constructor": false,
"full_signature": "@Deprecated // use getReadMetricInfoForMutationsSinceLastReset public static Map<String, Map<String, Long>> getReadMetricsForMutationsSinceLastReset(Connection conn)",
"identifier": "getReadMetricsForMutationsSinceLastReset",
"modifiers": "@Deprecated // use getReadMetricInfoForMutationsSinceLastReset public static",
"parameters": "(Connection conn)",
"return": "Map<String, Map<String, Long>>",
"signature": "Map<String, Map<String, Long>> getReadMetricsForMutationsSinceLastReset(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.resetMetrics(ResultSet rs)",
"constructor": false,
"full_signature": "public static void resetMetrics(ResultSet rs)",
"identifier": "resetMetrics",
"modifiers": "public static",
"parameters": "(ResultSet rs)",
"return": "void",
"signature": "void resetMetrics(ResultSet rs)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.resetMetrics(Connection conn)",
"constructor": false,
"full_signature": "public static void resetMetrics(Connection conn)",
"identifier": "resetMetrics",
"modifiers": "public static",
"parameters": "(Connection conn)",
"return": "void",
"signature": "void resetMetrics(Connection conn)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"constructor": false,
"full_signature": "public static long getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"identifier": "getWallClockTimeFromCellTimeStamp",
"modifiers": "public static",
"parameters": "(long tsOfCell)",
"return": "long",
"signature": "long getWallClockTimeFromCellTimeStamp(long tsOfCell)",
"testcase": false
},
{
"class_method_signature": "PhoenixRuntime.getCurrentScn(ReadOnlyProps props)",
"constructor": false,
"full_signature": "public static long getCurrentScn(ReadOnlyProps props)",
"identifier": "getCurrentScn",
"modifiers": "public static",
"parameters": "(ReadOnlyProps props)",
"return": "long",
"signature": "long getCurrentScn(ReadOnlyProps props)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns) throws SQLException {\n List<PColumn> pColumns = new ArrayList<PColumn>(columns.size());\n for (Pair<String, String> column : columns) {\n pColumns.add(getColumn(table, column.getFirst(), column.getSecond()));\n }\n return pColumns;\n }",
"class_method_signature": "PhoenixRuntime.getColumns(PTable table, List<Pair<String, String>> columns)",
"constructor": false,
"full_signature": "private static List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"identifier": "getColumns",
"invocations": [
"size",
"add",
"getColumn",
"getFirst",
"getSecond"
],
"modifiers": "private static",
"parameters": "(PTable table, List<Pair<String, String>> columns)",
"return": "List<PColumn>",
"signature": "List<PColumn> getColumns(PTable table, List<Pair<String, String>> columns)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_179 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetResultSetSqlType() {\n assertEquals(Types.INTEGER, PInteger.INSTANCE.getResultSetSqlType());\n assertEquals(Types.INTEGER, PUnsignedInt.INSTANCE.getResultSetSqlType());\n assertEquals(Types.BIGINT, PLong.INSTANCE.getResultSetSqlType());\n assertEquals(Types.BIGINT, PUnsignedLong.INSTANCE.getResultSetSqlType());\n assertEquals(Types.SMALLINT, PSmallint.INSTANCE.getResultSetSqlType());\n assertEquals(Types.SMALLINT, PUnsignedSmallint.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TINYINT, PTinyint.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TINYINT, PUnsignedTinyint.INSTANCE.getResultSetSqlType());\n assertEquals(Types.FLOAT, PFloat.INSTANCE.getResultSetSqlType());\n assertEquals(Types.FLOAT, PUnsignedFloat.INSTANCE.getResultSetSqlType());\n assertEquals(Types.DOUBLE, PDouble.INSTANCE.getResultSetSqlType());\n assertEquals(Types.DOUBLE, PUnsignedDouble.INSTANCE.getResultSetSqlType());\n assertEquals(Types.DATE, PDate.INSTANCE.getResultSetSqlType());\n assertEquals(Types.DATE, PUnsignedDate.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TIME, PTime.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TIME, PUnsignedTime.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TIMESTAMP, PTimestamp.INSTANCE.getResultSetSqlType());\n assertEquals(Types.TIMESTAMP, PUnsignedTimestamp.INSTANCE.getResultSetSqlType());\n\n // Check that all array types are defined as java.sql.Types.ARRAY\n for (PDataType dataType : PDataType.values()) {\n if (dataType.isArrayType()) {\n assertEquals(\"Wrong datatype for \" + dataType,\n Types.ARRAY,\n dataType.getResultSetSqlType());\n }\n }\n }",
"class_method_signature": "PDataTypeTest.testGetResultSetSqlType()",
"constructor": false,
"full_signature": "@Test public void testGetResultSetSqlType()",
"identifier": "testGetResultSetSqlType",
"invocations": [
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"assertEquals",
"getResultSetSqlType",
"values",
"isArrayType",
"assertEquals",
"getResultSetSqlType"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetResultSetSqlType()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public int getResultSetSqlType() {\n return this.sqlType;\n }",
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_83 | {
"fields": [
{
"declarator": "ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L",
"modifier": "private static final",
"original_string": "private static final long ONE_HOUR_IN_MILLIS = 1000L * 60L * 60L;",
"type": "long",
"var_name": "ONE_HOUR_IN_MILLIS"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/DateUtilTest.java",
"identifier": "DateUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected=IllegalDataException.class)\n public void testParseTimestamp_missingNanos() {\n DateUtil.parseTimestamp(\"1970-01-01 00:00:10.\");\n }",
"class_method_signature": "DateUtilTest.testParseTimestamp_missingNanos()",
"constructor": false,
"full_signature": "@Test(expected=IllegalDataException.class) public void testParseTimestamp_missingNanos()",
"identifier": "testParseTimestamp_missingNanos",
"invocations": [
"parseTimestamp"
],
"modifiers": "@Test(expected=IllegalDataException.class) public",
"parameters": "()",
"return": "void",
"signature": "void testParseTimestamp_missingNanos()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_TIME_ZONE_ID = \"GMT\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_ZONE_ID = \"GMT\";",
"type": "String",
"var_name": "DEFAULT_TIME_ZONE_ID"
},
{
"declarator": "LOCAL_TIME_ZONE_ID = \"LOCAL\"",
"modifier": "public static final",
"original_string": "public static final String LOCAL_TIME_ZONE_ID = \"LOCAL\";",
"type": "String",
"var_name": "LOCAL_TIME_ZONE_ID"
},
{
"declarator": "DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID)",
"modifier": "private static final",
"original_string": "private static final TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID);",
"type": "TimeZone",
"var_name": "DEFAULT_TIME_ZONE"
},
{
"declarator": "DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\"",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_MS_DATE_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";",
"type": "String",
"var_name": "DEFAULT_MS_DATE_FORMAT"
},
{
"declarator": "DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID))",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_MS_DATE_FORMATTER = FastDateFormat.getInstance(\n DEFAULT_MS_DATE_FORMAT, TimeZone.getTimeZone(DEFAULT_TIME_ZONE_ID));",
"type": "Format",
"var_name": "DEFAULT_MS_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_DATE_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_DATE_FORMAT"
},
{
"declarator": "DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_DATE_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_DATE_FORMATTER"
},
{
"declarator": "DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIME_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIME_FORMAT"
},
{
"declarator": "DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIME_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIME_FORMATTER"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT",
"modifier": "public static final",
"original_string": "public static final String DEFAULT_TIMESTAMP_FORMAT = DEFAULT_MS_DATE_FORMAT;",
"type": "String",
"var_name": "DEFAULT_TIMESTAMP_FORMAT"
},
{
"declarator": "DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER",
"modifier": "public static final",
"original_string": "public static final Format DEFAULT_TIMESTAMP_FORMATTER = DEFAULT_MS_DATE_FORMATTER;",
"type": "Format",
"var_name": "DEFAULT_TIMESTAMP_FORMATTER"
},
{
"declarator": "ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC())",
"modifier": "private static final",
"original_string": "private static final DateTimeFormatter ISO_DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.dateParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .appendLiteral(' ').toParser())\n .appendOptional(new DateTimeFormatterBuilder()\n .append(ISODateTimeFormat.timeParser()).toParser())\n .toFormatter().withChronology(ISOChronology.getInstanceUTC());",
"type": "DateTimeFormatter",
"var_name": "ISO_DATE_TIME_FORMATTER"
},
{
"declarator": "defaultPattern",
"modifier": "private static",
"original_string": "private static String[] defaultPattern;",
"type": "String[]",
"var_name": "defaultPattern"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java",
"identifier": "DateUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "DateUtil.DateUtil()",
"constructor": true,
"full_signature": "private DateUtil()",
"identifier": "DateUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DateUtil()",
"testcase": false
},
{
"class_method_signature": "DateUtil.getCodecFor(PDataType type)",
"constructor": false,
"full_signature": "@NonNull public static PDataCodec getCodecFor(PDataType type)",
"identifier": "getCodecFor",
"modifiers": "@NonNull public static",
"parameters": "(PDataType type)",
"return": "PDataCodec",
"signature": "PDataCodec getCodecFor(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeZone(String timeZoneId)",
"constructor": false,
"full_signature": "public static TimeZone getTimeZone(String timeZoneId)",
"identifier": "getTimeZone",
"modifiers": "public static",
"parameters": "(String timeZoneId)",
"return": "TimeZone",
"signature": "TimeZone getTimeZone(String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDefaultFormat(PDataType type)",
"constructor": false,
"full_signature": "private static String getDefaultFormat(PDataType type)",
"identifier": "getDefaultFormat",
"modifiers": "private static",
"parameters": "(PDataType type)",
"return": "String",
"signature": "String getDefaultFormat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType, String timeZoneId)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType, String timeZoneId)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateTimeParser(String pattern, PDataType pDataType)",
"constructor": false,
"full_signature": "public static DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"identifier": "getDateTimeParser",
"modifiers": "public static",
"parameters": "(String pattern, PDataType pDataType)",
"return": "DateTimeParser",
"signature": "DateTimeParser getDateTimeParser(String pattern, PDataType pDataType)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getDateFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getDateFormatter(String pattern, String timeZoneID)",
"identifier": "getDateFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getDateFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimeFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimeFormatter(String pattern, String timeZoneID)",
"identifier": "getTimeFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimeFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestampFormatter(String pattern, String timeZoneID)",
"constructor": false,
"full_signature": "public static Format getTimestampFormatter(String pattern, String timeZoneID)",
"identifier": "getTimestampFormatter",
"modifiers": "public static",
"parameters": "(String pattern, String timeZoneID)",
"return": "Format",
"signature": "Format getTimestampFormatter(String pattern, String timeZoneID)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDateTime(String dateTimeValue)",
"constructor": false,
"full_signature": "private static long parseDateTime(String dateTimeValue)",
"identifier": "parseDateTime",
"modifiers": "private static",
"parameters": "(String dateTimeValue)",
"return": "long",
"signature": "long parseDateTime(String dateTimeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseDate(String dateValue)",
"constructor": false,
"full_signature": "public static Date parseDate(String dateValue)",
"identifier": "parseDate",
"modifiers": "public static",
"parameters": "(String dateValue)",
"return": "Date",
"signature": "Date parseDate(String dateValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTime(String timeValue)",
"constructor": false,
"full_signature": "public static Time parseTime(String timeValue)",
"identifier": "parseTime",
"modifiers": "public static",
"parameters": "(String timeValue)",
"return": "Time",
"signature": "Time parseTime(String timeValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(long millis, int nanos)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(long millis, int nanos)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(long millis, int nanos)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(long millis, int nanos)",
"testcase": false
},
{
"class_method_signature": "DateUtil.getTimestamp(BigDecimal bd)",
"constructor": false,
"full_signature": "public static Timestamp getTimestamp(BigDecimal bd)",
"identifier": "getTimestamp",
"modifiers": "public static",
"parameters": "(BigDecimal bd)",
"return": "Timestamp",
"signature": "Timestamp getTimestamp(BigDecimal bd)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static Timestamp parseTimestamp(String timestampValue) {\n Timestamp timestamp = new Timestamp(parseDateTime(timestampValue));\n int period = timestampValue.indexOf('.');\n if (period > 0) {\n String nanosStr = timestampValue.substring(period + 1);\n if (nanosStr.length() > 9)\n throw new IllegalDataException(\"nanos > 999999999 or < 0\");\n if(nanosStr.length() > 3 ) {\n int nanos = Integer.parseInt(nanosStr);\n for (int i = 0; i < 9 - nanosStr.length(); i++) {\n nanos *= 10;\n }\n timestamp.setNanos(nanos);\n }\n }\n return timestamp;\n }",
"class_method_signature": "DateUtil.parseTimestamp(String timestampValue)",
"constructor": false,
"full_signature": "public static Timestamp parseTimestamp(String timestampValue)",
"identifier": "parseTimestamp",
"invocations": [
"parseDateTime",
"indexOf",
"substring",
"length",
"length",
"parseInt",
"length",
"setNanos"
],
"modifiers": "public static",
"parameters": "(String timestampValue)",
"return": "Timestamp",
"signature": "Timestamp parseTimestamp(String timestampValue)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_196 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/expression/function/InstrFunctionTest.java",
"identifier": "InstrFunctionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testInstrFunction() throws SQLException {\n inputExpression(\"abcdefghijkl\",PVarchar.INSTANCE, \"fgh\", 6, SortOrder.ASC);\n \n inputExpression(\"abcdefghijkl\",PVarchar.INSTANCE, \"fgh\", 6, SortOrder.DESC);\n \n inputExpression(\"abcde fghijkl\",PVarchar.INSTANCE, \" fgh\", 6, SortOrder.ASC);\n \n inputExpression(\"abcde fghijkl\",PVarchar.INSTANCE, \" fgh\", 6, SortOrder.DESC);\n \n inputExpression(\"abcde fghijkl\",PVarchar.INSTANCE, \"lmn\", 0, SortOrder.DESC);\n \n inputExpression(\"abcde fghijkl\",PVarchar.INSTANCE, \"lmn\", 0, SortOrder.ASC);\n \n inputExpression(\"ABCDEFGHIJKL\",PVarchar.INSTANCE, \"FGH\", 6, SortOrder.ASC);\n \n inputExpression(\"ABCDEFGHIJKL\",PVarchar.INSTANCE, \"FGH\", 6, SortOrder.DESC);\n \n inputExpression(\"ABCDEFGHiJKL\",PVarchar.INSTANCE, \"iJKL\", 9, SortOrder.ASC);\n \n inputExpression(\"ABCDEFGHiJKL\",PVarchar.INSTANCE, \"iJKL\", 9, SortOrder.DESC);\n \n inputExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, \" \", 6, SortOrder.ASC);\n \n inputExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, \" \", 6, SortOrder.DESC);\n\n // Phoenix can't represent empty strings, so an empty or null search string should return null\n // See PHOENIX-4884 for more chatter.\n inputNullExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, \"\", SortOrder.ASC);\n inputNullExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, \"\", SortOrder.DESC);\n inputNullExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, null, SortOrder.ASC);\n inputNullExpression(\"ABCDE FGHiJKL\",PVarchar.INSTANCE, null, SortOrder.DESC);\n \n inputExpression(\"ABCDEABC\",PVarchar.INSTANCE, \"ABC\", 1, SortOrder.ASC);\n \n inputExpression(\"ABCDEABC\",PVarchar.INSTANCE, \"ABC\", 1, SortOrder.DESC);\n \n inputExpression(\"AB01CDEABC\",PVarchar.INSTANCE, \"01C\", 3, SortOrder.ASC);\n \n inputExpression(\"AB01CDEABC\",PVarchar.INSTANCE, \"01C\", 3, SortOrder.DESC);\n \n inputExpression(\"ABCD%EFGH\",PVarchar.INSTANCE, \"%\", 5, SortOrder.ASC);\n \n inputExpression(\"ABCD%EFGH\",PVarchar.INSTANCE, \"%\", 5, SortOrder.DESC);\n \n //Tests for MultiByte Characters\n \n inputExpression(\"AɚɦFGH\",PVarchar.INSTANCE, \"ɚɦ\", 2, SortOrder.ASC);\n \n inputExpression(\"AɚɦFGH\",PVarchar.INSTANCE, \"ɚɦ\", 2, SortOrder.DESC);\n \n inputExpression(\"AɚɦFGH\",PVarchar.INSTANCE, \"ɦFGH\", 3, SortOrder.ASC);\n \n inputExpression(\"AɚɦFGH\",PVarchar.INSTANCE, \"ɦFGH\", 3, SortOrder.DESC);\n \n inputExpression(\"AɚɦF/GH\",PVarchar.INSTANCE, \"ɦF/GH\", 3, SortOrder.ASC);\n \n inputExpression(\"AɚɦF/GH\",PVarchar.INSTANCE, \"ɦF/GH\", 3, SortOrder.DESC);\n }",
"class_method_signature": "InstrFunctionTest.testInstrFunction()",
"constructor": false,
"full_signature": "@Test public void testInstrFunction()",
"identifier": "testInstrFunction",
"invocations": [
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputNullExpression",
"inputNullExpression",
"inputNullExpression",
"inputNullExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression",
"inputExpression"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testInstrFunction()",
"testcase": true
} | {
"fields": [
{
"declarator": "NAME = \"INSTR\"",
"modifier": "public static final",
"original_string": "public static final String NAME = \"INSTR\";",
"type": "String",
"var_name": "NAME"
},
{
"declarator": "literalSourceStr = null",
"modifier": "private",
"original_string": "private String literalSourceStr = null;",
"type": "String",
"var_name": "literalSourceStr"
},
{
"declarator": "literalSearchStr = null",
"modifier": "private",
"original_string": "private String literalSearchStr = null;",
"type": "String",
"var_name": "literalSearchStr"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/expression/function/InstrFunction.java",
"identifier": "InstrFunction",
"interfaces": "",
"methods": [
{
"class_method_signature": "InstrFunction.InstrFunction()",
"constructor": true,
"full_signature": "public InstrFunction()",
"identifier": "InstrFunction",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " InstrFunction()",
"testcase": false
},
{
"class_method_signature": "InstrFunction.InstrFunction(List<Expression> children)",
"constructor": true,
"full_signature": "public InstrFunction(List<Expression> children)",
"identifier": "InstrFunction",
"modifiers": "public",
"parameters": "(List<Expression> children)",
"return": "",
"signature": " InstrFunction(List<Expression> children)",
"testcase": false
},
{
"class_method_signature": "InstrFunction.init()",
"constructor": false,
"full_signature": "private void init()",
"identifier": "init",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void init()",
"testcase": false
},
{
"class_method_signature": "InstrFunction.maybeExtractLiteralString(Expression expr)",
"constructor": false,
"full_signature": "private String maybeExtractLiteralString(Expression expr)",
"identifier": "maybeExtractLiteralString",
"modifiers": "private",
"parameters": "(Expression expr)",
"return": "String",
"signature": "String maybeExtractLiteralString(Expression expr)",
"testcase": false
},
{
"class_method_signature": "InstrFunction.evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"identifier": "evaluate",
"modifiers": "@Override public",
"parameters": "(Tuple tuple, ImmutableBytesWritable ptr)",
"return": "boolean",
"signature": "boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "InstrFunction.getDataType()",
"constructor": false,
"full_signature": "@Override public PDataType getDataType()",
"identifier": "getDataType",
"modifiers": "@Override public",
"parameters": "()",
"return": "PDataType",
"signature": "PDataType getDataType()",
"testcase": false
},
{
"class_method_signature": "InstrFunction.getName()",
"constructor": false,
"full_signature": "@Override public String getName()",
"identifier": "getName",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String getName()",
"testcase": false
},
{
"class_method_signature": "InstrFunction.readFields(DataInput input)",
"constructor": false,
"full_signature": "@Override public void readFields(DataInput input)",
"identifier": "readFields",
"modifiers": "@Override public",
"parameters": "(DataInput input)",
"return": "void",
"signature": "void readFields(DataInput input)",
"testcase": false
}
],
"superclass": "extends ScalarFunction"
} | {
"body": "public InstrFunction() { }",
"class_method_signature": "InstrFunction.InstrFunction()",
"constructor": true,
"full_signature": "public InstrFunction()",
"identifier": "InstrFunction",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " InstrFunction()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_138 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/execute/DescVarLengthFastByteComparisonsTest.java",
"identifier": "DescVarLengthFastByteComparisonsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testShorterSubstringIsBigger() {\n byte[] b1 = Bytes.toBytes(\"ab\");\n byte[] b2 = Bytes.toBytes(\"a\");\n int cmp = DescVarLengthFastByteComparisons.compareTo(b1, 0, b1.length, b2, 0, b2.length);\n assertTrue(cmp < 0);\n }",
"class_method_signature": "DescVarLengthFastByteComparisonsTest.testShorterSubstringIsBigger()",
"constructor": false,
"full_signature": "@Test public void testShorterSubstringIsBigger()",
"identifier": "testShorterSubstringIsBigger",
"invocations": [
"toBytes",
"toBytes",
"compareTo",
"assertTrue"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testShorterSubstringIsBigger()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/execute/DescVarLengthFastByteComparisons.java",
"identifier": "DescVarLengthFastByteComparisons",
"interfaces": "",
"methods": [
{
"class_method_signature": "DescVarLengthFastByteComparisons.DescVarLengthFastByteComparisons()",
"constructor": true,
"full_signature": "private DescVarLengthFastByteComparisons()",
"identifier": "DescVarLengthFastByteComparisons",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " DescVarLengthFastByteComparisons()",
"testcase": false
},
{
"class_method_signature": "DescVarLengthFastByteComparisons.compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"constructor": false,
"full_signature": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"identifier": "compareTo",
"modifiers": "public static",
"parameters": "(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"return": "int",
"signature": "int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"testcase": false
},
{
"class_method_signature": "DescVarLengthFastByteComparisons.lexicographicalComparerJavaImpl()",
"constructor": false,
"full_signature": "private static Comparer<byte[]> lexicographicalComparerJavaImpl()",
"identifier": "lexicographicalComparerJavaImpl",
"modifiers": "private static",
"parameters": "()",
"return": "Comparer<byte[]>",
"signature": "Comparer<byte[]> lexicographicalComparerJavaImpl()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {\n return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2);\n }",
"class_method_signature": "DescVarLengthFastByteComparisons.compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"constructor": false,
"full_signature": "public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"identifier": "compareTo",
"invocations": [
"compareTo"
],
"modifiers": "public static",
"parameters": "(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"return": "int",
"signature": "int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_8 | {
"fields": [
{
"declarator": "exit = ExpectedSystemExit.none()",
"modifier": "@Rule\n public final",
"original_string": "@Rule\n public final ExpectedSystemExit exit = ExpectedSystemExit.none();",
"type": "ExpectedSystemExit",
"var_name": "exit"
}
],
"file": "phoenix-pherf/src/test/java/org/apache/phoenix/pherf/PherfTest.java",
"identifier": "PherfTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDefaultLogPerNRowsArgument() throws Exception {\n String[] args = {\"-listFiles\"};\n assertEquals(Long.valueOf(PherfConstants.LOG_PER_NROWS),\n getLogPerNRowsValue(new Pherf(args).getProperties()));\n }",
"class_method_signature": "PherfTest.testDefaultLogPerNRowsArgument()",
"constructor": false,
"full_signature": "@Test public void testDefaultLogPerNRowsArgument()",
"identifier": "testDefaultLogPerNRowsArgument",
"invocations": [
"assertEquals",
"valueOf",
"getLogPerNRowsValue",
"getProperties"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testDefaultLogPerNRowsArgument()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(Pherf.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Pherf.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "options = new Options()",
"modifier": "private static final",
"original_string": "private static final Options options = new Options();",
"type": "Options",
"var_name": "options"
},
{
"declarator": "phoenixUtil = PhoenixUtil.create()",
"modifier": "private final",
"original_string": "private final PhoenixUtil phoenixUtil = PhoenixUtil.create();",
"type": "PhoenixUtil",
"var_name": "phoenixUtil"
},
{
"declarator": "zookeeper",
"modifier": "private final",
"original_string": "private final String zookeeper;",
"type": "String",
"var_name": "zookeeper"
},
{
"declarator": "scenarioFile",
"modifier": "private final",
"original_string": "private final String scenarioFile;",
"type": "String",
"var_name": "scenarioFile"
},
{
"declarator": "schemaFile",
"modifier": "private final",
"original_string": "private final String schemaFile;",
"type": "String",
"var_name": "schemaFile"
},
{
"declarator": "queryHint",
"modifier": "private final",
"original_string": "private final String queryHint;",
"type": "String",
"var_name": "queryHint"
},
{
"declarator": "properties",
"modifier": "private final",
"original_string": "private final Properties properties;",
"type": "Properties",
"var_name": "properties"
},
{
"declarator": "preLoadData",
"modifier": "private final",
"original_string": "private final boolean preLoadData;",
"type": "boolean",
"var_name": "preLoadData"
},
{
"declarator": "dropPherfTablesRegEx",
"modifier": "private final",
"original_string": "private final String dropPherfTablesRegEx;",
"type": "String",
"var_name": "dropPherfTablesRegEx"
},
{
"declarator": "executeQuerySets",
"modifier": "private final",
"original_string": "private final boolean executeQuerySets;",
"type": "boolean",
"var_name": "executeQuerySets"
},
{
"declarator": "isFunctional",
"modifier": "private final",
"original_string": "private final boolean isFunctional;",
"type": "boolean",
"var_name": "isFunctional"
},
{
"declarator": "monitor",
"modifier": "private final",
"original_string": "private final boolean monitor;",
"type": "boolean",
"var_name": "monitor"
},
{
"declarator": "rowCountOverride",
"modifier": "private final",
"original_string": "private final int rowCountOverride;",
"type": "int",
"var_name": "rowCountOverride"
},
{
"declarator": "listFiles",
"modifier": "private final",
"original_string": "private final boolean listFiles;",
"type": "boolean",
"var_name": "listFiles"
},
{
"declarator": "applySchema",
"modifier": "private final",
"original_string": "private final boolean applySchema;",
"type": "boolean",
"var_name": "applySchema"
},
{
"declarator": "writeRuntimeResults",
"modifier": "private final",
"original_string": "private final boolean writeRuntimeResults;",
"type": "boolean",
"var_name": "writeRuntimeResults"
},
{
"declarator": "generateStatistics",
"modifier": "private final",
"original_string": "private final GeneratePhoenixStats generateStatistics;",
"type": "GeneratePhoenixStats",
"var_name": "generateStatistics"
},
{
"declarator": "label",
"modifier": "private final",
"original_string": "private final String label;",
"type": "String",
"var_name": "label"
},
{
"declarator": "compareResults",
"modifier": "private final",
"original_string": "private final String compareResults;",
"type": "String",
"var_name": "compareResults"
},
{
"declarator": "compareType",
"modifier": "private final",
"original_string": "private final CompareType compareType;",
"type": "CompareType",
"var_name": "compareType"
},
{
"declarator": "thinDriver",
"modifier": "private final",
"original_string": "private final boolean thinDriver;",
"type": "boolean",
"var_name": "thinDriver"
},
{
"declarator": "queryServerUrl",
"modifier": "private final",
"original_string": "private final String queryServerUrl;",
"type": "String",
"var_name": "queryServerUrl"
},
{
"declarator": "workloadExecutor",
"modifier": "@VisibleForTesting",
"original_string": "@VisibleForTesting\n WorkloadExecutor workloadExecutor;",
"type": "WorkloadExecutor",
"var_name": "workloadExecutor"
}
],
"file": "phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java",
"identifier": "Pherf",
"interfaces": "",
"methods": [
{
"class_method_signature": "Pherf.Pherf(String[] args)",
"constructor": true,
"full_signature": "public Pherf(String[] args)",
"identifier": "Pherf",
"modifiers": "public",
"parameters": "(String[] args)",
"return": "",
"signature": " Pherf(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.getLogPerNRow(CommandLine command)",
"constructor": false,
"full_signature": "private String getLogPerNRow(CommandLine command)",
"identifier": "getLogPerNRow",
"modifiers": "private",
"parameters": "(CommandLine command)",
"return": "String",
"signature": "String getLogPerNRow(CommandLine command)",
"testcase": false
},
{
"class_method_signature": "Pherf.getProperties()",
"constructor": false,
"full_signature": "public Properties getProperties()",
"identifier": "getProperties",
"modifiers": "public",
"parameters": "()",
"return": "Properties",
"signature": "Properties getProperties()",
"testcase": false
},
{
"class_method_signature": "Pherf.main(String[] args)",
"constructor": false,
"full_signature": "public static void main(String[] args)",
"identifier": "main",
"modifiers": "public static",
"parameters": "(String[] args)",
"return": "void",
"signature": "void main(String[] args)",
"testcase": false
},
{
"class_method_signature": "Pherf.run()",
"constructor": false,
"full_signature": "public void run()",
"identifier": "run",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Properties getProperties() {\n return this.properties;\n }",
"class_method_signature": "Pherf.getProperties()",
"constructor": false,
"full_signature": "public Properties getProperties()",
"identifier": "getProperties",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "Properties",
"signature": "Properties getProperties()",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_180 | {
"fields": [],
"file": "phoenix-core/src/test/java/org/apache/phoenix/schema/types/PDataTypeTest.java",
"identifier": "PDataTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetSampleValue() {\n PDataType[] types = PDataType.values();\n // Test validity of 10 sample values for each type\n for (int i = 0; i < 10; i++) {\n for (PDataType type : types) {\n Integer maxLength = \n (type == PChar.INSTANCE\n || type == PBinary.INSTANCE\n || type == PCharArray.INSTANCE\n || type == PBinaryArray.INSTANCE) ? 10 : null;\n int arrayLength = 10;\n Object sampleValue = type.getSampleValue(maxLength, arrayLength);\n byte[] b = type.toBytes(sampleValue);\n type.toObject(b, 0, b.length, type, SortOrder.getDefault(), maxLength, null);\n }\n }\n }",
"class_method_signature": "PDataTypeTest.testGetSampleValue()",
"constructor": false,
"full_signature": "@Test public void testGetSampleValue()",
"identifier": "testGetSampleValue",
"invocations": [
"values",
"getSampleValue",
"toBytes",
"toObject",
"getDefault"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testGetSampleValue()",
"testcase": true
} | {
"fields": [
{
"declarator": "sqlTypeName",
"modifier": "private final",
"original_string": "private final String sqlTypeName;",
"type": "String",
"var_name": "sqlTypeName"
},
{
"declarator": "sqlType",
"modifier": "private final",
"original_string": "private final int sqlType;",
"type": "int",
"var_name": "sqlType"
},
{
"declarator": "clazz",
"modifier": "private final",
"original_string": "private final Class clazz;",
"type": "Class",
"var_name": "clazz"
},
{
"declarator": "clazzNameBytes",
"modifier": "private final",
"original_string": "private final byte[] clazzNameBytes;",
"type": "byte[]",
"var_name": "clazzNameBytes"
},
{
"declarator": "sqlTypeNameBytes",
"modifier": "private final",
"original_string": "private final byte[] sqlTypeNameBytes;",
"type": "byte[]",
"var_name": "sqlTypeNameBytes"
},
{
"declarator": "codec",
"modifier": "private final",
"original_string": "private final PDataCodec codec;",
"type": "PDataCodec",
"var_name": "codec"
},
{
"declarator": "ordinal",
"modifier": "private final",
"original_string": "private final int ordinal;",
"type": "int",
"var_name": "ordinal"
},
{
"declarator": "MAX_PRECISION = 38",
"modifier": "public static final",
"original_string": "public static final int MAX_PRECISION = 38;",
"type": "int",
"var_name": "MAX_PRECISION"
},
{
"declarator": "MIN_DECIMAL_AVG_SCALE = 4",
"modifier": "public static final",
"original_string": "public static final int MIN_DECIMAL_AVG_SCALE = 4;",
"type": "int",
"var_name": "MIN_DECIMAL_AVG_SCALE"
},
{
"declarator": "DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP)",
"modifier": "public static final",
"original_string": "public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);",
"type": "MathContext",
"var_name": "DEFAULT_MATH_CONTEXT"
},
{
"declarator": "DEFAULT_SCALE = 0",
"modifier": "public static final",
"original_string": "public static final int DEFAULT_SCALE = 0;",
"type": "int",
"var_name": "DEFAULT_SCALE"
},
{
"declarator": "MAX_BIG_DECIMAL_BYTES = 21",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_BIG_DECIMAL_BYTES = 21;",
"type": "Integer",
"var_name": "MAX_BIG_DECIMAL_BYTES"
},
{
"declarator": "MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT",
"modifier": "protected static final",
"original_string": "protected static final Integer MAX_TIMESTAMP_BYTES = Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT;",
"type": "Integer",
"var_name": "MAX_TIMESTAMP_BYTES"
},
{
"declarator": "ZERO_BYTE = (byte)0x80",
"modifier": "protected static final",
"original_string": "protected static final byte ZERO_BYTE = (byte)0x80;",
"type": "byte",
"var_name": "ZERO_BYTE"
},
{
"declarator": "NEG_TERMINAL_BYTE = (byte)102",
"modifier": "protected static final",
"original_string": "protected static final byte NEG_TERMINAL_BYTE = (byte)102;",
"type": "byte",
"var_name": "NEG_TERMINAL_BYTE"
},
{
"declarator": "EXP_BYTE_OFFSET = 65",
"modifier": "protected static final",
"original_string": "protected static final int EXP_BYTE_OFFSET = 65;",
"type": "int",
"var_name": "EXP_BYTE_OFFSET"
},
{
"declarator": "POS_DIGIT_OFFSET = 1",
"modifier": "protected static final",
"original_string": "protected static final int POS_DIGIT_OFFSET = 1;",
"type": "int",
"var_name": "POS_DIGIT_OFFSET"
},
{
"declarator": "NEG_DIGIT_OFFSET = 101",
"modifier": "protected static final",
"original_string": "protected static final int NEG_DIGIT_OFFSET = 101;",
"type": "int",
"var_name": "NEG_DIGIT_OFFSET"
},
{
"declarator": "MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);",
"type": "BigInteger",
"var_name": "MAX_LONG"
},
{
"declarator": "MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);",
"type": "BigInteger",
"var_name": "MIN_LONG"
},
{
"declarator": "MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000",
"modifier": "protected static final",
"original_string": "protected static final long MAX_LONG_FOR_DESERIALIZE = Long.MAX_VALUE / 1000;",
"type": "long",
"var_name": "MAX_LONG_FOR_DESERIALIZE"
},
{
"declarator": "ONE_HUNDRED = BigInteger.valueOf(100)",
"modifier": "protected static final",
"original_string": "protected static final BigInteger ONE_HUNDRED = BigInteger.valueOf(100);",
"type": "BigInteger",
"var_name": "ONE_HUNDRED"
},
{
"declarator": "FALSE_BYTE = 0",
"modifier": "protected static final",
"original_string": "protected static final byte FALSE_BYTE = 0;",
"type": "byte",
"var_name": "FALSE_BYTE"
},
{
"declarator": "TRUE_BYTE = 1",
"modifier": "protected static final",
"original_string": "protected static final byte TRUE_BYTE = 1;",
"type": "byte",
"var_name": "TRUE_BYTE"
},
{
"declarator": "FALSE_BYTES = new byte[] { FALSE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] FALSE_BYTES = new byte[] { FALSE_BYTE };",
"type": "byte[]",
"var_name": "FALSE_BYTES"
},
{
"declarator": "TRUE_BYTES = new byte[] { TRUE_BYTE }",
"modifier": "public static final",
"original_string": "public static final byte[] TRUE_BYTES = new byte[] { TRUE_BYTE };",
"type": "byte[]",
"var_name": "TRUE_BYTES"
},
{
"declarator": "NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY",
"modifier": "public static final",
"original_string": "public static final byte[] NULL_BYTES = ByteUtil.EMPTY_BYTE_ARRAY;",
"type": "byte[]",
"var_name": "NULL_BYTES"
},
{
"declarator": "BOOLEAN_LENGTH = 1",
"modifier": "protected static final",
"original_string": "protected static final Integer BOOLEAN_LENGTH = 1;",
"type": "Integer",
"var_name": "BOOLEAN_LENGTH"
},
{
"declarator": "ZERO = 0",
"modifier": "public final static",
"original_string": "public final static Integer ZERO = 0;",
"type": "Integer",
"var_name": "ZERO"
},
{
"declarator": "INT_PRECISION = 10",
"modifier": "public final static",
"original_string": "public final static Integer INT_PRECISION = 10;",
"type": "Integer",
"var_name": "INT_PRECISION"
},
{
"declarator": "LONG_PRECISION = 19",
"modifier": "public final static",
"original_string": "public final static Integer LONG_PRECISION = 19;",
"type": "Integer",
"var_name": "LONG_PRECISION"
},
{
"declarator": "SHORT_PRECISION = 5",
"modifier": "public final static",
"original_string": "public final static Integer SHORT_PRECISION = 5;",
"type": "Integer",
"var_name": "SHORT_PRECISION"
},
{
"declarator": "BYTE_PRECISION = 3",
"modifier": "public final static",
"original_string": "public final static Integer BYTE_PRECISION = 3;",
"type": "Integer",
"var_name": "BYTE_PRECISION"
},
{
"declarator": "DOUBLE_PRECISION = 15",
"modifier": "public final static",
"original_string": "public final static Integer DOUBLE_PRECISION = 15;",
"type": "Integer",
"var_name": "DOUBLE_PRECISION"
},
{
"declarator": "ARRAY_TYPE_BASE = 3000",
"modifier": "public static final",
"original_string": "public static final int ARRAY_TYPE_BASE = 3000;",
"type": "int",
"var_name": "ARRAY_TYPE_BASE"
},
{
"declarator": "ARRAY_TYPE_SUFFIX = \"ARRAY\"",
"modifier": "public static final",
"original_string": "public static final String ARRAY_TYPE_SUFFIX = \"ARRAY\";",
"type": "String",
"var_name": "ARRAY_TYPE_SUFFIX"
},
{
"declarator": "RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n }",
"modifier": "protected static final",
"original_string": "protected static final ThreadLocal<Random> RANDOM = new ThreadLocal<Random>() {\n @Override\n protected Random initialValue() {\n return new Random();\n }\n };",
"type": "ThreadLocal<Random>",
"var_name": "RANDOM"
},
{
"declarator": "DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n }",
"modifier": "private static final",
"original_string": "private static final PhoenixArrayFactory DEFAULT_ARRAY_FACTORY = new PhoenixArrayFactory() {\n @Override\n public PhoenixArray newArray(PDataType type, Object[] elements) {\n return new PhoenixArray(type, elements);\n }\n };",
"type": "PhoenixArrayFactory",
"var_name": "DEFAULT_ARRAY_FACTORY"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDataType.java",
"identifier": "PDataType",
"interfaces": "implements DataType<T>, Comparable<PDataType<?>>",
"methods": [
{
"class_method_signature": "PDataType.PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"constructor": true,
"full_signature": "protected PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"identifier": "PDataType",
"modifiers": "protected",
"parameters": "(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"return": "",
"signature": " PDataType(String sqlTypeName, int sqlType, Class clazz, PDataCodec codec, int ordinal)",
"testcase": false
},
{
"class_method_signature": "PDataType.values()",
"constructor": false,
"full_signature": "public static PDataType[] values()",
"identifier": "values",
"modifiers": "public static",
"parameters": "()",
"return": "PDataType[]",
"signature": "PDataType[] values()",
"testcase": false
},
{
"class_method_signature": "PDataType.ordinal()",
"constructor": false,
"full_signature": "public int ordinal()",
"identifier": "ordinal",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int ordinal()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedClass()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public Class<T> encodedClass()",
"identifier": "encodedClass",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "Class<T>",
"signature": "Class<T> encodedClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isCastableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCastableTo(PDataType targetType)",
"identifier": "isCastableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCastableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.getCodec()",
"constructor": false,
"full_signature": "public final PDataCodec getCodec()",
"identifier": "getCodec",
"modifiers": "public final",
"parameters": "()",
"return": "PDataCodec",
"signature": "PDataCodec getCodec()",
"testcase": false
},
{
"class_method_signature": "PDataType.isBytesComparableWith(PDataType otherType)",
"constructor": false,
"full_signature": "public boolean isBytesComparableWith(PDataType otherType)",
"identifier": "isBytesComparableWith",
"modifiers": "public",
"parameters": "(PDataType otherType)",
"return": "boolean",
"signature": "boolean isBytesComparableWith(PDataType otherType)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSize(Object o)",
"constructor": false,
"full_signature": "public int estimateByteSize(Object o)",
"identifier": "estimateByteSize",
"modifiers": "public",
"parameters": "(Object o)",
"return": "int",
"signature": "int estimateByteSize(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMaxLength(Object o)",
"constructor": false,
"full_signature": "public Integer getMaxLength(Object o)",
"identifier": "getMaxLength",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getMaxLength(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getScale(Object o)",
"constructor": false,
"full_signature": "public Integer getScale(Object o)",
"identifier": "getScale",
"modifiers": "public",
"parameters": "(Object o)",
"return": "Integer",
"signature": "Integer getScale(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.estimateByteSizeFromLength(Integer length)",
"constructor": false,
"full_signature": "public Integer estimateByteSizeFromLength(Integer length)",
"identifier": "estimateByteSizeFromLength",
"modifiers": "public",
"parameters": "(Integer length)",
"return": "Integer",
"signature": "Integer estimateByteSizeFromLength(Integer length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeName()",
"constructor": false,
"full_signature": "public final String getSqlTypeName()",
"identifier": "getSqlTypeName",
"modifiers": "public final",
"parameters": "()",
"return": "String",
"signature": "String getSqlTypeName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlType()",
"constructor": false,
"full_signature": "public final int getSqlType()",
"identifier": "getSqlType",
"modifiers": "public final",
"parameters": "()",
"return": "int",
"signature": "int getSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClass()",
"constructor": false,
"full_signature": "public final Class getJavaClass()",
"identifier": "getJavaClass",
"modifiers": "public final",
"parameters": "()",
"return": "Class",
"signature": "Class getJavaClass()",
"testcase": false
},
{
"class_method_signature": "PDataType.isArrayType()",
"constructor": false,
"full_signature": "public boolean isArrayType()",
"identifier": "isArrayType",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isArrayType()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(byte[] lhs, int lhsOffset, int lhsLength, SortOrder lhsSortOrder, byte[] rhs,\n int rhsOffset, int rhsLength, SortOrder rhsSortOrder, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isDoubleOrFloat(PDataType type)",
"constructor": false,
"full_signature": "public static boolean isDoubleOrFloat(PDataType type)",
"identifier": "isDoubleOrFloat",
"modifiers": "public static",
"parameters": "(PDataType type)",
"return": "boolean",
"signature": "boolean isDoubleOrFloat(PDataType type)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareFloatToLong(float f, long l)",
"constructor": false,
"full_signature": "private static int compareFloatToLong(float f, long l)",
"identifier": "compareFloatToLong",
"modifiers": "private static",
"parameters": "(float f, long l)",
"return": "int",
"signature": "int compareFloatToLong(float f, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareDoubleToLong(double d, long l)",
"constructor": false,
"full_signature": "private static int compareDoubleToLong(double d, long l)",
"identifier": "compareDoubleToLong",
"modifiers": "private static",
"parameters": "(double d, long l)",
"return": "int",
"signature": "int compareDoubleToLong(double d, long l)",
"testcase": false
},
{
"class_method_signature": "PDataType.checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"constructor": false,
"full_signature": "protected static void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"identifier": "checkForSufficientLength",
"modifiers": "protected static",
"parameters": "(byte[] b, int offset, int requiredLength)",
"return": "void",
"signature": "void checkForSufficientLength(byte[] b, int offset, int requiredLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwConstraintViolationException(PDataType source, PDataType target)",
"constructor": false,
"full_signature": "protected static Void throwConstraintViolationException(PDataType source, PDataType target)",
"identifier": "throwConstraintViolationException",
"modifiers": "protected static",
"parameters": "(PDataType source, PDataType target)",
"return": "Void",
"signature": "Void throwConstraintViolationException(PDataType source, PDataType target)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException()",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException()",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "()",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException()",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(String msg)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(String msg)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(String msg)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(String msg)",
"testcase": false
},
{
"class_method_signature": "PDataType.newIllegalDataException(Exception e)",
"constructor": false,
"full_signature": "protected static RuntimeException newIllegalDataException(Exception e)",
"identifier": "newIllegalDataException",
"modifiers": "protected static",
"parameters": "(Exception e)",
"return": "RuntimeException",
"signature": "RuntimeException newIllegalDataException(Exception e)",
"testcase": false
},
{
"class_method_signature": "PDataType.equals(Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(Object o)",
"return": "boolean",
"signature": "boolean equals(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.equalsAny(PDataType lhs, PDataType... rhs)",
"constructor": false,
"full_signature": "public static boolean equalsAny(PDataType lhs, PDataType... rhs)",
"identifier": "equalsAny",
"modifiers": "public static",
"parameters": "(PDataType lhs, PDataType... rhs)",
"return": "boolean",
"signature": "boolean equalsAny(PDataType lhs, PDataType... rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"constructor": false,
"full_signature": "protected static int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"identifier": "toBytes",
"modifiers": "protected static",
"parameters": "(BigDecimal v, byte[] result, final int offset, int length)",
"return": "int",
"signature": "int toBytes(BigDecimal v, byte[] result, final int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBigDecimal(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "protected static BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"identifier": "toBigDecimal",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "BigDecimal",
"signature": "BigDecimal toBigDecimal(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"constructor": false,
"full_signature": "protected static int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"identifier": "getDecimalPrecisionAndScale",
"modifiers": "protected static",
"parameters": "(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"return": "int[]",
"signature": "int[] getDecimalPrecisionAndScale(byte[] bytes, int offset, int length, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isComparableTo(PDataType targetType)",
"constructor": false,
"full_signature": "public boolean isComparableTo(PDataType targetType)",
"identifier": "isComparableTo",
"modifiers": "public",
"parameters": "(PDataType targetType)",
"return": "boolean",
"signature": "boolean isComparableTo(PDataType targetType)",
"testcase": false
},
{
"class_method_signature": "PDataType.isCoercibleTo(PDataType targetType, Object value)",
"constructor": false,
"full_signature": "public boolean isCoercibleTo(PDataType targetType, Object value)",
"identifier": "isCoercibleTo",
"modifiers": "public",
"parameters": "(PDataType targetType, Object value)",
"return": "boolean",
"signature": "boolean isCoercibleTo(PDataType targetType, Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"constructor": false,
"full_signature": "public boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"identifier": "isSizeCompatible",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"return": "boolean",
"signature": "boolean isSizeCompatible(ImmutableBytesWritable ptr, Object value, PDataType srcType, SortOrder sortOrder,\n Integer maxLength, Integer scale, Integer desiredMaxLength, Integer desiredScale)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] b1, byte[] b2)",
"constructor": false,
"full_signature": "public int compareTo(byte[] b1, byte[] b2)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(byte[] b1, byte[] b2)",
"return": "int",
"signature": "int compareTo(byte[] b1, byte[] b2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, ImmutableBytesWritable ptr2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"constructor": false,
"full_signature": "public final int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"return": "int",
"signature": "int compareTo(byte[] ba1, int offset1, int length1, SortOrder so1, byte[] ba2, int offset2,\n int length2, SortOrder so2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"constructor": false,
"full_signature": "public final int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"identifier": "compareTo",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"return": "int",
"signature": "int compareTo(ImmutableBytesWritable ptr1, SortOrder ptr1SortOrder, ImmutableBytesWritable ptr2,\n SortOrder ptr2SortOrder, PDataType type2)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs)",
"constructor": false,
"full_signature": "public int compareTo(Object lhs, Object rhs)",
"identifier": "compareTo",
"modifiers": "public",
"parameters": "(Object lhs, Object rhs)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNull(byte[] value)",
"constructor": false,
"full_signature": "public final boolean isNull(byte[] value)",
"identifier": "isNull",
"modifiers": "public final",
"parameters": "(byte[] value)",
"return": "boolean",
"signature": "boolean isNull(byte[] value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] toBytes(Object object, SortOrder sortOrder)",
"identifier": "toBytes",
"modifiers": "public",
"parameters": "(Object object, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier, boolean expectedRowKeyOrderOptimizable)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, Object o, PDataType actualType, Integer actualMaxLength,\n Integer actualScale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier)",
"testcase": false
},
{
"class_method_signature": "PDataType.coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"constructor": false,
"full_signature": "public final void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"identifier": "coerceBytes",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"return": "void",
"signature": "void coerceBytes(ImmutableBytesWritable ptr, PDataType actualType, SortOrder actualModifier,\n SortOrder expectedModifier, Integer desiredMaxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeDate(java.util.Date date)",
"identifier": "isNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "boolean",
"signature": "boolean isNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeDate(java.util.Date date)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeDate(java.util.Date date)",
"identifier": "throwIfNonNegativeDate",
"modifiers": "protected static",
"parameters": "(java.util.Date date)",
"return": "void",
"signature": "void throwIfNonNegativeDate(java.util.Date date)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static boolean isNonNegativeNumber(Number v)",
"identifier": "isNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "boolean",
"signature": "boolean isNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.throwIfNonNegativeNumber(Number v)",
"constructor": false,
"full_signature": "protected static void throwIfNonNegativeNumber(Number v)",
"identifier": "throwIfNonNegativeNumber",
"modifiers": "protected static",
"parameters": "(Number v)",
"return": "void",
"signature": "void throwIfNonNegativeNumber(Number v)",
"testcase": false
},
{
"class_method_signature": "PDataType.isNullable()",
"constructor": false,
"full_signature": "@Override public boolean isNullable()",
"identifier": "isNullable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isNullable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getByteSize()",
"constructor": false,
"full_signature": "public abstract Integer getByteSize()",
"identifier": "getByteSize",
"modifiers": "public abstract",
"parameters": "()",
"return": "Integer",
"signature": "Integer getByteSize()",
"testcase": false
},
{
"class_method_signature": "PDataType.encodedLength(T val)",
"constructor": false,
"full_signature": "@Override public int encodedLength(T val)",
"identifier": "encodedLength",
"modifiers": "@Override public",
"parameters": "(T val)",
"return": "int",
"signature": "int encodedLength(T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.skip(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@Override public int skip(PositionedByteRange pbr)",
"identifier": "skip",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "int",
"signature": "int skip(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.isOrderPreserving()",
"constructor": false,
"full_signature": "@Override public boolean isOrderPreserving()",
"identifier": "isOrderPreserving",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isOrderPreserving()",
"testcase": false
},
{
"class_method_signature": "PDataType.isSkippable()",
"constructor": false,
"full_signature": "@Override public boolean isSkippable()",
"identifier": "isSkippable",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isSkippable()",
"testcase": false
},
{
"class_method_signature": "PDataType.getOrder()",
"constructor": false,
"full_signature": "@Override public Order getOrder()",
"identifier": "getOrder",
"modifiers": "@Override public",
"parameters": "()",
"return": "Order",
"signature": "Order getOrder()",
"testcase": false
},
{
"class_method_signature": "PDataType.isFixedWidth()",
"constructor": false,
"full_signature": "public abstract boolean isFixedWidth()",
"identifier": "isFixedWidth",
"modifiers": "public abstract",
"parameters": "()",
"return": "boolean",
"signature": "boolean isFixedWidth()",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(Object lhs, Object rhs, PDataType rhsType)",
"constructor": false,
"full_signature": "public abstract int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"identifier": "compareTo",
"modifiers": "public abstract",
"parameters": "(Object lhs, Object rhs, PDataType rhsType)",
"return": "int",
"signature": "int compareTo(Object lhs, Object rhs, PDataType rhsType)",
"testcase": false
},
{
"class_method_signature": "PDataType.compareTo(PDataType<?> other)",
"constructor": false,
"full_signature": "@Override public int compareTo(PDataType<?> other)",
"identifier": "compareTo",
"modifiers": "@Override public",
"parameters": "(PDataType<?> other)",
"return": "int",
"signature": "int compareTo(PDataType<?> other)",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object, byte[] bytes, int offset)",
"constructor": false,
"full_signature": "public abstract int toBytes(Object object, byte[] bytes, int offset)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object, byte[] bytes, int offset)",
"return": "int",
"signature": "int toBytes(Object object, byte[] bytes, int offset)",
"testcase": false
},
{
"class_method_signature": "PDataType.encode(PositionedByteRange pbr, T val)",
"constructor": false,
"full_signature": "@Override public int encode(PositionedByteRange pbr, T val)",
"identifier": "encode",
"modifiers": "@Override public",
"parameters": "(PositionedByteRange pbr, T val)",
"return": "int",
"signature": "int encode(PositionedByteRange pbr, T val)",
"testcase": false
},
{
"class_method_signature": "PDataType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
},
{
"class_method_signature": "PDataType.toBytes(Object object)",
"constructor": false,
"full_signature": "public abstract byte[] toBytes(Object object)",
"identifier": "toBytes",
"modifiers": "public abstract",
"parameters": "(Object object)",
"return": "byte[]",
"signature": "byte[] toBytes(Object object)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(String value)",
"constructor": false,
"full_signature": "public abstract Object toObject(String value)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(String value)",
"return": "Object",
"signature": "Object toObject(String value)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(Object object, PDataType actualType)",
"constructor": false,
"full_signature": "public abstract Object toObject(Object object, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(Object object, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(Object object, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public abstract Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public abstract",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.decode(PositionedByteRange pbr)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public T decode(PositionedByteRange pbr)",
"identifier": "decode",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "(PositionedByteRange pbr)",
"return": "T",
"signature": "T decode(PositionedByteRange pbr)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue()",
"constructor": false,
"full_signature": "public final Object getSampleValue()",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "()",
"return": "Object",
"signature": "Object getSampleValue()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSampleValue(Integer maxLength)",
"constructor": false,
"full_signature": "public final Object getSampleValue(Integer maxLength)",
"identifier": "getSampleValue",
"modifiers": "public final",
"parameters": "(Integer maxLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, PDataType actualType, SortOrder sortOrder,\n Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder, Integer maxLength, Integer scale)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, int offset, int length)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, int offset, int length)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, int offset, int length)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, int offset, int length)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes)",
"return": "Object",
"signature": "Object toObject(byte[] bytes)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"constructor": false,
"full_signature": "public final Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"identifier": "toObject",
"modifiers": "public final",
"parameters": "(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"return": "Object",
"signature": "Object toObject(byte[] bytes, SortOrder sortOrder, PDataType actualType)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromSqlTypeName(String sqlTypeName)",
"constructor": false,
"full_signature": "public static PDataType fromSqlTypeName(String sqlTypeName)",
"identifier": "fromSqlTypeName",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "PDataType",
"signature": "PDataType fromSqlTypeName(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.sqlArrayType(String sqlTypeName)",
"constructor": false,
"full_signature": "public static int sqlArrayType(String sqlTypeName)",
"identifier": "sqlArrayType",
"modifiers": "public static",
"parameters": "(String sqlTypeName)",
"return": "int",
"signature": "int sqlArrayType(String sqlTypeName)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromTypeId(int typeId)",
"constructor": false,
"full_signature": "public static PDataType fromTypeId(int typeId)",
"identifier": "fromTypeId",
"modifiers": "public static",
"parameters": "(int typeId)",
"return": "PDataType",
"signature": "PDataType fromTypeId(int typeId)",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassName()",
"constructor": false,
"full_signature": "public String getJavaClassName()",
"identifier": "getJavaClassName",
"modifiers": "public",
"parameters": "()",
"return": "String",
"signature": "String getJavaClassName()",
"testcase": false
},
{
"class_method_signature": "PDataType.getJavaClassNameBytes()",
"constructor": false,
"full_signature": "public byte[] getJavaClassNameBytes()",
"identifier": "getJavaClassNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getJavaClassNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getSqlTypeNameBytes()",
"constructor": false,
"full_signature": "public byte[] getSqlTypeNameBytes()",
"identifier": "getSqlTypeNameBytes",
"modifiers": "public",
"parameters": "()",
"return": "byte[]",
"signature": "byte[] getSqlTypeNameBytes()",
"testcase": false
},
{
"class_method_signature": "PDataType.getResultSetSqlType()",
"constructor": false,
"full_signature": "public int getResultSetSqlType()",
"identifier": "getResultSetSqlType",
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int getResultSetSqlType()",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] point)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] point)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] point)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] point)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(ImmutableBytesWritable ptr, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(ImmutableBytesWritable ptr, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, Format formatter)",
"constructor": false,
"full_signature": "public final String toStringLiteral(byte[] b, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public final",
"parameters": "(byte[] b, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(byte[] b, int offset, int length, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(byte[] b, int offset, int length, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o, Format formatter)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o, Format formatter)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o, Format formatter)",
"return": "String",
"signature": "String toStringLiteral(Object o, Format formatter)",
"testcase": false
},
{
"class_method_signature": "PDataType.toStringLiteral(Object o)",
"constructor": false,
"full_signature": "public String toStringLiteral(Object o)",
"identifier": "toStringLiteral",
"modifiers": "public",
"parameters": "(Object o)",
"return": "String",
"signature": "String toStringLiteral(Object o)",
"testcase": false
},
{
"class_method_signature": "PDataType.getArrayFactory()",
"constructor": false,
"full_signature": "public PhoenixArrayFactory getArrayFactory()",
"identifier": "getArrayFactory",
"modifiers": "public",
"parameters": "()",
"return": "PhoenixArrayFactory",
"signature": "PhoenixArrayFactory getArrayFactory()",
"testcase": false
},
{
"class_method_signature": "PDataType.instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"constructor": false,
"full_signature": "public static PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"identifier": "instantiatePhoenixArray",
"modifiers": "public static",
"parameters": "(PDataType actualType, Object[] elements)",
"return": "PhoenixArray",
"signature": "PhoenixArray instantiatePhoenixArray(PDataType actualType, Object[] elements)",
"testcase": false
},
{
"class_method_signature": "PDataType.getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"constructor": false,
"full_signature": "public KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"identifier": "getKeyRange",
"modifiers": "public",
"parameters": "(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"return": "KeyRange",
"signature": "KeyRange getKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive)",
"testcase": false
},
{
"class_method_signature": "PDataType.fromLiteral(Object value)",
"constructor": false,
"full_signature": "public static PDataType fromLiteral(Object value)",
"identifier": "fromLiteral",
"modifiers": "public static",
"parameters": "(Object value)",
"return": "PDataType",
"signature": "PDataType fromLiteral(Object value)",
"testcase": false
},
{
"class_method_signature": "PDataType.getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getNanos",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "int",
"signature": "int getNanos(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"identifier": "getMillis",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"return": "long",
"signature": "long getMillis(ImmutableBytesWritable ptr, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(Object object, Integer maxLength)",
"constructor": false,
"full_signature": "public Object pad(Object object, Integer maxLength)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(Object object, Integer maxLength)",
"return": "Object",
"signature": "Object pad(Object object, Integer maxLength)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"return": "void",
"signature": "void pad(ImmutableBytesWritable ptr, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"constructor": false,
"full_signature": "public byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"identifier": "pad",
"modifiers": "public",
"parameters": "(byte[] b, Integer maxLength, SortOrder sortOrder)",
"return": "byte[]",
"signature": "byte[] pad(byte[] b, Integer maxLength, SortOrder sortOrder)",
"testcase": false
},
{
"class_method_signature": "PDataType.arrayBaseType(PDataType arrayType)",
"constructor": false,
"full_signature": "public static PDataType arrayBaseType(PDataType arrayType)",
"identifier": "arrayBaseType",
"modifiers": "public static",
"parameters": "(PDataType arrayType)",
"return": "PDataType",
"signature": "PDataType arrayBaseType(PDataType arrayType)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength);",
"class_method_signature": "PDataType.getSampleValue(Integer maxLength, Integer arrayLength)",
"constructor": false,
"full_signature": "public abstract Object getSampleValue(Integer maxLength, Integer arrayLength)",
"identifier": "getSampleValue",
"invocations": [],
"modifiers": "public abstract",
"parameters": "(Integer maxLength, Integer arrayLength)",
"return": "Object",
"signature": "Object getSampleValue(Integer maxLength, Integer arrayLength)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_95 | {
"fields": [
{
"declarator": "con",
"modifier": "@Mock",
"original_string": "@Mock PhoenixConnection con;",
"type": "PhoenixConnection",
"var_name": "con"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/util/LogUtilTest.java",
"identifier": "LogUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddCustomAnnotationsWithNullConnection() {\n \tString logLine = LogUtil.addCustomAnnotations(\"log line\", (PhoenixConnection)null);\n \tassertEquals(logLine, \"log line\");\n }",
"class_method_signature": "LogUtilTest.testAddCustomAnnotationsWithNullConnection()",
"constructor": false,
"full_signature": "@Test public void testAddCustomAnnotationsWithNullConnection()",
"identifier": "testAddCustomAnnotationsWithNullConnection",
"invocations": [
"addCustomAnnotations",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testAddCustomAnnotationsWithNullConnection()",
"testcase": true
} | {
"fields": [],
"file": "phoenix-core/src/main/java/org/apache/phoenix/util/LogUtil.java",
"identifier": "LogUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "LogUtil.LogUtil()",
"constructor": true,
"full_signature": "private LogUtil()",
"identifier": "LogUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " LogUtil()",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"identifier": "addCustomAnnotations",
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable byte[] annotations)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable byte[] annotations)",
"testcase": false
},
{
"class_method_signature": "LogUtil.customAnnotationsToString(@Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String customAnnotationsToString(@Nullable PhoenixConnection con)",
"identifier": "customAnnotationsToString",
"modifiers": "public static",
"parameters": "(@Nullable PhoenixConnection con)",
"return": "String",
"signature": "String customAnnotationsToString(@Nullable PhoenixConnection con)",
"testcase": false
},
{
"class_method_signature": "LogUtil.getCallerStackTrace()",
"constructor": false,
"full_signature": "public static String getCallerStackTrace()",
"identifier": "getCallerStackTrace",
"modifiers": "public static",
"parameters": "()",
"return": "String",
"signature": "String getCallerStackTrace()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con) {\n \tif (con == null || con.getCustomTracingAnnotations() == null || con.getCustomTracingAnnotations().isEmpty()) {\n return logLine;\n \t} else {\n \t\treturn customAnnotationsToString(con) + ' ' + logLine;\n \t}\n }",
"class_method_signature": "LogUtil.addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"constructor": false,
"full_signature": "public static String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"identifier": "addCustomAnnotations",
"invocations": [
"getCustomTracingAnnotations",
"isEmpty",
"getCustomTracingAnnotations",
"customAnnotationsToString"
],
"modifiers": "public static",
"parameters": "(@Nullable String logLine, @Nullable PhoenixConnection con)",
"return": "String",
"signature": "String addCustomAnnotations(@Nullable String logLine, @Nullable PhoenixConnection con)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
20473418_114 | {
"fields": [
{
"declarator": "testCache = null",
"modifier": "static",
"original_string": "static GuidePostsCache testCache = null;",
"type": "GuidePostsCache",
"var_name": "testCache"
},
{
"declarator": "phoenixStatsLoader = null",
"modifier": "static",
"original_string": "static PhoenixStatsLoader phoenixStatsLoader = null;",
"type": "PhoenixStatsLoader",
"var_name": "phoenixStatsLoader"
},
{
"declarator": "helper",
"modifier": "private",
"original_string": "private GuidePostsCacheProvider helper;",
"type": "GuidePostsCacheProvider",
"var_name": "helper"
}
],
"file": "phoenix-core/src/test/java/org/apache/phoenix/query/GuidePostsCacheProviderTest.java",
"identifier": "GuidePostsCacheProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getSingletonSimpleTest(){\n GuidePostsCacheFactory factory1 = helper.loadAndGetGuidePostsCacheFactory(\n TestGuidePostsCacheFactory.class.getTypeName());\n assertTrue(factory1 instanceof TestGuidePostsCacheFactory);\n\n GuidePostsCacheFactory factory2 = helper.loadAndGetGuidePostsCacheFactory(\n TestGuidePostsCacheFactory.class.getTypeName());\n assertTrue(factory2 instanceof TestGuidePostsCacheFactory);\n\n assertEquals(factory1,factory2);\n assertEquals(1,TestGuidePostsCacheFactory.count);\n }",
"class_method_signature": "GuidePostsCacheProviderTest.getSingletonSimpleTest()",
"constructor": false,
"full_signature": "@Test public void getSingletonSimpleTest()",
"identifier": "getSingletonSimpleTest",
"invocations": [
"loadAndGetGuidePostsCacheFactory",
"getTypeName",
"assertTrue",
"loadAndGetGuidePostsCacheFactory",
"getTypeName",
"assertTrue",
"assertEquals",
"assertEquals"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void getSingletonSimpleTest()",
"testcase": true
} | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(GuidePostsCacheProvider.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declarator": "guidePostsCacheFactory = null",
"modifier": "",
"original_string": "GuidePostsCacheFactory guidePostsCacheFactory = null;",
"type": "GuidePostsCacheFactory",
"var_name": "guidePostsCacheFactory"
}
],
"file": "phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java",
"identifier": "GuidePostsCacheProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
},
{
"class_method_signature": "GuidePostsCacheProvider.getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"constructor": false,
"full_signature": "public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"identifier": "getGuidePostsCache",
"modifiers": "public",
"parameters": "(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"return": "GuidePostsCacheWrapper",
"signature": "GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,\n Configuration config)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@VisibleForTesting\n GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString) {\n Preconditions.checkNotNull(classString);\n if (guidePostsCacheFactory == null) {\n try {\n\n Class clazz = Class.forName(classString);\n if (!GuidePostsCacheFactory.class.isAssignableFrom(clazz)) {\n String msg = String.format(\n \"Could not load/instantiate class %s is not an instance of GuidePostsCacheFactory\",\n classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n\n List<GuidePostsCacheFactory> factoryList = InstanceResolver.get(GuidePostsCacheFactory.class, null);\n for (GuidePostsCacheFactory factory : factoryList) {\n if (clazz.isInstance(factory)) {\n guidePostsCacheFactory = factory;\n LOGGER.info(String.format(\"Sucessfully loaded class for GuidePostsCacheFactor of type: %s\",\n classString));\n break;\n }\n }\n if (guidePostsCacheFactory == null) {\n String msg = String.format(\"Could not load/instantiate class %s\", classString);\n LOGGER.error(msg);\n throw new PhoenixNonRetryableRuntimeException(msg);\n }\n } catch (ClassNotFoundException e) {\n LOGGER.error(String.format(\"Could not load/instantiate class %s\", classString), e);\n throw new PhoenixNonRetryableRuntimeException(e);\n }\n }\n return guidePostsCacheFactory;\n }",
"class_method_signature": "GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(String classString)",
"constructor": false,
"full_signature": "@VisibleForTesting GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"identifier": "loadAndGetGuidePostsCacheFactory",
"invocations": [
"checkNotNull",
"forName",
"isAssignableFrom",
"format",
"error",
"get",
"isInstance",
"info",
"format",
"format",
"error",
"error",
"format"
],
"modifiers": "@VisibleForTesting",
"parameters": "(String classString)",
"return": "GuidePostsCacheFactory",
"signature": "GuidePostsCacheFactory loadAndGetGuidePostsCacheFactory(String classString)",
"testcase": false
} | {
"created": "6/4/2014 7:00:08 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 20473418,
"size": null,
"stargazer_count": null,
"stars": 752,
"updates": "2020-01-27T08:20:53+00:00",
"url": "https://github.com/apache/phoenix"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.