id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
61,900
VoltDB/voltdb
src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
ExecutionEngineJNI.getStats
@Override public VoltTable[] getStats( final StatsSelector selector, final int locators[], final boolean interval, final Long now) { //Clear is destructive, do it before the native call m_nextDeserializer.clear(); final int numResults = nat...
java
@Override public VoltTable[] getStats( final StatsSelector selector, final int locators[], final boolean interval, final Long now) { //Clear is destructive, do it before the native call m_nextDeserializer.clear(); final int numResults = nat...
[ "@", "Override", "public", "VoltTable", "[", "]", "getStats", "(", "final", "StatsSelector", "selector", ",", "final", "int", "locators", "[", "]", ",", "final", "boolean", "interval", ",", "final", "Long", "now", ")", "{", "//Clear is destructive, do it before ...
Retrieve a set of statistics using the specified selector from the StatisticsSelector enum. @param selector Selector from StatisticsSelector specifying what statistics to retrieve @param locators CatalogIds specifying what set of items the stats should come from. @param interval Return counters since the beginning or s...
[ "Retrieve", "a", "set", "of", "statistics", "using", "the", "specified", "selector", "from", "the", "StatisticsSelector", "enum", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java#L577-L607
61,901
VoltDB/voltdb
src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
ExecutionEngineJNI.storeLargeTempTableBlock
public boolean storeLargeTempTableBlock(long siteId, long blockCounter, ByteBuffer block) { LargeBlockTask task = LargeBlockTask.getStoreTask(new BlockId(siteId, blockCounter), block); return executeLargeBlockTaskSynchronously(task); }
java
public boolean storeLargeTempTableBlock(long siteId, long blockCounter, ByteBuffer block) { LargeBlockTask task = LargeBlockTask.getStoreTask(new BlockId(siteId, blockCounter), block); return executeLargeBlockTaskSynchronously(task); }
[ "public", "boolean", "storeLargeTempTableBlock", "(", "long", "siteId", ",", "long", "blockCounter", ",", "ByteBuffer", "block", ")", "{", "LargeBlockTask", "task", "=", "LargeBlockTask", ".", "getStoreTask", "(", "new", "BlockId", "(", "siteId", ",", "blockCounte...
Store a large temp table block to disk. @param siteId The site id of the block to store to disk @param blockCounter The serial number of the block to store to disk @param block A directly-allocated ByteBuffer of the block @return true if operation succeeded, false otherwise
[ "Store", "a", "large", "temp", "table", "block", "to", "disk", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java#L878-L881
61,902
VoltDB/voltdb
src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
ExecutionEngineJNI.loadLargeTempTableBlock
public boolean loadLargeTempTableBlock(long siteId, long blockCounter, ByteBuffer block) { LargeBlockTask task = LargeBlockTask.getLoadTask(new BlockId(siteId, blockCounter), block); return executeLargeBlockTaskSynchronously(task); }
java
public boolean loadLargeTempTableBlock(long siteId, long blockCounter, ByteBuffer block) { LargeBlockTask task = LargeBlockTask.getLoadTask(new BlockId(siteId, blockCounter), block); return executeLargeBlockTaskSynchronously(task); }
[ "public", "boolean", "loadLargeTempTableBlock", "(", "long", "siteId", ",", "long", "blockCounter", ",", "ByteBuffer", "block", ")", "{", "LargeBlockTask", "task", "=", "LargeBlockTask", ".", "getLoadTask", "(", "new", "BlockId", "(", "siteId", ",", "blockCounter"...
Read a large table block from disk and write it to a ByteBuffer. Block will still be stored on disk when this operation completes. @param siteId The originating site id of the block to load @param blockCounter The id of the block to load @param block The buffer to write the block to @return The orig...
[ "Read", "a", "large", "table", "block", "from", "disk", "and", "write", "it", "to", "a", "ByteBuffer", ".", "Block", "will", "still", "be", "stored", "on", "disk", "when", "this", "operation", "completes", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java#L892-L895
61,903
VoltDB/voltdb
src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
ExecutionEngineJNI.releaseLargeTempTableBlock
public boolean releaseLargeTempTableBlock(long siteId, long blockCounter) { LargeBlockTask task = LargeBlockTask.getReleaseTask(new BlockId(siteId, blockCounter)); return executeLargeBlockTaskSynchronously(task); }
java
public boolean releaseLargeTempTableBlock(long siteId, long blockCounter) { LargeBlockTask task = LargeBlockTask.getReleaseTask(new BlockId(siteId, blockCounter)); return executeLargeBlockTaskSynchronously(task); }
[ "public", "boolean", "releaseLargeTempTableBlock", "(", "long", "siteId", ",", "long", "blockCounter", ")", "{", "LargeBlockTask", "task", "=", "LargeBlockTask", ".", "getReleaseTask", "(", "new", "BlockId", "(", "siteId", ",", "blockCounter", ")", ")", ";", "re...
Delete the block with the given id from disk. @param siteId The originating site id of the block to release @param blockCounter The serial number of the block to release @return True if the operation succeeded, and false otherwise
[ "Delete", "the", "block", "with", "the", "given", "id", "from", "disk", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java#L904-L907
61,904
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java
AdHocPlannedStmtBatch.getSQLStatements
public List<String> getSQLStatements() { List<String> sqlStatements = new ArrayList<>(plannedStatements.size()); for (AdHocPlannedStatement plannedStatement : plannedStatements) { sqlStatements.add(new String(plannedStatement.sql, Constants.UTF8ENCODING)); } return sqlStateme...
java
public List<String> getSQLStatements() { List<String> sqlStatements = new ArrayList<>(plannedStatements.size()); for (AdHocPlannedStatement plannedStatement : plannedStatements) { sqlStatements.add(new String(plannedStatement.sql, Constants.UTF8ENCODING)); } return sqlStateme...
[ "public", "List", "<", "String", ">", "getSQLStatements", "(", ")", "{", "List", "<", "String", ">", "sqlStatements", "=", "new", "ArrayList", "<>", "(", "plannedStatements", ".", "size", "(", ")", ")", ";", "for", "(", "AdHocPlannedStatement", "plannedState...
Retrieve all the SQL statement text as a list of strings. @return list of SQL statement strings
[ "Retrieve", "all", "the", "SQL", "statement", "text", "as", "a", "list", "of", "strings", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java#L191-L197
61,905
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java
AdHocPlannedStmtBatch.isSinglePartitionCompatible
public boolean isSinglePartitionCompatible() { for (AdHocPlannedStatement plannedStmt : plannedStatements) { if (plannedStmt.core.collectorFragment != null) { return false; } } return true; }
java
public boolean isSinglePartitionCompatible() { for (AdHocPlannedStatement plannedStmt : plannedStatements) { if (plannedStmt.core.collectorFragment != null) { return false; } } return true; }
[ "public", "boolean", "isSinglePartitionCompatible", "(", ")", "{", "for", "(", "AdHocPlannedStatement", "plannedStmt", ":", "plannedStatements", ")", "{", "if", "(", "plannedStmt", ".", "core", ".", "collectorFragment", "!=", "null", ")", "{", "return", "false", ...
Detect if batch is compatible with single partition optimizations @return true if nothing is replicated and nothing has a collector.
[ "Detect", "if", "batch", "is", "compatible", "with", "single", "partition", "optimizations" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java#L203-L210
61,906
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java
AdHocPlannedStmtBatch.flattenPlanArrayToBuffer
public ByteBuffer flattenPlanArrayToBuffer() throws IOException { int size = 0; // sizeof batch ParameterSet userParamCache = null; if (userParamSet == null) { userParamCache = ParameterSet.emptyParameterSet(); } else { Object[] typedUserParams = new Object[userP...
java
public ByteBuffer flattenPlanArrayToBuffer() throws IOException { int size = 0; // sizeof batch ParameterSet userParamCache = null; if (userParamSet == null) { userParamCache = ParameterSet.emptyParameterSet(); } else { Object[] typedUserParams = new Object[userP...
[ "public", "ByteBuffer", "flattenPlanArrayToBuffer", "(", ")", "throws", "IOException", "{", "int", "size", "=", "0", ";", "// sizeof batch", "ParameterSet", "userParamCache", "=", "null", ";", "if", "(", "userParamSet", "==", "null", ")", "{", "userParamCache", ...
For convenience, serialization is accomplished with this single method, but deserialization is piecemeal via the static methods userParamsFromBuffer and planArrayFromBuffer with no dummy "AdHocPlannedStmtBatch receiver" instance required.
[ "For", "convenience", "serialization", "is", "accomplished", "with", "this", "single", "method", "but", "deserialization", "is", "piecemeal", "via", "the", "static", "methods", "userParamsFromBuffer", "and", "planArrayFromBuffer", "with", "no", "dummy", "AdHocPlannedStm...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java#L246-L297
61,907
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java
AdHocPlannedStmtBatch.explainStatement
public String explainStatement(int i, Database db, boolean getJSONString) { AdHocPlannedStatement plannedStatement = plannedStatements.get(i); String aggplan = new String(plannedStatement.core.aggregatorFragment, Constants.UTF8ENCODING); PlanNodeTree pnt = new PlanNodeTree(); try { ...
java
public String explainStatement(int i, Database db, boolean getJSONString) { AdHocPlannedStatement plannedStatement = plannedStatements.get(i); String aggplan = new String(plannedStatement.core.aggregatorFragment, Constants.UTF8ENCODING); PlanNodeTree pnt = new PlanNodeTree(); try { ...
[ "public", "String", "explainStatement", "(", "int", "i", ",", "Database", "db", ",", "boolean", "getJSONString", ")", "{", "AdHocPlannedStatement", "plannedStatement", "=", "plannedStatements", ".", "get", "(", "i", ")", ";", "String", "aggplan", "=", "new", "...
Return the "EXPLAIN" string of the batched statement at the index @param i the index @param db the database context (for adding catalog details).
[ "Return", "the", "EXPLAIN", "string", "of", "the", "batched", "statement", "at", "the", "index" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocPlannedStmtBatch.java#L352-L386
61,908
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocCompilerCache.java
AdHocCompilerCache.getCacheForCatalogHash
public synchronized static AdHocCompilerCache getCacheForCatalogHash(byte[] catalogHash) { String hashString = Encoder.hexEncode(catalogHash); AdHocCompilerCache cache = m_catalogHashMatch.getIfPresent(hashString); if (cache == null) { cache = new AdHocCompilerCache(); m_...
java
public synchronized static AdHocCompilerCache getCacheForCatalogHash(byte[] catalogHash) { String hashString = Encoder.hexEncode(catalogHash); AdHocCompilerCache cache = m_catalogHashMatch.getIfPresent(hashString); if (cache == null) { cache = new AdHocCompilerCache(); m_...
[ "public", "synchronized", "static", "AdHocCompilerCache", "getCacheForCatalogHash", "(", "byte", "[", "]", "catalogHash", ")", "{", "String", "hashString", "=", "Encoder", ".", "hexEncode", "(", "catalogHash", ")", ";", "AdHocCompilerCache", "cache", "=", "m_catalog...
Get the global cache for a given hash of the catalog. Note that there can be only one cache per catalogHash at a time.
[ "Get", "the", "global", "cache", "for", "a", "given", "hash", "of", "the", "catalog", ".", "Note", "that", "there", "can", "be", "only", "one", "cache", "per", "catalogHash", "at", "a", "time", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocCompilerCache.java#L66-L74
61,909
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocCompilerCache.java
AdHocCompilerCache.printStats
synchronized void printStats() { String line1 = String.format("CACHE STATS - Literals: Hits %d/%d (%.1f%%), Inserts %d Evictions %d\n", m_literalHits, m_literalQueries, (m_literalHits * 100.0) / m_literalQueries, m_literalInsertions, m_literalEvictions); String line2 = St...
java
synchronized void printStats() { String line1 = String.format("CACHE STATS - Literals: Hits %d/%d (%.1f%%), Inserts %d Evictions %d\n", m_literalHits, m_literalQueries, (m_literalHits * 100.0) / m_literalQueries, m_literalInsertions, m_literalEvictions); String line2 = St...
[ "synchronized", "void", "printStats", "(", ")", "{", "String", "line1", "=", "String", ".", "format", "(", "\"CACHE STATS - Literals: Hits %d/%d (%.1f%%), Inserts %d Evictions %d\\n\"", ",", "m_literalHits", ",", "m_literalQueries", ",", "(", "m_literalHits", "*", "100.0"...
Stats printing method used during development. Probably shouldn't live past real stats integration.
[ "Stats", "printing", "method", "used", "during", "development", ".", "Probably", "shouldn", "t", "live", "past", "real", "stats", "integration", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocCompilerCache.java#L207-L227
61,910
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocCompilerCache.java
AdHocCompilerCache.put
public synchronized void put(String sql, String parsedToken, AdHocPlannedStatement planIn, String[] extractedLiterals, boolean hasUserQuestionMarkParameters, ...
java
public synchronized void put(String sql, String parsedToken, AdHocPlannedStatement planIn, String[] extractedLiterals, boolean hasUserQuestionMarkParameters, ...
[ "public", "synchronized", "void", "put", "(", "String", "sql", ",", "String", "parsedToken", ",", "AdHocPlannedStatement", "planIn", ",", "String", "[", "]", "extractedLiterals", ",", "boolean", "hasUserQuestionMarkParameters", ",", "boolean", "hasAutoParameterizedExcep...
Called from the PlannerTool directly when it finishes planning. This is the only way to populate the cache. Note that one goal here is to reduce the number of times two separate plan instances with the same value are input for the same SQL literal. L1 cache (literal cache) cache SQL queries without user provided para...
[ "Called", "from", "the", "PlannerTool", "directly", "when", "it", "finishes", "planning", ".", "This", "is", "the", "only", "way", "to", "populate", "the", "cache", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocCompilerCache.java#L274-L345
61,911
VoltDB/voltdb
src/frontend/org/voltdb/compiler/AdHocCompilerCache.java
AdHocCompilerCache.startPeriodicStatsPrinting
public void startPeriodicStatsPrinting() { if (m_statsTimer == null) { m_statsTimer = new Timer(); m_statsTimer.scheduleAtFixedRate(new TimerTask() { @Override public void run() { printStats(); } }, 5000, 500...
java
public void startPeriodicStatsPrinting() { if (m_statsTimer == null) { m_statsTimer = new Timer(); m_statsTimer.scheduleAtFixedRate(new TimerTask() { @Override public void run() { printStats(); } }, 5000, 500...
[ "public", "void", "startPeriodicStatsPrinting", "(", ")", "{", "if", "(", "m_statsTimer", "==", "null", ")", "{", "m_statsTimer", "=", "new", "Timer", "(", ")", ";", "m_statsTimer", ".", "scheduleAtFixedRate", "(", "new", "TimerTask", "(", ")", "{", "@", "...
Start a timer that prints cache stats to the console every 5s. Used for development until we get better stats integration.
[ "Start", "a", "timer", "that", "prints", "cache", "stats", "to", "the", "console", "every", "5s", ".", "Used", "for", "development", "until", "we", "get", "better", "stats", "integration", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/AdHocCompilerCache.java#L351-L361
61,912
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getDate
@Override public Date getDate(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Date getDate(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Date", "getDate", "(", "int", "parameterIndex", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of the designated JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date.
[ "Retrieves", "the", "value", "of", "the", "designated", "JDBC", "DATE", "parameter", "as", "a", "java", ".", "sql", ".", "Date", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "date", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L191-L196
61,913
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getDate
@Override public Date getDate(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Date getDate(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Date", "getDate", "(", "String", "parameterName", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date.
[ "Retrieves", "the", "value", "of", "a", "JDBC", "DATE", "parameter", "as", "a", "java", ".", "sql", ".", "Date", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "date", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L207-L212
61,914
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getObject
@Override public Object getObject(String parameterName, Map<String,Class<?>> map) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Object getObject(String parameterName, Map<String,Class<?>> map) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Object", "getObject", "(", "String", "parameterName", ",", "Map", "<", "String", ",", "Class", "<", "?", ">", ">", "map", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", ...
Returns an object representing the value of OUT parameter parameterName and uses map for the custom mapping of the parameter value.
[ "Returns", "an", "object", "representing", "the", "value", "of", "OUT", "parameter", "parameterName", "and", "uses", "map", "for", "the", "custom", "mapping", "of", "the", "parameter", "value", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L351-L356
61,915
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getTime
@Override public Time getTime(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Time getTime(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Time", "getTime", "(", "int", "parameterIndex", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.
[ "Retrieves", "the", "value", "of", "the", "designated", "JDBC", "TIME", "parameter", "as", "a", "java", ".", "sql", ".", "Time", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "time", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L447-L452
61,916
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getTime
@Override public Time getTime(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Time getTime(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Time", "getTime", "(", "String", "parameterName", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.
[ "Retrieves", "the", "value", "of", "a", "JDBC", "TIME", "parameter", "as", "a", "java", ".", "sql", ".", "Time", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "time", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L463-L468
61,917
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getTimestamp
@Override public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Timestamp", "getTimestamp", "(", "int", "parameterIndex", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
[ "Retrieves", "the", "value", "of", "the", "designated", "JDBC", "TIMESTAMP", "parameter", "as", "a", "java", ".", "sql", ".", "Timestamp", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "Timestamp", "object", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L479-L484
61,918
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.getTimestamp
@Override public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "Timestamp", "getTimestamp", "(", "String", "parameterName", ",", "Calendar", "cal", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
[ "Retrieves", "the", "value", "of", "a", "JDBC", "TIMESTAMP", "parameter", "as", "a", "java", ".", "sql", ".", "Timestamp", "object", "using", "the", "given", "Calendar", "object", "to", "construct", "the", "Timestamp", "object", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L495-L500
61,919
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.registerOutParameter
@Override public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "void", "registerOutParameter", "(", "String", "parameterName", ",", "int", "sqlType", ",", "int", "scale", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}"...
Registers the parameter named parameterName to be of JDBC type sqlType.
[ "Registers", "the", "parameter", "named", "parameterName", "to", "be", "of", "JDBC", "type", "sqlType", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L551-L556
61,920
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.setNString
@Override public void setNString(String parameterName, String value) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public void setNString(String parameterName, String value) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "void", "setNString", "(", "String", "parameterName", ",", "String", "value", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Sets the designated parameter to the given String object.
[ "Sets", "the", "designated", "parameter", "to", "the", "given", "String", "object", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L807-L812
61,921
VoltDB/voltdb
src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java
JDBC4CallableStatement.setURL
@Override public void setURL(String parameterName, URL val) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
java
@Override public void setURL(String parameterName, URL val) throws SQLException { checkClosed(); throw SQLError.noSupport(); }
[ "@", "Override", "public", "void", "setURL", "(", "String", "parameterName", ",", "URL", "val", ")", "throws", "SQLException", "{", "checkClosed", "(", ")", ";", "throw", "SQLError", ".", "noSupport", "(", ")", ";", "}" ]
Sets the designated parameter to the given java.net.URL object.
[ "Sets", "the", "designated", "parameter", "to", "the", "given", "java", ".", "net", ".", "URL", "object", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4CallableStatement.java#L919-L924
61,922
VoltDB/voltdb
src/frontend/org/voltdb/iv2/LeaderCache.java
LeaderCache.suffixHSIdsWithMigratePartitionLeaderRequest
public static String suffixHSIdsWithMigratePartitionLeaderRequest(Long HSId) { return Long.toString(Long.MAX_VALUE) + "/" + Long.toString(HSId) + migrate_partition_leader_suffix; }
java
public static String suffixHSIdsWithMigratePartitionLeaderRequest(Long HSId) { return Long.toString(Long.MAX_VALUE) + "/" + Long.toString(HSId) + migrate_partition_leader_suffix; }
[ "public", "static", "String", "suffixHSIdsWithMigratePartitionLeaderRequest", "(", "Long", "HSId", ")", "{", "return", "Long", ".", "toString", "(", "Long", ".", "MAX_VALUE", ")", "+", "\"/\"", "+", "Long", ".", "toString", "(", "HSId", ")", "+", "migrate_part...
Generate a HSID string with BALANCE_SPI_SUFFIX information. When this string is updated, we can tell the reason why HSID is changed.
[ "Generate", "a", "HSID", "string", "with", "BALANCE_SPI_SUFFIX", "information", ".", "When", "this", "string", "is", "updated", "we", "can", "tell", "the", "reason", "why", "HSID", "is", "changed", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/LeaderCache.java#L95-L97
61,923
VoltDB/voltdb
src/frontend/org/voltdb/iv2/LeaderCache.java
LeaderCache.startPartitionWatch
public void startPartitionWatch() throws InterruptedException, ExecutionException { Future<?> task = m_es.submit(new PartitionWatchEvent()); task.get(); }
java
public void startPartitionWatch() throws InterruptedException, ExecutionException { Future<?> task = m_es.submit(new PartitionWatchEvent()); task.get(); }
[ "public", "void", "startPartitionWatch", "(", ")", "throws", "InterruptedException", ",", "ExecutionException", "{", "Future", "<", "?", ">", "task", "=", "m_es", ".", "submit", "(", "new", "PartitionWatchEvent", "(", ")", ")", ";", "task", ".", "get", "(", ...
Initialized and start watching partition level cache, this function is blocking. @throws InterruptedException @throws ExecutionException
[ "Initialized", "and", "start", "watching", "partition", "level", "cache", "this", "function", "is", "blocking", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/LeaderCache.java#L159-L162
61,924
VoltDB/voltdb
src/frontend/org/voltdb/iv2/LeaderCache.java
LeaderCache.processPartitionWatchEvent
private void processPartitionWatchEvent() throws KeeperException, InterruptedException { try { m_zk.create(m_rootNode, null, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); m_zk.getData(m_rootNode, m_childWatch, null); } catch (KeeperException.NodeExistsException e) { m_...
java
private void processPartitionWatchEvent() throws KeeperException, InterruptedException { try { m_zk.create(m_rootNode, null, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); m_zk.getData(m_rootNode, m_childWatch, null); } catch (KeeperException.NodeExistsException e) { m_...
[ "private", "void", "processPartitionWatchEvent", "(", ")", "throws", "KeeperException", ",", "InterruptedException", "{", "try", "{", "m_zk", ".", "create", "(", "m_rootNode", ",", "null", ",", "Ids", ".", "OPEN_ACL_UNSAFE", ",", "CreateMode", ".", "PERSISTENT", ...
Race to create partition-specific zk node and put a watch on it.
[ "Race", "to", "create", "partition", "-", "specific", "zk", "node", "and", "put", "a", "watch", "on", "it", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/LeaderCache.java#L393-L400
61,925
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java
NumberType.convertToDefaultType
public Object convertToDefaultType(SessionInterface session, Object a) { if (a == null) { return a; } Type otherType; if (a instanceof Number) { if (a instanceof BigInteger) { a = new BigDecimal((BigInteger) a); } else if (a instance...
java
public Object convertToDefaultType(SessionInterface session, Object a) { if (a == null) { return a; } Type otherType; if (a instanceof Number) { if (a instanceof BigInteger) { a = new BigDecimal((BigInteger) a); } else if (a instance...
[ "public", "Object", "convertToDefaultType", "(", "SessionInterface", "session", ",", "Object", "a", ")", "{", "if", "(", "a", "==", "null", ")", "{", "return", "a", ";", "}", "Type", "otherType", ";", "if", "(", "a", "instanceof", "Number", ")", "{", "...
Converts a value to this type
[ "Converts", "a", "value", "to", "this", "type" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java#L787-L870
61,926
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java
NumberType.convertToDouble
private static Double convertToDouble(Object a) { double value; if (a instanceof java.lang.Double) { return (Double) a; } else if (a instanceof BigDecimal) { BigDecimal bd = (BigDecimal) a; value = bd.doubleValue(); int signum = bd.signu...
java
private static Double convertToDouble(Object a) { double value; if (a instanceof java.lang.Double) { return (Double) a; } else if (a instanceof BigDecimal) { BigDecimal bd = (BigDecimal) a; value = bd.doubleValue(); int signum = bd.signu...
[ "private", "static", "Double", "convertToDouble", "(", "Object", "a", ")", "{", "double", "value", ";", "if", "(", "a", "instanceof", "java", ".", "lang", ".", "Double", ")", "{", "return", "(", "Double", ")", "a", ";", "}", "else", "if", "(", "a", ...
Converter from a numeric object to Double. Input is checked to be within range represented by Double
[ "Converter", "from", "a", "numeric", "object", "to", "Double", ".", "Input", "is", "checked", "to", "be", "within", "range", "represented", "by", "Double" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java#L1082-L1104
61,927
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java
NumberType.mod
public Object mod(Object a, Object b) { if (a == null || b == null) { return null; } switch (typeCode) { case Types.SQL_REAL : case Types.SQL_FLOAT : case Types.SQL_DOUBLE : { double ad = ((Number) a).doubleValue(); ...
java
public Object mod(Object a, Object b) { if (a == null || b == null) { return null; } switch (typeCode) { case Types.SQL_REAL : case Types.SQL_FLOAT : case Types.SQL_DOUBLE : { double ad = ((Number) a).doubleValue(); ...
[ "public", "Object", "mod", "(", "Object", "a", ",", "Object", "b", ")", "{", "if", "(", "a", "==", "null", "||", "b", "==", "null", ")", "{", "return", "null", ";", "}", "switch", "(", "typeCode", ")", "{", "case", "Types", ".", "SQL_REAL", ":", ...
A VoltDB extension
[ "A", "VoltDB", "extension" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/types/NumberType.java#L1830-L1882
61,928
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/lib/ClosableCharArrayWriter.java
ClosableCharArrayWriter.write
public synchronized void write(int c) throws IOException { checkClosed(); int newcount = count + 1; if (newcount > buf.length) { buf = copyOf(buf, Math.max(buf.length << 1, newcount)); } buf[count] = (char) c; count = newcount; }
java
public synchronized void write(int c) throws IOException { checkClosed(); int newcount = count + 1; if (newcount > buf.length) { buf = copyOf(buf, Math.max(buf.length << 1, newcount)); } buf[count] = (char) c; count = newcount; }
[ "public", "synchronized", "void", "write", "(", "int", "c", ")", "throws", "IOException", "{", "checkClosed", "(", ")", ";", "int", "newcount", "=", "count", "+", "1", ";", "if", "(", "newcount", ">", "buf", ".", "length", ")", "{", "buf", "=", "copy...
Writes the specified single character. @param c the single character to be written. @throws java.io.IOException if an I/O error occurs. In particular, an <tt>IOException</tt> may be thrown if this writer has been {@link #close() closed}.
[ "Writes", "the", "specified", "single", "character", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/lib/ClosableCharArrayWriter.java#L128-L140
61,929
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.initiateSPIMigrationIfRequested
private void initiateSPIMigrationIfRequested(Iv2InitiateTaskMessage msg) { if (!"@MigratePartitionLeader".equals(msg.getStoredProcedureName())) { return; } final Object[] params = msg.getParameters(); int pid = Integer.parseInt(params[1].toString()); if (pid != m_par...
java
private void initiateSPIMigrationIfRequested(Iv2InitiateTaskMessage msg) { if (!"@MigratePartitionLeader".equals(msg.getStoredProcedureName())) { return; } final Object[] params = msg.getParameters(); int pid = Integer.parseInt(params[1].toString()); if (pid != m_par...
[ "private", "void", "initiateSPIMigrationIfRequested", "(", "Iv2InitiateTaskMessage", "msg", ")", "{", "if", "(", "!", "\"@MigratePartitionLeader\"", ".", "equals", "(", "msg", ".", "getStoredProcedureName", "(", ")", ")", ")", "{", "return", ";", "}", "final", "...
rerouted from this moment on until the transactions are correctly routed to new leader.
[ "rerouted", "from", "this", "moment", "on", "until", "the", "transactions", "are", "correctly", "routed", "to", "new", "leader", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L375-L419
61,930
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.checkMisroutedIv2IntiateTaskMessage
private boolean checkMisroutedIv2IntiateTaskMessage(Iv2InitiateTaskMessage message) { if (message.isForReplica()) { return false; } if (m_scheduler.isLeader() && m_migratePartitionLeaderStatus != MigratePartitionLeaderStatus.TXN_RESTART) { //At this point, the message is...
java
private boolean checkMisroutedIv2IntiateTaskMessage(Iv2InitiateTaskMessage message) { if (message.isForReplica()) { return false; } if (m_scheduler.isLeader() && m_migratePartitionLeaderStatus != MigratePartitionLeaderStatus.TXN_RESTART) { //At this point, the message is...
[ "private", "boolean", "checkMisroutedIv2IntiateTaskMessage", "(", "Iv2InitiateTaskMessage", "message", ")", "{", "if", "(", "message", ".", "isForReplica", "(", ")", ")", "{", "return", "false", ";", "}", "if", "(", "m_scheduler", ".", "isLeader", "(", ")", "&...
if these requests are intended for leader. Client interface will restart these transactions.
[ "if", "these", "requests", "are", "intended", "for", "leader", ".", "Client", "interface", "will", "restart", "these", "transactions", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L423-L448
61,931
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.checkMisroutedFragmentTaskMessage
private boolean checkMisroutedFragmentTaskMessage(FragmentTaskMessage message) { if (m_scheduler.isLeader() || message.isForReplica()) { return false; } TransactionState txnState = (((SpScheduler)m_scheduler).getTransactionState(message.getTxnId())); // If a fragment is par...
java
private boolean checkMisroutedFragmentTaskMessage(FragmentTaskMessage message) { if (m_scheduler.isLeader() || message.isForReplica()) { return false; } TransactionState txnState = (((SpScheduler)m_scheduler).getTransactionState(message.getTxnId())); // If a fragment is par...
[ "private", "boolean", "checkMisroutedFragmentTaskMessage", "(", "FragmentTaskMessage", "message", ")", "{", "if", "(", "m_scheduler", ".", "isLeader", "(", ")", "||", "message", ".", "isForReplica", "(", ")", ")", "{", "return", "false", ";", "}", "TransactionSt...
After MigratePartitionLeader has been requested, the fragments which are sent to leader site should be restarted.
[ "After", "MigratePartitionLeader", "has", "been", "requested", "the", "fragments", "which", "are", "sent", "to", "leader", "site", "should", "be", "restarted", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L451-L484
61,932
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.handleLogRequest
private void handleLogRequest(VoltMessage message) { Iv2RepairLogRequestMessage req = (Iv2RepairLogRequestMessage)message; // It is possible for a dead host to queue messages after a repair request is processed // so make sure this can't happen by re-queuing this message after we know the de...
java
private void handleLogRequest(VoltMessage message) { Iv2RepairLogRequestMessage req = (Iv2RepairLogRequestMessage)message; // It is possible for a dead host to queue messages after a repair request is processed // so make sure this can't happen by re-queuing this message after we know the de...
[ "private", "void", "handleLogRequest", "(", "VoltMessage", "message", ")", "{", "Iv2RepairLogRequestMessage", "req", "=", "(", "Iv2RepairLogRequestMessage", ")", "message", ";", "// It is possible for a dead host to queue messages after a repair request is processed", "// so make s...
Produce the repair log. This is idempotent.
[ "Produce", "the", "repair", "log", ".", "This", "is", "idempotent", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L541-L583
61,933
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.setMigratePartitionLeaderStatus
private void setMigratePartitionLeaderStatus(MigratePartitionLeaderMessage message) { //The host with old partition leader is down. if (message.isStatusReset()) { m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; return; } if (m_migratePartitio...
java
private void setMigratePartitionLeaderStatus(MigratePartitionLeaderMessage message) { //The host with old partition leader is down. if (message.isStatusReset()) { m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; return; } if (m_migratePartitio...
[ "private", "void", "setMigratePartitionLeaderStatus", "(", "MigratePartitionLeaderMessage", "message", ")", "{", "//The host with old partition leader is down.", "if", "(", "message", ".", "isStatusReset", "(", ")", ")", "{", "m_migratePartitionLeaderStatus", "=", "MigratePar...
that previous partition leader has drained its txns
[ "that", "previous", "partition", "leader", "has", "drained", "its", "txns" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L649-L668
61,934
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.setMigratePartitionLeaderStatus
public void setMigratePartitionLeaderStatus(boolean migratePartitionLeader) { if (!migratePartitionLeader) { m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; m_newLeaderHSID = Long.MIN_VALUE; return; } //The previous leader has already drai...
java
public void setMigratePartitionLeaderStatus(boolean migratePartitionLeader) { if (!migratePartitionLeader) { m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; m_newLeaderHSID = Long.MIN_VALUE; return; } //The previous leader has already drai...
[ "public", "void", "setMigratePartitionLeaderStatus", "(", "boolean", "migratePartitionLeader", ")", "{", "if", "(", "!", "migratePartitionLeader", ")", "{", "m_migratePartitionLeaderStatus", "=", "MigratePartitionLeaderStatus", ".", "NONE", ";", "m_newLeaderHSID", "=", "L...
the site for new partition leader
[ "the", "site", "for", "new", "partition", "leader" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L671-L689
61,935
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.notifyNewLeaderOfTxnDoneIfNeeded
public void notifyNewLeaderOfTxnDoneIfNeeded() { //return quickly to avoid performance hit if (m_newLeaderHSID == Long.MIN_VALUE ) { return; } SpScheduler scheduler = (SpScheduler)m_scheduler; if (!scheduler.txnDoneBeforeCheckPoint()) { return; } ...
java
public void notifyNewLeaderOfTxnDoneIfNeeded() { //return quickly to avoid performance hit if (m_newLeaderHSID == Long.MIN_VALUE ) { return; } SpScheduler scheduler = (SpScheduler)m_scheduler; if (!scheduler.txnDoneBeforeCheckPoint()) { return; } ...
[ "public", "void", "notifyNewLeaderOfTxnDoneIfNeeded", "(", ")", "{", "//return quickly to avoid performance hit", "if", "(", "m_newLeaderHSID", "==", "Long", ".", "MIN_VALUE", ")", "{", "return", ";", "}", "SpScheduler", "scheduler", "=", "(", "SpScheduler", ")", "m...
Then new master can proceed to process transactions.
[ "Then", "new", "master", "can", "proceed", "to", "process", "transactions", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L693-L713
61,936
VoltDB/voltdb
src/frontend/org/voltdb/iv2/InitiatorMailbox.java
InitiatorMailbox.resetMigratePartitionLeaderStatus
public void resetMigratePartitionLeaderStatus() { m_scheduler.m_isLeader = true; m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; m_repairLog.setLeaderState(true); m_newLeaderHSID = Long.MIN_VALUE; }
java
public void resetMigratePartitionLeaderStatus() { m_scheduler.m_isLeader = true; m_migratePartitionLeaderStatus = MigratePartitionLeaderStatus.NONE; m_repairLog.setLeaderState(true); m_newLeaderHSID = Long.MIN_VALUE; }
[ "public", "void", "resetMigratePartitionLeaderStatus", "(", ")", "{", "m_scheduler", ".", "m_isLeader", "=", "true", ";", "m_migratePartitionLeaderStatus", "=", "MigratePartitionLeaderStatus", ".", "NONE", ";", "m_repairLog", ".", "setLeaderState", "(", "true", ")", "...
Reinstall the site as leader.
[ "Reinstall", "the", "site", "as", "leader", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/InitiatorMailbox.java#L716-L721
61,937
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/CommandLine.java
CommandLine.resolveOption
private Option resolveOption(String opt) { opt = Util.stripLeadingHyphens(opt); for (Option option : options) { if (opt.equals(option.getOpt())) { return option; } if (opt.equals(option.getLongOpt())) { ...
java
private Option resolveOption(String opt) { opt = Util.stripLeadingHyphens(opt); for (Option option : options) { if (opt.equals(option.getOpt())) { return option; } if (opt.equals(option.getLongOpt())) { ...
[ "private", "Option", "resolveOption", "(", "String", "opt", ")", "{", "opt", "=", "Util", ".", "stripLeadingHyphens", "(", "opt", ")", ";", "for", "(", "Option", "option", ":", "options", ")", "{", "if", "(", "opt", ".", "equals", "(", "option", ".", ...
Retrieves the option object given the long or short option as a String @param opt short or long name of the option @return Canonicalized option
[ "Retrieves", "the", "option", "object", "given", "the", "long", "or", "short", "option", "as", "a", "String" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/CommandLine.java#L189-L206
61,938
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/CommandLine.java
CommandLine.getArgs
public String[] getArgs() { String[] answer = new String[args.size()]; args.toArray(answer); return answer; }
java
public String[] getArgs() { String[] answer = new String[args.size()]; args.toArray(answer); return answer; }
[ "public", "String", "[", "]", "getArgs", "(", ")", "{", "String", "[", "]", "answer", "=", "new", "String", "[", "args", ".", "size", "(", ")", "]", ";", "args", ".", "toArray", "(", "answer", ")", ";", "return", "answer", ";", "}" ]
Retrieve any left-over non-recognized options and arguments @return remaining items passed in but not parsed as an array
[ "Retrieve", "any", "left", "-", "over", "non", "-", "recognized", "options", "and", "arguments" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/CommandLine.java#L293-L300
61,939
VoltDB/voltdb
src/frontend/org/voltdb/planner/MaterializedViewFixInfo.java
MaterializedViewFixInfo.processScanNodeWithReAggNode
public boolean processScanNodeWithReAggNode(AbstractPlanNode node, AbstractPlanNode reAggNode) { // MV table scan node can not be in in-lined nodes. for (int i = 0; i < node.getChildCount(); i++) { AbstractPlanNode child = node.getChild(i); if (child instanceof AbstractScanPlanN...
java
public boolean processScanNodeWithReAggNode(AbstractPlanNode node, AbstractPlanNode reAggNode) { // MV table scan node can not be in in-lined nodes. for (int i = 0; i < node.getChildCount(); i++) { AbstractPlanNode child = node.getChild(i); if (child instanceof AbstractScanPlanN...
[ "public", "boolean", "processScanNodeWithReAggNode", "(", "AbstractPlanNode", "node", ",", "AbstractPlanNode", "reAggNode", ")", "{", "// MV table scan node can not be in in-lined nodes.", "for", "(", "int", "i", "=", "0", ";", "i", "<", "node", ".", "getChildCount", ...
Find the scan node on MV table, replace it with reAggNode for join query. This scan node can not be in-lined, so it should be as a child of a join node. @param node
[ "Find", "the", "scan", "node", "on", "MV", "table", "replace", "it", "with", "reAggNode", "for", "join", "query", ".", "This", "scan", "node", "can", "not", "be", "in", "-", "lined", "so", "it", "should", "be", "as", "a", "child", "of", "a", "join", ...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/MaterializedViewFixInfo.java#L378-L406
61,940
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java
QuerySpecification.resolveColumnReferences
private void resolveColumnReferences() { if (isDistinctSelect || isGrouped) { acceptsSequences = false; } for (int i = 0; i < rangeVariables.length; i++) { Expression e = rangeVariables[i].nonIndexJoinCondition; if (e == null) { continue; ...
java
private void resolveColumnReferences() { if (isDistinctSelect || isGrouped) { acceptsSequences = false; } for (int i = 0; i < rangeVariables.length; i++) { Expression e = rangeVariables[i].nonIndexJoinCondition; if (e == null) { continue; ...
[ "private", "void", "resolveColumnReferences", "(", ")", "{", "if", "(", "isDistinctSelect", "||", "isGrouped", ")", "{", "acceptsSequences", "=", "false", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "rangeVariables", ".", "length", ";", "i...
Resolves all column expressions in the GROUP BY clause and beyond. Replaces any alias column expression in the ORDER BY cluase with the actual select column expression.
[ "Resolves", "all", "column", "expressions", "in", "the", "GROUP", "BY", "clause", "and", "beyond", ".", "Replaces", "any", "alias", "column", "expression", "in", "the", "ORDER", "BY", "cluase", "with", "the", "actual", "select", "column", "expression", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java#L228-L263
61,941
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java
QuerySpecification.getMaxRowCount
private int getMaxRowCount(Session session, int rowCount) { int limitStart = getLimitStart(session); int limitCount = getLimitCount(session, rowCount); if (simpleLimit) { if (rowCount == 0) { rowCount = limitCount; } // A VoltDB extension to...
java
private int getMaxRowCount(Session session, int rowCount) { int limitStart = getLimitStart(session); int limitCount = getLimitCount(session, rowCount); if (simpleLimit) { if (rowCount == 0) { rowCount = limitCount; } // A VoltDB extension to...
[ "private", "int", "getMaxRowCount", "(", "Session", "session", ",", "int", "rowCount", ")", "{", "int", "limitStart", "=", "getLimitStart", "(", "session", ")", ";", "int", "limitCount", "=", "getLimitCount", "(", "session", ",", "rowCount", ")", ";", "if", ...
translate the rowCount into total number of rows needed from query, including any rows skipped at the beginning
[ "translate", "the", "rowCount", "into", "total", "number", "of", "rows", "needed", "from", "query", "including", "any", "rows", "skipped", "at", "the", "beginning" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java#L1210-L1246
61,942
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java
QuerySpecification.dumpExprColumns
protected void dumpExprColumns(String header){ System.out.println("\n\n*********************************************"); System.out.println(header); try { System.out.println(getSQL()); } catch (Exception e) { } for (int i = 0; i < exprColumns.length; ++i) { ...
java
protected void dumpExprColumns(String header){ System.out.println("\n\n*********************************************"); System.out.println(header); try { System.out.println(getSQL()); } catch (Exception e) { } for (int i = 0; i < exprColumns.length; ++i) { ...
[ "protected", "void", "dumpExprColumns", "(", "String", "header", ")", "{", "System", ".", "out", ".", "println", "(", "\"\\n\\n*********************************************\"", ")", ";", "System", ".", "out", ".", "println", "(", "header", ")", ";", "try", "{", ...
Dumps the exprColumns list for this query specification. Writes to stdout. This method is useful to understand how the HSQL parser transforms its data structures during parsing. For example, place call to this method at the beginning and end of resolveGroups() to see what it does. Since it has no callers in the produ...
[ "Dumps", "the", "exprColumns", "list", "for", "this", "query", "specification", ".", "Writes", "to", "stdout", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/QuerySpecification.java#L2112-L2133
61,943
VoltDB/voltdb
src/frontend/org/voltdb/PlannerStatsCollector.java
PlannerStatsCollector.updateEECacheStats
public void updateEECacheStats(long eeCacheSize, long hits, long misses, int partitionId) { m_cache1Level = eeCacheSize; m_cache1Hits += hits; m_cacheMisses += misses; m_invocations += hits + misses; m_partitionId = partitionId; }
java
public void updateEECacheStats(long eeCacheSize, long hits, long misses, int partitionId) { m_cache1Level = eeCacheSize; m_cache1Hits += hits; m_cacheMisses += misses; m_invocations += hits + misses; m_partitionId = partitionId; }
[ "public", "void", "updateEECacheStats", "(", "long", "eeCacheSize", ",", "long", "hits", ",", "long", "misses", ",", "int", "partitionId", ")", "{", "m_cache1Level", "=", "eeCacheSize", ";", "m_cache1Hits", "+=", "hits", ";", "m_cacheMisses", "+=", "misses", "...
Used to update EE cache stats without changing tracked time
[ "Used", "to", "update", "EE", "cache", "stats", "without", "changing", "tracked", "time" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/PlannerStatsCollector.java#L171-L178
61,944
VoltDB/voltdb
src/frontend/org/voltdb/PlannerStatsCollector.java
PlannerStatsCollector.endStatsCollection
public void endStatsCollection(long cache1Size, long cache2Size, CacheUse cacheUse, long partitionId) { if (m_currentStartTime != null) { long delta = System.nanoTime() - m_currentStartTime; if (delta < 0) { if (Math.abs(delta) > 1000000000) { log.info...
java
public void endStatsCollection(long cache1Size, long cache2Size, CacheUse cacheUse, long partitionId) { if (m_currentStartTime != null) { long delta = System.nanoTime() - m_currentStartTime; if (delta < 0) { if (Math.abs(delta) > 1000000000) { log.info...
[ "public", "void", "endStatsCollection", "(", "long", "cache1Size", ",", "long", "cache2Size", ",", "CacheUse", "cacheUse", ",", "long", "partitionId", ")", "{", "if", "(", "m_currentStartTime", "!=", "null", ")", "{", "long", "delta", "=", "System", ".", "na...
Called after planning or failing to plan. Records timer and cache stats. @param cache1Size number of entries in level 1 cache @param cache2Size number of entries in level 2 cache @param cacheUse where the planned statement came from @param partitionId partition id
[ "Called", "after", "planning", "or", "failing", "to", "plan", ".", "Records", "timer", "and", "cache", "stats", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/PlannerStatsCollector.java#L197-L236
61,945
VoltDB/voltdb
src/frontend/org/voltdb/PlannerStatsCollector.java
PlannerStatsCollector.updateStatsRow
@Override protected void updateStatsRow(Object rowKey, Object rowValues[]) { super.updateStatsRow(rowKey, rowValues); rowValues[columnNameToIndex.get("PARTITION_ID")] = m_partitionId; long totalTimedExecutionTime = m_totalPlanningTime; long minExecutionTime = m_minPlanningTime; ...
java
@Override protected void updateStatsRow(Object rowKey, Object rowValues[]) { super.updateStatsRow(rowKey, rowValues); rowValues[columnNameToIndex.get("PARTITION_ID")] = m_partitionId; long totalTimedExecutionTime = m_totalPlanningTime; long minExecutionTime = m_minPlanningTime; ...
[ "@", "Override", "protected", "void", "updateStatsRow", "(", "Object", "rowKey", ",", "Object", "rowValues", "[", "]", ")", "{", "super", ".", "updateStatsRow", "(", "rowKey", ",", "rowValues", ")", ";", "rowValues", "[", "columnNameToIndex", ".", "get", "("...
Update the rowValues array with the latest statistical information. This method is overrides the super class version which must also be called so that it can update its columns. @param values Values of each column of the row of stats. Used as output.
[ "Update", "the", "rowValues", "array", "with", "the", "latest", "statistical", "information", ".", "This", "method", "is", "overrides", "the", "super", "class", "version", "which", "must", "also", "be", "called", "so", "that", "it", "can", "update", "its", "...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/PlannerStatsCollector.java#L244-L305
61,946
VoltDB/voltdb
src/frontend/org/voltdb/compilereport/ReportMaker.java
ReportMaker.tag
static void tag(StringBuilder sb, String color, String text) { sb.append("<span class='label label"); if (color != null) { sb.append("-").append(color); } String classText = text.replace(' ', '_'); sb.append(" l-").append(classText).append("'>").append(text).append("<...
java
static void tag(StringBuilder sb, String color, String text) { sb.append("<span class='label label"); if (color != null) { sb.append("-").append(color); } String classText = text.replace(' ', '_'); sb.append(" l-").append(classText).append("'>").append(text).append("<...
[ "static", "void", "tag", "(", "StringBuilder", "sb", ",", "String", "color", ",", "String", "text", ")", "{", "sb", ".", "append", "(", "\"<span class='label label\"", ")", ";", "if", "(", "color", "!=", "null", ")", "{", "sb", ".", "append", "(", "\"-...
Make an html bootstrap tag with our custom css class.
[ "Make", "an", "html", "bootstrap", "tag", "with", "our", "custom", "css", "class", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compilereport/ReportMaker.java#L74-L81
61,947
VoltDB/voltdb
src/frontend/org/voltdb/compilereport/ReportMaker.java
ReportMaker.report
public static String report(Catalog catalog, long minHeap, boolean isPro, int hostCount, int sitesPerHost, int kfactor, ArrayList<Feedback> warnings, String autoGenDDL) throws IOException { // asynchronously get platform properties new Thread() { @Override public void...
java
public static String report(Catalog catalog, long minHeap, boolean isPro, int hostCount, int sitesPerHost, int kfactor, ArrayList<Feedback> warnings, String autoGenDDL) throws IOException { // asynchronously get platform properties new Thread() { @Override public void...
[ "public", "static", "String", "report", "(", "Catalog", "catalog", ",", "long", "minHeap", ",", "boolean", "isPro", ",", "int", "hostCount", ",", "int", "sitesPerHost", ",", "int", "kfactor", ",", "ArrayList", "<", "Feedback", ">", "warnings", ",", "String",...
Generate the HTML catalog report from a newly compiled VoltDB catalog
[ "Generate", "the", "HTML", "catalog", "report", "from", "a", "newly", "compiled", "VoltDB", "catalog" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compilereport/ReportMaker.java#L1052-L1110
61,948
VoltDB/voltdb
src/frontend/org/voltdb/compilereport/ReportMaker.java
ReportMaker.liveReport
public static String liveReport() { byte[] reportbytes = VoltDB.instance().getCatalogContext().getFileInJar(VoltCompiler.CATLOG_REPORT); String report = new String(reportbytes, Charsets.UTF_8); // remove commented out code report = report.replace("<!--##RESOURCES", ""); report =...
java
public static String liveReport() { byte[] reportbytes = VoltDB.instance().getCatalogContext().getFileInJar(VoltCompiler.CATLOG_REPORT); String report = new String(reportbytes, Charsets.UTF_8); // remove commented out code report = report.replace("<!--##RESOURCES", ""); report =...
[ "public", "static", "String", "liveReport", "(", ")", "{", "byte", "[", "]", "reportbytes", "=", "VoltDB", ".", "instance", "(", ")", ".", "getCatalogContext", "(", ")", ".", "getFileInJar", "(", "VoltCompiler", ".", "CATLOG_REPORT", ")", ";", "String", "r...
Find the pre-compild catalog report in the jarfile, and modify it for use in the the built-in web portal.
[ "Find", "the", "pre", "-", "compild", "catalog", "report", "in", "the", "jarfile", "and", "modify", "it", "for", "use", "in", "the", "the", "built", "-", "in", "web", "portal", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compilereport/ReportMaker.java#L1150-L1176
61,949
VoltDB/voltdb
src/frontend/org/voltdb/VoltDB.java
VoltDB.turnOffClientInterface
private static boolean turnOffClientInterface() { // we don't expect this to ever fail, but if it does, skip to dying immediately VoltDBInterface vdbInstance = instance(); if (vdbInstance != null) { ClientInterface ci = vdbInstance.getClientInterface(); if (ci != null) { ...
java
private static boolean turnOffClientInterface() { // we don't expect this to ever fail, but if it does, skip to dying immediately VoltDBInterface vdbInstance = instance(); if (vdbInstance != null) { ClientInterface ci = vdbInstance.getClientInterface(); if (ci != null) { ...
[ "private", "static", "boolean", "turnOffClientInterface", "(", ")", "{", "// we don't expect this to ever fail, but if it does, skip to dying immediately", "VoltDBInterface", "vdbInstance", "=", "instance", "(", ")", ";", "if", "(", "vdbInstance", "!=", "null", ")", "{", ...
turn off client interface as fast as possible
[ "turn", "off", "client", "interface", "as", "fast", "as", "possible" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltDB.java#L1214-L1226
61,950
VoltDB/voltdb
src/frontend/org/voltdb/VoltDB.java
VoltDB.sendCrashSNMPTrap
private static void sendCrashSNMPTrap(String msg) { if (msg == null || msg.trim().isEmpty()) { return; } VoltDBInterface vdbInstance = instance(); if (vdbInstance == null) { return; } SnmpTrapSender snmp = vdbInstance.getSnmpTrapSender(); i...
java
private static void sendCrashSNMPTrap(String msg) { if (msg == null || msg.trim().isEmpty()) { return; } VoltDBInterface vdbInstance = instance(); if (vdbInstance == null) { return; } SnmpTrapSender snmp = vdbInstance.getSnmpTrapSender(); i...
[ "private", "static", "void", "sendCrashSNMPTrap", "(", "String", "msg", ")", "{", "if", "(", "msg", "==", "null", "||", "msg", ".", "trim", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "return", ";", "}", "VoltDBInterface", "vdbInstance", "=", "instan...
send a SNMP trap crash notification @param msg
[ "send", "a", "SNMP", "trap", "crash", "notification" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltDB.java#L1232-L1250
61,951
VoltDB/voltdb
src/frontend/org/voltdb/VoltDB.java
VoltDB.crashGlobalVoltDB
public static void crashGlobalVoltDB(String errMsg, boolean stackTrace, Throwable t) { // for test code wasCrashCalled = true; crashMessage = errMsg; if (ignoreCrash) { throw new AssertionError("Faux crash of VoltDB successful."); } // end test code /...
java
public static void crashGlobalVoltDB(String errMsg, boolean stackTrace, Throwable t) { // for test code wasCrashCalled = true; crashMessage = errMsg; if (ignoreCrash) { throw new AssertionError("Faux crash of VoltDB successful."); } // end test code /...
[ "public", "static", "void", "crashGlobalVoltDB", "(", "String", "errMsg", ",", "boolean", "stackTrace", ",", "Throwable", "t", ")", "{", "// for test code", "wasCrashCalled", "=", "true", ";", "crashMessage", "=", "errMsg", ";", "if", "(", "ignoreCrash", ")", ...
Exit the process with an error message, optionally with a stack trace. Also notify all connected peers that the node is going down.
[ "Exit", "the", "process", "with", "an", "error", "message", "optionally", "with", "a", "stack", "trace", ".", "Also", "notify", "all", "connected", "peers", "that", "the", "node", "is", "going", "down", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltDB.java#L1416-L1447
61,952
VoltDB/voltdb
src/frontend/org/voltdb/VoltDB.java
VoltDB.main
public static void main(String[] args) { //Thread.setDefaultUncaughtExceptionHandler(new VoltUncaughtExceptionHandler()); Configuration config = new Configuration(args); try { if (!config.validate()) { System.exit(-1); } else { if (config.m...
java
public static void main(String[] args) { //Thread.setDefaultUncaughtExceptionHandler(new VoltUncaughtExceptionHandler()); Configuration config = new Configuration(args); try { if (!config.validate()) { System.exit(-1); } else { if (config.m...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "//Thread.setDefaultUncaughtExceptionHandler(new VoltUncaughtExceptionHandler());", "Configuration", "config", "=", "new", "Configuration", "(", "args", ")", ";", "try", "{", "if", "(", "...
Entry point for the VoltDB server process. @param args Requires catalog and deployment file locations.
[ "Entry", "point", "for", "the", "VoltDB", "server", "process", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltDB.java#L1453-L1472
61,953
VoltDB/voltdb
src/frontend/org/voltdb/VoltDB.java
VoltDB.getDefaultReplicationInterface
public static String getDefaultReplicationInterface() { if (m_config.m_drInterface == null || m_config.m_drInterface.isEmpty()) { if (m_config.m_externalInterface == null) { return ""; } else { return m_config.m_externalInterface; }...
java
public static String getDefaultReplicationInterface() { if (m_config.m_drInterface == null || m_config.m_drInterface.isEmpty()) { if (m_config.m_externalInterface == null) { return ""; } else { return m_config.m_externalInterface; }...
[ "public", "static", "String", "getDefaultReplicationInterface", "(", ")", "{", "if", "(", "m_config", ".", "m_drInterface", "==", "null", "||", "m_config", ".", "m_drInterface", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "m_config", ".", "m_externalInterfa...
Selects the a specified m_drInterface over a specified m_externalInterface from m_config @return an empty string when neither are specified
[ "Selects", "the", "a", "specified", "m_drInterface", "over", "a", "specified", "m_externalInterface", "from", "m_config" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltDB.java#L1527-L1539
61,954
VoltDB/voltdb
third_party/java/src/com/google_voltpatches/common/util/concurrent/AtomicLongMap.java
AtomicLongMap.removeAllZeros
public void removeAllZeros() { Iterator<Map.Entry<K, AtomicLong>> entryIterator = map.entrySet().iterator(); while (entryIterator.hasNext()) { Map.Entry<K, AtomicLong> entry = entryIterator.next(); AtomicLong atomic = entry.getValue(); if (atomic != null && atomic.get() == 0L) { entryI...
java
public void removeAllZeros() { Iterator<Map.Entry<K, AtomicLong>> entryIterator = map.entrySet().iterator(); while (entryIterator.hasNext()) { Map.Entry<K, AtomicLong> entry = entryIterator.next(); AtomicLong atomic = entry.getValue(); if (atomic != null && atomic.get() == 0L) { entryI...
[ "public", "void", "removeAllZeros", "(", ")", "{", "Iterator", "<", "Map", ".", "Entry", "<", "K", ",", "AtomicLong", ">", ">", "entryIterator", "=", "map", ".", "entrySet", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "entryIterator", ".", ...
Removes all mappings from this map whose values are zero. <p>This method is not atomic: the map may be visible in intermediate states, where some of the zero values have been removed and others have not.
[ "Removes", "all", "mappings", "from", "this", "map", "whose", "values", "are", "zero", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/com/google_voltpatches/common/util/concurrent/AtomicLongMap.java#L279-L288
61,955
VoltDB/voltdb
src/frontend/org/voltdb/VoltNonTransactionalProcedure.java
VoltNonTransactionalProcedure.callAllPartitionProcedure
public CompletableFuture<ClientResponseWithPartitionKey[]> callAllPartitionProcedure(String procedureName, Object... params) { return m_runner.callAllPartitionProcedure(procedureName, params); }
java
public CompletableFuture<ClientResponseWithPartitionKey[]> callAllPartitionProcedure(String procedureName, Object... params) { return m_runner.callAllPartitionProcedure(procedureName, params); }
[ "public", "CompletableFuture", "<", "ClientResponseWithPartitionKey", "[", "]", ">", "callAllPartitionProcedure", "(", "String", "procedureName", ",", "Object", "...", "params", ")", "{", "return", "m_runner", ".", "callAllPartitionProcedure", "(", "procedureName", ",",...
A version of the similar API from VoltDB clients, but for for non-transactional procedures. Runs a single-partition procedure on every partition that exists at the time it is called. @param procedureName A single-partition procedure. @param params Paramrters for the single-partition procedures (minus the partition par...
[ "A", "version", "of", "the", "similar", "API", "from", "VoltDB", "clients", "but", "for", "for", "non", "-", "transactional", "procedures", ".", "Runs", "a", "single", "-", "partition", "procedure", "on", "every", "partition", "that", "exists", "at", "the", ...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/VoltNonTransactionalProcedure.java#L59-L61
61,956
VoltDB/voltdb
src/frontend/org/voltdb/PrivateVoltTableFactory.java
PrivateVoltTableFactory.getTableDataReference
public static ByteBuffer getTableDataReference(VoltTable vt) { ByteBuffer buf = vt.m_buffer.duplicate(); buf.rewind(); return buf; }
java
public static ByteBuffer getTableDataReference(VoltTable vt) { ByteBuffer buf = vt.m_buffer.duplicate(); buf.rewind(); return buf; }
[ "public", "static", "ByteBuffer", "getTableDataReference", "(", "VoltTable", "vt", ")", "{", "ByteBuffer", "buf", "=", "vt", ".", "m_buffer", ".", "duplicate", "(", ")", ";", "buf", ".", "rewind", "(", ")", ";", "return", "buf", ";", "}" ]
End users should not call this method. Obtain a reference to the table's underlying buffer. The returned reference's position and mark are independent of the table's buffer position and mark. The returned buffer has no mark and is at position 0.
[ "End", "users", "should", "not", "call", "this", "method", ".", "Obtain", "a", "reference", "to", "the", "table", "s", "underlying", "buffer", ".", "The", "returned", "reference", "s", "position", "and", "mark", "are", "independent", "of", "the", "table", ...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/PrivateVoltTableFactory.java#L58-L62
61,957
VoltDB/voltdb
third_party/java/src/com/google_voltpatches/common/util/concurrent/UnsynchronizedRateLimiter.java
UnsynchronizedRateLimiter.reserveNextTicket
private long reserveNextTicket(double requiredPermits, long nowMicros) { resync(nowMicros); long microsToNextFreeTicket = Math.max(0, nextFreeTicketMicros - nowMicros); double storedPermitsToSpend = Math.min(requiredPermits, this.storedPermits); double freshPermits = requiredPermits - storedPermitsToSpe...
java
private long reserveNextTicket(double requiredPermits, long nowMicros) { resync(nowMicros); long microsToNextFreeTicket = Math.max(0, nextFreeTicketMicros - nowMicros); double storedPermitsToSpend = Math.min(requiredPermits, this.storedPermits); double freshPermits = requiredPermits - storedPermitsToSpe...
[ "private", "long", "reserveNextTicket", "(", "double", "requiredPermits", ",", "long", "nowMicros", ")", "{", "resync", "(", "nowMicros", ")", ";", "long", "microsToNextFreeTicket", "=", "Math", ".", "max", "(", "0", ",", "nextFreeTicketMicros", "-", "nowMicros"...
Reserves next ticket and returns the wait time that the caller must wait for. <p>The return value is guaranteed to be non-negative.
[ "Reserves", "next", "ticket", "and", "returns", "the", "wait", "time", "that", "the", "caller", "must", "wait", "for", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/com/google_voltpatches/common/util/concurrent/UnsynchronizedRateLimiter.java#L502-L514
61,958
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/Options.java
Options.addOptionGroup
public Options addOptionGroup(OptionGroup group) { if (group.isRequired()) { requiredOpts.add(group); } for (Option option : group.getOptions()) { // an Option cannot be required if it is in an // OptionGroup, either the group is required ...
java
public Options addOptionGroup(OptionGroup group) { if (group.isRequired()) { requiredOpts.add(group); } for (Option option : group.getOptions()) { // an Option cannot be required if it is in an // OptionGroup, either the group is required ...
[ "public", "Options", "addOptionGroup", "(", "OptionGroup", "group", ")", "{", "if", "(", "group", ".", "isRequired", "(", ")", ")", "{", "requiredOpts", ".", "add", "(", "group", ")", ";", "}", "for", "(", "Option", "option", ":", "group", ".", "getOpt...
Add the specified option group. @param group the OptionGroup that is to be added @return the resulting Options instance
[ "Add", "the", "specified", "option", "group", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/Options.java#L69-L88
61,959
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/Options.java
Options.addOption
public Options addOption(String opt, String description) { addOption(opt, null, false, description); return this; }
java
public Options addOption(String opt, String description) { addOption(opt, null, false, description); return this; }
[ "public", "Options", "addOption", "(", "String", "opt", ",", "String", "description", ")", "{", "addOption", "(", "opt", ",", "null", ",", "false", ",", "description", ")", ";", "return", "this", ";", "}" ]
Add an option that only contains a short name. The option does not take an argument. @param opt Short single-character name of the option. @param description Self-documenting description @return the resulting Options instance @since 1.3
[ "Add", "an", "option", "that", "only", "contains", "a", "short", "name", ".", "The", "option", "does", "not", "take", "an", "argument", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/Options.java#L109-L113
61,960
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/Options.java
Options.addOption
public Options addOption(String opt, boolean hasArg, String description) { addOption(opt, null, hasArg, description); return this; }
java
public Options addOption(String opt, boolean hasArg, String description) { addOption(opt, null, hasArg, description); return this; }
[ "public", "Options", "addOption", "(", "String", "opt", ",", "boolean", "hasArg", ",", "String", "description", ")", "{", "addOption", "(", "opt", ",", "null", ",", "hasArg", ",", "description", ")", ";", "return", "this", ";", "}" ]
Add an option that only contains a short-name. It may be specified as requiring an argument. @param opt Short single-character name of the option. @param hasArg flag signally if an argument is required after this option @param description Self-documenting description @return the resulting Options instance
[ "Add", "an", "option", "that", "only", "contains", "a", "short", "-", "name", ".", "It", "may", "be", "specified", "as", "requiring", "an", "argument", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/Options.java#L124-L128
61,961
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/Options.java
Options.addOption
public Options addOption(String opt, String longOpt, boolean hasArg, String description) { addOption(new Option(opt, longOpt, hasArg, description)); return this; }
java
public Options addOption(String opt, String longOpt, boolean hasArg, String description) { addOption(new Option(opt, longOpt, hasArg, description)); return this; }
[ "public", "Options", "addOption", "(", "String", "opt", ",", "String", "longOpt", ",", "boolean", "hasArg", ",", "String", "description", ")", "{", "addOption", "(", "new", "Option", "(", "opt", ",", "longOpt", ",", "hasArg", ",", "description", ")", ")", ...
Add an option that contains a short-name and a long-name. It may be specified as requiring an argument. @param opt Short single-character name of the option. @param longOpt Long multi-character name of the option. @param hasArg flag signally if an argument is required after this option @param description Self-document...
[ "Add", "an", "option", "that", "contains", "a", "short", "-", "name", "and", "a", "long", "-", "name", ".", "It", "may", "be", "specified", "as", "requiring", "an", "argument", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/Options.java#L140-L144
61,962
VoltDB/voltdb
src/frontend/org/voltdb/utils/CommandLine.java
CommandLine.makeCopy
public CommandLine makeCopy() { CommandLine cl = new CommandLine(m_startAction); // first copy the base class fields cl.m_ipcPort = m_ipcPort; cl.m_backend = m_backend; cl.m_leader = m_leader; cl.m_pathToCatalog = m_pathToCatalog; cl.m_pathToDeployment = m_pathToD...
java
public CommandLine makeCopy() { CommandLine cl = new CommandLine(m_startAction); // first copy the base class fields cl.m_ipcPort = m_ipcPort; cl.m_backend = m_backend; cl.m_leader = m_leader; cl.m_pathToCatalog = m_pathToCatalog; cl.m_pathToDeployment = m_pathToD...
[ "public", "CommandLine", "makeCopy", "(", ")", "{", "CommandLine", "cl", "=", "new", "CommandLine", "(", "m_startAction", ")", ";", "// first copy the base class fields", "cl", ".", "m_ipcPort", "=", "m_ipcPort", ";", "cl", ".", "m_backend", "=", "m_backend", ";...
Copy ctor.
[ "Copy", "ctor", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/utils/CommandLine.java#L70-L146
61,963
VoltDB/voltdb
src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java
VoltXMLElementHelper.mergeTwoElementsUsingOperator
public static VoltXMLElement mergeTwoElementsUsingOperator(String opName, String opElementId, VoltXMLElement first, VoltXMLElement ...
java
public static VoltXMLElement mergeTwoElementsUsingOperator(String opName, String opElementId, VoltXMLElement first, VoltXMLElement ...
[ "public", "static", "VoltXMLElement", "mergeTwoElementsUsingOperator", "(", "String", "opName", ",", "String", "opElementId", ",", "VoltXMLElement", "first", ",", "VoltXMLElement", "second", ")", "{", "if", "(", "first", "==", "null", "||", "second", "==", "null",...
If one of the elements is null, return the other one diectly.
[ "If", "one", "of", "the", "elements", "is", "null", "return", "the", "other", "one", "diectly", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java#L74-L89
61,964
VoltDB/voltdb
src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java
VoltXMLElementHelper.buildLimitElements
public static List<VoltXMLElement> buildLimitElements(int limit, String limitValueElementId) { if (limitValueElementId == null) { return null; } List<VoltXMLElement> retval = new ArrayList<VoltXMLElement>(); retval.add( new VoltXMLElement("offset") ); VoltXMLElement limitElement = new ...
java
public static List<VoltXMLElement> buildLimitElements(int limit, String limitValueElementId) { if (limitValueElementId == null) { return null; } List<VoltXMLElement> retval = new ArrayList<VoltXMLElement>(); retval.add( new VoltXMLElement("offset") ); VoltXMLElement limitElement = new ...
[ "public", "static", "List", "<", "VoltXMLElement", ">", "buildLimitElements", "(", "int", "limit", ",", "String", "limitValueElementId", ")", "{", "if", "(", "limitValueElementId", "==", "null", ")", "{", "return", "null", ";", "}", "List", "<", "VoltXMLElemen...
Build VoltXMLElement for expression like "LIMIT 1".
[ "Build", "VoltXMLElement", "for", "expression", "like", "LIMIT", "1", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java#L112-L124
61,965
VoltDB/voltdb
src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java
VoltXMLElementHelper.buildColumnParamJoincondElement
public static VoltXMLElement buildColumnParamJoincondElement(String opName, VoltXMLElement leftElement, String valueParamElementId, String opElementId) { VoltXMLElement valueParamElement = buildValueElement(valueParamElementId); return mergeTwoElementsUsingOperator(opName, opElementId, leftElement, valu...
java
public static VoltXMLElement buildColumnParamJoincondElement(String opName, VoltXMLElement leftElement, String valueParamElementId, String opElementId) { VoltXMLElement valueParamElement = buildValueElement(valueParamElementId); return mergeTwoElementsUsingOperator(opName, opElementId, leftElement, valu...
[ "public", "static", "VoltXMLElement", "buildColumnParamJoincondElement", "(", "String", "opName", ",", "VoltXMLElement", "leftElement", ",", "String", "valueParamElementId", ",", "String", "opElementId", ")", "{", "VoltXMLElement", "valueParamElement", "=", "buildValueEleme...
Build VoltXMLElement for expression like "column=?".
[ "Build", "VoltXMLElement", "for", "expression", "like", "column", "=", "?", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java#L127-L130
61,966
VoltDB/voltdb
src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java
VoltXMLElementHelper.buildParamElement
public static VoltXMLElement buildParamElement(String elementId, String index, String valueType) { VoltXMLElement retval = new VoltXMLElement("parameter"); retval.attributes.put("id", elementId); retval.attributes.put("index", index); retval.attributes.put("valuetype", valueType); ...
java
public static VoltXMLElement buildParamElement(String elementId, String index, String valueType) { VoltXMLElement retval = new VoltXMLElement("parameter"); retval.attributes.put("id", elementId); retval.attributes.put("index", index); retval.attributes.put("valuetype", valueType); ...
[ "public", "static", "VoltXMLElement", "buildParamElement", "(", "String", "elementId", ",", "String", "index", ",", "String", "valueType", ")", "{", "VoltXMLElement", "retval", "=", "new", "VoltXMLElement", "(", "\"parameter\"", ")", ";", "retval", ".", "attribute...
Build an element to be inserted under the "parameters" tree.
[ "Build", "an", "element", "to", "be", "inserted", "under", "the", "parameters", "tree", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/VoltXMLElementHelper.java#L133-L139
61,967
VoltDB/voltdb
src/frontend/org/voltdb/plannodes/IndexScanPlanNode.java
IndexScanPlanNode.loadFromJSONObject
@Override public void loadFromJSONObject( JSONObject jobj, Database db ) throws JSONException { super.loadFromJSONObject(jobj, db); m_lookupType = IndexLookupType.get( jobj.getString( Members.LOOKUP_TYPE.name() ) ); m_sortDirection = SortDirectionType.get( jobj.getString( Members.SORT_DIRECT...
java
@Override public void loadFromJSONObject( JSONObject jobj, Database db ) throws JSONException { super.loadFromJSONObject(jobj, db); m_lookupType = IndexLookupType.get( jobj.getString( Members.LOOKUP_TYPE.name() ) ); m_sortDirection = SortDirectionType.get( jobj.getString( Members.SORT_DIRECT...
[ "@", "Override", "public", "void", "loadFromJSONObject", "(", "JSONObject", "jobj", ",", "Database", "db", ")", "throws", "JSONException", "{", "super", ".", "loadFromJSONObject", "(", "jobj", ",", "db", ")", ";", "m_lookupType", "=", "IndexLookupType", ".", "...
all members loaded
[ "all", "members", "loaded" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/plannodes/IndexScanPlanNode.java#L775-L798
61,968
VoltDB/voltdb
src/frontend/org/voltdb/plannodes/IndexScanPlanNode.java
IndexScanPlanNode.isPredicatesOptimizableForAggregate
public boolean isPredicatesOptimizableForAggregate() { // for reverse scan, need to examine "added" predicates List<AbstractExpression> predicates = ExpressionUtil.uncombinePredicate(m_predicate); // if the size of predicates doesn't equal 1, can't be our added artifact predicates if (pr...
java
public boolean isPredicatesOptimizableForAggregate() { // for reverse scan, need to examine "added" predicates List<AbstractExpression> predicates = ExpressionUtil.uncombinePredicate(m_predicate); // if the size of predicates doesn't equal 1, can't be our added artifact predicates if (pr...
[ "public", "boolean", "isPredicatesOptimizableForAggregate", "(", ")", "{", "// for reverse scan, need to examine \"added\" predicates", "List", "<", "AbstractExpression", ">", "predicates", "=", "ExpressionUtil", ".", "uncombinePredicate", "(", "m_predicate", ")", ";", "// if...
added for reverse scan purpose only
[ "added", "for", "reverse", "scan", "purpose", "only" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/plannodes/IndexScanPlanNode.java#L1021-L1042
61,969
VoltDB/voltdb
src/frontend/org/voltdb/iv2/SysprocFragmentTask.java
SysprocFragmentTask.respondWithDummy
private void respondWithDummy() { final FragmentResponseMessage response = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); response.m_sourceHSId = m_initiator.getHSId(); response.setRecovering(true); response.setStatus(FragmentResponseMessage.SUCCESS, n...
java
private void respondWithDummy() { final FragmentResponseMessage response = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); response.m_sourceHSId = m_initiator.getHSId(); response.setRecovering(true); response.setStatus(FragmentResponseMessage.SUCCESS, n...
[ "private", "void", "respondWithDummy", "(", ")", "{", "final", "FragmentResponseMessage", "response", "=", "new", "FragmentResponseMessage", "(", "m_fragmentMsg", ",", "m_initiator", ".", "getHSId", "(", ")", ")", ";", "response", ".", "m_sourceHSId", "=", "m_init...
Respond with a dummy fragment response.
[ "Respond", "with", "a", "dummy", "fragment", "response", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/SysprocFragmentTask.java#L96-L113
61,970
VoltDB/voltdb
src/frontend/org/voltdb/iv2/SysprocFragmentTask.java
SysprocFragmentTask.processFragmentTask
public FragmentResponseMessage processFragmentTask(SiteProcedureConnection siteConnection) { final FragmentResponseMessage currentFragResponse = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); currentFragResponse.setStatus(FragmentResponseMessage.SUCCESS, null); ...
java
public FragmentResponseMessage processFragmentTask(SiteProcedureConnection siteConnection) { final FragmentResponseMessage currentFragResponse = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); currentFragResponse.setStatus(FragmentResponseMessage.SUCCESS, null); ...
[ "public", "FragmentResponseMessage", "processFragmentTask", "(", "SiteProcedureConnection", "siteConnection", ")", "{", "final", "FragmentResponseMessage", "currentFragResponse", "=", "new", "FragmentResponseMessage", "(", "m_fragmentMsg", ",", "m_initiator", ".", "getHSId", ...
modified to work in the new world
[ "modified", "to", "work", "in", "the", "new", "world" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/SysprocFragmentTask.java#L216-L280
61,971
VoltDB/voltdb
examples/geospatial/client/geospatial/NibbleDeleter.java
NibbleDeleter.run
@Override public void run() { try { VoltTable partitionKeys = null; partitionKeys = m_client.callProcedure("@GetPartitionKeys", "INTEGER").getResults()[0]; while (partitionKeys.advanceRow()) { m_client.callProcedure(new NullCallback(), "DeleteOldAdRequest...
java
@Override public void run() { try { VoltTable partitionKeys = null; partitionKeys = m_client.callProcedure("@GetPartitionKeys", "INTEGER").getResults()[0]; while (partitionKeys.advanceRow()) { m_client.callProcedure(new NullCallback(), "DeleteOldAdRequest...
[ "@", "Override", "public", "void", "run", "(", ")", "{", "try", "{", "VoltTable", "partitionKeys", "=", "null", ";", "partitionKeys", "=", "m_client", ".", "callProcedure", "(", "\"@GetPartitionKeys\"", ",", "\"INTEGER\"", ")", ".", "getResults", "(", ")", "...
Remove aged-out data from the ad_requests table. This table is partitioned, and may be large, so use the "run-everywhere" pattern to minimize impact to throughput. Also remove old expired bids from the bids table.
[ "Remove", "aged", "-", "out", "data", "from", "the", "ad_requests", "table", ".", "This", "table", "is", "partitioned", "and", "may", "be", "large", "so", "use", "the", "run", "-", "everywhere", "pattern", "to", "minimize", "impact", "to", "throughput", "....
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/examples/geospatial/client/geospatial/NibbleDeleter.java#L60-L77
61,972
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/SessionData.java
SessionData.updateLobUsage
public void updateLobUsage(boolean commit) { if (!hasLobOps) { return; } hasLobOps = false; if (commit) { for (int i = 0; i < createdLobs.size(); i++) { long lobID = createdLobs.get(i); int delta = lobUsageCount.get(lobID, 0); ...
java
public void updateLobUsage(boolean commit) { if (!hasLobOps) { return; } hasLobOps = false; if (commit) { for (int i = 0; i < createdLobs.size(); i++) { long lobID = createdLobs.get(i); int delta = lobUsageCount.get(lobID, 0); ...
[ "public", "void", "updateLobUsage", "(", "boolean", "commit", ")", "{", "if", "(", "!", "hasLobOps", ")", "{", "return", ";", "}", "hasLobOps", "=", "false", ";", "if", "(", "commit", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "cr...
update LobManager user counts, delete lobs that have no usage
[ "update", "LobManager", "user", "counts", "delete", "lobs", "that", "have", "no", "usage" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/SessionData.java#L332-L385
61,973
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/SessionData.java
SessionData.allocateLobForResult
public void allocateLobForResult(ResultLob result, InputStream inputStream) { long resultLobId = result.getLobID(); CountdownInputStream countStream; switch (result.getSubType()) { case ResultLob.LobResultTypes.REQUEST_CREATE_BY...
java
public void allocateLobForResult(ResultLob result, InputStream inputStream) { long resultLobId = result.getLobID(); CountdownInputStream countStream; switch (result.getSubType()) { case ResultLob.LobResultTypes.REQUEST_CREATE_BY...
[ "public", "void", "allocateLobForResult", "(", "ResultLob", "result", ",", "InputStream", "inputStream", ")", "{", "long", "resultLobId", "=", "result", ".", "getLobID", "(", ")", ";", "CountdownInputStream", "countStream", ";", "switch", "(", "result", ".", "ge...
allocate storage for a new LOB
[ "allocate", "storage", "for", "a", "new", "LOB" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/SessionData.java#L426-L487
61,974
VoltDB/voltdb
src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java
AbstractJoinPlanNode.resolveColumnIndexes
@Override public void resolveColumnIndexes() { // First, assert that our topology is sane and then // recursively resolve all child/inline column indexes IndexScanPlanNode index_scan = (IndexScanPlanNode) getInlinePlanNode(PlanNodeType.INDEXSCAN); assert(m_children.si...
java
@Override public void resolveColumnIndexes() { // First, assert that our topology is sane and then // recursively resolve all child/inline column indexes IndexScanPlanNode index_scan = (IndexScanPlanNode) getInlinePlanNode(PlanNodeType.INDEXSCAN); assert(m_children.si...
[ "@", "Override", "public", "void", "resolveColumnIndexes", "(", ")", "{", "// First, assert that our topology is sane and then", "// recursively resolve all child/inline column indexes", "IndexScanPlanNode", "index_scan", "=", "(", "IndexScanPlanNode", ")", "getInlinePlanNode", "("...
order and TVE indexes for the output SchemaColumns.
[ "order", "and", "TVE", "indexes", "for", "the", "output", "SchemaColumns", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java#L193-L252
61,975
VoltDB/voltdb
src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java
AbstractJoinPlanNode.resolveSortDirection
public void resolveSortDirection() { AbstractPlanNode outerTable = m_children.get(0); if (m_joinType == JoinType.FULL) { // Disable the usual optimizations for ordering join output by // outer table only. In case of FULL join, the unmatched inner table tuples // get a...
java
public void resolveSortDirection() { AbstractPlanNode outerTable = m_children.get(0); if (m_joinType == JoinType.FULL) { // Disable the usual optimizations for ordering join output by // outer table only. In case of FULL join, the unmatched inner table tuples // get a...
[ "public", "void", "resolveSortDirection", "(", ")", "{", "AbstractPlanNode", "outerTable", "=", "m_children", ".", "get", "(", "0", ")", ";", "if", "(", "m_joinType", "==", "JoinType", ".", "FULL", ")", "{", "// Disable the usual optimizations for ordering join outp...
right now, only consider the sort direction on the outer table
[ "right", "now", "only", "consider", "the", "sort", "direction", "on", "the", "outer", "table" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java#L284-L297
61,976
VoltDB/voltdb
src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java
AbstractJoinPlanNode.discountEstimatedProcessedTupleCount
protected long discountEstimatedProcessedTupleCount(AbstractPlanNode childNode) { // Discount estimated processed tuple count for the outer child based on the number of // filter expressions this child has with a rapidly diminishing effect // that ranges from a discount of 0.09 (ORETATION_EQAUL)...
java
protected long discountEstimatedProcessedTupleCount(AbstractPlanNode childNode) { // Discount estimated processed tuple count for the outer child based on the number of // filter expressions this child has with a rapidly diminishing effect // that ranges from a discount of 0.09 (ORETATION_EQAUL)...
[ "protected", "long", "discountEstimatedProcessedTupleCount", "(", "AbstractPlanNode", "childNode", ")", "{", "// Discount estimated processed tuple count for the outer child based on the number of", "// filter expressions this child has with a rapidly diminishing effect", "// that ranges from a ...
Discount join node child estimates based on the number of its filters @param childNode @return discounted estimates
[ "Discount", "join", "node", "child", "estimates", "based", "on", "the", "number", "of", "its", "filters" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/plannodes/AbstractJoinPlanNode.java#L404-L445
61,977
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/types/JavaObjectData.java
JavaObjectData.getObject
public Serializable getObject() { try { return InOutUtil.deserialize(data); } catch (Exception e) { throw Error.error(ErrorCode.X_22521, e.toString()); } }
java
public Serializable getObject() { try { return InOutUtil.deserialize(data); } catch (Exception e) { throw Error.error(ErrorCode.X_22521, e.toString()); } }
[ "public", "Serializable", "getObject", "(", ")", "{", "try", "{", "return", "InOutUtil", ".", "deserialize", "(", "data", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "Error", ".", "error", "(", "ErrorCode", ".", "X_22521", ",", "e...
This method is called from classes implementing the JDBC interfaces. Inside the engine it is used for conversion from a value of type OTHER to another type. It will throw if the OTHER is an instance of a classe that is not available.
[ "This", "method", "is", "called", "from", "classes", "implementing", "the", "JDBC", "interfaces", ".", "Inside", "the", "engine", "it", "is", "used", "for", "conversion", "from", "a", "value", "of", "type", "OTHER", "to", "another", "type", ".", "It", "wil...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/types/JavaObjectData.java#L109-L116
61,978
VoltDB/voltdb
third_party/java/src/com/google_voltpatches/common/escape/ArrayBasedEscaperMap.java
ArrayBasedEscaperMap.createReplacementArray
@VisibleForTesting static char[][] createReplacementArray(Map<Character, String> map) { checkNotNull(map); // GWT specific check (do not optimize) if (map.isEmpty()) { return EMPTY_REPLACEMENT_ARRAY; } char max = Collections.max(map.keySet()); char[][] replacements = new char[max + 1][]; ...
java
@VisibleForTesting static char[][] createReplacementArray(Map<Character, String> map) { checkNotNull(map); // GWT specific check (do not optimize) if (map.isEmpty()) { return EMPTY_REPLACEMENT_ARRAY; } char max = Collections.max(map.keySet()); char[][] replacements = new char[max + 1][]; ...
[ "@", "VisibleForTesting", "static", "char", "[", "]", "[", "]", "createReplacementArray", "(", "Map", "<", "Character", ",", "String", ">", "map", ")", "{", "checkNotNull", "(", "map", ")", ";", "// GWT specific check (do not optimize)", "if", "(", "map", ".",...
original character value.
[ "original", "character", "value", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/com/google_voltpatches/common/escape/ArrayBasedEscaperMap.java#L68-L80
61,979
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/jdbc/JDBCParameterMetaData.java
JDBCParameterMetaData.getPrecision
public int getPrecision(int param) throws SQLException { checkRange(param); Type type = rmd.columnTypes[--param]; if (type.isDateTimeType()) { return type.displaySize(); } else { long size = type.precision; if (size > Integer.MAX_VALUE) { ...
java
public int getPrecision(int param) throws SQLException { checkRange(param); Type type = rmd.columnTypes[--param]; if (type.isDateTimeType()) { return type.displaySize(); } else { long size = type.precision; if (size > Integer.MAX_VALUE) { ...
[ "public", "int", "getPrecision", "(", "int", "param", ")", "throws", "SQLException", "{", "checkRange", "(", "param", ")", ";", "Type", "type", "=", "rmd", ".", "columnTypes", "[", "--", "param", "]", ";", "if", "(", "type", ".", "isDateTimeType", "(", ...
Retrieves the designated parameter's specified column size. <P>The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String re...
[ "Retrieves", "the", "designated", "parameter", "s", "specified", "column", "size", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/jdbc/JDBCParameterMetaData.java#L144-L161
61,980
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/jdbc/JDBCParameterMetaData.java
JDBCParameterMetaData.getParameterTypeName
public String getParameterTypeName(int param) throws SQLException { checkRange(param); return rmd.columnTypes[--param].getNameString(); }
java
public String getParameterTypeName(int param) throws SQLException { checkRange(param); return rmd.columnTypes[--param].getNameString(); }
[ "public", "String", "getParameterTypeName", "(", "int", "param", ")", "throws", "SQLException", "{", "checkRange", "(", "param", ")", ";", "return", "rmd", ".", "columnTypes", "[", "--", "param", "]", ".", "getNameString", "(", ")", ";", "}" ]
Retrieves the designated parameter's database-specific type name. @param param the first parameter is 1, the second is 2, ... @return type the name used by the database. If the parameter type is a user-defined type, then a fully-qualified type name is returned. @exception SQLException if a database access error occurs...
[ "Retrieves", "the", "designated", "parameter", "s", "database", "-", "specific", "type", "name", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/jdbc/JDBCParameterMetaData.java#L204-L209
61,981
VoltDB/voltdb
src/frontend/org/voltdb/iv2/JoinProducerBase.java
JoinProducerBase.initializeTaskLog
protected static TaskLog initializeTaskLog(String voltroot, int pid) { // Construct task log and start logging task messages File overflowDir = new File(voltroot, "join_overflow"); return ProClass.newInstanceOf("org.voltdb.rejoin.TaskLogImpl", "Join", ProClass.HANDLER_LOG, pid, ...
java
protected static TaskLog initializeTaskLog(String voltroot, int pid) { // Construct task log and start logging task messages File overflowDir = new File(voltroot, "join_overflow"); return ProClass.newInstanceOf("org.voltdb.rejoin.TaskLogImpl", "Join", ProClass.HANDLER_LOG, pid, ...
[ "protected", "static", "TaskLog", "initializeTaskLog", "(", "String", "voltroot", ",", "int", "pid", ")", "{", "// Construct task log and start logging task messages", "File", "overflowDir", "=", "new", "File", "(", "voltroot", ",", "\"join_overflow\"", ")", ";", "ret...
Load the pro task log
[ "Load", "the", "pro", "task", "log" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/JoinProducerBase.java#L144-L150
61,982
VoltDB/voltdb
src/frontend/org/voltdb/iv2/JoinProducerBase.java
JoinProducerBase.restoreBlock
protected void restoreBlock(RestoreWork rejoinWork, SiteProcedureConnection siteConnection) { kickWatchdog(true); rejoinWork.restore(siteConnection); }
java
protected void restoreBlock(RestoreWork rejoinWork, SiteProcedureConnection siteConnection) { kickWatchdog(true); rejoinWork.restore(siteConnection); }
[ "protected", "void", "restoreBlock", "(", "RestoreWork", "rejoinWork", ",", "SiteProcedureConnection", "siteConnection", ")", "{", "kickWatchdog", "(", "true", ")", ";", "rejoinWork", ".", "restore", "(", "siteConnection", ")", ";", "}" ]
Received a datablock. Reset the watchdog timer and hand the block to the Site.
[ "Received", "a", "datablock", ".", "Reset", "the", "watchdog", "timer", "and", "hand", "the", "block", "to", "the", "Site", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/JoinProducerBase.java#L153-L157
61,983
VoltDB/voltdb
src/frontend/org/voltdb/iv2/JoinProducerBase.java
JoinProducerBase.returnToTaskQueue
protected void returnToTaskQueue(boolean sourcesReady) { if (sourcesReady) { // If we've done something meaningful, go ahead and return ourselves to the queue immediately m_taskQueue.offer(this); } else { // Otherwise, avoid spinning too aggressively, so wait a mi...
java
protected void returnToTaskQueue(boolean sourcesReady) { if (sourcesReady) { // If we've done something meaningful, go ahead and return ourselves to the queue immediately m_taskQueue.offer(this); } else { // Otherwise, avoid spinning too aggressively, so wait a mi...
[ "protected", "void", "returnToTaskQueue", "(", "boolean", "sourcesReady", ")", "{", "if", "(", "sourcesReady", ")", "{", "// If we've done something meaningful, go ahead and return ourselves to the queue immediately", "m_taskQueue", ".", "offer", "(", "this", ")", ";", "}",...
or after waiting a few milliseconds
[ "or", "after", "waiting", "a", "few", "milliseconds" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/JoinProducerBase.java#L199-L208
61,984
VoltDB/voltdb
third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java
ZigZagEncoding.putLong
static void putLong(ByteBuffer buffer, long value) { value = (value << 1) ^ (value >> 63); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value ...
java
static void putLong(ByteBuffer buffer, long value) { value = (value << 1) ^ (value >> 63); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value ...
[ "static", "void", "putLong", "(", "ByteBuffer", "buffer", ",", "long", "value", ")", "{", "value", "=", "(", "value", "<<", "1", ")", "^", "(", "value", ">>", "63", ")", ";", "if", "(", "value", ">>>", "7", "==", "0", ")", "{", "buffer", ".", "...
Writes a long value to the given buffer in LEB128 ZigZag encoded format @param buffer the buffer to write to @param value the value to write to the buffer
[ "Writes", "a", "long", "value", "to", "the", "given", "buffer", "in", "LEB128", "ZigZag", "encoded", "format" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java#L35-L78
61,985
VoltDB/voltdb
third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java
ZigZagEncoding.putInt
static void putInt(ByteBuffer buffer, int value) { value = (value << 1) ^ (value >> 31); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value >>...
java
static void putInt(ByteBuffer buffer, int value) { value = (value << 1) ^ (value >> 31); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value >>...
[ "static", "void", "putInt", "(", "ByteBuffer", "buffer", ",", "int", "value", ")", "{", "value", "=", "(", "value", "<<", "1", ")", "^", "(", "value", ">>", "31", ")", ";", "if", "(", "value", ">>>", "7", "==", "0", ")", "{", "buffer", ".", "pu...
Writes an int value to the given buffer in LEB128-64b9B ZigZag encoded format @param buffer the buffer to write to @param value the value to write to the buffer
[ "Writes", "an", "int", "value", "to", "the", "given", "buffer", "in", "LEB128", "-", "64b9B", "ZigZag", "encoded", "format" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java#L85-L108
61,986
VoltDB/voltdb
third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java
ZigZagEncoding.getLong
static long getLong(ByteBuffer buffer) { long v = buffer.get(); long value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
java
static long getLong(ByteBuffer buffer) { long v = buffer.get(); long value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
[ "static", "long", "getLong", "(", "ByteBuffer", "buffer", ")", "{", "long", "v", "=", "buffer", ".", "get", "(", ")", ";", "long", "value", "=", "v", "&", "0x7F", ";", "if", "(", "(", "v", "&", "0x80", ")", "!=", "0", ")", "{", "v", "=", "buf...
Read an LEB128-64b9B ZigZag encoded long value from the given buffer @param buffer the buffer to read from @return the value read from the buffer
[ "Read", "an", "LEB128", "-", "64b9B", "ZigZag", "encoded", "long", "value", "from", "the", "given", "buffer" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java#L115-L152
61,987
VoltDB/voltdb
third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java
ZigZagEncoding.getInt
static int getInt (ByteBuffer buffer) { int v = buffer.get(); int value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
java
static int getInt (ByteBuffer buffer) { int v = buffer.get(); int value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
[ "static", "int", "getInt", "(", "ByteBuffer", "buffer", ")", "{", "int", "v", "=", "buffer", ".", "get", "(", ")", ";", "int", "value", "=", "v", "&", "0x7F", ";", "if", "(", "(", "v", "&", "0x80", ")", "!=", "0", ")", "{", "v", "=", "buffer"...
Read an LEB128-64b9B ZigZag encoded int value from the given buffer @param buffer the buffer to read from @return the value read from the buffer
[ "Read", "an", "LEB128", "-", "64b9B", "ZigZag", "encoded", "int", "value", "from", "the", "given", "buffer" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/HdrHistogram_voltpatches/ZigZagEncoding.java#L159-L180
61,988
VoltDB/voltdb
src/hsqldb19b3/org/hsqldb_voltpatches/lib/tar/TarReader.java
TarReader.main
static public void main(String[] sa) throws IOException, TarMalformatException { if (sa.length < 1) { System.out.println(RB.singleton.getString(RB.TARREADER_SYNTAX, TarReader.class.getName())); System.out.println(RB.singleton.getString(RB.LISTING_FORMAT)); ...
java
static public void main(String[] sa) throws IOException, TarMalformatException { if (sa.length < 1) { System.out.println(RB.singleton.getString(RB.TARREADER_SYNTAX, TarReader.class.getName())); System.out.println(RB.singleton.getString(RB.LISTING_FORMAT)); ...
[ "static", "public", "void", "main", "(", "String", "[", "]", "sa", ")", "throws", "IOException", ",", "TarMalformatException", "{", "if", "(", "sa", ".", "length", "<", "1", ")", "{", "System", ".", "out", ".", "println", "(", "RB", ".", "singleton", ...
Reads a specified tar file or stdin in order to either list or extract the file tar entries, depending on the first argument being "t" or "x", using default read buffer blocks.
[ "Reads", "a", "specified", "tar", "file", "or", "stdin", "in", "order", "to", "either", "list", "or", "extract", "the", "file", "tar", "entries", "depending", "on", "the", "first", "argument", "being", "t", "or", "x", "using", "default", "read", "buffer", ...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/lib/tar/TarReader.java#L79-L124
61,989
VoltDB/voltdb
src/frontend/org/voltdb/iv2/UniqueIdGenerator.java
UniqueIdGenerator.getDateFromUniqueId
public static Date getDateFromUniqueId(long uniqueId) { long time = uniqueId >> (COUNTER_BITS + PARTITIONID_BITS); time += VOLT_EPOCH; return new Date(time); }
java
public static Date getDateFromUniqueId(long uniqueId) { long time = uniqueId >> (COUNTER_BITS + PARTITIONID_BITS); time += VOLT_EPOCH; return new Date(time); }
[ "public", "static", "Date", "getDateFromUniqueId", "(", "long", "uniqueId", ")", "{", "long", "time", "=", "uniqueId", ">>", "(", "COUNTER_BITS", "+", "PARTITIONID_BITS", ")", ";", "time", "+=", "VOLT_EPOCH", ";", "return", "new", "Date", "(", "time", ")", ...
Given a unique id, return the time of its creation by examining the embedded timestamp. @param uniqueId The unique id value to examine. @return The Date object representing the time this unique id was created.
[ "Given", "a", "unique", "id", "return", "the", "time", "of", "its", "creation", "by", "examining", "the", "embedded", "timestamp", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/UniqueIdGenerator.java#L273-L277
61,990
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/TypeHandler.java
TypeHandler.createObject
public static Object createObject(String classname) throws ParseException { Class<?> cl; try { cl = Class.forName(classname); } catch (ClassNotFoundException cnfe) { throw new ParseException("Unable to find the class: " + classname); }...
java
public static Object createObject(String classname) throws ParseException { Class<?> cl; try { cl = Class.forName(classname); } catch (ClassNotFoundException cnfe) { throw new ParseException("Unable to find the class: " + classname); }...
[ "public", "static", "Object", "createObject", "(", "String", "classname", ")", "throws", "ParseException", "{", "Class", "<", "?", ">", "cl", ";", "try", "{", "cl", "=", "Class", ".", "forName", "(", "classname", ")", ";", "}", "catch", "(", "ClassNotFou...
Create an Object from the classname and empty constructor. @param classname the argument value @return the initialised object @throws ParseException if the class could not be found or the object could not be created
[ "Create", "an", "Object", "from", "the", "classname", "and", "empty", "constructor", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/TypeHandler.java#L113-L134
61,991
VoltDB/voltdb
third_party/java/src/org/apache/commons_voltpatches/cli/TypeHandler.java
TypeHandler.createNumber
public static Number createNumber(String str) throws ParseException { try { if (str.indexOf('.') != -1) { return Double.valueOf(str); } return Long.valueOf(str); } catch (NumberFormatException e) { th...
java
public static Number createNumber(String str) throws ParseException { try { if (str.indexOf('.') != -1) { return Double.valueOf(str); } return Long.valueOf(str); } catch (NumberFormatException e) { th...
[ "public", "static", "Number", "createNumber", "(", "String", "str", ")", "throws", "ParseException", "{", "try", "{", "if", "(", "str", ".", "indexOf", "(", "'", "'", ")", "!=", "-", "1", ")", "{", "return", "Double", ".", "valueOf", "(", "str", ")",...
Create a number from a String. If a . is present, it creates a Double, otherwise a Long. @param str the value @return the number represented by <code>str</code> @throws ParseException if <code>str</code> is not a number
[ "Create", "a", "number", "from", "a", "String", ".", "If", "a", ".", "is", "present", "it", "creates", "a", "Double", "otherwise", "a", "Long", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/commons_voltpatches/cli/TypeHandler.java#L144-L158
61,992
VoltDB/voltdb
third_party/java/src/org/apache/zookeeper_voltpatches/server/ZooKeeperServer.java
ZooKeeperServer.fixupACL
private boolean fixupACL(List<Id> authInfo, List<ACL> acl) { if (skipACL) { return true; } if (acl == null || acl.size() == 0) { return false; } Iterator<ACL> it = acl.iterator(); LinkedList<ACL> toAdd = null; while (it.hasNext()) { ...
java
private boolean fixupACL(List<Id> authInfo, List<ACL> acl) { if (skipACL) { return true; } if (acl == null || acl.size() == 0) { return false; } Iterator<ACL> it = acl.iterator(); LinkedList<ACL> toAdd = null; while (it.hasNext()) { ...
[ "private", "boolean", "fixupACL", "(", "List", "<", "Id", ">", "authInfo", ",", "List", "<", "ACL", ">", "acl", ")", "{", "if", "(", "skipACL", ")", "{", "return", "true", ";", "}", "if", "(", "acl", "==", "null", "||", "acl", ".", "size", "(", ...
This method checks out the acl making sure it isn't null or empty, it has valid schemes and ids, and expanding any relative ids that depend on the requestor's authentication information. @param authInfo list of ACL IDs associated with the client connection @param acl list of ACLs being assigned to the node (create or ...
[ "This", "method", "checks", "out", "the", "acl", "making", "sure", "it", "isn", "t", "null", "or", "empty", "it", "has", "valid", "schemes", "and", "ids", "and", "expanding", "any", "relative", "ids", "that", "depend", "on", "the", "requestor", "s", "aut...
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/org/apache/zookeeper_voltpatches/server/ZooKeeperServer.java#L1141-L1194
61,993
VoltDB/voltdb
src/frontend/org/voltdb/security/AuthenticationRequest.java
AuthenticationRequest.authenticate
public boolean authenticate(ClientAuthScheme scheme, String fromAddress) { if (m_done) throw new IllegalStateException("this authentication request has a result"); boolean authenticated = false; try { authenticated = authenticateImpl(scheme, fromAddress); } catch (Exception e...
java
public boolean authenticate(ClientAuthScheme scheme, String fromAddress) { if (m_done) throw new IllegalStateException("this authentication request has a result"); boolean authenticated = false; try { authenticated = authenticateImpl(scheme, fromAddress); } catch (Exception e...
[ "public", "boolean", "authenticate", "(", "ClientAuthScheme", "scheme", ",", "String", "fromAddress", ")", "{", "if", "(", "m_done", ")", "throw", "new", "IllegalStateException", "(", "\"this authentication request has a result\"", ")", ";", "boolean", "authenticated", ...
Perform the authentication request @param scheme is the type of Hash scheme @param fromAddress is the remote IP address of this authenticate request @return true if authenticated, false if not @throws {@link IllegalStateException} if this request was already made
[ "Perform", "the", "authentication", "request" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/security/AuthenticationRequest.java#L35-L47
61,994
VoltDB/voltdb
examples/nbbo/procedures/nbbo/ProcessTick.java
ProcessTick.run
public long run( String symbol, TimestampType time, long seq_number, String exchange, int bidPrice, int bidSize, int askPrice, int askSize) throws VoltAbortException { // convert bid and ask 0 values to null ...
java
public long run( String symbol, TimestampType time, long seq_number, String exchange, int bidPrice, int bidSize, int askPrice, int askSize) throws VoltAbortException { // convert bid and ask 0 values to null ...
[ "public", "long", "run", "(", "String", "symbol", ",", "TimestampType", "time", ",", "long", "seq_number", ",", "String", "exchange", ",", "int", "bidPrice", ",", "int", "bidSize", ",", "int", "askPrice", ",", "int", "askSize", ")", "throws", "VoltAbortExcep...
"main method" the procedure starts here.
[ "main", "method", "the", "procedure", "starts", "here", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/examples/nbbo/procedures/nbbo/ProcessTick.java#L64-L139
61,995
VoltDB/voltdb
third_party/java/src/com/google_voltpatches/common/collect/ImmutableRangeMap.java
ImmutableRangeMap.builder
public static <K extends Comparable<?>, V> Builder<K, V> builder() { return new Builder<K, V>(); }
java
public static <K extends Comparable<?>, V> Builder<K, V> builder() { return new Builder<K, V>(); }
[ "public", "static", "<", "K", "extends", "Comparable", "<", "?", ">", ",", "V", ">", "Builder", "<", "K", ",", "V", ">", "builder", "(", ")", "{", "return", "new", "Builder", "<", "K", ",", "V", ">", "(", ")", ";", "}" ]
Returns a new builder for an immutable range map.
[ "Returns", "a", "new", "builder", "for", "an", "immutable", "range", "map", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/com/google_voltpatches/common/collect/ImmutableRangeMap.java#L81-L83
61,996
VoltDB/voltdb
src/frontend/org/voltdb/iv2/RepairLog.java
RepairLog.setLeaderState
void setLeaderState(boolean isLeader) { m_isLeader = isLeader; // The leader doesn't truncate its own SP log; if promoted, // wipe out the SP portion of the existing log. This promotion // action always happens after repair is completed. if (m_isLeader) { if (!m_l...
java
void setLeaderState(boolean isLeader) { m_isLeader = isLeader; // The leader doesn't truncate its own SP log; if promoted, // wipe out the SP portion of the existing log. This promotion // action always happens after repair is completed. if (m_isLeader) { if (!m_l...
[ "void", "setLeaderState", "(", "boolean", "isLeader", ")", "{", "m_isLeader", "=", "isLeader", ";", "// The leader doesn't truncate its own SP log; if promoted,", "// wipe out the SP portion of the existing log. This promotion", "// action always happens after repair is completed.", "if"...
leaders log differently
[ "leaders", "log", "differently" ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/RepairLog.java#L140-L151
61,997
VoltDB/voltdb
src/frontend/org/voltdb/iv2/RepairLog.java
RepairLog.deliver
public void deliver(VoltMessage msg) { if (!m_isLeader && msg instanceof Iv2InitiateTaskMessage) { final Iv2InitiateTaskMessage m = (Iv2InitiateTaskMessage) msg; // We can't repair read only SP transactions. Just don't log them to the repair log. if (m.isReadOnly()) { ...
java
public void deliver(VoltMessage msg) { if (!m_isLeader && msg instanceof Iv2InitiateTaskMessage) { final Iv2InitiateTaskMessage m = (Iv2InitiateTaskMessage) msg; // We can't repair read only SP transactions. Just don't log them to the repair log. if (m.isReadOnly()) { ...
[ "public", "void", "deliver", "(", "VoltMessage", "msg", ")", "{", "if", "(", "!", "m_isLeader", "&&", "msg", "instanceof", "Iv2InitiateTaskMessage", ")", "{", "final", "Iv2InitiateTaskMessage", "m", "=", "(", "Iv2InitiateTaskMessage", ")", "msg", ";", "// We can...
the repairLog if the message includes a truncation hint.
[ "the", "repairLog", "if", "the", "message", "includes", "a", "truncation", "hint", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/RepairLog.java#L165-L234
61,998
VoltDB/voltdb
src/frontend/org/voltdb/iv2/RepairLog.java
RepairLog.truncate
private void truncate(long handle, boolean isSP) { // MIN value means no work to do, is a startup condition if (handle == Long.MIN_VALUE) { return; } Deque<RepairLog.Item> deq = null; if (isSP) { deq = m_logSP; if (m_truncationHandle < han...
java
private void truncate(long handle, boolean isSP) { // MIN value means no work to do, is a startup condition if (handle == Long.MIN_VALUE) { return; } Deque<RepairLog.Item> deq = null; if (isSP) { deq = m_logSP; if (m_truncationHandle < han...
[ "private", "void", "truncate", "(", "long", "handle", ",", "boolean", "isSP", ")", "{", "// MIN value means no work to do, is a startup condition", "if", "(", "handle", "==", "Long", ".", "MIN_VALUE", ")", "{", "return", ";", "}", "Deque", "<", "RepairLog", ".",...
trim unnecessary log messages.
[ "trim", "unnecessary", "log", "messages", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/RepairLog.java#L237-L264
61,999
VoltDB/voltdb
src/frontend/org/voltdb/iv2/RepairLog.java
RepairLog.contents
public List<Iv2RepairLogResponseMessage> contents(long requestId, boolean forMPI) { List<Item> items = new LinkedList<Item>(); // All cases include the log of MP transactions items.addAll(m_logMP); // SP repair requests also want the SP transactions if (!forMPI) { ...
java
public List<Iv2RepairLogResponseMessage> contents(long requestId, boolean forMPI) { List<Item> items = new LinkedList<Item>(); // All cases include the log of MP transactions items.addAll(m_logMP); // SP repair requests also want the SP transactions if (!forMPI) { ...
[ "public", "List", "<", "Iv2RepairLogResponseMessage", ">", "contents", "(", "long", "requestId", ",", "boolean", "forMPI", ")", "{", "List", "<", "Item", ">", "items", "=", "new", "LinkedList", "<", "Item", ">", "(", ")", ";", "// All cases include the log of ...
produce the contents of the repair log.
[ "produce", "the", "contents", "of", "the", "repair", "log", "." ]
8afc1031e475835344b5497ea9e7203bc95475ac
https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/iv2/RepairLog.java#L288-L335