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,700 | VoltDB/voltdb | src/frontend/org/voltdb/types/GeographyValue.java | GeographyValue.toWKT | public String toWKT() {
StringBuffer sb = new StringBuffer();
sb.append("POLYGON (");
boolean isFirstLoop = true;
for (List<XYZPoint> loop : m_loops) {
if (!isFirstLoop) {
sb.append(", ");
}
sb.append("(");
int startIdx = ... | java | public String toWKT() {
StringBuffer sb = new StringBuffer();
sb.append("POLYGON (");
boolean isFirstLoop = true;
for (List<XYZPoint> loop : m_loops) {
if (!isFirstLoop) {
sb.append(", ");
}
sb.append("(");
int startIdx = ... | [
"public",
"String",
"toWKT",
"(",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"POLYGON (\"",
")",
";",
"boolean",
"isFirstLoop",
"=",
"true",
";",
"for",
"(",
"List",
"<",
"XYZPoint",
">",
"loo... | Return a representation of this object as well-known text.
@return A well-known text string for this object. | [
"Return",
"a",
"representation",
"of",
"this",
"object",
"as",
"well",
"-",
"known",
"text",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/GeographyValue.java#L252-L281 |
61,701 | VoltDB/voltdb | src/frontend/org/voltdb/types/GeographyValue.java | GeographyValue.getLengthInBytes | public int getLengthInBytes() {
long length = polygonOverheadInBytes();
for (List<XYZPoint> loop : m_loops) {
length += loopLengthInBytes(loop.size());
}
return (int)length;
} | java | public int getLengthInBytes() {
long length = polygonOverheadInBytes();
for (List<XYZPoint> loop : m_loops) {
length += loopLengthInBytes(loop.size());
}
return (int)length;
} | [
"public",
"int",
"getLengthInBytes",
"(",
")",
"{",
"long",
"length",
"=",
"polygonOverheadInBytes",
"(",
")",
";",
"for",
"(",
"List",
"<",
"XYZPoint",
">",
"loop",
":",
"m_loops",
")",
"{",
"length",
"+=",
"loopLengthInBytes",
"(",
"loop",
".",
"size",
... | Return the number of bytes in the serialization for this polygon.
Returned value does not include the 4-byte length prefix that precedes variable-length types.
@return The number of bytes in the serialization for this polygon. | [
"Return",
"the",
"number",
"of",
"bytes",
"in",
"the",
"serialization",
"for",
"this",
"polygon",
".",
"Returned",
"value",
"does",
"not",
"include",
"the",
"4",
"-",
"byte",
"length",
"prefix",
"that",
"precedes",
"variable",
"-",
"length",
"types",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/GeographyValue.java#L361-L368 |
61,702 | VoltDB/voltdb | src/frontend/org/voltdb/types/GeographyValue.java | GeographyValue.diagnoseLoop | private static <T> void diagnoseLoop(List<T> loop, String excpMsgPrf) throws IllegalArgumentException {
if (loop == null) {
throw new IllegalArgumentException(excpMsgPrf + "a polygon must contain at least one ring " +
"(with each ring at least 4 points, including repeated closing... | java | private static <T> void diagnoseLoop(List<T> loop, String excpMsgPrf) throws IllegalArgumentException {
if (loop == null) {
throw new IllegalArgumentException(excpMsgPrf + "a polygon must contain at least one ring " +
"(with each ring at least 4 points, including repeated closing... | [
"private",
"static",
"<",
"T",
">",
"void",
"diagnoseLoop",
"(",
"List",
"<",
"T",
">",
"loop",
",",
"String",
"excpMsgPrf",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"loop",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException"... | A helper function to validate the loop structure
If loop is invalid, it generates IllegalArgumentException exception | [
"A",
"helper",
"function",
"to",
"validate",
"the",
"loop",
"structure",
"If",
"loop",
"is",
"invalid",
"it",
"generates",
"IllegalArgumentException",
"exception"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/GeographyValue.java#L636-L657 |
61,703 | VoltDB/voltdb | src/frontend/org/voltdb/types/GeographyValue.java | GeographyValue.add | @Deprecated
public GeographyValue add(GeographyPointValue offset) {
List<List<GeographyPointValue>> newLoops = new ArrayList<>();
for (List<XYZPoint> oneLoop : m_loops) {
List<GeographyPointValue> loop = new ArrayList<>();
for (XYZPoint p : oneLoop) {
loop.add... | java | @Deprecated
public GeographyValue add(GeographyPointValue offset) {
List<List<GeographyPointValue>> newLoops = new ArrayList<>();
for (List<XYZPoint> oneLoop : m_loops) {
List<GeographyPointValue> loop = new ArrayList<>();
for (XYZPoint p : oneLoop) {
loop.add... | [
"@",
"Deprecated",
"public",
"GeographyValue",
"add",
"(",
"GeographyPointValue",
"offset",
")",
"{",
"List",
"<",
"List",
"<",
"GeographyPointValue",
">>",
"newLoops",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"List",
"<",
"XYZPoint",
">",
... | Create a new GeographyValue which is offset from this one
by the given point. The latitude and longitude values
stay in range because we are using the normalizing operations
in GeographyPointValue.
@param offset The point by which to translate vertices in this
@return The resulting GeographyValue. | [
"Create",
"a",
"new",
"GeographyValue",
"which",
"is",
"offset",
"from",
"this",
"one",
"by",
"the",
"given",
"point",
".",
"The",
"latitude",
"and",
"longitude",
"values",
"stay",
"in",
"range",
"because",
"we",
"are",
"using",
"the",
"normalizing",
"operat... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/GeographyValue.java#L788-L800 |
61,704 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/scriptio/ScriptWriterBase.java | ScriptWriterBase.sync | public void sync() {
if (isClosed) {
return;
}
synchronized (fileStreamOut) {
if (needsSync) {
if (busyWriting) {
forceSync = true;
return;
}
try {
fileStreamOu... | java | public void sync() {
if (isClosed) {
return;
}
synchronized (fileStreamOut) {
if (needsSync) {
if (busyWriting) {
forceSync = true;
return;
}
try {
fileStreamOu... | [
"public",
"void",
"sync",
"(",
")",
"{",
"if",
"(",
"isClosed",
")",
"{",
"return",
";",
"}",
"synchronized",
"(",
"fileStreamOut",
")",
"{",
"if",
"(",
"needsSync",
")",
"{",
"if",
"(",
"busyWriting",
")",
"{",
"forceSync",
"=",
"true",
";",
"return... | Called internally or externally in write delay intervals. | [
"Called",
"internally",
"or",
"externally",
"in",
"write",
"delay",
"intervals",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/scriptio/ScriptWriterBase.java#L180-L208 |
61,705 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/scriptio/ScriptWriterBase.java | ScriptWriterBase.openFile | protected void openFile() {
try {
FileAccess fa = isDump ? FileUtil.getDefaultInstance()
: database.getFileAccess();
OutputStream fos = fa.openOutputStreamElement(outFile);
outDescriptor = fa.getFileSync(fos);
fileStreamO... | java | protected void openFile() {
try {
FileAccess fa = isDump ? FileUtil.getDefaultInstance()
: database.getFileAccess();
OutputStream fos = fa.openOutputStreamElement(outFile);
outDescriptor = fa.getFileSync(fos);
fileStreamO... | [
"protected",
"void",
"openFile",
"(",
")",
"{",
"try",
"{",
"FileAccess",
"fa",
"=",
"isDump",
"?",
"FileUtil",
".",
"getDefaultInstance",
"(",
")",
":",
"database",
".",
"getFileAccess",
"(",
")",
";",
"OutputStream",
"fos",
"=",
"fa",
".",
"openOutputStr... | File is opened in append mode although in current usage the file
never pre-exists | [
"File",
"is",
"opened",
"in",
"append",
"mode",
"although",
"in",
"current",
"usage",
"the",
"file",
"never",
"pre",
"-",
"exists"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/scriptio/ScriptWriterBase.java#L253-L268 |
61,706 | VoltDB/voltdb | src/frontend/org/voltcore/logging/VoltLogger.java | VoltLogger.createRunnableLoggingTask | private Runnable createRunnableLoggingTask(final Level level,
final Object message, final Throwable t) {
// While logging, the logger thread temporarily disguises itself as its caller.
final String callerThreadName = Thread.currentThread().getName();
final Runnable runnableLoggingTa... | java | private Runnable createRunnableLoggingTask(final Level level,
final Object message, final Throwable t) {
// While logging, the logger thread temporarily disguises itself as its caller.
final String callerThreadName = Thread.currentThread().getName();
final Runnable runnableLoggingTa... | [
"private",
"Runnable",
"createRunnableLoggingTask",
"(",
"final",
"Level",
"level",
",",
"final",
"Object",
"message",
",",
"final",
"Throwable",
"t",
")",
"{",
"// While logging, the logger thread temporarily disguises itself as its caller.",
"final",
"String",
"callerThread... | Generate a runnable task that logs one message in an exception-safe way.
@param level
@param message
@param t
@param callerThreadName
@return | [
"Generate",
"a",
"runnable",
"task",
"that",
"logs",
"one",
"message",
"in",
"an",
"exception",
"-",
"safe",
"way",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltcore/logging/VoltLogger.java#L193-L214 |
61,707 | VoltDB/voltdb | src/frontend/org/voltcore/logging/VoltLogger.java | VoltLogger.createRunnableL7dLoggingTask | private Runnable createRunnableL7dLoggingTask(final Level level,
final String key, final Object[] params, final Throwable t) {
// While logging, the logger thread temporarily disguises itself as its caller.
final String callerThreadName = Thread.currentThread().getName();
final Runn... | java | private Runnable createRunnableL7dLoggingTask(final Level level,
final String key, final Object[] params, final Throwable t) {
// While logging, the logger thread temporarily disguises itself as its caller.
final String callerThreadName = Thread.currentThread().getName();
final Runn... | [
"private",
"Runnable",
"createRunnableL7dLoggingTask",
"(",
"final",
"Level",
"level",
",",
"final",
"String",
"key",
",",
"final",
"Object",
"[",
"]",
"params",
",",
"final",
"Throwable",
"t",
")",
"{",
"// While logging, the logger thread temporarily disguises itself ... | Generate a runnable task that logs one localized message in an exception-safe way.
@param level
@param message
@param t
@param callerThreadName
@return | [
"Generate",
"a",
"runnable",
"task",
"that",
"logs",
"one",
"localized",
"message",
"in",
"an",
"exception",
"-",
"safe",
"way",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltcore/logging/VoltLogger.java#L255-L276 |
61,708 | VoltDB/voltdb | src/frontend/org/voltcore/logging/VoltLogger.java | VoltLogger.configure | public static void configure(String xmlConfig, File voltroot) {
try {
Class<?> loggerClz = Class.forName("org.voltcore.logging.VoltLog4jLogger");
assert(loggerClz != null);
Method configureMethod = loggerClz.getMethod("configure", String.class, File.class);
config... | java | public static void configure(String xmlConfig, File voltroot) {
try {
Class<?> loggerClz = Class.forName("org.voltcore.logging.VoltLog4jLogger");
assert(loggerClz != null);
Method configureMethod = loggerClz.getMethod("configure", String.class, File.class);
config... | [
"public",
"static",
"void",
"configure",
"(",
"String",
"xmlConfig",
",",
"File",
"voltroot",
")",
"{",
"try",
"{",
"Class",
"<",
"?",
">",
"loggerClz",
"=",
"Class",
".",
"forName",
"(",
"\"org.voltcore.logging.VoltLog4jLogger\"",
")",
";",
"assert",
"(",
"... | Static method to change the Log4j config globally. This fails
if you're not using Log4j for now.
@param xmlConfig The text of a Log4j config file.
@param voltroot The VoltDB root path | [
"Static",
"method",
"to",
"change",
"the",
"Log4j",
"config",
"globally",
".",
"This",
"fails",
"if",
"you",
"re",
"not",
"using",
"Log4j",
"for",
"now",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltcore/logging/VoltLogger.java#L360-L367 |
61,709 | VoltDB/voltdb | src/catgen/in/javasrc/CatalogMap.java | CatalogMap.get | public T get(String name) {
if (m_items == null) {
return null;
}
return m_items.get(name.toUpperCase());
} | java | public T get(String name) {
if (m_items == null) {
return null;
}
return m_items.get(name.toUpperCase());
} | [
"public",
"T",
"get",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"m_items",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"m_items",
".",
"get",
"(",
"name",
".",
"toUpperCase",
"(",
")",
")",
";",
"}"
] | Get an item from the map by name
@param name The name of the requested CatalogType instance in the map
@return The item found in the map, or null if not found | [
"Get",
"an",
"item",
"from",
"the",
"map",
"by",
"name"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/catgen/in/javasrc/CatalogMap.java#L76-L81 |
61,710 | VoltDB/voltdb | src/catgen/in/javasrc/CatalogMap.java | CatalogMap.iterator | @Override
public Iterator<T> iterator() {
if (m_items == null) {
m_items = new TreeMap<String, T>();
}
return m_items.values().iterator();
} | java | @Override
public Iterator<T> iterator() {
if (m_items == null) {
m_items = new TreeMap<String, T>();
}
return m_items.values().iterator();
} | [
"@",
"Override",
"public",
"Iterator",
"<",
"T",
">",
"iterator",
"(",
")",
"{",
"if",
"(",
"m_items",
"==",
"null",
")",
"{",
"m_items",
"=",
"new",
"TreeMap",
"<",
"String",
",",
"T",
">",
"(",
")",
";",
"}",
"return",
"m_items",
".",
"values",
... | Get an iterator for the items in the map
@return The iterator for the items in the map | [
"Get",
"an",
"iterator",
"for",
"the",
"items",
"in",
"the",
"map"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/catgen/in/javasrc/CatalogMap.java#L133-L139 |
61,711 | VoltDB/voltdb | src/frontend/org/voltdb/planner/QueryPlanner.java | QueryPlanner.validateMigrateStmt | private static void validateMigrateStmt(String sql, VoltXMLElement xmlSQL, Database db) {
final Map<String, String> attributes = xmlSQL.attributes;
assert attributes.size() == 1;
final Table targetTable = db.getTables().get(attributes.get("table"));
assert targetTable != null;
fi... | java | private static void validateMigrateStmt(String sql, VoltXMLElement xmlSQL, Database db) {
final Map<String, String> attributes = xmlSQL.attributes;
assert attributes.size() == 1;
final Table targetTable = db.getTables().get(attributes.get("table"));
assert targetTable != null;
fi... | [
"private",
"static",
"void",
"validateMigrateStmt",
"(",
"String",
"sql",
",",
"VoltXMLElement",
"xmlSQL",
",",
"Database",
"db",
")",
"{",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"attributes",
"=",
"xmlSQL",
".",
"attributes",
";",
"assert",
"att... | Check that "MIGRATE FROM tbl WHERE..." statement is valid.
@param sql SQL statement
@param xmlSQL HSQL parsed tree
@param db database catalog | [
"Check",
"that",
"MIGRATE",
"FROM",
"tbl",
"WHERE",
"...",
"statement",
"is",
"valid",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/QueryPlanner.java#L203-L228 |
61,712 | VoltDB/voltdb | src/frontend/org/voltdb/planner/QueryPlanner.java | QueryPlanner.parameterize | public String parameterize() {
Set<Integer> paramIds = new HashSet<>();
ParameterizationInfo.findUserParametersRecursively(m_xmlSQL, paramIds);
m_adhocUserParamsCount = paramIds.size();
m_paramzInfo = null;
if (paramIds.size() == 0) {
m_paramzInfo = ParameterizationI... | java | public String parameterize() {
Set<Integer> paramIds = new HashSet<>();
ParameterizationInfo.findUserParametersRecursively(m_xmlSQL, paramIds);
m_adhocUserParamsCount = paramIds.size();
m_paramzInfo = null;
if (paramIds.size() == 0) {
m_paramzInfo = ParameterizationI... | [
"public",
"String",
"parameterize",
"(",
")",
"{",
"Set",
"<",
"Integer",
">",
"paramIds",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"ParameterizationInfo",
".",
"findUserParametersRecursively",
"(",
"m_xmlSQL",
",",
"paramIds",
")",
";",
"m_adhocUserParamsCou... | Auto-parameterize all of the literals in the parsed SQL statement.
@return An opaque token representing the parsed statement with (possibly) parameterization. | [
"Auto",
"-",
"parameterize",
"all",
"of",
"the",
"literals",
"in",
"the",
"parsed",
"SQL",
"statement",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/QueryPlanner.java#L265-L285 |
61,713 | VoltDB/voltdb | src/frontend/org/voltdb/planner/QueryPlanner.java | QueryPlanner.plan | public CompiledPlan plan() throws PlanningErrorException {
// reset any error message
m_recentErrorMsg = null;
// what's going to happen next:
// If a parameterized statement exists, try to make a plan with it
// On success return the plan.
// On failure, try the plan... | java | public CompiledPlan plan() throws PlanningErrorException {
// reset any error message
m_recentErrorMsg = null;
// what's going to happen next:
// If a parameterized statement exists, try to make a plan with it
// On success return the plan.
// On failure, try the plan... | [
"public",
"CompiledPlan",
"plan",
"(",
")",
"throws",
"PlanningErrorException",
"{",
"// reset any error message",
"m_recentErrorMsg",
"=",
"null",
";",
"// what's going to happen next:",
"// If a parameterized statement exists, try to make a plan with it",
"// On success return the ... | Get the best plan for the SQL statement given, assuming the given costModel.
@return The best plan found for the SQL statement.
@throws PlanningErrorException on failure. | [
"Get",
"the",
"best",
"plan",
"for",
"the",
"SQL",
"statement",
"given",
"assuming",
"the",
"given",
"costModel",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/QueryPlanner.java#L307-L353 |
61,714 | VoltDB/voltdb | src/frontend/org/voltdb/planner/QueryPlanner.java | QueryPlanner.harmonizeCommonTableSchemas | private void harmonizeCommonTableSchemas(CompiledPlan plan) {
List<AbstractPlanNode> seqScanNodes = plan.rootPlanGraph.findAllNodesOfClass(SeqScanPlanNode.class);
for (AbstractPlanNode planNode : seqScanNodes) {
SeqScanPlanNode seqScanNode = (SeqScanPlanNode)planNode;
StmtCommonT... | java | private void harmonizeCommonTableSchemas(CompiledPlan plan) {
List<AbstractPlanNode> seqScanNodes = plan.rootPlanGraph.findAllNodesOfClass(SeqScanPlanNode.class);
for (AbstractPlanNode planNode : seqScanNodes) {
SeqScanPlanNode seqScanNode = (SeqScanPlanNode)planNode;
StmtCommonT... | [
"private",
"void",
"harmonizeCommonTableSchemas",
"(",
"CompiledPlan",
"plan",
")",
"{",
"List",
"<",
"AbstractPlanNode",
">",
"seqScanNodes",
"=",
"plan",
".",
"rootPlanGraph",
".",
"findAllNodesOfClass",
"(",
"SeqScanPlanNode",
".",
"class",
")",
";",
"for",
"("... | Make sure that schemas in base and recursive plans
in common table scans have identical schemas. This
is important because otherwise we will get data
corruption in the EE. We look for SeqScanPlanNodes,
then look for a common table scan, and ask the scan
node to harmonize its schemas.
@param plan | [
"Make",
"sure",
"that",
"schemas",
"in",
"base",
"and",
"recursive",
"plans",
"in",
"common",
"table",
"scans",
"have",
"identical",
"schemas",
".",
"This",
"is",
"important",
"because",
"otherwise",
"we",
"will",
"get",
"data",
"corruption",
"in",
"the",
"E... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/QueryPlanner.java#L555-L564 |
61,715 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/store/ValuePoolHashMap.java | ValuePoolHashMap.resetCapacity | public void resetCapacity(int newCapacity,
int newPolicy) throws IllegalArgumentException {
if (newCapacity != 0 && hashIndex.elementCount > newCapacity) {
int surplus = hashIndex.elementCount - newCapacity;
surplus += (surplus >> 5);
if (surp... | java | public void resetCapacity(int newCapacity,
int newPolicy) throws IllegalArgumentException {
if (newCapacity != 0 && hashIndex.elementCount > newCapacity) {
int surplus = hashIndex.elementCount - newCapacity;
surplus += (surplus >> 5);
if (surp... | [
"public",
"void",
"resetCapacity",
"(",
"int",
"newCapacity",
",",
"int",
"newPolicy",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"newCapacity",
"!=",
"0",
"&&",
"hashIndex",
".",
"elementCount",
">",
"newCapacity",
")",
"{",
"int",
"surplus",
... | In rare circumstances resetCapacity may not succeed, in which case
capacity remains unchanged but purge policy is set to newPolicy | [
"In",
"rare",
"circumstances",
"resetCapacity",
"may",
"not",
"succeed",
"in",
"which",
"case",
"capacity",
"remains",
"unchanged",
"but",
"purge",
"policy",
"is",
"set",
"to",
"newPolicy"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/store/ValuePoolHashMap.java#L74-L99 |
61,716 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/persist/DataFileCacheSession.java | DataFileCacheSession.initParams | protected void initParams(Database database, String baseFileName) {
fileName = baseFileName + ".data.tmp";
this.database = database;
fa = FileUtil.getDefaultInstance();
int cacheSizeScale = 10;
cacheFileScale = 8;
Error.printSystemOut("cache_size_scale... | java | protected void initParams(Database database, String baseFileName) {
fileName = baseFileName + ".data.tmp";
this.database = database;
fa = FileUtil.getDefaultInstance();
int cacheSizeScale = 10;
cacheFileScale = 8;
Error.printSystemOut("cache_size_scale... | [
"protected",
"void",
"initParams",
"(",
"Database",
"database",
",",
"String",
"baseFileName",
")",
"{",
"fileName",
"=",
"baseFileName",
"+",
"\".data.tmp\"",
";",
"this",
".",
"database",
"=",
"database",
";",
"fa",
"=",
"FileUtil",
".",
"getDefaultInstance",
... | Initial external parameters are set here. The size if fixed. | [
"Initial",
"external",
"parameters",
"are",
"set",
"here",
".",
"The",
"size",
"if",
"fixed",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/persist/DataFileCacheSession.java#L57-L76 |
61,717 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/persist/DataFileCacheSession.java | DataFileCacheSession.close | public synchronized void close(boolean write) {
try {
if (dataFile != null) {
dataFile.close();
dataFile = null;
fa.removeElement(fileName);
}
} catch (Throwable e) {
database.logger.appLog.logContext(e, null);
... | java | public synchronized void close(boolean write) {
try {
if (dataFile != null) {
dataFile.close();
dataFile = null;
fa.removeElement(fileName);
}
} catch (Throwable e) {
database.logger.appLog.logContext(e, null);
... | [
"public",
"synchronized",
"void",
"close",
"(",
"boolean",
"write",
")",
"{",
"try",
"{",
"if",
"(",
"dataFile",
"!=",
"null",
")",
"{",
"dataFile",
".",
"close",
"(",
")",
";",
"dataFile",
"=",
"null",
";",
"fa",
".",
"removeElement",
"(",
"fileName",... | Parameter write is always false. The backing file is simply closed and
deleted. | [
"Parameter",
"write",
"is",
"always",
"false",
".",
"The",
"backing",
"file",
"is",
"simply",
"closed",
"and",
"deleted",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/persist/DataFileCacheSession.java#L110-L128 |
61,718 | VoltDB/voltdb | src/frontend/org/voltdb/planner/microoptimizations/MakeInsertNodesInlineIfPossible.java | MakeInsertNodesInlineIfPossible.recursivelyApply | private AbstractPlanNode recursivelyApply(AbstractPlanNode plan, int childIdx) {
// If this is an insert plan node, then try to
// inline it. There will only ever by one insert
// node, so if we can't inline it we just return the
// given plan.
if (plan instanceof InsertPlanNode... | java | private AbstractPlanNode recursivelyApply(AbstractPlanNode plan, int childIdx) {
// If this is an insert plan node, then try to
// inline it. There will only ever by one insert
// node, so if we can't inline it we just return the
// given plan.
if (plan instanceof InsertPlanNode... | [
"private",
"AbstractPlanNode",
"recursivelyApply",
"(",
"AbstractPlanNode",
"plan",
",",
"int",
"childIdx",
")",
"{",
"// If this is an insert plan node, then try to",
"// inline it. There will only ever by one insert",
"// node, so if we can't inline it we just return the",
"// given p... | This helper function is called when we recurse down the childIdx-th
child of a parent node.
@param plan
@param parentIdx
@return | [
"This",
"helper",
"function",
"is",
"called",
"when",
"we",
"recurse",
"down",
"the",
"childIdx",
"-",
"th",
"child",
"of",
"a",
"parent",
"node",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/microoptimizations/MakeInsertNodesInlineIfPossible.java#L38-L83 |
61,719 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.updateTableNames | static void updateTableNames(List<ParsedColInfo> src, String tblName) {
src.forEach(ci -> ci.updateTableName(tblName, tblName).toTVE(ci.m_index, ci.m_index));
} | java | static void updateTableNames(List<ParsedColInfo> src, String tblName) {
src.forEach(ci -> ci.updateTableName(tblName, tblName).toTVE(ci.m_index, ci.m_index));
} | [
"static",
"void",
"updateTableNames",
"(",
"List",
"<",
"ParsedColInfo",
">",
"src",
",",
"String",
"tblName",
")",
"{",
"src",
".",
"forEach",
"(",
"ci",
"->",
"ci",
".",
"updateTableName",
"(",
"tblName",
",",
"tblName",
")",
".",
"toTVE",
"(",
"ci",
... | table names. | [
"table",
"names",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L170-L172 |
61,720 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.rewriteAsMV | ParsedSelectStmt rewriteAsMV(Table view) {
m_groupByColumns.clear();
m_distinctGroupByColumns = null;
m_groupByExpressions.clear();
m_distinctProjectSchema = null;
m_distinct = m_hasAggregateExpression = m_hasComplexGroupby = m_hasComplexAgg = false;
// Resets paramsBy* f... | java | ParsedSelectStmt rewriteAsMV(Table view) {
m_groupByColumns.clear();
m_distinctGroupByColumns = null;
m_groupByExpressions.clear();
m_distinctProjectSchema = null;
m_distinct = m_hasAggregateExpression = m_hasComplexGroupby = m_hasComplexAgg = false;
// Resets paramsBy* f... | [
"ParsedSelectStmt",
"rewriteAsMV",
"(",
"Table",
"view",
")",
"{",
"m_groupByColumns",
".",
"clear",
"(",
")",
";",
"m_distinctGroupByColumns",
"=",
"null",
";",
"m_groupByExpressions",
".",
"clear",
"(",
")",
";",
"m_distinctProjectSchema",
"=",
"null",
";",
"m... | Updates miscellaneous fields as part of rewriting as materialized view. | [
"Updates",
"miscellaneous",
"fields",
"as",
"part",
"of",
"rewriting",
"as",
"materialized",
"view",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L186-L208 |
61,721 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.generateStmtTableScan | public StmtTargetTableScan generateStmtTableScan(Table view) {
StmtTargetTableScan st = new StmtTargetTableScan(view);
m_displayColumns.forEach(ci -> st.resolveTVE((TupleValueExpression)(ci.m_expression)));
defineTableScanByAlias(view.getTypeName(), st);
return st;
} | java | public StmtTargetTableScan generateStmtTableScan(Table view) {
StmtTargetTableScan st = new StmtTargetTableScan(view);
m_displayColumns.forEach(ci -> st.resolveTVE((TupleValueExpression)(ci.m_expression)));
defineTableScanByAlias(view.getTypeName(), st);
return st;
} | [
"public",
"StmtTargetTableScan",
"generateStmtTableScan",
"(",
"Table",
"view",
")",
"{",
"StmtTargetTableScan",
"st",
"=",
"new",
"StmtTargetTableScan",
"(",
"view",
")",
";",
"m_displayColumns",
".",
"forEach",
"(",
"ci",
"->",
"st",
".",
"resolveTVE",
"(",
"(... | Generate table scan, and add the scan to m_tableAliasMap | [
"Generate",
"table",
"scan",
"and",
"add",
"the",
"scan",
"to",
"m_tableAliasMap"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L211-L216 |
61,722 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.switchOptimalSuiteForAvgPushdown | public void switchOptimalSuiteForAvgPushdown () {
m_displayColumns = m_avgPushdownDisplayColumns;
m_aggResultColumns = m_avgPushdownAggResultColumns;
m_groupByColumns = m_avgPushdownGroupByColumns;
m_distinctGroupByColumns = m_avgPushdownDistinctGroupByColumns;
m_orderColumns = m... | java | public void switchOptimalSuiteForAvgPushdown () {
m_displayColumns = m_avgPushdownDisplayColumns;
m_aggResultColumns = m_avgPushdownAggResultColumns;
m_groupByColumns = m_avgPushdownGroupByColumns;
m_distinctGroupByColumns = m_avgPushdownDistinctGroupByColumns;
m_orderColumns = m... | [
"public",
"void",
"switchOptimalSuiteForAvgPushdown",
"(",
")",
"{",
"m_displayColumns",
"=",
"m_avgPushdownDisplayColumns",
";",
"m_aggResultColumns",
"=",
"m_avgPushdownAggResultColumns",
";",
"m_groupByColumns",
"=",
"m_avgPushdownGroupByColumns",
";",
"m_distinctGroupByColumn... | Switch the optimal set for pushing down AVG | [
"Switch",
"the",
"optimal",
"set",
"for",
"pushing",
"down",
"AVG"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L397-L407 |
61,723 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.prepareMVBasedQueryFix | private void prepareMVBasedQueryFix() {
// ENG-5386: Edge cases query returning correct answers with
// aggregation push down does not need reAggregation work.
if (m_hasComplexGroupby) {
m_mvFixInfo.setEdgeCaseQueryNoFixNeeded(false);
}
// Handle joined query case c... | java | private void prepareMVBasedQueryFix() {
// ENG-5386: Edge cases query returning correct answers with
// aggregation push down does not need reAggregation work.
if (m_hasComplexGroupby) {
m_mvFixInfo.setEdgeCaseQueryNoFixNeeded(false);
}
// Handle joined query case c... | [
"private",
"void",
"prepareMVBasedQueryFix",
"(",
")",
"{",
"// ENG-5386: Edge cases query returning correct answers with",
"// aggregation push down does not need reAggregation work.",
"if",
"(",
"m_hasComplexGroupby",
")",
"{",
"m_mvFixInfo",
".",
"setEdgeCaseQueryNoFixNeeded",
"("... | Prepare for the mv based distributed query fix only if it might be required. | [
"Prepare",
"for",
"the",
"mv",
"based",
"distributed",
"query",
"fix",
"only",
"if",
"it",
"might",
"be",
"required",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L412-L442 |
61,724 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.placeTVEsinColumns | private void placeTVEsinColumns () {
// Build the association between the table column with its index
Map<AbstractExpression, Integer> aggTableIndexMap = new HashMap<>();
Map<Integer, ParsedColInfo> indexToColumnMap = new HashMap<>();
int index = 0;
for (ParsedColInfo col : m_agg... | java | private void placeTVEsinColumns () {
// Build the association between the table column with its index
Map<AbstractExpression, Integer> aggTableIndexMap = new HashMap<>();
Map<Integer, ParsedColInfo> indexToColumnMap = new HashMap<>();
int index = 0;
for (ParsedColInfo col : m_agg... | [
"private",
"void",
"placeTVEsinColumns",
"(",
")",
"{",
"// Build the association between the table column with its index",
"Map",
"<",
"AbstractExpression",
",",
"Integer",
">",
"aggTableIndexMap",
"=",
"new",
"HashMap",
"<>",
"(",
")",
";",
"Map",
"<",
"Integer",
",... | Generate new output Schema and Place TVEs for display columns if needed.
Place TVEs for order by columns always. | [
"Generate",
"new",
"output",
"Schema",
"and",
"Place",
"TVEs",
"for",
"display",
"columns",
"if",
"needed",
".",
"Place",
"TVEs",
"for",
"order",
"by",
"columns",
"always",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L535-L583 |
61,725 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.insertAggExpressionsToAggResultColumns | private void insertAggExpressionsToAggResultColumns (
List<AbstractExpression> aggColumns, ParsedColInfo cookedCol) {
for (AbstractExpression expr: aggColumns) {
assert(expr instanceof AggregateExpression);
if (expr.hasSubquerySubexpression()) {
throw new Plan... | java | private void insertAggExpressionsToAggResultColumns (
List<AbstractExpression> aggColumns, ParsedColInfo cookedCol) {
for (AbstractExpression expr: aggColumns) {
assert(expr instanceof AggregateExpression);
if (expr.hasSubquerySubexpression()) {
throw new Plan... | [
"private",
"void",
"insertAggExpressionsToAggResultColumns",
"(",
"List",
"<",
"AbstractExpression",
">",
"aggColumns",
",",
"ParsedColInfo",
"cookedCol",
")",
"{",
"for",
"(",
"AbstractExpression",
"expr",
":",
"aggColumns",
")",
"{",
"assert",
"(",
"expr",
"instan... | ParseDisplayColumns and ParseOrderColumns will call this function
to add Aggregation expressions to aggResultColumns
@param aggColumns
@param cookedCol | [
"ParseDisplayColumns",
"and",
"ParseOrderColumns",
"will",
"call",
"this",
"function",
"to",
"add",
"Aggregation",
"expressions",
"to",
"aggResultColumns"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L643-L680 |
61,726 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.insertToColumnList | private static void insertToColumnList(
List<ParsedColInfo> columnList, List<ParsedColInfo> newCols) {
for (ParsedColInfo col : newCols) {
if (!columnList.contains(col)) {
columnList.add(col);
}
}
} | java | private static void insertToColumnList(
List<ParsedColInfo> columnList, List<ParsedColInfo> newCols) {
for (ParsedColInfo col : newCols) {
if (!columnList.contains(col)) {
columnList.add(col);
}
}
} | [
"private",
"static",
"void",
"insertToColumnList",
"(",
"List",
"<",
"ParsedColInfo",
">",
"columnList",
",",
"List",
"<",
"ParsedColInfo",
">",
"newCols",
")",
"{",
"for",
"(",
"ParsedColInfo",
"col",
":",
"newCols",
")",
"{",
"if",
"(",
"!",
"columnList",
... | Concat elements to the XXXColumns list | [
"Concat",
"elements",
"to",
"the",
"XXXColumns",
"list"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L699-L706 |
61,727 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.findAllTVEs | private void findAllTVEs(
AbstractExpression expr, List<TupleValueExpression> tveList) {
if (!isNewtoColumnList(m_aggResultColumns, expr)) {
return;
}
if (expr instanceof TupleValueExpression) {
tveList.add((TupleValueExpression) expr.clone());
re... | java | private void findAllTVEs(
AbstractExpression expr, List<TupleValueExpression> tveList) {
if (!isNewtoColumnList(m_aggResultColumns, expr)) {
return;
}
if (expr instanceof TupleValueExpression) {
tveList.add((TupleValueExpression) expr.clone());
re... | [
"private",
"void",
"findAllTVEs",
"(",
"AbstractExpression",
"expr",
",",
"List",
"<",
"TupleValueExpression",
">",
"tveList",
")",
"{",
"if",
"(",
"!",
"isNewtoColumnList",
"(",
"m_aggResultColumns",
",",
"expr",
")",
")",
"{",
"return",
";",
"}",
"if",
"("... | Find all TVEs except inside of AggregationExpression
@param expr
@param tveList | [
"Find",
"all",
"TVEs",
"except",
"inside",
"of",
"AggregationExpression"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L723-L747 |
61,728 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.verifyWindowFunctionExpressions | private void verifyWindowFunctionExpressions() {
// Check for windowed expressions.
if (m_windowFunctionExpressions.size() > 0) {
if (m_windowFunctionExpressions.size() > 1) {
throw new PlanningErrorException(
"Only one windowed function call may appea... | java | private void verifyWindowFunctionExpressions() {
// Check for windowed expressions.
if (m_windowFunctionExpressions.size() > 0) {
if (m_windowFunctionExpressions.size() > 1) {
throw new PlanningErrorException(
"Only one windowed function call may appea... | [
"private",
"void",
"verifyWindowFunctionExpressions",
"(",
")",
"{",
"// Check for windowed expressions.",
"if",
"(",
"m_windowFunctionExpressions",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"if",
"(",
"m_windowFunctionExpressions",
".",
"size",
"(",
")",
">",
"1... | Verify the validity of the windowed expressions.
@return | [
"Verify",
"the",
"validity",
"of",
"the",
"windowed",
"expressions",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L978-L1052 |
61,729 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.canPushdownLimit | private boolean canPushdownLimit() {
boolean limitCanPushdown = (m_limitOffset.hasLimit() && !m_distinct);
if (limitCanPushdown) {
for (ParsedColInfo col : m_displayColumns) {
AbstractExpression rootExpr = col.m_expression;
if (rootExpr instanceof AggregateExp... | java | private boolean canPushdownLimit() {
boolean limitCanPushdown = (m_limitOffset.hasLimit() && !m_distinct);
if (limitCanPushdown) {
for (ParsedColInfo col : m_displayColumns) {
AbstractExpression rootExpr = col.m_expression;
if (rootExpr instanceof AggregateExp... | [
"private",
"boolean",
"canPushdownLimit",
"(",
")",
"{",
"boolean",
"limitCanPushdown",
"=",
"(",
"m_limitOffset",
".",
"hasLimit",
"(",
")",
"&&",
"!",
"m_distinct",
")",
";",
"if",
"(",
"limitCanPushdown",
")",
"{",
"for",
"(",
"ParsedColInfo",
"col",
":",... | Check if the LimitPlanNode can be pushed down.
The LimitPlanNode may have a LIMIT clause only,
OFFSET clause only, or both.
Offset only cannot be pushed down.
@return | [
"Check",
"if",
"the",
"LimitPlanNode",
"can",
"be",
"pushed",
"down",
".",
"The",
"LimitPlanNode",
"may",
"have",
"a",
"LIMIT",
"clause",
"only",
"OFFSET",
"clause",
"only",
"or",
"both",
".",
"Offset",
"only",
"cannot",
"be",
"pushed",
"down",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L1306-L1320 |
61,730 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.isValidJoinOrder | private boolean isValidJoinOrder(List<String> tableAliases) {
assert(m_joinTree != null);
// Split the original tree into the sub-trees
// having the same join type for all nodes
List<JoinNode> subTrees = m_joinTree.extractSubTrees();
// For a sub-tree with inner joins only, an... | java | private boolean isValidJoinOrder(List<String> tableAliases) {
assert(m_joinTree != null);
// Split the original tree into the sub-trees
// having the same join type for all nodes
List<JoinNode> subTrees = m_joinTree.extractSubTrees();
// For a sub-tree with inner joins only, an... | [
"private",
"boolean",
"isValidJoinOrder",
"(",
"List",
"<",
"String",
">",
"tableAliases",
")",
"{",
"assert",
"(",
"m_joinTree",
"!=",
"null",
")",
";",
"// Split the original tree into the sub-trees",
"// having the same join type for all nodes",
"List",
"<",
"JoinNode"... | Validate the specified join order against the join tree.
In general, outer joins are not associative and commutative.
Not all orders are valid.
In case of a valid join order, the initial join tree is
rebuilt to match the specified order
@param tables list of table aliases(or tables) to join
@return true if the join ord... | [
"Validate",
"the",
"specified",
"join",
"order",
"against",
"the",
"join",
"tree",
".",
"In",
"general",
"outer",
"joins",
"are",
"not",
"associative",
"and",
"commutative",
".",
"Not",
"all",
"orders",
"are",
"valid",
".",
"In",
"case",
"of",
"a",
"valid"... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L1712-L1801 |
61,731 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.isOrderDeterministic | @Override
public boolean isOrderDeterministic() {
if ( ! hasTopLevelScans()) {
// This currently applies to parent queries that do all their
// scanning in subqueries and so take on the order determinism of
// their subqueries. This might have to be rethought to allow
... | java | @Override
public boolean isOrderDeterministic() {
if ( ! hasTopLevelScans()) {
// This currently applies to parent queries that do all their
// scanning in subqueries and so take on the order determinism of
// their subqueries. This might have to be rethought to allow
... | [
"@",
"Override",
"public",
"boolean",
"isOrderDeterministic",
"(",
")",
"{",
"if",
"(",
"!",
"hasTopLevelScans",
"(",
")",
")",
"{",
"// This currently applies to parent queries that do all their",
"// scanning in subqueries and so take on the order determinism of",
"// their sub... | Returns true if this select statement can be proved to always produce
its result rows in the same order every time that it is executed. | [
"Returns",
"true",
"if",
"this",
"select",
"statement",
"can",
"be",
"proved",
"to",
"always",
"produce",
"its",
"result",
"rows",
"in",
"the",
"same",
"order",
"every",
"time",
"that",
"it",
"is",
"executed",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L2001-L2057 |
61,732 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.orderByColumnsDetermineAllDisplayColumnsForUnion | public boolean orderByColumnsDetermineAllDisplayColumnsForUnion(
List<ParsedColInfo> orderColumns) {
Set<AbstractExpression> orderExprs = new HashSet<>();
for (ParsedColInfo col : orderColumns) {
orderExprs.add(col.m_expression);
}
for (ParsedColInfo col : m_disp... | java | public boolean orderByColumnsDetermineAllDisplayColumnsForUnion(
List<ParsedColInfo> orderColumns) {
Set<AbstractExpression> orderExprs = new HashSet<>();
for (ParsedColInfo col : orderColumns) {
orderExprs.add(col.m_expression);
}
for (ParsedColInfo col : m_disp... | [
"public",
"boolean",
"orderByColumnsDetermineAllDisplayColumnsForUnion",
"(",
"List",
"<",
"ParsedColInfo",
">",
"orderColumns",
")",
"{",
"Set",
"<",
"AbstractExpression",
">",
"orderExprs",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"for",
"(",
"ParsedColInfo",
... | This is a very simple version of the above method for when an ORDER BY
clause appears on a UNION. Does the ORDER BY clause reference every item
on the display list? If so, then the order is deterministic.
Note that in this method we don't do more sophisticated analysis
(like using value equivalence, or knowledge of ... | [
"This",
"is",
"a",
"very",
"simple",
"version",
"of",
"the",
"above",
"method",
"for",
"when",
"an",
"ORDER",
"BY",
"clause",
"appears",
"on",
"a",
"UNION",
".",
"Does",
"the",
"ORDER",
"BY",
"clause",
"reference",
"every",
"item",
"on",
"the",
"display"... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L2262-L2276 |
61,733 | VoltDB/voltdb | src/frontend/org/voltdb/planner/ParsedSelectStmt.java | ParsedSelectStmt.isPartitionColumnInWindowedAggregatePartitionByList | public boolean isPartitionColumnInWindowedAggregatePartitionByList() {
if (getWindowFunctionExpressions().size() == 0) {
return false;
}
// We can't really have more than one Windowed Aggregate Expression.
// If we ever do, this should fail gracelessly.
assert(getWind... | java | public boolean isPartitionColumnInWindowedAggregatePartitionByList() {
if (getWindowFunctionExpressions().size() == 0) {
return false;
}
// We can't really have more than one Windowed Aggregate Expression.
// If we ever do, this should fail gracelessly.
assert(getWind... | [
"public",
"boolean",
"isPartitionColumnInWindowedAggregatePartitionByList",
"(",
")",
"{",
"if",
"(",
"getWindowFunctionExpressions",
"(",
")",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"return",
"false",
";",
"}",
"// We can't really have more than one Windowed Aggre... | Return true iff all the windowed partition expressions
have a table partition column in their partition by list,
and if there is one such windowed partition expression.
If there are no windowed expressions, we return false.
Note that there can only be one windowed
expression currently, so this is more general than it n... | [
"Return",
"true",
"iff",
"all",
"the",
"windowed",
"partition",
"expressions",
"have",
"a",
"table",
"partition",
"column",
"in",
"their",
"partition",
"by",
"list",
"and",
"if",
"there",
"is",
"one",
"such",
"windowed",
"partition",
"expression",
".",
"If",
... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/planner/ParsedSelectStmt.java#L2540-L2579 |
61,734 | VoltDB/voltdb | src/frontend/org/voltdb/utils/PolygonFactory.java | PolygonFactory.CreateRegularConvex | @Deprecated
public static GeographyValue CreateRegularConvex(
GeographyPointValue center,
GeographyPointValue firstVertex,
int numVertices,
double sizeOfHole) {
assert(0 <= sizeOfHole && sizeOfHole < 1.0);
double phi = 360.0/numVertices;
Geogra... | java | @Deprecated
public static GeographyValue CreateRegularConvex(
GeographyPointValue center,
GeographyPointValue firstVertex,
int numVertices,
double sizeOfHole) {
assert(0 <= sizeOfHole && sizeOfHole < 1.0);
double phi = 360.0/numVertices;
Geogra... | [
"@",
"Deprecated",
"public",
"static",
"GeographyValue",
"CreateRegularConvex",
"(",
"GeographyPointValue",
"center",
",",
"GeographyPointValue",
"firstVertex",
",",
"int",
"numVertices",
",",
"double",
"sizeOfHole",
")",
"{",
"assert",
"(",
"0",
"<=",
"sizeOfHole",
... | Create a regular convex polygon, with an optional hole.
Note that the resulting polygon will be symmetric around any line
through the center and a vertex. Consequently, the centroid of such
a polygon must be the center of the polygon.
@param center The center of the polygon.
@param firstVertex The coordinates of the... | [
"Create",
"a",
"regular",
"convex",
"polygon",
"with",
"an",
"optional",
"hole",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/utils/PolygonFactory.java#L44-L80 |
61,735 | VoltDB/voltdb | src/frontend/org/voltdb/utils/PolygonFactory.java | PolygonFactory.reverseLoops | @Deprecated
public static GeographyValue reverseLoops(GeographyValue goodPolygon) {
List<List<GeographyPointValue>> newLoops = new ArrayList<>();
List<List<GeographyPointValue>> oldLoops = goodPolygon.getRings();
for (List<GeographyPointValue> loop : oldLoops) {
// Copy loop, but... | java | @Deprecated
public static GeographyValue reverseLoops(GeographyValue goodPolygon) {
List<List<GeographyPointValue>> newLoops = new ArrayList<>();
List<List<GeographyPointValue>> oldLoops = goodPolygon.getRings();
for (List<GeographyPointValue> loop : oldLoops) {
// Copy loop, but... | [
"@",
"Deprecated",
"public",
"static",
"GeographyValue",
"reverseLoops",
"(",
"GeographyValue",
"goodPolygon",
")",
"{",
"List",
"<",
"List",
"<",
"GeographyPointValue",
">>",
"newLoops",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"List",
"<",
"List",
"<",
... | Reverse all the loops in a polygon. Don't change the
order of the loops, just reverse each loop.
This is useful for testing a malformed polygon.
@param goodPolygon
@return | [
"Reverse",
"all",
"the",
"loops",
"in",
"a",
"polygon",
".",
"Don",
"t",
"change",
"the",
"order",
"of",
"the",
"loops",
"just",
"reverse",
"each",
"loop",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/utils/PolygonFactory.java#L195-L211 |
61,736 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.grant | public void grant(String granteeName, String roleName, Grantee grantor) {
Grantee grantee = get(granteeName);
if (grantee == null) {
throw Error.error(ErrorCode.X_28501, granteeName);
}
if (isImmutable(granteeName)) {
throw Error.error(ErrorCode.X_28502, grante... | java | public void grant(String granteeName, String roleName, Grantee grantor) {
Grantee grantee = get(granteeName);
if (grantee == null) {
throw Error.error(ErrorCode.X_28501, granteeName);
}
if (isImmutable(granteeName)) {
throw Error.error(ErrorCode.X_28502, grante... | [
"public",
"void",
"grant",
"(",
"String",
"granteeName",
",",
"String",
"roleName",
",",
"Grantee",
"grantor",
")",
"{",
"Grantee",
"grantee",
"=",
"get",
"(",
"granteeName",
")",
";",
"if",
"(",
"grantee",
"==",
"null",
")",
"{",
"throw",
"Error",
".",
... | Grant a role to this Grantee. | [
"Grant",
"a",
"role",
"to",
"this",
"Grantee",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L250-L293 |
61,737 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.revoke | public void revoke(String granteeName, String roleName, Grantee grantor) {
if (!grantor.isAdmin()) {
throw Error.error(ErrorCode.X_42507);
}
Grantee grantee = get(granteeName);
if (grantee == null) {
throw Error.error(ErrorCode.X_28000, granteeName);
}
... | java | public void revoke(String granteeName, String roleName, Grantee grantor) {
if (!grantor.isAdmin()) {
throw Error.error(ErrorCode.X_42507);
}
Grantee grantee = get(granteeName);
if (grantee == null) {
throw Error.error(ErrorCode.X_28000, granteeName);
}
... | [
"public",
"void",
"revoke",
"(",
"String",
"granteeName",
",",
"String",
"roleName",
",",
"Grantee",
"grantor",
")",
"{",
"if",
"(",
"!",
"grantor",
".",
"isAdmin",
"(",
")",
")",
"{",
"throw",
"Error",
".",
"error",
"(",
"ErrorCode",
".",
"X_42507",
"... | Revoke a role from a Grantee | [
"Revoke",
"a",
"role",
"from",
"a",
"Grantee"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L340-L360 |
61,738 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.removeEmptyRole | void removeEmptyRole(Grantee role) {
for (int i = 0; i < map.size(); i++) {
Grantee grantee = (Grantee) map.get(i);
grantee.roles.remove(role);
}
} | java | void removeEmptyRole(Grantee role) {
for (int i = 0; i < map.size(); i++) {
Grantee grantee = (Grantee) map.get(i);
grantee.roles.remove(role);
}
} | [
"void",
"removeEmptyRole",
"(",
"Grantee",
"role",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"map",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Grantee",
"grantee",
"=",
"(",
"Grantee",
")",
"map",
".",
"get",
"(",
"i",
... | Removes a role without any privileges from all grantees | [
"Removes",
"a",
"role",
"without",
"any",
"privileges",
"from",
"all",
"grantees"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L410-L417 |
61,739 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.removeDbObject | public void removeDbObject(HsqlName name) {
for (int i = 0; i < map.size(); i++) {
Grantee g = (Grantee) map.get(i);
g.revokeDbObject(name);
}
} | java | public void removeDbObject(HsqlName name) {
for (int i = 0; i < map.size(); i++) {
Grantee g = (Grantee) map.get(i);
g.revokeDbObject(name);
}
} | [
"public",
"void",
"removeDbObject",
"(",
"HsqlName",
"name",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"map",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Grantee",
"g",
"=",
"(",
"Grantee",
")",
"map",
".",
"get",
"(",
... | Removes all rights mappings for the database object identified by
the dbobject argument from all Grantee objects in the set. | [
"Removes",
"all",
"rights",
"mappings",
"for",
"the",
"database",
"object",
"identified",
"by",
"the",
"dbobject",
"argument",
"from",
"all",
"Grantee",
"objects",
"in",
"the",
"set",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L423-L430 |
61,740 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.updateAllRights | void updateAllRights(Grantee role) {
for (int i = 0; i < map.size(); i++) {
Grantee grantee = (Grantee) map.get(i);
if (grantee.isRole) {
grantee.updateNestedRoles(role);
}
}
for (int i = 0; i < map.size(); i++) {
Grantee grantee... | java | void updateAllRights(Grantee role) {
for (int i = 0; i < map.size(); i++) {
Grantee grantee = (Grantee) map.get(i);
if (grantee.isRole) {
grantee.updateNestedRoles(role);
}
}
for (int i = 0; i < map.size(); i++) {
Grantee grantee... | [
"void",
"updateAllRights",
"(",
"Grantee",
"role",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"map",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Grantee",
"grantee",
"=",
"(",
"Grantee",
")",
"map",
".",
"get",
"(",
"i",
... | First updates all ROLE Grantee objects. Then updates all USER Grantee
Objects. | [
"First",
"updates",
"all",
"ROLE",
"Grantee",
"objects",
".",
"Then",
"updates",
"all",
"USER",
"Grantee",
"Objects",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L451-L468 |
61,741 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java | GranteeManager.getRole | public Grantee getRole(String name) {
Grantee g = (Grantee) roleMap.get(name);
if (g == null) {
throw Error.error(ErrorCode.X_0P000, name);
}
return g;
} | java | public Grantee getRole(String name) {
Grantee g = (Grantee) roleMap.get(name);
if (g == null) {
throw Error.error(ErrorCode.X_0P000, name);
}
return g;
} | [
"public",
"Grantee",
"getRole",
"(",
"String",
"name",
")",
"{",
"Grantee",
"g",
"=",
"(",
"Grantee",
")",
"roleMap",
".",
"get",
"(",
"name",
")",
";",
"if",
"(",
"g",
"==",
"null",
")",
"{",
"throw",
"Error",
".",
"error",
"(",
"ErrorCode",
".",
... | Returns Grantee for the named Role | [
"Returns",
"Grantee",
"for",
"the",
"named",
"Role"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/rights/GranteeManager.java#L635-L644 |
61,742 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java | TextTable.connect | private void connect(Session session, boolean withReadOnlyData) {
// Open new cache:
if ((dataSource.length() == 0) || isConnected) {
// nothing to do
return;
}
PersistentStore store =
database.persistentStoreCollection.getStore(this);
this... | java | private void connect(Session session, boolean withReadOnlyData) {
// Open new cache:
if ((dataSource.length() == 0) || isConnected) {
// nothing to do
return;
}
PersistentStore store =
database.persistentStoreCollection.getStore(this);
this... | [
"private",
"void",
"connect",
"(",
"Session",
"session",
",",
"boolean",
"withReadOnlyData",
")",
"{",
"// Open new cache:",
"if",
"(",
"(",
"dataSource",
".",
"length",
"(",
")",
"==",
"0",
")",
"||",
"isConnected",
")",
"{",
"// nothing to do",
"return",
"... | connects to the data source | [
"connects",
"to",
"the",
"data",
"source"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java#L85-L156 |
61,743 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java | TextTable.disconnect | public void disconnect() {
this.store = null;
PersistentStore store =
database.persistentStoreCollection.getStore(this);
store.release();
isConnected = false;
} | java | public void disconnect() {
this.store = null;
PersistentStore store =
database.persistentStoreCollection.getStore(this);
store.release();
isConnected = false;
} | [
"public",
"void",
"disconnect",
"(",
")",
"{",
"this",
".",
"store",
"=",
"null",
";",
"PersistentStore",
"store",
"=",
"database",
".",
"persistentStoreCollection",
".",
"getStore",
"(",
"this",
")",
";",
"store",
".",
"release",
"(",
")",
";",
"isConnect... | disconnects from the data source | [
"disconnects",
"from",
"the",
"data",
"source"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java#L161-L171 |
61,744 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java | TextTable.openCache | private void openCache(Session session, String dataSourceNew,
boolean isReversedNew, boolean isReadOnlyNew) {
String dataSourceOld = dataSource;
boolean isReversedOld = isReversed;
boolean isReadOnlyOld = isReadOnly;
if (dataSourceNew == null) {
... | java | private void openCache(Session session, String dataSourceNew,
boolean isReversedNew, boolean isReadOnlyNew) {
String dataSourceOld = dataSource;
boolean isReversedOld = isReversed;
boolean isReadOnlyOld = isReadOnly;
if (dataSourceNew == null) {
... | [
"private",
"void",
"openCache",
"(",
"Session",
"session",
",",
"String",
"dataSourceNew",
",",
"boolean",
"isReversedNew",
",",
"boolean",
"isReadOnlyNew",
")",
"{",
"String",
"dataSourceOld",
"=",
"dataSource",
";",
"boolean",
"isReversedOld",
"=",
"isReversed",
... | This method does some of the work involved with managing the creation
and openning of the cache, the rest is done in Log.java and
TextCache.java.
Better clarification of the role of the methods is needed. | [
"This",
"method",
"does",
"some",
"of",
"the",
"work",
"involved",
"with",
"managing",
"the",
"creation",
"and",
"openning",
"of",
"the",
"cache",
"the",
"rest",
"is",
"done",
"in",
"Log",
".",
"java",
"and",
"TextCache",
".",
"java",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java#L180-L206 |
61,745 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java | TextTable.setDataSource | protected void setDataSource(Session session, String dataSourceNew,
boolean isReversedNew, boolean createFile) {
if (getTableType() == Table.TEMP_TEXT_TABLE) {
;
} else {
session.getGrantee().checkSchemaUpdateOrGrantRights(
getSch... | java | protected void setDataSource(Session session, String dataSourceNew,
boolean isReversedNew, boolean createFile) {
if (getTableType() == Table.TEMP_TEXT_TABLE) {
;
} else {
session.getGrantee().checkSchemaUpdateOrGrantRights(
getSch... | [
"protected",
"void",
"setDataSource",
"(",
"Session",
"session",
",",
"String",
"dataSourceNew",
",",
"boolean",
"isReversedNew",
",",
"boolean",
"createFile",
")",
"{",
"if",
"(",
"getTableType",
"(",
")",
"==",
"Table",
".",
"TEMP_TEXT_TABLE",
")",
"{",
";",... | High level command to assign a data source to the table definition.
Reassigns only if the data source or direction has changed. | [
"High",
"level",
"command",
"to",
"assign",
"a",
"data",
"source",
"to",
"the",
"table",
"definition",
".",
"Reassigns",
"only",
"if",
"the",
"data",
"source",
"or",
"direction",
"has",
"changed",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java#L212-L238 |
61,746 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java | TextTable.checkDataReadOnly | void checkDataReadOnly() {
if (dataSource.length() == 0) {
throw Error.error(ErrorCode.TEXT_TABLE_UNKNOWN_DATA_SOURCE);
}
if (isReadOnly) {
throw Error.error(ErrorCode.DATA_IS_READONLY);
}
} | java | void checkDataReadOnly() {
if (dataSource.length() == 0) {
throw Error.error(ErrorCode.TEXT_TABLE_UNKNOWN_DATA_SOURCE);
}
if (isReadOnly) {
throw Error.error(ErrorCode.DATA_IS_READONLY);
}
} | [
"void",
"checkDataReadOnly",
"(",
")",
"{",
"if",
"(",
"dataSource",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"throw",
"Error",
".",
"error",
"(",
"ErrorCode",
".",
"TEXT_TABLE_UNKNOWN_DATA_SOURCE",
")",
";",
"}",
"if",
"(",
"isReadOnly",
")",
"{",
... | Used by INSERT, DELETE, UPDATE operations. This class will return
a more appropriate message when there is no data source. | [
"Used",
"by",
"INSERT",
"DELETE",
"UPDATE",
"operations",
".",
"This",
"class",
"will",
"return",
"a",
"more",
"appropriate",
"message",
"when",
"there",
"is",
"no",
"data",
"source",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/TextTable.java#L280-L289 |
61,747 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.addBatch | @Override
public void addBatch() throws SQLException
{
checkClosed();
if (this.Query.isOfType(VoltSQL.TYPE_EXEC,VoltSQL.TYPE_SELECT)) {
throw SQLError.get(SQLError.ILLEGAL_STATEMENT, this.Query.toSqlString());
}
this.addBatch(this.Query.getExecutableQuery(this.paramet... | java | @Override
public void addBatch() throws SQLException
{
checkClosed();
if (this.Query.isOfType(VoltSQL.TYPE_EXEC,VoltSQL.TYPE_SELECT)) {
throw SQLError.get(SQLError.ILLEGAL_STATEMENT, this.Query.toSqlString());
}
this.addBatch(this.Query.getExecutableQuery(this.paramet... | [
"@",
"Override",
"public",
"void",
"addBatch",
"(",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"if",
"(",
"this",
".",
"Query",
".",
"isOfType",
"(",
"VoltSQL",
".",
"TYPE_EXEC",
",",
"VoltSQL",
".",
"TYPE_SELECT",
")",
")",
"{",
... | Adds a set of parameters to this PreparedStatement object's batch of commands. | [
"Adds",
"a",
"set",
"of",
"parameters",
"to",
"this",
"PreparedStatement",
"object",
"s",
"batch",
"of",
"commands",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L86-L95 |
61,748 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.execute | @Override
public boolean execute() throws SQLException
{
checkClosed();
boolean result = this.execute(this.Query.getExecutableQuery(this.parameters));
this.parameters = this.Query.getParameterArray();
return result;
} | java | @Override
public boolean execute() throws SQLException
{
checkClosed();
boolean result = this.execute(this.Query.getExecutableQuery(this.parameters));
this.parameters = this.Query.getParameterArray();
return result;
} | [
"@",
"Override",
"public",
"boolean",
"execute",
"(",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"boolean",
"result",
"=",
"this",
".",
"execute",
"(",
"this",
".",
"Query",
".",
"getExecutableQuery",
"(",
"this",
".",
"parameters",
... | Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement. | [
"Executes",
"the",
"SQL",
"statement",
"in",
"this",
"PreparedStatement",
"object",
"which",
"may",
"be",
"any",
"kind",
"of",
"SQL",
"statement",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L106-L113 |
61,749 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.executeQuery | @Override
public ResultSet executeQuery() throws SQLException
{
checkClosed();
if (!this.Query.isOfType(VoltSQL.TYPE_EXEC,VoltSQL.TYPE_SELECT)) {
throw SQLError.get(SQLError.ILLEGAL_STATEMENT, this.Query.toSqlString());
}
ResultSet result = this.executeQuery(this.Quer... | java | @Override
public ResultSet executeQuery() throws SQLException
{
checkClosed();
if (!this.Query.isOfType(VoltSQL.TYPE_EXEC,VoltSQL.TYPE_SELECT)) {
throw SQLError.get(SQLError.ILLEGAL_STATEMENT, this.Query.toSqlString());
}
ResultSet result = this.executeQuery(this.Quer... | [
"@",
"Override",
"public",
"ResultSet",
"executeQuery",
"(",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"if",
"(",
"!",
"this",
".",
"Query",
".",
"isOfType",
"(",
"VoltSQL",
".",
"TYPE_EXEC",
",",
"VoltSQL",
".",
"TYPE_SELECT",
")",... | Executes the SQL query in this PreparedStatement object and returns the ResultSet object generated by the query. | [
"Executes",
"the",
"SQL",
"query",
"in",
"this",
"PreparedStatement",
"object",
"and",
"returns",
"the",
"ResultSet",
"object",
"generated",
"by",
"the",
"query",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L116-L126 |
61,750 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setArray | @Override
public void setArray(int parameterIndex, Array x) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | java | @Override
public void setArray(int parameterIndex, Array x) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"void",
"setArray",
"(",
"int",
"parameterIndex",
",",
"Array",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"
] | Sets the designated parameter to the given java.sql.Array object. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"java",
".",
"sql",
".",
"Array",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L158-L163 |
61,751 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setByte | @Override
public void setByte(int parameterIndex, byte x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setByte(int parameterIndex, byte x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setByte",
"(",
"int",
"parameterIndex",
",",
"byte",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
"... | Sets the designated parameter to the given Java byte value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"byte",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L254-L259 |
61,752 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setBytes | @Override
public void setBytes(int parameterIndex, byte[] x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setBytes(int parameterIndex, byte[] x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setBytes",
"(",
"int",
"parameterIndex",
",",
"byte",
"[",
"]",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
... | Sets the designated parameter to the given Java array of bytes. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"array",
"of",
"bytes",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L262-L267 |
61,753 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setCharacterStream | @Override
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | java | @Override
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"void",
"setCharacterStream",
"(",
"int",
"parameterIndex",
",",
"Reader",
"reader",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"... | Sets the designated parameter to the given Reader object. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Reader",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L270-L275 |
61,754 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setDouble | @Override
public void setDouble(int parameterIndex, double x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setDouble(int parameterIndex, double x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setDouble",
"(",
"int",
"parameterIndex",
",",
"double",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",... | Sets the designated parameter to the given Java double value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"double",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L334-L339 |
61,755 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setFloat | @Override
public void setFloat(int parameterIndex, float x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = (double) x;
} | java | @Override
public void setFloat(int parameterIndex, float x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = (double) x;
} | [
"@",
"Override",
"public",
"void",
"setFloat",
"(",
"int",
"parameterIndex",
",",
"float",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
... | Sets the designated parameter to the given Java float value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"float",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L342-L347 |
61,756 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setInt | @Override
public void setInt(int parameterIndex, int x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setInt(int parameterIndex, int x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setInt",
"(",
"int",
"parameterIndex",
",",
"int",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
"x"... | Sets the designated parameter to the given Java int value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"int",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L350-L355 |
61,757 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setLong | @Override
public void setLong(int parameterIndex, long x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setLong(int parameterIndex, long x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setLong",
"(",
"int",
"parameterIndex",
",",
"long",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
"... | Sets the designated parameter to the given Java long value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"long",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L358-L363 |
61,758 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setNString | @Override
public void setNString(int parameterIndex, String value) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | java | @Override
public void setNString(int parameterIndex, String value) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"void",
"setNString",
"(",
"int",
"parameterIndex",
",",
"String",
"value",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"
] | Sets the designated paramter to the given String object. | [
"Sets",
"the",
"designated",
"paramter",
"to",
"the",
"given",
"String",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L406-L411 |
61,759 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setNull | @Override
public void setNull(int parameterIndex, int sqlType) throws SQLException
{
checkParameterBounds(parameterIndex);
switch(sqlType)
{
case Types.TINYINT:
this.parameters[parameterIndex-1] = VoltType.NULL_TINYINT;
break;
case ... | java | @Override
public void setNull(int parameterIndex, int sqlType) throws SQLException
{
checkParameterBounds(parameterIndex);
switch(sqlType)
{
case Types.TINYINT:
this.parameters[parameterIndex-1] = VoltType.NULL_TINYINT;
break;
case ... | [
"@",
"Override",
"public",
"void",
"setNull",
"(",
"int",
"parameterIndex",
",",
"int",
"sqlType",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"switch",
"(",
"sqlType",
")",
"{",
"case",
"Types",
".",
"TINYINT",... | Sets the designated parameter to SQL NULL. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"SQL",
"NULL",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L414-L451 |
61,760 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setObject | @Override
public void setObject(int parameterIndex, Object x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setObject(int parameterIndex, Object x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setObject",
"(",
"int",
"parameterIndex",
",",
"Object",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",... | Sets the value of the designated parameter using the given object. | [
"Sets",
"the",
"value",
"of",
"the",
"designated",
"parameter",
"using",
"the",
"given",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L461-L466 |
61,761 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setShort | @Override
public void setShort(int parameterIndex, short x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | java | @Override
public void setShort(int parameterIndex, short x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x;
} | [
"@",
"Override",
"public",
"void",
"setShort",
"(",
"int",
"parameterIndex",
",",
"short",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
... | Sets the designated parameter to the given Java short value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"Java",
"short",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L534-L539 |
61,762 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setTimestamp | @Override
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | java | @Override
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException
{
checkParameterBounds(parameterIndex);
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"void",
"setTimestamp",
"(",
"int",
"parameterIndex",
",",
"Timestamp",
"x",
",",
"Calendar",
"cal",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(... | Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"java",
".",
"sql",
".",
"Timestamp",
"value",
"using",
"the",
"given",
"Calendar",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L582-L587 |
61,763 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java | JDBC4PreparedStatement.setURL | @Override
public void setURL(int parameterIndex, URL x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x == null ? VoltType.NULL_STRING_OR_VARBINARY : x.toString();
} | java | @Override
public void setURL(int parameterIndex, URL x) throws SQLException
{
checkParameterBounds(parameterIndex);
this.parameters[parameterIndex-1] = x == null ? VoltType.NULL_STRING_OR_VARBINARY : x.toString();
} | [
"@",
"Override",
"public",
"void",
"setURL",
"(",
"int",
"parameterIndex",
",",
"URL",
"x",
")",
"throws",
"SQLException",
"{",
"checkParameterBounds",
"(",
"parameterIndex",
")",
";",
"this",
".",
"parameters",
"[",
"parameterIndex",
"-",
"1",
"]",
"=",
"x"... | Sets the designated parameter to the given java.net.URL value. | [
"Sets",
"the",
"designated",
"parameter",
"to",
"the",
"given",
"java",
".",
"net",
".",
"URL",
"value",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4PreparedStatement.java#L599-L604 |
61,764 | VoltDB/voltdb | src/frontend/org/voltdb/importer/AbstractImporterFactory.java | AbstractImporterFactory.createImporter | public final AbstractImporter createImporter(ImporterConfig config)
{
AbstractImporter importer = create(config);
importer.setImportServerAdapter(m_importServerAdapter);
return importer;
} | java | public final AbstractImporter createImporter(ImporterConfig config)
{
AbstractImporter importer = create(config);
importer.setImportServerAdapter(m_importServerAdapter);
return importer;
} | [
"public",
"final",
"AbstractImporter",
"createImporter",
"(",
"ImporterConfig",
"config",
")",
"{",
"AbstractImporter",
"importer",
"=",
"create",
"(",
"config",
")",
";",
"importer",
".",
"setImportServerAdapter",
"(",
"m_importServerAdapter",
")",
";",
"return",
"... | Method that is used by the importer framework classes to create
an importer instance and wire it correctly for use within the server.
@param config configuration information required to create an importer instance
@return importer instance created for the given configuration | [
"Method",
"that",
"is",
"used",
"by",
"the",
"importer",
"framework",
"classes",
"to",
"create",
"an",
"importer",
"instance",
"and",
"wire",
"it",
"correctly",
"for",
"use",
"within",
"the",
"server",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/importer/AbstractImporterFactory.java#L75-L80 |
61,765 | VoltDB/voltdb | src/frontend/org/voltdb/types/VoltDecimalHelper.java | VoltDecimalHelper.expandToLength16 | private static final byte[] expandToLength16(byte scaledValue[], final boolean isNegative) {
if (scaledValue.length == 16) {
return scaledValue;
}
byte replacement[] = new byte[16];
if (isNegative) {
Arrays.fill(replacement, (byte)-1);
}
int shift ... | java | private static final byte[] expandToLength16(byte scaledValue[], final boolean isNegative) {
if (scaledValue.length == 16) {
return scaledValue;
}
byte replacement[] = new byte[16];
if (isNegative) {
Arrays.fill(replacement, (byte)-1);
}
int shift ... | [
"private",
"static",
"final",
"byte",
"[",
"]",
"expandToLength16",
"(",
"byte",
"scaledValue",
"[",
"]",
",",
"final",
"boolean",
"isNegative",
")",
"{",
"if",
"(",
"scaledValue",
".",
"length",
"==",
"16",
")",
"{",
"return",
"scaledValue",
";",
"}",
"... | Converts BigInteger's byte representation containing a scaled magnitude to a fixed size 16 byte array
and set the sign in the most significant byte's most significant bit.
@param scaledValue Scaled twos complement representation of the decimal
@param isNegative Determines whether the sign bit is set
@return | [
"Converts",
"BigInteger",
"s",
"byte",
"representation",
"containing",
"a",
"scaled",
"magnitude",
"to",
"a",
"fixed",
"size",
"16",
"byte",
"array",
"and",
"set",
"the",
"sign",
"in",
"the",
"most",
"significant",
"byte",
"s",
"most",
"significant",
"bit",
... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/VoltDecimalHelper.java#L162-L175 |
61,766 | VoltDB/voltdb | src/frontend/org/voltdb/types/VoltDecimalHelper.java | VoltDecimalHelper.deserializeBigDecimalFromString | public static BigDecimal deserializeBigDecimalFromString(String decimal) throws IOException
{
if (decimal == null) {
return null;
}
BigDecimal bd = new BigDecimal(decimal);
// if the scale is too large, check for trailing zeros
if (bd.scale() > kDefaultScale) {
... | java | public static BigDecimal deserializeBigDecimalFromString(String decimal) throws IOException
{
if (decimal == null) {
return null;
}
BigDecimal bd = new BigDecimal(decimal);
// if the scale is too large, check for trailing zeros
if (bd.scale() > kDefaultScale) {
... | [
"public",
"static",
"BigDecimal",
"deserializeBigDecimalFromString",
"(",
"String",
"decimal",
")",
"throws",
"IOException",
"{",
"if",
"(",
"decimal",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"BigDecimal",
"bd",
"=",
"new",
"BigDecimal",
"(",
"deci... | Deserialize a Volt fixed precision and scale 16-byte decimal from a String representation
@param decimal <code>String</code> representation of the decimal | [
"Deserialize",
"a",
"Volt",
"fixed",
"precision",
"and",
"scale",
"16",
"-",
"byte",
"decimal",
"from",
"a",
"String",
"representation"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/types/VoltDecimalHelper.java#L268-L290 |
61,767 | VoltDB/voltdb | src/frontend/org/voltdb/utils/Collector.java | Collector.isFileModifiedInCollectionPeriod | private static boolean isFileModifiedInCollectionPeriod(File file){
long diff = m_currentTimeMillis - file.lastModified();
if(diff >= 0) {
return TimeUnit.MILLISECONDS.toDays(diff)+1 <= m_config.days;
}
return false;
} | java | private static boolean isFileModifiedInCollectionPeriod(File file){
long diff = m_currentTimeMillis - file.lastModified();
if(diff >= 0) {
return TimeUnit.MILLISECONDS.toDays(diff)+1 <= m_config.days;
}
return false;
} | [
"private",
"static",
"boolean",
"isFileModifiedInCollectionPeriod",
"(",
"File",
"file",
")",
"{",
"long",
"diff",
"=",
"m_currentTimeMillis",
"-",
"file",
".",
"lastModified",
"(",
")",
";",
"if",
"(",
"diff",
">=",
"0",
")",
"{",
"return",
"TimeUnit",
".",... | value of diff = 0 indicates current day | [
"value",
"of",
"diff",
"=",
"0",
"indicates",
"current",
"day"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/utils/Collector.java#L420-L426 |
61,768 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/ExpressionValue.java | ExpressionValue.voltMutateToBigintType | public static boolean voltMutateToBigintType(Expression maybeConstantNode, Expression parent, int childIndex) {
if (maybeConstantNode.opType == OpTypes.VALUE
&& maybeConstantNode.dataType != null
&& maybeConstantNode.dataType.isBinaryType()) {
ExpressionValue exprVal ... | java | public static boolean voltMutateToBigintType(Expression maybeConstantNode, Expression parent, int childIndex) {
if (maybeConstantNode.opType == OpTypes.VALUE
&& maybeConstantNode.dataType != null
&& maybeConstantNode.dataType.isBinaryType()) {
ExpressionValue exprVal ... | [
"public",
"static",
"boolean",
"voltMutateToBigintType",
"(",
"Expression",
"maybeConstantNode",
",",
"Expression",
"parent",
",",
"int",
"childIndex",
")",
"{",
"if",
"(",
"maybeConstantNode",
".",
"opType",
"==",
"OpTypes",
".",
"VALUE",
"&&",
"maybeConstantNode",... | Given a ExpressionValue that is a VARBINARY constant,
convert it to a BIGINT constant. Returns true for a
successful conversion and false otherwise.
For more details on how the conversion is performed, see BinaryData.toLong().
@param parent Reference of parent expression
@param childIndex Index of this node in... | [
"Given",
"a",
"ExpressionValue",
"that",
"is",
"a",
"VARBINARY",
"constant",
"convert",
"it",
"to",
"a",
"BIGINT",
"constant",
".",
"Returns",
"true",
"for",
"a",
"successful",
"conversion",
"and",
"false",
"otherwise",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/ExpressionValue.java#L116-L131 |
61,769 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.getFKStatement | private void getFKStatement(StringBuffer a) {
if (!getName().isReservedName()) {
a.append(Tokens.T_CONSTRAINT).append(' ');
a.append(getName().statementName);
a.append(' ');
}
a.append(Tokens.T_FOREIGN).append(' ').append(Tokens.T_KEY);
int[] col = ... | java | private void getFKStatement(StringBuffer a) {
if (!getName().isReservedName()) {
a.append(Tokens.T_CONSTRAINT).append(' ');
a.append(getName().statementName);
a.append(' ');
}
a.append(Tokens.T_FOREIGN).append(' ').append(Tokens.T_KEY);
int[] col = ... | [
"private",
"void",
"getFKStatement",
"(",
"StringBuffer",
"a",
")",
"{",
"if",
"(",
"!",
"getName",
"(",
")",
".",
"isReservedName",
"(",
")",
")",
"{",
"a",
".",
"append",
"(",
"Tokens",
".",
"T_CONSTRAINT",
")",
".",
"append",
"(",
"'",
"'",
")",
... | Generates the foreign key declaration for a given Constraint object. | [
"Generates",
"the",
"foreign",
"key",
"declaration",
"for",
"a",
"given",
"Constraint",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L407-L438 |
61,770 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.getColumnList | private static void getColumnList(Table t, int[] col, int len,
StringBuffer a) {
a.append('(');
for (int i = 0; i < len; i++) {
a.append(t.getColumn(col[i]).getName().statementName);
if (i < len - 1) {
a.append(',');
... | java | private static void getColumnList(Table t, int[] col, int len,
StringBuffer a) {
a.append('(');
for (int i = 0; i < len; i++) {
a.append(t.getColumn(col[i]).getName().statementName);
if (i < len - 1) {
a.append(',');
... | [
"private",
"static",
"void",
"getColumnList",
"(",
"Table",
"t",
",",
"int",
"[",
"]",
"col",
",",
"int",
"len",
",",
"StringBuffer",
"a",
")",
"{",
"a",
".",
"append",
"(",
"'",
"'",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
... | Generates the column definitions for a table. | [
"Generates",
"the",
"column",
"definitions",
"for",
"a",
"table",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L443-L457 |
61,771 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.getActionString | private static String getActionString(int action) {
switch (action) {
case Constraint.RESTRICT :
return Tokens.T_RESTRICT;
case Constraint.CASCADE :
return Tokens.T_CASCADE;
case Constraint.SET_DEFAULT :
return Tokens.T_SET ... | java | private static String getActionString(int action) {
switch (action) {
case Constraint.RESTRICT :
return Tokens.T_RESTRICT;
case Constraint.CASCADE :
return Tokens.T_CASCADE;
case Constraint.SET_DEFAULT :
return Tokens.T_SET ... | [
"private",
"static",
"String",
"getActionString",
"(",
"int",
"action",
")",
"{",
"switch",
"(",
"action",
")",
"{",
"case",
"Constraint",
".",
"RESTRICT",
":",
"return",
"Tokens",
".",
"T_RESTRICT",
";",
"case",
"Constraint",
".",
"CASCADE",
":",
"return",
... | Returns the foreign key action rule. | [
"Returns",
"the",
"foreign",
"key",
"action",
"rule",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L513-L532 |
61,772 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.isUniqueWithColumns | boolean isUniqueWithColumns(int[] cols) {
if (constType != UNIQUE || core.mainCols.length != cols.length) {
return false;
}
return ArrayUtil.haveEqualSets(core.mainCols, cols, cols.length);
} | java | boolean isUniqueWithColumns(int[] cols) {
if (constType != UNIQUE || core.mainCols.length != cols.length) {
return false;
}
return ArrayUtil.haveEqualSets(core.mainCols, cols, cols.length);
} | [
"boolean",
"isUniqueWithColumns",
"(",
"int",
"[",
"]",
"cols",
")",
"{",
"if",
"(",
"constType",
"!=",
"UNIQUE",
"||",
"core",
".",
"mainCols",
".",
"length",
"!=",
"cols",
".",
"length",
")",
"{",
"return",
"false",
";",
"}",
"return",
"ArrayUtil",
"... | Compares this with another constraint column set. This is used only for
UNIQUE constraints. | [
"Compares",
"this",
"with",
"another",
"constraint",
"column",
"set",
".",
"This",
"is",
"used",
"only",
"for",
"UNIQUE",
"constraints",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L705-L712 |
61,773 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.isEquivalent | boolean isEquivalent(Table mainTable, int[] mainCols, Table refTable,
int[] refCols) {
if (constType != Constraint.MAIN
&& constType != Constraint.FOREIGN_KEY) {
return false;
}
if (mainTable != core.mainTable || refTable != core.refTable) {... | java | boolean isEquivalent(Table mainTable, int[] mainCols, Table refTable,
int[] refCols) {
if (constType != Constraint.MAIN
&& constType != Constraint.FOREIGN_KEY) {
return false;
}
if (mainTable != core.mainTable || refTable != core.refTable) {... | [
"boolean",
"isEquivalent",
"(",
"Table",
"mainTable",
",",
"int",
"[",
"]",
"mainCols",
",",
"Table",
"refTable",
",",
"int",
"[",
"]",
"refCols",
")",
"{",
"if",
"(",
"constType",
"!=",
"Constraint",
".",
"MAIN",
"&&",
"constType",
"!=",
"Constraint",
"... | Compares this with another constraint column set. This implementation
only checks FOREIGN KEY constraints. | [
"Compares",
"this",
"with",
"another",
"constraint",
"column",
"set",
".",
"This",
"implementation",
"only",
"checks",
"FOREIGN",
"KEY",
"constraints",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L718-L732 |
61,774 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.updateTable | void updateTable(Session session, Table oldTable, Table newTable,
int colIndex, int adjust) {
if (oldTable == core.mainTable) {
core.mainTable = newTable;
if (core.mainIndex != null) {
core.mainIndex =
core.mainTable.getIndex(cor... | java | void updateTable(Session session, Table oldTable, Table newTable,
int colIndex, int adjust) {
if (oldTable == core.mainTable) {
core.mainTable = newTable;
if (core.mainIndex != null) {
core.mainIndex =
core.mainTable.getIndex(cor... | [
"void",
"updateTable",
"(",
"Session",
"session",
",",
"Table",
"oldTable",
",",
"Table",
"newTable",
",",
"int",
"colIndex",
",",
"int",
"adjust",
")",
"{",
"if",
"(",
"oldTable",
"==",
"core",
".",
"mainTable",
")",
"{",
"core",
".",
"mainTable",
"=",
... | Used to update constrains to reflect structural changes in a table. Prior
checks must ensure that this method does not throw.
@param session Session
@param oldTable reference to the old version of the table
@param newTable referenct to the new version of the table
@param colIndex index at which table column is added o... | [
"Used",
"to",
"update",
"constrains",
"to",
"reflect",
"structural",
"changes",
"in",
"a",
"table",
".",
"Prior",
"checks",
"must",
"ensure",
"that",
"this",
"method",
"does",
"not",
"throw",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L745-L774 |
61,775 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.checkInsert | void checkInsert(Session session, Table table, Object[] row) {
switch (constType) {
case CHECK :
if (!isNotNull) {
checkCheckConstraint(session, table, row);
}
return;
case FOREIGN_KEY :
PersistentSto... | java | void checkInsert(Session session, Table table, Object[] row) {
switch (constType) {
case CHECK :
if (!isNotNull) {
checkCheckConstraint(session, table, row);
}
return;
case FOREIGN_KEY :
PersistentSto... | [
"void",
"checkInsert",
"(",
"Session",
"session",
",",
"Table",
"table",
",",
"Object",
"[",
"]",
"row",
")",
"{",
"switch",
"(",
"constType",
")",
"{",
"case",
"CHECK",
":",
"if",
"(",
"!",
"isNotNull",
")",
"{",
"checkCheckConstraint",
"(",
"session",
... | Checks for foreign key or check constraint violation when
inserting a row into the child table. | [
"Checks",
"for",
"foreign",
"key",
"or",
"check",
"constraint",
"violation",
"when",
"inserting",
"a",
"row",
"into",
"the",
"child",
"table",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L780-L830 |
61,776 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.checkHasMainRef | boolean checkHasMainRef(Session session, Object[] row) {
if (ArrayUtil.hasNull(row, core.refCols)) {
return false;
}
PersistentStore store =
session.sessionData.getRowStore(core.mainTable);
boolean exists = core.mainIndex.exists(session, store, row,
... | java | boolean checkHasMainRef(Session session, Object[] row) {
if (ArrayUtil.hasNull(row, core.refCols)) {
return false;
}
PersistentStore store =
session.sessionData.getRowStore(core.mainTable);
boolean exists = core.mainIndex.exists(session, store, row,
... | [
"boolean",
"checkHasMainRef",
"(",
"Session",
"session",
",",
"Object",
"[",
"]",
"row",
")",
"{",
"if",
"(",
"ArrayUtil",
".",
"hasNull",
"(",
"row",
",",
"core",
".",
"refCols",
")",
")",
"{",
"return",
"false",
";",
"}",
"PersistentStore",
"store",
... | For the candidate table row, finds any referring node in the main table.
This is used to check referential integrity when updating a node. We
have to make sure that the main table still holds a valid main record.
returns true If a valid row is found, false if there are null in the data
Otherwise a 'INTEGRITY VIOLATION'... | [
"For",
"the",
"candidate",
"table",
"row",
"finds",
"any",
"referring",
"node",
"in",
"the",
"main",
"table",
".",
"This",
"is",
"used",
"to",
"check",
"referential",
"integrity",
"when",
"updating",
"a",
"node",
".",
"We",
"have",
"to",
"make",
"sure",
... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L923-L943 |
61,777 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java | Constraint.checkReferencedRows | void checkReferencedRows(Session session, Table table, int[] rowColArray) {
Index mainIndex = getMainIndex();
PersistentStore store = session.sessionData.getRowStore(table);
RowIterator it = table.rowIterator(session);
while (true) {
Row row = it.ge... | java | void checkReferencedRows(Session session, Table table, int[] rowColArray) {
Index mainIndex = getMainIndex();
PersistentStore store = session.sessionData.getRowStore(table);
RowIterator it = table.rowIterator(session);
while (true) {
Row row = it.ge... | [
"void",
"checkReferencedRows",
"(",
"Session",
"session",
",",
"Table",
"table",
",",
"int",
"[",
"]",
"rowColArray",
")",
"{",
"Index",
"mainIndex",
"=",
"getMainIndex",
"(",
")",
";",
"PersistentStore",
"store",
"=",
"session",
".",
"sessionData",
".",
"ge... | Check used before creating a new foreign key cosntraint, this method
checks all rows of a table to ensure they all have a corresponding
row in the main table. | [
"Check",
"used",
"before",
"creating",
"a",
"new",
"foreign",
"key",
"cosntraint",
"this",
"method",
"checks",
"all",
"rows",
"of",
"a",
"table",
"to",
"ensure",
"they",
"all",
"have",
"a",
"corresponding",
"row",
"in",
"the",
"main",
"table",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/Constraint.java#L950-L993 |
61,778 | VoltDB/voltdb | third_party/java/src/com/google_voltpatches/common/base/SmallCharMatcher.java | SmallCharMatcher.chooseTableSize | @VisibleForTesting
static int chooseTableSize(int setSize) {
if (setSize == 1) {
return 2;
}
// Correct the size for open addressing to match desired load factor.
// Round up to the next highest power of 2.
int tableSize = Integer.highestOneBit(setSize - 1) << 1;
while (tableSize * DESIR... | java | @VisibleForTesting
static int chooseTableSize(int setSize) {
if (setSize == 1) {
return 2;
}
// Correct the size for open addressing to match desired load factor.
// Round up to the next highest power of 2.
int tableSize = Integer.highestOneBit(setSize - 1) << 1;
while (tableSize * DESIR... | [
"@",
"VisibleForTesting",
"static",
"int",
"chooseTableSize",
"(",
"int",
"setSize",
")",
"{",
"if",
"(",
"setSize",
"==",
"1",
")",
"{",
"return",
"2",
";",
"}",
"// Correct the size for open addressing to match desired load factor.",
"// Round up to the next highest pow... | Returns an array size suitable for the backing array of a hash table that uses open addressing
with linear probing in its implementation. The returned size is the smallest power of two that
can hold setSize elements with the desired load factor. | [
"Returns",
"an",
"array",
"size",
"suitable",
"for",
"the",
"backing",
"array",
"of",
"a",
"hash",
"table",
"that",
"uses",
"open",
"addressing",
"with",
"linear",
"probing",
"in",
"its",
"implementation",
".",
"The",
"returned",
"size",
"is",
"the",
"smalle... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/third_party/java/src/com/google_voltpatches/common/base/SmallCharMatcher.java#L72-L84 |
61,779 | VoltDB/voltdb | src/frontend/org/voltdb/exportclient/decode/StringArrayDecoder.java | StringArrayDecoder.decode | @Override
public String[] decode(long generation, String tableName, List<VoltType> types, List<String> names, String[] to, Object[] fields) throws RuntimeException {
Preconditions.checkArgument(
fields != null && fields.length > m_firstFieldOffset,
"null or inapropriately siz... | java | @Override
public String[] decode(long generation, String tableName, List<VoltType> types, List<String> names, String[] to, Object[] fields) throws RuntimeException {
Preconditions.checkArgument(
fields != null && fields.length > m_firstFieldOffset,
"null or inapropriately siz... | [
"@",
"Override",
"public",
"String",
"[",
"]",
"decode",
"(",
"long",
"generation",
",",
"String",
"tableName",
",",
"List",
"<",
"VoltType",
">",
"types",
",",
"List",
"<",
"String",
">",
"names",
",",
"String",
"[",
"]",
"to",
",",
"Object",
"[",
"... | Converts an object array containing an exported row values into an
array of their string representations | [
"Converts",
"an",
"object",
"array",
"containing",
"an",
"exported",
"row",
"values",
"into",
"an",
"array",
"of",
"their",
"string",
"representations"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/exportclient/decode/StringArrayDecoder.java#L69-L105 |
61,780 | VoltDB/voltdb | src/frontend/org/voltdb/ClientInterfaceHandleManager.java | ClientInterfaceHandleManager.findHandle | Iv2InFlight findHandle(long ciHandle)
{
assert(!shouldCheckThreadIdAssertion() || m_expectedThreadId == Thread.currentThread().getId());
/*
* Check the partition specific queue of handles
*/
int partitionId = getPartIdFromHandle(ciHandle);
PartitionInFlightTracker ... | java | Iv2InFlight findHandle(long ciHandle)
{
assert(!shouldCheckThreadIdAssertion() || m_expectedThreadId == Thread.currentThread().getId());
/*
* Check the partition specific queue of handles
*/
int partitionId = getPartIdFromHandle(ciHandle);
PartitionInFlightTracker ... | [
"Iv2InFlight",
"findHandle",
"(",
"long",
"ciHandle",
")",
"{",
"assert",
"(",
"!",
"shouldCheckThreadIdAssertion",
"(",
")",
"||",
"m_expectedThreadId",
"==",
"Thread",
".",
"currentThread",
"(",
")",
".",
"getId",
"(",
")",
")",
";",
"/*\n * Check the ... | Retrieve the client information for the specified handle | [
"Retrieve",
"the",
"client",
"information",
"for",
"the",
"specified",
"handle"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/ClientInterfaceHandleManager.java#L222-L246 |
61,781 | VoltDB/voltdb | src/frontend/org/voltdb/ClientInterfaceHandleManager.java | ClientInterfaceHandleManager.freeOutstandingTxns | void freeOutstandingTxns() {
assert(!shouldCheckThreadIdAssertion() || m_expectedThreadId == Thread.currentThread().getId());
for (PartitionInFlightTracker tracker : m_trackerMap.values()) {
for (Iv2InFlight inflight : tracker.m_inFlights.values()) {
m_outstandingTxns--;
... | java | void freeOutstandingTxns() {
assert(!shouldCheckThreadIdAssertion() || m_expectedThreadId == Thread.currentThread().getId());
for (PartitionInFlightTracker tracker : m_trackerMap.values()) {
for (Iv2InFlight inflight : tracker.m_inFlights.values()) {
m_outstandingTxns--;
... | [
"void",
"freeOutstandingTxns",
"(",
")",
"{",
"assert",
"(",
"!",
"shouldCheckThreadIdAssertion",
"(",
")",
"||",
"m_expectedThreadId",
"==",
"Thread",
".",
"currentThread",
"(",
")",
".",
"getId",
"(",
")",
")",
";",
"for",
"(",
"PartitionInFlightTracker",
"t... | When a connection goes away, free all resources held by that connection
This opens a small window of opportunity for mischief in that work may
still be outstanding in the cluster, but once the client goes away so does
does the mapping to the resources allocated to it. | [
"When",
"a",
"connection",
"goes",
"away",
"free",
"all",
"resources",
"held",
"by",
"that",
"connection",
"This",
"opens",
"a",
"small",
"window",
"of",
"opportunity",
"for",
"mischief",
"in",
"that",
"work",
"may",
"still",
"be",
"outstanding",
"in",
"the"... | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/ClientInterfaceHandleManager.java#L287-L295 |
61,782 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.loadSchema | void loadSchema(Reader reader, Database db, DdlProceduresToLoad whichProcs)
throws VoltCompiler.VoltCompilerException {
int currLineNo = 1;
DDLStatement stmt = getNextStatement(reader, m_compiler, currLineNo);
while (stmt != null) {
// Some statements are processed by Vo... | java | void loadSchema(Reader reader, Database db, DdlProceduresToLoad whichProcs)
throws VoltCompiler.VoltCompilerException {
int currLineNo = 1;
DDLStatement stmt = getNextStatement(reader, m_compiler, currLineNo);
while (stmt != null) {
// Some statements are processed by Vo... | [
"void",
"loadSchema",
"(",
"Reader",
"reader",
",",
"Database",
"db",
",",
"DdlProceduresToLoad",
"whichProcs",
")",
"throws",
"VoltCompiler",
".",
"VoltCompilerException",
"{",
"int",
"currLineNo",
"=",
"1",
";",
"DDLStatement",
"stmt",
"=",
"getNextStatement",
"... | Compile a DDL schema from an abstract reader
@param reader abstract DDL reader
@param db database
@param whichProcs which type(s) of procedures to load
@throws VoltCompiler.VoltCompilerException | [
"Compile",
"a",
"DDL",
"schema",
"from",
"an",
"abstract",
"reader"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L398-L419 |
61,783 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.generateDDLForDRConflictsTable | private String generateDDLForDRConflictsTable(Database currentDB, Database previousDBIfAny, boolean isCurrentXDCR) {
StringBuilder sb = new StringBuilder();
if (isCurrentXDCR) {
createDRConflictTables(sb, previousDBIfAny);
} else {
dropDRConflictTablesIfNeeded(sb);
... | java | private String generateDDLForDRConflictsTable(Database currentDB, Database previousDBIfAny, boolean isCurrentXDCR) {
StringBuilder sb = new StringBuilder();
if (isCurrentXDCR) {
createDRConflictTables(sb, previousDBIfAny);
} else {
dropDRConflictTablesIfNeeded(sb);
... | [
"private",
"String",
"generateDDLForDRConflictsTable",
"(",
"Database",
"currentDB",
",",
"Database",
"previousDBIfAny",
",",
"boolean",
"isCurrentXDCR",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"isCurrentXDCR",
")",
... | Generate DDL to create or drop the DR conflict table | [
"Generate",
"DDL",
"to",
"create",
"or",
"drop",
"the",
"DR",
"conflict",
"table"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L481-L489 |
61,784 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.processCreateStreamStatement | private void processCreateStreamStatement(DDLStatement stmt, Database db, DdlProceduresToLoad whichProcs)
throws VoltCompilerException {
String statement = stmt.statement;
Matcher statementMatcher = SQLParser.matchCreateStream(statement);
if (statementMatcher.matches()) {
... | java | private void processCreateStreamStatement(DDLStatement stmt, Database db, DdlProceduresToLoad whichProcs)
throws VoltCompilerException {
String statement = stmt.statement;
Matcher statementMatcher = SQLParser.matchCreateStream(statement);
if (statementMatcher.matches()) {
... | [
"private",
"void",
"processCreateStreamStatement",
"(",
"DDLStatement",
"stmt",
",",
"Database",
"db",
",",
"DdlProceduresToLoad",
"whichProcs",
")",
"throws",
"VoltCompilerException",
"{",
"String",
"statement",
"=",
"stmt",
".",
"statement",
";",
"Matcher",
"stateme... | Process a VoltDB-specific create stream DDL statement
@param stmt
DDL statement string
@param db
@param whichProcs
@throws VoltCompilerException | [
"Process",
"a",
"VoltDB",
"-",
"specific",
"create",
"stream",
"DDL",
"statement"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L613-L682 |
61,785 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.fillTrackerFromXML | private void fillTrackerFromXML()
{
for (VoltXMLElement e : m_schema.children) {
if (e.name.equals("table")) {
String tableName = e.attributes.get("name");
String partitionCol = e.attributes.get("partitioncolumn");
String export = e.attributes.get(... | java | private void fillTrackerFromXML()
{
for (VoltXMLElement e : m_schema.children) {
if (e.name.equals("table")) {
String tableName = e.attributes.get("name");
String partitionCol = e.attributes.get("partitioncolumn");
String export = e.attributes.get(... | [
"private",
"void",
"fillTrackerFromXML",
"(",
")",
"{",
"for",
"(",
"VoltXMLElement",
"e",
":",
"m_schema",
".",
"children",
")",
"{",
"if",
"(",
"e",
".",
"name",
".",
"equals",
"(",
"\"table\"",
")",
")",
"{",
"String",
"tableName",
"=",
"e",
".",
... | requested from the compiler | [
"requested",
"from",
"the",
"compiler"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L947-L974 |
61,786 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.indexesAreDups | private static boolean indexesAreDups(Index idx1, Index idx2) {
// same attributes?
if (idx1.getType() != idx2.getType()) {
return false;
}
if (idx1.getCountable() != idx2.getCountable()) {
return false;
}
if (idx1.getUnique() != idx2.getUnique()) ... | java | private static boolean indexesAreDups(Index idx1, Index idx2) {
// same attributes?
if (idx1.getType() != idx2.getType()) {
return false;
}
if (idx1.getCountable() != idx2.getCountable()) {
return false;
}
if (idx1.getUnique() != idx2.getUnique()) ... | [
"private",
"static",
"boolean",
"indexesAreDups",
"(",
"Index",
"idx1",
",",
"Index",
"idx2",
")",
"{",
"// same attributes?",
"if",
"(",
"idx1",
".",
"getType",
"(",
")",
"!=",
"idx2",
".",
"getType",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"... | Return true if the two indexes are identical with a different name. | [
"Return",
"true",
"if",
"the",
"two",
"indexes",
"are",
"identical",
"with",
"a",
"different",
"name",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L1652-L1713 |
61,787 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.addConstraintToCatalog | private void addConstraintToCatalog(Table table,
VoltXMLElement node,
Map<String, String> indexReplacementMap,
Map<String, Index> indexMap)
throws VoltCompilerException
{
assert node.name.equals("constraint");
String name = node.attributes.get("name")... | java | private void addConstraintToCatalog(Table table,
VoltXMLElement node,
Map<String, String> indexReplacementMap,
Map<String, Index> indexMap)
throws VoltCompilerException
{
assert node.name.equals("constraint");
String name = node.attributes.get("name")... | [
"private",
"void",
"addConstraintToCatalog",
"(",
"Table",
"table",
",",
"VoltXMLElement",
"node",
",",
"Map",
"<",
"String",
",",
"String",
">",
"indexReplacementMap",
",",
"Map",
"<",
"String",
",",
"Index",
">",
"indexMap",
")",
"throws",
"VoltCompilerExcepti... | Add a constraint on a given table to the catalog
@param table The table on which the constraint will be enforced
@param node The XML node representing the constraint
@param indexReplacementMap
@throws VoltCompilerException | [
"Add",
"a",
"constraint",
"on",
"a",
"given",
"table",
"to",
"the",
"catalog"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L2070-L2154 |
61,788 | VoltDB/voltdb | src/frontend/org/voltdb/compiler/DDLCompiler.java | DDLCompiler.buildPartialIndexPredicate | private static AbstractExpression buildPartialIndexPredicate(
AbstractParsedStmt dummy, String indexName,
VoltXMLElement predicateXML, Table table,
VoltCompiler compiler) throws VoltCompilerException {
// Make sure all column expressions refer to the same index table
... | java | private static AbstractExpression buildPartialIndexPredicate(
AbstractParsedStmt dummy, String indexName,
VoltXMLElement predicateXML, Table table,
VoltCompiler compiler) throws VoltCompilerException {
// Make sure all column expressions refer to the same index table
... | [
"private",
"static",
"AbstractExpression",
"buildPartialIndexPredicate",
"(",
"AbstractParsedStmt",
"dummy",
",",
"String",
"indexName",
",",
"VoltXMLElement",
"predicateXML",
",",
"Table",
"table",
",",
"VoltCompiler",
"compiler",
")",
"throws",
"VoltCompilerException",
... | Build the abstract expression representing the partial index predicate.
Verify it satisfies the rules. Throw error messages otherwise.
@param dummy AbstractParsedStmt
@param indexName The name of the index being checked.
@param predicateXML The XML representing the predicate.
@param table Table
@throws VoltCompilerExc... | [
"Build",
"the",
"abstract",
"expression",
"representing",
"the",
"partial",
"index",
"predicate",
".",
"Verify",
"it",
"satisfies",
"the",
"rules",
".",
"Throw",
"error",
"messages",
"otherwise",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/compiler/DDLCompiler.java#L2167-L2193 |
61,789 | VoltDB/voltdb | src/hsqldb19b3/org/hsqldb_voltpatches/persist/LobManager.java | LobManager.getLob | public Result getLob(Session session, long lobID, long offset,
long length) {
throw Error.runtimeError(ErrorCode.U_S0500, "LobManager");
} | java | public Result getLob(Session session, long lobID, long offset,
long length) {
throw Error.runtimeError(ErrorCode.U_S0500, "LobManager");
} | [
"public",
"Result",
"getLob",
"(",
"Session",
"session",
",",
"long",
"lobID",
",",
"long",
"offset",
",",
"long",
"length",
")",
"{",
"throw",
"Error",
".",
"runtimeError",
"(",
"ErrorCode",
".",
"U_S0500",
",",
"\"LobManager\"",
")",
";",
"}"
] | Used for SUBSTRING | [
"Used",
"for",
"SUBSTRING"
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/hsqldb19b3/org/hsqldb_voltpatches/persist/LobManager.java#L361-L364 |
61,790 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.close | @Override
public void close() throws SQLException
{
try
{
isClosed = true;
JDBC4ClientConnectionPool.dispose(NativeConnection);
}
catch(Exception x)
{
throw SQLError.get(x);
}
} | java | @Override
public void close() throws SQLException
{
try
{
isClosed = true;
JDBC4ClientConnectionPool.dispose(NativeConnection);
}
catch(Exception x)
{
throw SQLError.get(x);
}
} | [
"@",
"Override",
"public",
"void",
"close",
"(",
")",
"throws",
"SQLException",
"{",
"try",
"{",
"isClosed",
"=",
"true",
";",
"JDBC4ClientConnectionPool",
".",
"dispose",
"(",
"NativeConnection",
")",
";",
"}",
"catch",
"(",
"Exception",
"x",
")",
"{",
"t... | Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released. | [
"Releases",
"this",
"Connection",
"object",
"s",
"database",
"and",
"JDBC",
"resources",
"immediately",
"instead",
"of",
"waiting",
"for",
"them",
"to",
"be",
"automatically",
"released",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L80-L92 |
61,791 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.createArrayOf | @Override
public Array createArrayOf(String typeName, Object[] elements) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | java | @Override
public Array createArrayOf(String typeName, Object[] elements) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"Array",
"createArrayOf",
"(",
"String",
"typeName",
",",
"Object",
"[",
"]",
"elements",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"
] | Factory method for creating Array objects. | [
"Factory",
"method",
"for",
"creating",
"Array",
"objects",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L105-L110 |
61,792 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.createStatement | @Override
public Statement createStatement() throws SQLException
{
checkClosed();
try
{
return new JDBC4Statement(this);
}
catch(Exception x)
{
throw SQLError.get(x);
}
} | java | @Override
public Statement createStatement() throws SQLException
{
checkClosed();
try
{
return new JDBC4Statement(this);
}
catch(Exception x)
{
throw SQLError.get(x);
}
} | [
"@",
"Override",
"public",
"Statement",
"createStatement",
"(",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"try",
"{",
"return",
"new",
"JDBC4Statement",
"(",
"this",
")",
";",
"}",
"catch",
"(",
"Exception",
"x",
")",
"{",
"throw",
... | Creates a Statement object for sending SQL statements to the database. | [
"Creates",
"a",
"Statement",
"object",
"for",
"sending",
"SQL",
"statements",
"to",
"the",
"database",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L145-L157 |
61,793 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.createStruct | @Override
public Struct createStruct(String typeName, Object[] attributes) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | java | @Override
public Struct createStruct(String typeName, Object[] attributes) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"Struct",
"createStruct",
"(",
"String",
"typeName",
",",
"Object",
"[",
"]",
"attributes",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"
] | Factory method for creating Struct objects. | [
"Factory",
"method",
"for",
"creating",
"Struct",
"objects",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L225-L230 |
61,794 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.prepareStatement | @Override
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | java | @Override
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"PreparedStatement",
"prepareStatement",
"(",
"String",
"sql",
",",
"int",
"[",
"]",
"columnIndexes",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"throw",
"SQLError",
".",
"noSupport",
"(",
")",
";",
"}"
] | Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array. | [
"Creates",
"a",
"default",
"PreparedStatement",
"object",
"capable",
"of",
"returning",
"the",
"auto",
"-",
"generated",
"keys",
"designated",
"by",
"the",
"given",
"array",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L378-L383 |
61,795 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.prepareStatement | @Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
{
if ((resultSetType == ResultSet.TYPE_SCROLL_INSENSITIVE || resultSetType == ResultSet.TYPE_FORWARD_ONLY) &&
resultSetConcurrency == ResultSet.CONCUR_READ_ONL... | java | @Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
{
if ((resultSetType == ResultSet.TYPE_SCROLL_INSENSITIVE || resultSetType == ResultSet.TYPE_FORWARD_ONLY) &&
resultSetConcurrency == ResultSet.CONCUR_READ_ONL... | [
"@",
"Override",
"public",
"PreparedStatement",
"prepareStatement",
"(",
"String",
"sql",
",",
"int",
"resultSetType",
",",
"int",
"resultSetConcurrency",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"(",
"resultSetType",
"==",
"ResultSet",
".",
"TYPE_SCROLL_INSEN... | Creates a PreparedStatement object that will generate ResultSet objects with the given type and concurrency. | [
"Creates",
"a",
"PreparedStatement",
"object",
"that",
"will",
"generate",
"ResultSet",
"objects",
"with",
"the",
"given",
"type",
"and",
"concurrency",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L386-L395 |
61,796 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.prepareStatement | @Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | java | @Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
{
checkClosed();
throw SQLError.noSupport();
} | [
"@",
"Override",
"public",
"PreparedStatement",
"prepareStatement",
"(",
"String",
"sql",
",",
"int",
"resultSetType",
",",
"int",
"resultSetConcurrency",
",",
"int",
"resultSetHoldability",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"throw",
... | Creates a PreparedStatement object that will generate ResultSet objects with the given type, concurrency, and holdability. | [
"Creates",
"a",
"PreparedStatement",
"object",
"that",
"will",
"generate",
"ResultSet",
"objects",
"with",
"the",
"given",
"type",
"concurrency",
"and",
"holdability",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L398-L403 |
61,797 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.rollback | @Override
public void rollback() throws SQLException
{
checkClosed();
if (props.getProperty(ROLLBACK_THROW_EXCEPTION, "true").equalsIgnoreCase("true")) {
throw SQLError.noSupport();
}
} | java | @Override
public void rollback() throws SQLException
{
checkClosed();
if (props.getProperty(ROLLBACK_THROW_EXCEPTION, "true").equalsIgnoreCase("true")) {
throw SQLError.noSupport();
}
} | [
"@",
"Override",
"public",
"void",
"rollback",
"(",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"if",
"(",
"props",
".",
"getProperty",
"(",
"ROLLBACK_THROW_EXCEPTION",
",",
"\"true\"",
")",
".",
"equalsIgnoreCase",
"(",
"\"true\"",
")",
... | Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object. | [
"Undoes",
"all",
"changes",
"made",
"in",
"the",
"current",
"transaction",
"and",
"releases",
"any",
"database",
"locks",
"currently",
"held",
"by",
"this",
"Connection",
"object",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L422-L429 |
61,798 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.setAutoCommit | @Override
public void setAutoCommit(boolean autoCommit) throws SQLException
{
checkClosed();
// Always true - error out only if the client is trying to set somethign else
if (!autoCommit && (props.getProperty(COMMIT_THROW_EXCEPTION, "true").equalsIgnoreCase("true"))) {
throw ... | java | @Override
public void setAutoCommit(boolean autoCommit) throws SQLException
{
checkClosed();
// Always true - error out only if the client is trying to set somethign else
if (!autoCommit && (props.getProperty(COMMIT_THROW_EXCEPTION, "true").equalsIgnoreCase("true"))) {
throw ... | [
"@",
"Override",
"public",
"void",
"setAutoCommit",
"(",
"boolean",
"autoCommit",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"// Always true - error out only if the client is trying to set somethign else",
"if",
"(",
"!",
"autoCommit",
"&&",
"(",
... | Sets this connection's auto-commit mode to the given state. | [
"Sets",
"this",
"connection",
"s",
"auto",
"-",
"commit",
"mode",
"to",
"the",
"given",
"state",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L440-L451 |
61,799 | VoltDB/voltdb | src/frontend/org/voltdb/jdbc/JDBC4Connection.java | JDBC4Connection.setReadOnly | @Override
public void setReadOnly(boolean readOnly) throws SQLException
{
checkClosed();
if (!Boolean.parseBoolean(props.getProperty("enableSetReadOnly","false"))){
throw SQLError.noSupport();
}
} | java | @Override
public void setReadOnly(boolean readOnly) throws SQLException
{
checkClosed();
if (!Boolean.parseBoolean(props.getProperty("enableSetReadOnly","false"))){
throw SQLError.noSupport();
}
} | [
"@",
"Override",
"public",
"void",
"setReadOnly",
"(",
"boolean",
"readOnly",
")",
"throws",
"SQLException",
"{",
"checkClosed",
"(",
")",
";",
"if",
"(",
"!",
"Boolean",
".",
"parseBoolean",
"(",
"props",
".",
"getProperty",
"(",
"\"enableSetReadOnly\"",
",",... | Puts this connection in read-only mode as a hint to the driver to enable database optimizations. | [
"Puts",
"this",
"connection",
"in",
"read",
"-",
"only",
"mode",
"as",
"a",
"hint",
"to",
"the",
"driver",
"to",
"enable",
"database",
"optimizations",
"."
] | 8afc1031e475835344b5497ea9e7203bc95475ac | https://github.com/VoltDB/voltdb/blob/8afc1031e475835344b5497ea9e7203bc95475ac/src/frontend/org/voltdb/jdbc/JDBC4Connection.java#L484-L491 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.