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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.preVisit | @Override
public boolean preVisit(Operator<?> node) {
// check if node was already visited
if (!this.visitedNodes.add(node)) {
return false;
}
// apply the appropriate check method
if (node instanceof FileDataSinkBase) {
checkFileDataSink((FileDataSinkBase<?>) node);
} else if (node instanceof FileD... | java | @Override
public boolean preVisit(Operator<?> node) {
// check if node was already visited
if (!this.visitedNodes.add(node)) {
return false;
}
// apply the appropriate check method
if (node instanceof FileDataSinkBase) {
checkFileDataSink((FileDataSinkBase<?>) node);
} else if (node instanceof FileD... | [
"@",
"Override",
"public",
"boolean",
"preVisit",
"(",
"Operator",
"<",
"?",
">",
"node",
")",
"{",
"// check if node was already visited",
"if",
"(",
"!",
"this",
".",
"visitedNodes",
".",
"add",
"(",
"node",
")",
")",
"{",
"return",
"false",
";",
"}",
... | Checks whether the node is correctly connected to its input. | [
"Checks",
"whether",
"the",
"node",
"is",
"correctly",
"connected",
"to",
"its",
"input",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L68-L93 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.checkDataSink | private void checkDataSink(GenericDataSinkBase<?> dataSinkContract) {
Operator<?> input = dataSinkContract.getInput();
// check if input exists
if (input == null) {
throw new MissingChildException();
}
} | java | private void checkDataSink(GenericDataSinkBase<?> dataSinkContract) {
Operator<?> input = dataSinkContract.getInput();
// check if input exists
if (input == null) {
throw new MissingChildException();
}
} | [
"private",
"void",
"checkDataSink",
"(",
"GenericDataSinkBase",
"<",
"?",
">",
"dataSinkContract",
")",
"{",
"Operator",
"<",
"?",
">",
"input",
"=",
"dataSinkContract",
".",
"getInput",
"(",
")",
";",
"// check if input exists",
"if",
"(",
"input",
"==",
"nul... | Checks if DataSinkContract is correctly connected. In case that the
contract is incorrectly connected a RuntimeException is thrown.
@param dataSinkContract
DataSinkContract that is checked. | [
"Checks",
"if",
"DataSinkContract",
"is",
"correctly",
"connected",
".",
"In",
"case",
"that",
"the",
"contract",
"is",
"incorrectly",
"connected",
"a",
"RuntimeException",
"is",
"thrown",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L105-L111 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.checkFileDataSink | private void checkFileDataSink(FileDataSinkBase<?> fileSink) {
String path = fileSink.getFilePath();
if (path == null) {
throw new InvalidProgramException("File path of FileDataSink is null.");
}
if (path.length() == 0) {
throw new InvalidProgramException("File path of FileDataSink is empty string.");
}... | java | private void checkFileDataSink(FileDataSinkBase<?> fileSink) {
String path = fileSink.getFilePath();
if (path == null) {
throw new InvalidProgramException("File path of FileDataSink is null.");
}
if (path.length() == 0) {
throw new InvalidProgramException("File path of FileDataSink is empty string.");
}... | [
"private",
"void",
"checkFileDataSink",
"(",
"FileDataSinkBase",
"<",
"?",
">",
"fileSink",
")",
"{",
"String",
"path",
"=",
"fileSink",
".",
"getFilePath",
"(",
")",
";",
"if",
"(",
"path",
"==",
"null",
")",
"{",
"throw",
"new",
"InvalidProgramException",
... | Checks if FileDataSink is correctly connected. In case that the
contract is incorrectly connected a RuntimeException is thrown.
@param fileSink
FileDataSink that is checked. | [
"Checks",
"if",
"FileDataSink",
"is",
"correctly",
"connected",
".",
"In",
"case",
"that",
"the",
"contract",
"is",
"incorrectly",
"connected",
"a",
"RuntimeException",
"is",
"thrown",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L120-L140 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.checkFileDataSource | private void checkFileDataSource(FileDataSourceBase<?> fileSource) {
String path = fileSource.getFilePath();
if (path == null) {
throw new InvalidProgramException("File path of FileDataSource is null.");
}
if (path.length() == 0) {
throw new InvalidProgramException("File path of FileDataSource is empty st... | java | private void checkFileDataSource(FileDataSourceBase<?> fileSource) {
String path = fileSource.getFilePath();
if (path == null) {
throw new InvalidProgramException("File path of FileDataSource is null.");
}
if (path.length() == 0) {
throw new InvalidProgramException("File path of FileDataSource is empty st... | [
"private",
"void",
"checkFileDataSource",
"(",
"FileDataSourceBase",
"<",
"?",
">",
"fileSource",
")",
"{",
"String",
"path",
"=",
"fileSource",
".",
"getFilePath",
"(",
")",
";",
"if",
"(",
"path",
"==",
"null",
")",
"{",
"throw",
"new",
"InvalidProgramExce... | Checks if FileDataSource is correctly connected. In case that the
contract is incorrectly connected a RuntimeException is thrown.
@param fileSource
FileDataSource that is checked. | [
"Checks",
"if",
"FileDataSource",
"is",
"correctly",
"connected",
".",
"In",
"case",
"that",
"the",
"contract",
"is",
"incorrectly",
"connected",
"a",
"RuntimeException",
"is",
"thrown",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L149-L168 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.checkSingleInputContract | private void checkSingleInputContract(SingleInputOperator<?, ?, ?> singleInputContract) {
Operator<?> input = singleInputContract.getInput();
// check if input exists
if (input == null) {
throw new MissingChildException();
}
} | java | private void checkSingleInputContract(SingleInputOperator<?, ?, ?> singleInputContract) {
Operator<?> input = singleInputContract.getInput();
// check if input exists
if (input == null) {
throw new MissingChildException();
}
} | [
"private",
"void",
"checkSingleInputContract",
"(",
"SingleInputOperator",
"<",
"?",
",",
"?",
",",
"?",
">",
"singleInputContract",
")",
"{",
"Operator",
"<",
"?",
">",
"input",
"=",
"singleInputContract",
".",
"getInput",
"(",
")",
";",
"// check if input exis... | Checks whether a SingleInputOperator is correctly connected. In case that
the contract is incorrectly connected a RuntimeException is thrown.
@param singleInputContract
SingleInputOperator that is checked. | [
"Checks",
"whether",
"a",
"SingleInputOperator",
"is",
"correctly",
"connected",
".",
"In",
"case",
"that",
"the",
"contract",
"is",
"incorrectly",
"connected",
"a",
"RuntimeException",
"is",
"thrown",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L177-L183 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java | ContextChecker.checkDualInputContract | private void checkDualInputContract(DualInputOperator<?, ?, ?, ?> dualInputContract) {
Operator<?> input1 = dualInputContract.getFirstInput();
Operator<?> input2 = dualInputContract.getSecondInput();
// check if input exists
if (input1 == null || input2 == null) {
throw new MissingChildException();
}
} | java | private void checkDualInputContract(DualInputOperator<?, ?, ?, ?> dualInputContract) {
Operator<?> input1 = dualInputContract.getFirstInput();
Operator<?> input2 = dualInputContract.getSecondInput();
// check if input exists
if (input1 == null || input2 == null) {
throw new MissingChildException();
}
} | [
"private",
"void",
"checkDualInputContract",
"(",
"DualInputOperator",
"<",
"?",
",",
"?",
",",
"?",
",",
"?",
">",
"dualInputContract",
")",
"{",
"Operator",
"<",
"?",
">",
"input1",
"=",
"dualInputContract",
".",
"getFirstInput",
"(",
")",
";",
"Operator",... | Checks whether a DualInputOperator is correctly connected. In case that
the contract is incorrectly connected a RuntimeException is thrown.
@param dualInputContract
DualInputOperator that is checked. | [
"Checks",
"whether",
"a",
"DualInputOperator",
"is",
"correctly",
"connected",
".",
"In",
"case",
"that",
"the",
"contract",
"is",
"incorrectly",
"connected",
"a",
"RuntimeException",
"is",
"thrown",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L192-L199 | train |
stratosphere/stratosphere | stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/Operator.java | Operator.setParallelism | public O setParallelism(int dop) {
if(dop < 1) {
throw new IllegalArgumentException("The parallelism of an operator must be at least 1.");
}
this.dop = dop;
@SuppressWarnings("unchecked")
O returnType = (O) this;
return returnType;
} | java | public O setParallelism(int dop) {
if(dop < 1) {
throw new IllegalArgumentException("The parallelism of an operator must be at least 1.");
}
this.dop = dop;
@SuppressWarnings("unchecked")
O returnType = (O) this;
return returnType;
} | [
"public",
"O",
"setParallelism",
"(",
"int",
"dop",
")",
"{",
"if",
"(",
"dop",
"<",
"1",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"The parallelism of an operator must be at least 1.\"",
")",
";",
"}",
"this",
".",
"dop",
"=",
"dop",
";",
... | Sets the degree of parallelism for this operator.
The degree must be 1 or more.
@param dop The degree of parallelism for this operator.
@return The operator with set degree of parallelism. | [
"Sets",
"the",
"degree",
"of",
"parallelism",
"for",
"this",
"operator",
".",
"The",
"degree",
"must",
"be",
"1",
"or",
"more",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/Operator.java#L88-L97 | train |
stratosphere/stratosphere | stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Operator.java | Operator.createUnionCascade | public static <T> Operator<T> createUnionCascade(Operator<T> input1, Operator<T>... input2) {
// return cases where we don't need a union
if (input2 == null || input2.length == 0) {
return input1;
} else if (input2.length == 1 && input1 == null) {
return input2[0];
}
TypeInformation<T> type = null;
i... | java | public static <T> Operator<T> createUnionCascade(Operator<T> input1, Operator<T>... input2) {
// return cases where we don't need a union
if (input2 == null || input2.length == 0) {
return input1;
} else if (input2.length == 1 && input1 == null) {
return input2[0];
}
TypeInformation<T> type = null;
i... | [
"public",
"static",
"<",
"T",
">",
"Operator",
"<",
"T",
">",
"createUnionCascade",
"(",
"Operator",
"<",
"T",
">",
"input1",
",",
"Operator",
"<",
"T",
">",
"...",
"input2",
")",
"{",
"// return cases where we don't need a union",
"if",
"(",
"input2",
"==",... | Takes a single Operator and a list of operators and creates a cascade of unions of this inputs, if needed.
If not needed there was only one operator as input, then this operator is returned.
@param input1 The first input operator.
@param input2 The other input operators.
@return The single operator or a cascade of un... | [
"Takes",
"a",
"single",
"Operator",
"and",
"a",
"list",
"of",
"operators",
"and",
"creates",
"a",
"cascade",
"of",
"unions",
"of",
"this",
"inputs",
"if",
"needed",
".",
"If",
"not",
"needed",
"there",
"was",
"only",
"one",
"operator",
"as",
"input",
"th... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Operator.java#L221-L267 | train |
stratosphere/stratosphere | stratosphere-core/src/main/java/eu/stratosphere/api/common/io/FileInputFormat.java | FileInputFormat.acceptFile | protected boolean acceptFile(FileStatus fileStatus) {
final String name = fileStatus.getPath().getName();
return !name.startsWith("_") && !name.startsWith(".");
} | java | protected boolean acceptFile(FileStatus fileStatus) {
final String name = fileStatus.getPath().getName();
return !name.startsWith("_") && !name.startsWith(".");
} | [
"protected",
"boolean",
"acceptFile",
"(",
"FileStatus",
"fileStatus",
")",
"{",
"final",
"String",
"name",
"=",
"fileStatus",
".",
"getPath",
"(",
")",
".",
"getName",
"(",
")",
";",
"return",
"!",
"name",
".",
"startsWith",
"(",
"\"_\"",
")",
"&&",
"!"... | A simple hook to filter files and directories from the input.
The method may be overridden. Hadoop's FileInputFormat has a similar mechanism and applies the
same filters by default.
@param fileStatus
@return true, if the given file or directory is accepted | [
"A",
"simple",
"hook",
"to",
"filter",
"files",
"and",
"directories",
"from",
"the",
"input",
".",
"The",
"method",
"may",
"be",
"overridden",
".",
"Hadoop",
"s",
"FileInputFormat",
"has",
"a",
"similar",
"mechanism",
"and",
"applies",
"the",
"same",
"filter... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/io/FileInputFormat.java#L544-L547 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/types/FileRecord.java | FileRecord.append | public void append(final byte[] data, final int start, final int len) {
final int oldLength = this.bytes.length;
setCapacity(this.bytes.length + len, true);
System.arraycopy(data, start, this.bytes, oldLength, len);
} | java | public void append(final byte[] data, final int start, final int len) {
final int oldLength = this.bytes.length;
setCapacity(this.bytes.length + len, true);
System.arraycopy(data, start, this.bytes, oldLength, len);
} | [
"public",
"void",
"append",
"(",
"final",
"byte",
"[",
"]",
"data",
",",
"final",
"int",
"start",
",",
"final",
"int",
"len",
")",
"{",
"final",
"int",
"oldLength",
"=",
"this",
".",
"bytes",
".",
"length",
";",
"setCapacity",
"(",
"this",
".",
"byte... | Append a range of bytes to the end of the given data.
@param data
the data to copy from
@param start
the first position to append from data
@param len
the number of bytes to append | [
"Append",
"a",
"range",
"of",
"bytes",
"to",
"the",
"end",
"of",
"the",
"given",
"data",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/types/FileRecord.java#L64-L68 | train |
stratosphere/stratosphere | stratosphere-core/src/main/java/eu/stratosphere/util/InstantiationUtil.java | InstantiationUtil.isNonStaticInnerClass | public static boolean isNonStaticInnerClass(Class<?> clazz) {
if (clazz.getEnclosingClass() == null) {
// no inner class
return false;
} else {
// inner class
if (clazz.getDeclaringClass() != null) {
// named inner class
return !Modifier.isStatic(clazz.getModifiers());
} else {
// anonymo... | java | public static boolean isNonStaticInnerClass(Class<?> clazz) {
if (clazz.getEnclosingClass() == null) {
// no inner class
return false;
} else {
// inner class
if (clazz.getDeclaringClass() != null) {
// named inner class
return !Modifier.isStatic(clazz.getModifiers());
} else {
// anonymo... | [
"public",
"static",
"boolean",
"isNonStaticInnerClass",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"if",
"(",
"clazz",
".",
"getEnclosingClass",
"(",
")",
"==",
"null",
")",
"{",
"// no inner class",
"return",
"false",
";",
"}",
"else",
"{",
"// inner... | Checks, whether the class is an inner class that is not statically accessible. That is especially true for
anonymous inner classes.
@param clazz The class to check.
@return True, if the class is a non-statically accessible inner class. | [
"Checks",
"whether",
"the",
"class",
"is",
"an",
"inner",
"class",
"that",
"is",
"not",
"statically",
"accessible",
".",
"That",
"is",
"especially",
"true",
"for",
"anonymous",
"inner",
"classes",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/InstantiationUtil.java#L175-L189 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getGroupVertex | public ManagementGroupVertex getGroupVertex(final int index) {
if (index < this.groupVertices.size()) {
return this.groupVertices.get(index);
}
return null;
} | java | public ManagementGroupVertex getGroupVertex(final int index) {
if (index < this.groupVertices.size()) {
return this.groupVertices.get(index);
}
return null;
} | [
"public",
"ManagementGroupVertex",
"getGroupVertex",
"(",
"final",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"<",
"this",
".",
"groupVertices",
".",
"size",
"(",
")",
")",
"{",
"return",
"this",
".",
"groupVertices",
".",
"get",
"(",
"index",
")",
";... | Returns the management group vertex with the given index.
@param index
the index of the group vertex to be returned
@return the group vertex with the given index or <code>null</code> if no such vertex exists | [
"Returns",
"the",
"management",
"group",
"vertex",
"with",
"the",
"given",
"index",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L94-L101 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.addGroupVertex | void addGroupVertex(final ManagementGroupVertex groupVertex) {
this.groupVertices.add(groupVertex);
this.managementGraph.addGroupVertex(groupVertex.getID(), groupVertex);
} | java | void addGroupVertex(final ManagementGroupVertex groupVertex) {
this.groupVertices.add(groupVertex);
this.managementGraph.addGroupVertex(groupVertex.getID(), groupVertex);
} | [
"void",
"addGroupVertex",
"(",
"final",
"ManagementGroupVertex",
"groupVertex",
")",
"{",
"this",
".",
"groupVertices",
".",
"add",
"(",
"groupVertex",
")",
";",
"this",
".",
"managementGraph",
".",
"addGroupVertex",
"(",
"groupVertex",
".",
"getID",
"(",
")",
... | Adds the given group vertex to this management stage.
@param groupVertex
the group vertex to be added to this management stage | [
"Adds",
"the",
"given",
"group",
"vertex",
"to",
"this",
"management",
"stage",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L109-L114 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.collectGroupVertices | void collectGroupVertices(final List<ManagementGroupVertex> groupVertices) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
groupVertices.add(it.next());
}
} | java | void collectGroupVertices(final List<ManagementGroupVertex> groupVertices) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
groupVertices.add(it.next());
}
} | [
"void",
"collectGroupVertices",
"(",
"final",
"List",
"<",
"ManagementGroupVertex",
">",
"groupVertices",
")",
"{",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"... | Adds all management group vertices contained in this stage to the given list.
@param groupVertices
the list to which the group vertices in this stage shall be added | [
"Adds",
"all",
"management",
"group",
"vertices",
"contained",
"in",
"this",
"stage",
"to",
"the",
"given",
"list",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L122-L129 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.collectVertices | void collectVertices(final List<ManagementVertex> vertices) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
it.next().collectVertices(vertices);
}
} | java | void collectVertices(final List<ManagementVertex> vertices) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
it.next().collectVertices(vertices);
}
} | [
"void",
"collectVertices",
"(",
"final",
"List",
"<",
"ManagementVertex",
">",
"vertices",
")",
"{",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"... | Adds all management vertices contained in this stage's group vertices to the given list.
@param vertices
the list to which the vertices in this stage shall be added | [
"Adds",
"all",
"management",
"vertices",
"contained",
"in",
"this",
"stage",
"s",
"group",
"vertices",
"to",
"the",
"given",
"list",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L137-L144 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getNumberOfInputManagementVertices | public int getNumberOfInputManagementVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
retVal += groupVertex.getNumberOfGroupMembers();
... | java | public int getNumberOfInputManagementVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
retVal += groupVertex.getNumberOfGroupMembers();
... | [
"public",
"int",
"getNumberOfInputManagementVertices",
"(",
")",
"{",
"int",
"retVal",
"=",
"0",
";",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
... | Returns the number of input management vertices in this stage, i.e. the number
of management vertices which are connected to vertices in a lower stage
or have no input channels.
@return the number of input vertices in this stage | [
"Returns",
"the",
"number",
"of",
"input",
"management",
"vertices",
"in",
"this",
"stage",
"i",
".",
"e",
".",
"the",
"number",
"of",
"management",
"vertices",
"which",
"are",
"connected",
"to",
"vertices",
"in",
"a",
"lower",
"stage",
"or",
"have",
"no",... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L153-L167 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getNumberOfOutputManagementVertices | public int getNumberOfOutputManagementVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isOutputVertex()) {
retVal += groupVertex.getNumberOfGroupMembers();... | java | public int getNumberOfOutputManagementVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isOutputVertex()) {
retVal += groupVertex.getNumberOfGroupMembers();... | [
"public",
"int",
"getNumberOfOutputManagementVertices",
"(",
")",
"{",
"int",
"retVal",
"=",
"0",
";",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
... | Returns the number of output management vertices in this stage, i.e. the number
of management vertices which are connected to vertices in a higher stage
or have no output channels.
@return the number of output vertices in this stage | [
"Returns",
"the",
"number",
"of",
"output",
"management",
"vertices",
"in",
"this",
"stage",
"i",
".",
"e",
".",
"the",
"number",
"of",
"management",
"vertices",
"which",
"are",
"connected",
"to",
"vertices",
"in",
"a",
"higher",
"stage",
"or",
"have",
"no... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L176-L190 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getNumberOfInputGroupVertices | public int getNumberOfInputGroupVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
if (it.next().isInputVertex()) {
++retVal;
}
}
return retVal;
} | java | public int getNumberOfInputGroupVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
if (it.next().isInputVertex()) {
++retVal;
}
}
return retVal;
} | [
"public",
"int",
"getNumberOfInputGroupVertices",
"(",
")",
"{",
"int",
"retVal",
"=",
"0",
";",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasN... | Returns the number of input group vertices in this stage. Input group vertices are those vertices which have
incoming edges from group vertices of a lower stage.
@return the number of input group vertices in this stage | [
"Returns",
"the",
"number",
"of",
"input",
"group",
"vertices",
"in",
"this",
"stage",
".",
"Input",
"group",
"vertices",
"are",
"those",
"vertices",
"which",
"have",
"incoming",
"edges",
"from",
"group",
"vertices",
"of",
"a",
"lower",
"stage",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L250-L262 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getInputGroupVertex | public ManagementGroupVertex getInputGroupVertex(int index) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
if (index == 0) {
return groupVertex;
} else {
... | java | public ManagementGroupVertex getInputGroupVertex(int index) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isInputVertex()) {
if (index == 0) {
return groupVertex;
} else {
... | [
"public",
"ManagementGroupVertex",
"getInputGroupVertex",
"(",
"int",
"index",
")",
"{",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
... | Returns the input group vertex in this stage with the given index. Input group vertices are those vertices which
have incoming edges from group vertices of a lower stage.
@param index
the index of the input group vertex to return
@return the input group vertex with the given index or <code>null</code> if no such verte... | [
"Returns",
"the",
"input",
"group",
"vertex",
"in",
"this",
"stage",
"with",
"the",
"given",
"index",
".",
"Input",
"group",
"vertices",
"are",
"those",
"vertices",
"which",
"have",
"incoming",
"edges",
"from",
"group",
"vertices",
"of",
"a",
"lower",
"stage... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L272-L288 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getNumberOfOutputGroupVertices | public int getNumberOfOutputGroupVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
if (it.next().isOutputVertex()) {
++retVal;
}
}
return retVal;
} | java | public int getNumberOfOutputGroupVertices() {
int retVal = 0;
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
if (it.next().isOutputVertex()) {
++retVal;
}
}
return retVal;
} | [
"public",
"int",
"getNumberOfOutputGroupVertices",
"(",
")",
"{",
"int",
"retVal",
"=",
"0",
";",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"has... | Returns the number of output group vertices in this stage. Output group vertices are those vertices which have
outgoing edges to group vertices of a higher stage.
@return the number of output group vertices in this stage | [
"Returns",
"the",
"number",
"of",
"output",
"group",
"vertices",
"in",
"this",
"stage",
".",
"Output",
"group",
"vertices",
"are",
"those",
"vertices",
"which",
"have",
"outgoing",
"edges",
"to",
"group",
"vertices",
"of",
"a",
"higher",
"stage",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L296-L308 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java | ManagementStage.getOutputGroupVertex | public ManagementGroupVertex getOutputGroupVertex(int index) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isOutputVertex()) {
if (index == 0) {
return groupVertex;
} else {... | java | public ManagementGroupVertex getOutputGroupVertex(int index) {
final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator();
while (it.hasNext()) {
final ManagementGroupVertex groupVertex = it.next();
if (groupVertex.isOutputVertex()) {
if (index == 0) {
return groupVertex;
} else {... | [
"public",
"ManagementGroupVertex",
"getOutputGroupVertex",
"(",
"int",
"index",
")",
"{",
"final",
"Iterator",
"<",
"ManagementGroupVertex",
">",
"it",
"=",
"this",
".",
"groupVertices",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
... | Returns the output group vertex in this stage with the given index. Output group vertices are those vertices
which have outgoing edges to group vertices of a higher stage.
@param index
the index of the output group vertex to return
@return the output group vertex with the given index or <code>null</code> if no such ve... | [
"Returns",
"the",
"output",
"group",
"vertex",
"in",
"this",
"stage",
"with",
"the",
"given",
"index",
".",
"Output",
"group",
"vertices",
"are",
"those",
"vertices",
"which",
"have",
"outgoing",
"edges",
"to",
"group",
"vertices",
"of",
"a",
"higher",
"stag... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L318-L334 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java | HardwareDescriptionFactory.extractFromSystem | public static HardwareDescription extractFromSystem() {
int numberOfCPUCores = Runtime.getRuntime().availableProcessors();
long sizeOfPhysicalMemory = getSizeOfPhysicalMemory();
if (sizeOfPhysicalMemory < 0) {
sizeOfPhysicalMemory = 1;
}
long sizeOfFreeMemory = getSizeOfFreeMemory();
return new Hardwa... | java | public static HardwareDescription extractFromSystem() {
int numberOfCPUCores = Runtime.getRuntime().availableProcessors();
long sizeOfPhysicalMemory = getSizeOfPhysicalMemory();
if (sizeOfPhysicalMemory < 0) {
sizeOfPhysicalMemory = 1;
}
long sizeOfFreeMemory = getSizeOfFreeMemory();
return new Hardwa... | [
"public",
"static",
"HardwareDescription",
"extractFromSystem",
"(",
")",
"{",
"int",
"numberOfCPUCores",
"=",
"Runtime",
".",
"getRuntime",
"(",
")",
".",
"availableProcessors",
"(",
")",
";",
"long",
"sizeOfPhysicalMemory",
"=",
"getSizeOfPhysicalMemory",
"(",
")"... | Extracts a hardware description object from the system.
@return the hardware description object or <code>null</code> if at least
one value for the hardware description cannot be determined | [
"Extracts",
"a",
"hardware",
"description",
"object",
"from",
"the",
"system",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L67-L78 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java | HardwareDescriptionFactory.getSizeOfFreeMemory | private static long getSizeOfFreeMemory() {
float fractionToUse = GlobalConfiguration.getFloat(
ConfigConstants.TASK_MANAGER_MEMORY_FRACTION_KEY, ConfigConstants.DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION);
Runtime r = Runtime.getRuntime();
long max = r.maxMemory();
long total = r.totalMemory();
long free =... | java | private static long getSizeOfFreeMemory() {
float fractionToUse = GlobalConfiguration.getFloat(
ConfigConstants.TASK_MANAGER_MEMORY_FRACTION_KEY, ConfigConstants.DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION);
Runtime r = Runtime.getRuntime();
long max = r.maxMemory();
long total = r.totalMemory();
long free =... | [
"private",
"static",
"long",
"getSizeOfFreeMemory",
"(",
")",
"{",
"float",
"fractionToUse",
"=",
"GlobalConfiguration",
".",
"getFloat",
"(",
"ConfigConstants",
".",
"TASK_MANAGER_MEMORY_FRACTION_KEY",
",",
"ConfigConstants",
".",
"DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION",
... | Returns the size of free memory in bytes available to the JVM.
@return the size of the free memory in bytes available to the JVM or <code>-1</code> if the size cannot be
determined | [
"Returns",
"the",
"size",
"of",
"free",
"memory",
"in",
"bytes",
"available",
"to",
"the",
"JVM",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L104-L115 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java | HardwareDescriptionFactory.getSizeOfPhysicalMemoryForLinux | @SuppressWarnings("resource")
private static long getSizeOfPhysicalMemoryForLinux() {
BufferedReader lineReader = null;
try {
lineReader = new BufferedReader(new FileReader(LINUX_MEMORY_INFO_PATH));
String line = null;
while ((line = lineReader.readLine()) != null) {
Matcher matcher = LINUX_MEMORY_RE... | java | @SuppressWarnings("resource")
private static long getSizeOfPhysicalMemoryForLinux() {
BufferedReader lineReader = null;
try {
lineReader = new BufferedReader(new FileReader(LINUX_MEMORY_INFO_PATH));
String line = null;
while ((line = lineReader.readLine()) != null) {
Matcher matcher = LINUX_MEMORY_RE... | [
"@",
"SuppressWarnings",
"(",
"\"resource\"",
")",
"private",
"static",
"long",
"getSizeOfPhysicalMemoryForLinux",
"(",
")",
"{",
"BufferedReader",
"lineReader",
"=",
"null",
";",
"try",
"{",
"lineReader",
"=",
"new",
"BufferedReader",
"(",
"new",
"FileReader",
"(... | Returns the size of the physical memory in bytes on a Linux-based
operating system.
@return the size of the physical memory in bytes or <code>-1</code> if
the size could not be determined | [
"Returns",
"the",
"size",
"of",
"the",
"physical",
"memory",
"in",
"bytes",
"on",
"a",
"Linux",
"-",
"based",
"operating",
"system",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L154-L189 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java | HardwareDescriptionFactory.getSizeOfPhysicalMemoryForMac | private static long getSizeOfPhysicalMemoryForMac() {
BufferedReader bi = null;
try {
Process proc = Runtime.getRuntime().exec("sysctl hw.memsize");
bi = new BufferedReader(
new InputStreamReader(proc.getInputStream()));
String line;
while ((line = bi.readLine()) != null) {
if (line.starts... | java | private static long getSizeOfPhysicalMemoryForMac() {
BufferedReader bi = null;
try {
Process proc = Runtime.getRuntime().exec("sysctl hw.memsize");
bi = new BufferedReader(
new InputStreamReader(proc.getInputStream()));
String line;
while ((line = bi.readLine()) != null) {
if (line.starts... | [
"private",
"static",
"long",
"getSizeOfPhysicalMemoryForMac",
"(",
")",
"{",
"BufferedReader",
"bi",
"=",
"null",
";",
"try",
"{",
"Process",
"proc",
"=",
"Runtime",
".",
"getRuntime",
"(",
")",
".",
"exec",
"(",
"\"sysctl hw.memsize\"",
")",
";",
"bi",
"=",... | Returns the size of the physical memory in bytes on a Mac OS-based
operating system
@return the size of the physical memory in bytes or <code>-1</code> if
the size could not be determined | [
"Returns",
"the",
"size",
"of",
"the",
"physical",
"memory",
"in",
"bytes",
"on",
"a",
"Mac",
"OS",
"-",
"based",
"operating",
"system"
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L198-L231 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java | ManagementGate.insertForwardEdge | void insertForwardEdge(final ManagementEdge managementEdge, final int index) {
while (index >= this.forwardEdges.size()) {
this.forwardEdges.add(null);
}
this.forwardEdges.set(index, managementEdge);
} | java | void insertForwardEdge(final ManagementEdge managementEdge, final int index) {
while (index >= this.forwardEdges.size()) {
this.forwardEdges.add(null);
}
this.forwardEdges.set(index, managementEdge);
} | [
"void",
"insertForwardEdge",
"(",
"final",
"ManagementEdge",
"managementEdge",
",",
"final",
"int",
"index",
")",
"{",
"while",
"(",
"index",
">=",
"this",
".",
"forwardEdges",
".",
"size",
"(",
")",
")",
"{",
"this",
".",
"forwardEdges",
".",
"add",
"(",
... | Adds a new edge which originates at this gate.
@param managementEdge
the edge to be added
@param index
the index at which the edge shall be added | [
"Adds",
"a",
"new",
"edge",
"which",
"originates",
"at",
"this",
"gate",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L100-L107 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java | ManagementGate.insertBackwardEdge | void insertBackwardEdge(final ManagementEdge managementEdge, final int index) {
while (index >= this.backwardEdges.size()) {
this.backwardEdges.add(null);
}
this.backwardEdges.set(index, managementEdge);
} | java | void insertBackwardEdge(final ManagementEdge managementEdge, final int index) {
while (index >= this.backwardEdges.size()) {
this.backwardEdges.add(null);
}
this.backwardEdges.set(index, managementEdge);
} | [
"void",
"insertBackwardEdge",
"(",
"final",
"ManagementEdge",
"managementEdge",
",",
"final",
"int",
"index",
")",
"{",
"while",
"(",
"index",
">=",
"this",
".",
"backwardEdges",
".",
"size",
"(",
")",
")",
"{",
"this",
".",
"backwardEdges",
".",
"add",
"(... | Adds a new edge which arrives at this gate.
@param managementEdge
the edge to be added
@param index
the index at which the edge shall be added | [
"Adds",
"a",
"new",
"edge",
"which",
"arrives",
"at",
"this",
"gate",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L117-L124 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java | ManagementGate.getForwardEdge | public ManagementEdge getForwardEdge(final int index) {
if (index < this.forwardEdges.size()) {
return this.forwardEdges.get(index);
}
return null;
} | java | public ManagementEdge getForwardEdge(final int index) {
if (index < this.forwardEdges.size()) {
return this.forwardEdges.get(index);
}
return null;
} | [
"public",
"ManagementEdge",
"getForwardEdge",
"(",
"final",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"<",
"this",
".",
"forwardEdges",
".",
"size",
"(",
")",
")",
"{",
"return",
"this",
".",
"forwardEdges",
".",
"get",
"(",
"index",
")",
";",
"}",... | Returns the edge originating at the given index.
@param index
the index of the edge to be returned
@return the edge at the given index or <code>null</code> if no such edge exists | [
"Returns",
"the",
"edge",
"originating",
"at",
"the",
"given",
"index",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L171-L178 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java | ManagementGate.getBackwardEdge | public ManagementEdge getBackwardEdge(final int index) {
if (index < this.backwardEdges.size()) {
return this.backwardEdges.get(index);
}
return null;
} | java | public ManagementEdge getBackwardEdge(final int index) {
if (index < this.backwardEdges.size()) {
return this.backwardEdges.get(index);
}
return null;
} | [
"public",
"ManagementEdge",
"getBackwardEdge",
"(",
"final",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"<",
"this",
".",
"backwardEdges",
".",
"size",
"(",
")",
")",
"{",
"return",
"this",
".",
"backwardEdges",
".",
"get",
"(",
"index",
")",
";",
"... | Returns the edge arriving at the given index.
@param index
the index of the edge to be returned
@return the edge at the given index or <code>null</code> if no such edge exists | [
"Returns",
"the",
"edge",
"arriving",
"at",
"the",
"given",
"index",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L187-L194 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraphIterator.java | ManagementGraphIterator.currentGateLeadsToOtherStage | private boolean currentGateLeadsToOtherStage(final TraversalEntry te, final boolean forward) {
final ManagementGroupVertex groupVertex = te.getManagementVertex().getGroupVertex();
if (forward) {
if (te.getCurrentGate() >= groupVertex.getNumberOfForwardEdges()) {
return false;
}
final ManagementGrou... | java | private boolean currentGateLeadsToOtherStage(final TraversalEntry te, final boolean forward) {
final ManagementGroupVertex groupVertex = te.getManagementVertex().getGroupVertex();
if (forward) {
if (te.getCurrentGate() >= groupVertex.getNumberOfForwardEdges()) {
return false;
}
final ManagementGrou... | [
"private",
"boolean",
"currentGateLeadsToOtherStage",
"(",
"final",
"TraversalEntry",
"te",
",",
"final",
"boolean",
"forward",
")",
"{",
"final",
"ManagementGroupVertex",
"groupVertex",
"=",
"te",
".",
"getManagementVertex",
"(",
")",
".",
"getGroupVertex",
"(",
")... | Checks if the current gate leads to another stage or not.
@param te
the current traversal entry
@param forward
<code>true</code> if the graph should be traversed in correct order, <code>false</code> to traverse it in
reverse order
@return <code>true</code> if current gate leads to another stage, otherwise <code>false<... | [
"Checks",
"if",
"the",
"current",
"gate",
"leads",
"to",
"another",
"stage",
"or",
"not",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraphIterator.java#L414-L442 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java | RequestedLocalProperties.filterByNodesConstantSet | public RequestedLocalProperties filterByNodesConstantSet(OptimizerNode node, int input) {
if (this.ordering != null) {
final FieldList involvedIndexes = this.ordering.getInvolvedIndexes();
for (int i = 0; i < involvedIndexes.size(); i++) {
if (!node.isFieldConstant(input, involvedIndexes.get(i))) {
ret... | java | public RequestedLocalProperties filterByNodesConstantSet(OptimizerNode node, int input) {
if (this.ordering != null) {
final FieldList involvedIndexes = this.ordering.getInvolvedIndexes();
for (int i = 0; i < involvedIndexes.size(); i++) {
if (!node.isFieldConstant(input, involvedIndexes.get(i))) {
ret... | [
"public",
"RequestedLocalProperties",
"filterByNodesConstantSet",
"(",
"OptimizerNode",
"node",
",",
"int",
"input",
")",
"{",
"if",
"(",
"this",
".",
"ordering",
"!=",
"null",
")",
"{",
"final",
"FieldList",
"involvedIndexes",
"=",
"this",
".",
"ordering",
".",... | Filters these properties by what can be preserved through a user function's constant fields set.
Since interesting properties are filtered top-down, anything that partially destroys the ordering
makes the properties uninteresting.
@param node The optimizer node that potentially modifies the properties.
@param input Th... | [
"Filters",
"these",
"properties",
"by",
"what",
"can",
"be",
"preserved",
"through",
"a",
"user",
"function",
"s",
"constant",
"fields",
"set",
".",
"Since",
"interesting",
"properties",
"are",
"filtered",
"top",
"-",
"down",
"anything",
"that",
"partially",
"... | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java#L141-L158 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java | RequestedLocalProperties.parameterizeChannel | public void parameterizeChannel(Channel channel) {
if (this.ordering != null) {
channel.setLocalStrategy(LocalStrategy.SORT, this.ordering.getInvolvedIndexes(), this.ordering.getFieldSortDirections());
} else if (this.groupedFields != null) {
boolean[] dirs = new boolean[this.groupedFields.size()];
Arrays.... | java | public void parameterizeChannel(Channel channel) {
if (this.ordering != null) {
channel.setLocalStrategy(LocalStrategy.SORT, this.ordering.getInvolvedIndexes(), this.ordering.getFieldSortDirections());
} else if (this.groupedFields != null) {
boolean[] dirs = new boolean[this.groupedFields.size()];
Arrays.... | [
"public",
"void",
"parameterizeChannel",
"(",
"Channel",
"channel",
")",
"{",
"if",
"(",
"this",
".",
"ordering",
"!=",
"null",
")",
"{",
"channel",
".",
"setLocalStrategy",
"(",
"LocalStrategy",
".",
"SORT",
",",
"this",
".",
"ordering",
".",
"getInvolvedIn... | Parameterizes the local strategy fields of a channel such that the channel produces the desired local properties.
@param channel The channel to parameterize. | [
"Parameterizes",
"the",
"local",
"strategy",
"fields",
"of",
"a",
"channel",
"such",
"that",
"the",
"channel",
"produces",
"the",
"desired",
"local",
"properties",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java#L189-L197 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java | EnumUtils.readEnum | public static <T extends Enum<T>> T readEnum(final DataInput in, final Class<T> enumType) throws IOException {
if (!in.readBoolean()) {
return null;
}
return T.valueOf(enumType, StringRecord.readString(in));
} | java | public static <T extends Enum<T>> T readEnum(final DataInput in, final Class<T> enumType) throws IOException {
if (!in.readBoolean()) {
return null;
}
return T.valueOf(enumType, StringRecord.readString(in));
} | [
"public",
"static",
"<",
"T",
"extends",
"Enum",
"<",
"T",
">",
">",
"T",
"readEnum",
"(",
"final",
"DataInput",
"in",
",",
"final",
"Class",
"<",
"T",
">",
"enumType",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"in",
".",
"readBoolean",
"(",... | Reads a value from the given enumeration from the specified input stream.
@param <T>
the type of the enumeration
@param in
the input stream to read from
@param enumType
the class of the enumeration
@return the value of the given enumeration read from the input stream
@throws IOException
thrown if any error occurred wh... | [
"Reads",
"a",
"value",
"from",
"the",
"given",
"enumeration",
"from",
"the",
"specified",
"input",
"stream",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java#L47-L54 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java | EnumUtils.writeEnum | public static void writeEnum(final DataOutput out, final Enum<?> enumVal) throws IOException {
if (enumVal == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
StringRecord.writeString(out, enumVal.name());
}
} | java | public static void writeEnum(final DataOutput out, final Enum<?> enumVal) throws IOException {
if (enumVal == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
StringRecord.writeString(out, enumVal.name());
}
} | [
"public",
"static",
"void",
"writeEnum",
"(",
"final",
"DataOutput",
"out",
",",
"final",
"Enum",
"<",
"?",
">",
"enumVal",
")",
"throws",
"IOException",
"{",
"if",
"(",
"enumVal",
"==",
"null",
")",
"{",
"out",
".",
"writeBoolean",
"(",
"false",
")",
... | Writes a value of an enumeration to the given output stream.
@param out
the output stream to write to
@param enumVal
the value of a enumeration to be written to the output stream
@throws IOException
thrown if any error occurred while writing data to the stream | [
"Writes",
"a",
"value",
"of",
"an",
"enumeration",
"to",
"the",
"given",
"output",
"stream",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java#L66-L74 | train |
stratosphere/stratosphere | stratosphere-core/src/main/java/eu/stratosphere/core/io/StringRecord.java | StringRecord.set | public void set(final byte[] utf8, final int start, final int len) {
setCapacity(len, false);
System.arraycopy(utf8, start, bytes, 0, len);
this.length = len;
this.hash = 0;
} | java | public void set(final byte[] utf8, final int start, final int len) {
setCapacity(len, false);
System.arraycopy(utf8, start, bytes, 0, len);
this.length = len;
this.hash = 0;
} | [
"public",
"void",
"set",
"(",
"final",
"byte",
"[",
"]",
"utf8",
",",
"final",
"int",
"start",
",",
"final",
"int",
"len",
")",
"{",
"setCapacity",
"(",
"len",
",",
"false",
")",
";",
"System",
".",
"arraycopy",
"(",
"utf8",
",",
"start",
",",
"byt... | Set the Text to range of bytes
@param utf8
the data to copy from
@param start
the first position of the new string
@param len
the number of bytes of the new string | [
"Set",
"the",
"Text",
"to",
"range",
"of",
"bytes"
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/core/io/StringRecord.java#L220-L225 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.applyUserDefinedSettings | private void applyUserDefinedSettings(final HashMap<AbstractJobVertex, ExecutionGroupVertex> temporaryGroupVertexMap)
throws GraphConversionException {
// The check for cycles in the dependency chain for instance sharing is already checked in
// <code>submitJob</code> method of the job manager
// If there is... | java | private void applyUserDefinedSettings(final HashMap<AbstractJobVertex, ExecutionGroupVertex> temporaryGroupVertexMap)
throws GraphConversionException {
// The check for cycles in the dependency chain for instance sharing is already checked in
// <code>submitJob</code> method of the job manager
// If there is... | [
"private",
"void",
"applyUserDefinedSettings",
"(",
"final",
"HashMap",
"<",
"AbstractJobVertex",
",",
"ExecutionGroupVertex",
">",
"temporaryGroupVertexMap",
")",
"throws",
"GraphConversionException",
"{",
"// The check for cycles in the dependency chain for instance sharing is alre... | Applies the user defined settings to the execution graph.
@param temporaryGroupVertexMap
mapping between job vertices and the corresponding group vertices.
@throws GraphConversionException
thrown if an error occurs while applying the user settings. | [
"Applies",
"the",
"user",
"defined",
"settings",
"to",
"the",
"execution",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L190-L249 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.constructExecutionGraph | private void constructExecutionGraph(final JobGraph jobGraph, final InstanceManager instanceManager)
throws GraphConversionException {
// Clean up temporary data structures
final HashMap<AbstractJobVertex, ExecutionVertex> temporaryVertexMap = new HashMap<AbstractJobVertex, ExecutionVertex>();
final HashMap<A... | java | private void constructExecutionGraph(final JobGraph jobGraph, final InstanceManager instanceManager)
throws GraphConversionException {
// Clean up temporary data structures
final HashMap<AbstractJobVertex, ExecutionVertex> temporaryVertexMap = new HashMap<AbstractJobVertex, ExecutionVertex>();
final HashMap<A... | [
"private",
"void",
"constructExecutionGraph",
"(",
"final",
"JobGraph",
"jobGraph",
",",
"final",
"InstanceManager",
"instanceManager",
")",
"throws",
"GraphConversionException",
"{",
"// Clean up temporary data structures",
"final",
"HashMap",
"<",
"AbstractJobVertex",
",",
... | Sets up an execution graph from a job graph.
@param jobGraph
the job graph to create the execution graph from
@param instanceManager
the instance manager
@throws GraphConversionException
thrown if the job graph is not valid and no execution graph can be constructed from it | [
"Sets",
"up",
"an",
"execution",
"graph",
"from",
"a",
"job",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L261-L292 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.createInitialGroupEdges | private void createInitialGroupEdges(final HashMap<AbstractJobVertex, ExecutionVertex> vertexMap)
throws GraphConversionException {
Iterator<Map.Entry<AbstractJobVertex, ExecutionVertex>> it = vertexMap.entrySet().iterator();
while (it.hasNext()) {
final Map.Entry<AbstractJobVertex, ExecutionVertex> entry ... | java | private void createInitialGroupEdges(final HashMap<AbstractJobVertex, ExecutionVertex> vertexMap)
throws GraphConversionException {
Iterator<Map.Entry<AbstractJobVertex, ExecutionVertex>> it = vertexMap.entrySet().iterator();
while (it.hasNext()) {
final Map.Entry<AbstractJobVertex, ExecutionVertex> entry ... | [
"private",
"void",
"createInitialGroupEdges",
"(",
"final",
"HashMap",
"<",
"AbstractJobVertex",
",",
"ExecutionVertex",
">",
"vertexMap",
")",
"throws",
"GraphConversionException",
"{",
"Iterator",
"<",
"Map",
".",
"Entry",
"<",
"AbstractJobVertex",
",",
"ExecutionVe... | Creates the initial edges between the group vertices
@param vertexMap
the temporary vertex map
@throws GraphConversionException
if the initial wiring cannot be created | [
"Creates",
"the",
"initial",
"edges",
"between",
"the",
"group",
"vertices"
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L390-L440 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.getInputVertex | public ExecutionVertex getInputVertex(final int stage, final int index) {
try {
final ExecutionStage s = this.stages.get(stage);
if (s == null) {
return null;
}
return s.getInputExecutionVertex(index);
} catch (ArrayIndexOutOfBoundsException e) {
return null;
}
} | java | public ExecutionVertex getInputVertex(final int stage, final int index) {
try {
final ExecutionStage s = this.stages.get(stage);
if (s == null) {
return null;
}
return s.getInputExecutionVertex(index);
} catch (ArrayIndexOutOfBoundsException e) {
return null;
}
} | [
"public",
"ExecutionVertex",
"getInputVertex",
"(",
"final",
"int",
"stage",
",",
"final",
"int",
"index",
")",
"{",
"try",
"{",
"final",
"ExecutionStage",
"s",
"=",
"this",
".",
"stages",
".",
"get",
"(",
"stage",
")",
";",
"if",
"(",
"s",
"==",
"null... | Returns the input vertex with the specified index for the given stage
@param stage
the index of the stage
@param index
the index of the input vertex to return
@return the input vertex with the specified index or <code>null</code> if no input vertex with such an index
exists in that stage | [
"Returns",
"the",
"input",
"vertex",
"with",
"the",
"specified",
"index",
"for",
"the",
"given",
"stage"
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L676-L689 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.getVertexByChannelID | public ExecutionVertex getVertexByChannelID(final ChannelID id) {
final ExecutionEdge edge = this.edgeMap.get(id);
if (edge == null) {
return null;
}
if (id.equals(edge.getOutputChannelID())) {
return edge.getOutputGate().getVertex();
}
return edge.getInputGate().getVertex();
} | java | public ExecutionVertex getVertexByChannelID(final ChannelID id) {
final ExecutionEdge edge = this.edgeMap.get(id);
if (edge == null) {
return null;
}
if (id.equals(edge.getOutputChannelID())) {
return edge.getOutputGate().getVertex();
}
return edge.getInputGate().getVertex();
} | [
"public",
"ExecutionVertex",
"getVertexByChannelID",
"(",
"final",
"ChannelID",
"id",
")",
"{",
"final",
"ExecutionEdge",
"edge",
"=",
"this",
".",
"edgeMap",
".",
"get",
"(",
"id",
")",
";",
"if",
"(",
"edge",
"==",
"null",
")",
"{",
"return",
"null",
"... | Identifies an execution by the specified channel ID and returns it.
@param id
the channel ID to identify the vertex with
@return the execution vertex which has a channel with ID <code>id</code> or <code>null</code> if no such vertex
exists in the execution graph | [
"Identifies",
"an",
"execution",
"by",
"the",
"specified",
"channel",
"ID",
"and",
"returns",
"it",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L750-L762 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.registerExecutionVertex | void registerExecutionVertex(final ExecutionVertex vertex) {
if (this.vertexMap.put(vertex.getID(), vertex) != null) {
throw new IllegalStateException("There is already an execution vertex with ID " + vertex.getID()
+ " registered");
}
} | java | void registerExecutionVertex(final ExecutionVertex vertex) {
if (this.vertexMap.put(vertex.getID(), vertex) != null) {
throw new IllegalStateException("There is already an execution vertex with ID " + vertex.getID()
+ " registered");
}
} | [
"void",
"registerExecutionVertex",
"(",
"final",
"ExecutionVertex",
"vertex",
")",
"{",
"if",
"(",
"this",
".",
"vertexMap",
".",
"put",
"(",
"vertex",
".",
"getID",
"(",
")",
",",
"vertex",
")",
"!=",
"null",
")",
"{",
"throw",
"new",
"IllegalStateExcepti... | Registers an execution vertex with the execution graph.
@param vertex
the execution vertex to register | [
"Registers",
"an",
"execution",
"vertex",
"with",
"the",
"execution",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L782-L788 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.isCurrentStageCompleted | private boolean isCurrentStageCompleted() {
if (this.indexToCurrentExecutionStage >= this.stages.size()) {
return true;
}
final ExecutionGraphIterator it = new ExecutionGraphIterator(this, this.indexToCurrentExecutionStage, true,
true);
while (it.hasNext()) {
final ExecutionVertex vertex = it.next();... | java | private boolean isCurrentStageCompleted() {
if (this.indexToCurrentExecutionStage >= this.stages.size()) {
return true;
}
final ExecutionGraphIterator it = new ExecutionGraphIterator(this, this.indexToCurrentExecutionStage, true,
true);
while (it.hasNext()) {
final ExecutionVertex vertex = it.next();... | [
"private",
"boolean",
"isCurrentStageCompleted",
"(",
")",
"{",
"if",
"(",
"this",
".",
"indexToCurrentExecutionStage",
">=",
"this",
".",
"stages",
".",
"size",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"final",
"ExecutionGraphIterator",
"it",
"=",
"n... | Checks if the current execution stage has been successfully completed, i.e.
all vertices in this stage have successfully finished their execution.
@return <code>true</code> if stage is completed, <code>false</code> otherwise | [
"Checks",
"if",
"the",
"current",
"execution",
"stage",
"has",
"been",
"successfully",
"completed",
"i",
".",
"e",
".",
"all",
"vertices",
"in",
"this",
"stage",
"have",
"successfully",
"finished",
"their",
"execution",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L809-L825 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.reconstructExecutionPipelines | private void reconstructExecutionPipelines() {
final Iterator<ExecutionStage> it = this.stages.iterator();
while (it.hasNext()) {
it.next().reconstructExecutionPipelines();
}
} | java | private void reconstructExecutionPipelines() {
final Iterator<ExecutionStage> it = this.stages.iterator();
while (it.hasNext()) {
it.next().reconstructExecutionPipelines();
}
} | [
"private",
"void",
"reconstructExecutionPipelines",
"(",
")",
"{",
"final",
"Iterator",
"<",
"ExecutionStage",
">",
"it",
"=",
"this",
".",
"stages",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"it",
".",
"ne... | Reconstructs the execution pipelines for the entire execution graph. | [
"Reconstructs",
"the",
"execution",
"pipelines",
"for",
"the",
"entire",
"execution",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L1338-L1345 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java | ExecutionGraph.calculateConnectionIDs | private void calculateConnectionIDs() {
final Set<ExecutionGroupVertex> alreadyVisited = new HashSet<ExecutionGroupVertex>();
final ExecutionStage lastStage = getStage(getNumberOfStages() - 1);
for (int i = 0; i < lastStage.getNumberOfStageMembers(); ++i) {
final ExecutionGroupVertex groupVertex = lastStage... | java | private void calculateConnectionIDs() {
final Set<ExecutionGroupVertex> alreadyVisited = new HashSet<ExecutionGroupVertex>();
final ExecutionStage lastStage = getStage(getNumberOfStages() - 1);
for (int i = 0; i < lastStage.getNumberOfStageMembers(); ++i) {
final ExecutionGroupVertex groupVertex = lastStage... | [
"private",
"void",
"calculateConnectionIDs",
"(",
")",
"{",
"final",
"Set",
"<",
"ExecutionGroupVertex",
">",
"alreadyVisited",
"=",
"new",
"HashSet",
"<",
"ExecutionGroupVertex",
">",
"(",
")",
";",
"final",
"ExecutionStage",
"lastStage",
"=",
"getStage",
"(",
... | Calculates the connection IDs of the graph to avoid deadlocks in the data flow at runtime. | [
"Calculates",
"the",
"connection",
"IDs",
"of",
"the",
"graph",
"to",
"avoid",
"deadlocks",
"in",
"the",
"data",
"flow",
"at",
"runtime",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGraph.java#L1350-L1365 | train |
stratosphere/stratosphere | stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCOutputFormat.java | JDBCOutputFormat.configure | @Override
public void configure(Configuration parameters) {
this.driverName = parameters.getString(DRIVER_KEY, null);
this.username = parameters.getString(USERNAME_KEY, null);
this.password = parameters.getString(PASSWORD_KEY, null);
this.dbURL = parameters.getString(URL_KEY, null);
this.query = parameters.g... | java | @Override
public void configure(Configuration parameters) {
this.driverName = parameters.getString(DRIVER_KEY, null);
this.username = parameters.getString(USERNAME_KEY, null);
this.password = parameters.getString(PASSWORD_KEY, null);
this.dbURL = parameters.getString(URL_KEY, null);
this.query = parameters.g... | [
"@",
"Override",
"public",
"void",
"configure",
"(",
"Configuration",
"parameters",
")",
"{",
"this",
".",
"driverName",
"=",
"parameters",
".",
"getString",
"(",
"DRIVER_KEY",
",",
"null",
")",
";",
"this",
".",
"username",
"=",
"parameters",
".",
"getStrin... | Configures this JDBCOutputFormat.
@param parameters
Configuration containing all parameters. | [
"Configures",
"this",
"JDBCOutputFormat",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCOutputFormat.java#L84-L107 | train |
stratosphere/stratosphere | stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCOutputFormat.java | JDBCOutputFormat.open | @Override
public void open(int taskNumber, int numTasks) throws IOException {
try {
establishConnection();
upload = dbConn.prepareStatement(query);
} catch (SQLException sqe) {
throw new IllegalArgumentException("open() failed:\t!", sqe);
} catch (ClassNotFoundException cnfe) {
throw new IllegalArgum... | java | @Override
public void open(int taskNumber, int numTasks) throws IOException {
try {
establishConnection();
upload = dbConn.prepareStatement(query);
} catch (SQLException sqe) {
throw new IllegalArgumentException("open() failed:\t!", sqe);
} catch (ClassNotFoundException cnfe) {
throw new IllegalArgum... | [
"@",
"Override",
"public",
"void",
"open",
"(",
"int",
"taskNumber",
",",
"int",
"numTasks",
")",
"throws",
"IOException",
"{",
"try",
"{",
"establishConnection",
"(",
")",
";",
"upload",
"=",
"dbConn",
".",
"prepareStatement",
"(",
"query",
")",
";",
"}",... | Connects to the target database and initializes the prepared statement.
@param taskNumber The number of the parallel instance.
@throws IOException Thrown, if the output could not be opened due to an
I/O problem. | [
"Connects",
"to",
"the",
"target",
"database",
"and",
"initializes",
"the",
"prepared",
"statement",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCOutputFormat.java#L116-L126 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/sort/NormalizedKeySorter.java | NormalizedKeySorter.writeToOutput | @Override
public void writeToOutput(final ChannelWriterOutputView output) throws IOException {
int recordsLeft = this.numRecords;
int currentMemSeg = 0;
while (recordsLeft > 0)
{
final MemorySegment currentIndexSegment = this.sortIndex.get(currentMemSeg++);
int offset = 0;
// check whether we have a f... | java | @Override
public void writeToOutput(final ChannelWriterOutputView output) throws IOException {
int recordsLeft = this.numRecords;
int currentMemSeg = 0;
while (recordsLeft > 0)
{
final MemorySegment currentIndexSegment = this.sortIndex.get(currentMemSeg++);
int offset = 0;
// check whether we have a f... | [
"@",
"Override",
"public",
"void",
"writeToOutput",
"(",
"final",
"ChannelWriterOutputView",
"output",
")",
"throws",
"IOException",
"{",
"int",
"recordsLeft",
"=",
"this",
".",
"numRecords",
";",
"int",
"currentMemSeg",
"=",
"0",
";",
"while",
"(",
"recordsLeft... | Writes the records in this buffer in their logical order to the given output.
@param output The output view to write the records to.
@throws IOException Thrown, if an I/O exception occurred writing to the output view. | [
"Writes",
"the",
"records",
"in",
"this",
"buffer",
"in",
"their",
"logical",
"order",
"to",
"the",
"given",
"output",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/sort/NormalizedKeySorter.java#L432-L460 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java | ExecutionGroupVertex.addInitialSubtask | void addInitialSubtask(final ExecutionVertex ev) {
if (ev == null) {
throw new IllegalArgumentException("Argument ev must not be null");
}
if (this.initialGroupMemberAdded.compareAndSet(false, true)) {
this.groupMembers.add(ev);
}
} | java | void addInitialSubtask(final ExecutionVertex ev) {
if (ev == null) {
throw new IllegalArgumentException("Argument ev must not be null");
}
if (this.initialGroupMemberAdded.compareAndSet(false, true)) {
this.groupMembers.add(ev);
}
} | [
"void",
"addInitialSubtask",
"(",
"final",
"ExecutionVertex",
"ev",
")",
"{",
"if",
"(",
"ev",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Argument ev must not be null\"",
")",
";",
"}",
"if",
"(",
"this",
".",
"initialGroupMember... | Adds the initial execution vertex to this group vertex.
@param ev
The new execution vertex to be added. | [
"Adds",
"the",
"initial",
"execution",
"vertex",
"to",
"this",
"group",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java#L279-L288 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java | ExecutionGroupVertex.getGroupMember | public ExecutionVertex getGroupMember(final int pos) {
if (pos < 0) {
throw new IllegalArgumentException("Argument pos must be greater or equal to 0");
}
try {
return this.groupMembers.get(pos);
} catch (ArrayIndexOutOfBoundsException e) {
return null;
}
} | java | public ExecutionVertex getGroupMember(final int pos) {
if (pos < 0) {
throw new IllegalArgumentException("Argument pos must be greater or equal to 0");
}
try {
return this.groupMembers.get(pos);
} catch (ArrayIndexOutOfBoundsException e) {
return null;
}
} | [
"public",
"ExecutionVertex",
"getGroupMember",
"(",
"final",
"int",
"pos",
")",
"{",
"if",
"(",
"pos",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Argument pos must be greater or equal to 0\"",
")",
";",
"}",
"try",
"{",
"return",
"th... | Returns a specific execution vertex from the list of members.
@param pos
The position of the execution vertex to be returned.
@return The execution vertex at position <code>pos</code> of the member list, <code>null</code> if there is no
such position. | [
"Returns",
"a",
"specific",
"execution",
"vertex",
"from",
"the",
"list",
"of",
"members",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java#L298-L309 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java | ExecutionGroupVertex.wireTo | ExecutionGroupEdge wireTo(final ExecutionGroupVertex groupVertex, final int indexOfInputGate,
final int indexOfOutputGate, final ChannelType channelType, final boolean userDefinedChannelType,
final DistributionPattern distributionPattern) throws GraphConversionException {
try {
final ExecutionGroupEdge prev... | java | ExecutionGroupEdge wireTo(final ExecutionGroupVertex groupVertex, final int indexOfInputGate,
final int indexOfOutputGate, final ChannelType channelType, final boolean userDefinedChannelType,
final DistributionPattern distributionPattern) throws GraphConversionException {
try {
final ExecutionGroupEdge prev... | [
"ExecutionGroupEdge",
"wireTo",
"(",
"final",
"ExecutionGroupVertex",
"groupVertex",
",",
"final",
"int",
"indexOfInputGate",
",",
"final",
"int",
"indexOfOutputGate",
",",
"final",
"ChannelType",
"channelType",
",",
"final",
"boolean",
"userDefinedChannelType",
",",
"f... | Wires this group vertex to the specified group vertex and creates
a back link.
@param groupVertex
the group vertex that should be the target of the wiring
@param indexOfInputGate
the index of the consuming task's input gate
@param indexOfOutputGate
the index of the producing tasks's output gate
@param channelType
the ... | [
"Wires",
"this",
"group",
"vertex",
"to",
"the",
"specified",
"group",
"vertex",
"and",
"creates",
"a",
"back",
"link",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java#L389-L411 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java | ExecutionGroupVertex.isWiredTo | boolean isWiredTo(final ExecutionGroupVertex groupVertex) {
final Iterator<ExecutionGroupEdge> it = this.forwardLinks.iterator();
while (it.hasNext()) {
final ExecutionGroupEdge edge = it.next();
if (edge.getTargetVertex() == groupVertex) {
return true;
}
}
return false;
} | java | boolean isWiredTo(final ExecutionGroupVertex groupVertex) {
final Iterator<ExecutionGroupEdge> it = this.forwardLinks.iterator();
while (it.hasNext()) {
final ExecutionGroupEdge edge = it.next();
if (edge.getTargetVertex() == groupVertex) {
return true;
}
}
return false;
} | [
"boolean",
"isWiredTo",
"(",
"final",
"ExecutionGroupVertex",
"groupVertex",
")",
"{",
"final",
"Iterator",
"<",
"ExecutionGroupEdge",
">",
"it",
"=",
"this",
".",
"forwardLinks",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
... | Checks if this group vertex is wired to the given group vertex.
@param groupVertex
the group vertex to check for
@return <code>true</code> if there is a wire from the current group vertex to the specified group vertex,
otherwise <code>false</code> | [
"Checks",
"if",
"this",
"group",
"vertex",
"is",
"wired",
"to",
"the",
"given",
"group",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java#L421-L432 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java | ExecutionGroupVertex.createInitialExecutionVertices | void createInitialExecutionVertices(final int initalNumberOfVertices) throws GraphConversionException {
// If the requested number of group vertices does not change, do nothing
if (initalNumberOfVertices == this.getCurrentNumberOfGroupMembers()) {
return;
}
// Make sure the method is only called for the in... | java | void createInitialExecutionVertices(final int initalNumberOfVertices) throws GraphConversionException {
// If the requested number of group vertices does not change, do nothing
if (initalNumberOfVertices == this.getCurrentNumberOfGroupMembers()) {
return;
}
// Make sure the method is only called for the in... | [
"void",
"createInitialExecutionVertices",
"(",
"final",
"int",
"initalNumberOfVertices",
")",
"throws",
"GraphConversionException",
"{",
"// If the requested number of group vertices does not change, do nothing",
"if",
"(",
"initalNumberOfVertices",
"==",
"this",
".",
"getCurrentNu... | Creates the initial execution vertices managed by this group vertex.
@param initialNumberOfVertices
the initial number of execution vertices
@throws GraphConversionException
thrown if the number of execution vertices for this group vertex cannot be set to the desired value | [
"Creates",
"the",
"initial",
"execution",
"vertices",
"managed",
"by",
"this",
"group",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupVertex.java#L483-L549 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/event/task/EventNotificationManager.java | EventNotificationManager.subscribeToEvent | public void subscribeToEvent(final EventListener eventListener, final Class<? extends AbstractTaskEvent> eventType) {
synchronized (this.subscriptions) {
List<EventListener> subscribers = this.subscriptions.get(eventType);
if (subscribers == null) {
subscribers = new ArrayList<EventListener>();
this.s... | java | public void subscribeToEvent(final EventListener eventListener, final Class<? extends AbstractTaskEvent> eventType) {
synchronized (this.subscriptions) {
List<EventListener> subscribers = this.subscriptions.get(eventType);
if (subscribers == null) {
subscribers = new ArrayList<EventListener>();
this.s... | [
"public",
"void",
"subscribeToEvent",
"(",
"final",
"EventListener",
"eventListener",
",",
"final",
"Class",
"<",
"?",
"extends",
"AbstractTaskEvent",
">",
"eventType",
")",
"{",
"synchronized",
"(",
"this",
".",
"subscriptions",
")",
"{",
"List",
"<",
"EventLis... | Subscribes the given event listener object to the specified event type.
@param eventListener
the {@link EventListener} object to create the subscription for
@param eventType
the event type the given listener object wants to be notified about | [
"Subscribes",
"the",
"given",
"event",
"listener",
"object",
"to",
"the",
"specified",
"event",
"type",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/event/task/EventNotificationManager.java#L43-L55 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/event/task/EventNotificationManager.java | EventNotificationManager.deliverEvent | public void deliverEvent(AbstractTaskEvent event) {
synchronized (this.subscriptions) {
List<EventListener> subscribers = this.subscriptions.get(event.getClass());
if (subscribers == null) {
return;
}
final Iterator<EventListener> it = subscribers.iterator();
while (it.hasNext()) {
it.next()... | java | public void deliverEvent(AbstractTaskEvent event) {
synchronized (this.subscriptions) {
List<EventListener> subscribers = this.subscriptions.get(event.getClass());
if (subscribers == null) {
return;
}
final Iterator<EventListener> it = subscribers.iterator();
while (it.hasNext()) {
it.next()... | [
"public",
"void",
"deliverEvent",
"(",
"AbstractTaskEvent",
"event",
")",
"{",
"synchronized",
"(",
"this",
".",
"subscriptions",
")",
"{",
"List",
"<",
"EventListener",
">",
"subscribers",
"=",
"this",
".",
"subscriptions",
".",
"get",
"(",
"event",
".",
"g... | Delivers a event to all of the registered subscribers.
@param event The event to deliver. | [
"Delivers",
"a",
"event",
"to",
"all",
"of",
"the",
"registered",
"subscribers",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/event/task/EventNotificationManager.java#L86-L100 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupEdge.java | ExecutionGroupEdge.changeChannelType | void changeChannelType(final ChannelType newChannelType) throws GraphConversionException {
if (!this.channelType.equals(newChannelType) && this.userDefinedChannelType) {
throw new GraphConversionException("Cannot overwrite user defined channel type");
}
this.channelType = newChannelType;
} | java | void changeChannelType(final ChannelType newChannelType) throws GraphConversionException {
if (!this.channelType.equals(newChannelType) && this.userDefinedChannelType) {
throw new GraphConversionException("Cannot overwrite user defined channel type");
}
this.channelType = newChannelType;
} | [
"void",
"changeChannelType",
"(",
"final",
"ChannelType",
"newChannelType",
")",
"throws",
"GraphConversionException",
"{",
"if",
"(",
"!",
"this",
".",
"channelType",
".",
"equals",
"(",
"newChannelType",
")",
"&&",
"this",
".",
"userDefinedChannelType",
")",
"{"... | Changes the channel type for this edge.
@param newChannelType
the channel type for this edge
@throws GraphConversionException
thrown if the new channel type violates a user setting | [
"Changes",
"the",
"channel",
"type",
"for",
"this",
"edge",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionGroupEdge.java#L115-L122 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/AbstractRecordReader.java | AbstractRecordReader.subscribeToEvent | @Override
public void subscribeToEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType) {
this.eventHandler.subscribeToEvent(eventListener, eventType);
} | java | @Override
public void subscribeToEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType) {
this.eventHandler.subscribeToEvent(eventListener, eventType);
} | [
"@",
"Override",
"public",
"void",
"subscribeToEvent",
"(",
"EventListener",
"eventListener",
",",
"Class",
"<",
"?",
"extends",
"AbstractTaskEvent",
">",
"eventType",
")",
"{",
"this",
".",
"eventHandler",
".",
"subscribeToEvent",
"(",
"eventListener",
",",
"even... | Subscribes the listener object to receive events of the given type.
@param eventListener
the listener object to register
@param eventType
the type of event to register the listener for | [
"Subscribes",
"the",
"listener",
"object",
"to",
"receive",
"events",
"of",
"the",
"given",
"type",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/AbstractRecordReader.java#L43-L46 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/AbstractRecordReader.java | AbstractRecordReader.unsubscribeFromEvent | @Override
public void unsubscribeFromEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType) {
this.eventHandler.unsubscribeFromEvent(eventListener, eventType);
} | java | @Override
public void unsubscribeFromEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType) {
this.eventHandler.unsubscribeFromEvent(eventListener, eventType);
} | [
"@",
"Override",
"public",
"void",
"unsubscribeFromEvent",
"(",
"EventListener",
"eventListener",
",",
"Class",
"<",
"?",
"extends",
"AbstractTaskEvent",
">",
"eventType",
")",
"{",
"this",
".",
"eventHandler",
".",
"unsubscribeFromEvent",
"(",
"eventListener",
",",... | Removes the subscription for events of the given type for the listener object.
@param eventListener The listener object to cancel the subscription for.
@param eventType The type of the event to cancel the subscription for. | [
"Removes",
"the",
"subscription",
"for",
"events",
"of",
"the",
"given",
"type",
"for",
"the",
"listener",
"object",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/AbstractRecordReader.java#L54-L57 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/ExecutionStateTransition.java | ExecutionStateTransition.checkTransition | public static void checkTransition(boolean jobManager, String taskName, ExecutionState oldState, ExecutionState newState) {
LOG.info((jobManager ? "JM: " : "TM: ") + "ExecutionState set from " + oldState + " to " + newState + " for task " + taskName);
boolean unexpectedStateChange = true;
// This is the regula... | java | public static void checkTransition(boolean jobManager, String taskName, ExecutionState oldState, ExecutionState newState) {
LOG.info((jobManager ? "JM: " : "TM: ") + "ExecutionState set from " + oldState + " to " + newState + " for task " + taskName);
boolean unexpectedStateChange = true;
// This is the regula... | [
"public",
"static",
"void",
"checkTransition",
"(",
"boolean",
"jobManager",
",",
"String",
"taskName",
",",
"ExecutionState",
"oldState",
",",
"ExecutionState",
"newState",
")",
"{",
"LOG",
".",
"info",
"(",
"(",
"jobManager",
"?",
"\"JM: \"",
":",
"\"TM: \"",
... | Checks the transition of the execution state and outputs an error in case of an unexpected state transition.
@param jobManager
<code>true</code> to indicate the method is called by the job manager,
<code>false/<code> to indicate it is called by a task manager
@param taskName
the name of the task whose execution has ch... | [
"Checks",
"the",
"transition",
"of",
"the",
"execution",
"state",
"and",
"outputs",
"an",
"error",
"in",
"case",
"of",
"an",
"unexpected",
"state",
"transition",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/ExecutionStateTransition.java#L53-L111 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java | AbstractJobVertex.getFirstFreeOutputGateIndex | protected int getFirstFreeOutputGateIndex() {
for (int i = 0; i < this.forwardEdges.size(); i++) {
if (this.forwardEdges.get(i) == null) {
return i;
}
}
return this.forwardEdges.size();
} | java | protected int getFirstFreeOutputGateIndex() {
for (int i = 0; i < this.forwardEdges.size(); i++) {
if (this.forwardEdges.get(i) == null) {
return i;
}
}
return this.forwardEdges.size();
} | [
"protected",
"int",
"getFirstFreeOutputGateIndex",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"forwardEdges",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"if",
"(",
"this",
".",
"forwardEdges",
".",
"get",
"("... | Returns the index of this vertex's first free output gate.
@return the index of the first free output gate | [
"Returns",
"the",
"index",
"of",
"this",
"vertex",
"s",
"first",
"free",
"output",
"gate",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java#L241-L251 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java | AbstractJobVertex.getFirstFreeInputGateIndex | protected int getFirstFreeInputGateIndex() {
for (int i = 0; i < this.backwardEdges.size(); i++) {
if (this.backwardEdges.get(i) == null) {
return i;
}
}
return this.backwardEdges.size();
} | java | protected int getFirstFreeInputGateIndex() {
for (int i = 0; i < this.backwardEdges.size(); i++) {
if (this.backwardEdges.get(i) == null) {
return i;
}
}
return this.backwardEdges.size();
} | [
"protected",
"int",
"getFirstFreeInputGateIndex",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"backwardEdges",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"if",
"(",
"this",
".",
"backwardEdges",
".",
"get",
"(... | Returns the index of this vertex's first free input gate.
@return the index of the first free input gate | [
"Returns",
"the",
"index",
"of",
"this",
"vertex",
"s",
"first",
"free",
"input",
"gate",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java#L258-L268 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java | AbstractJobVertex.connectBacklink | private void connectBacklink(final AbstractJobVertex vertex, final ChannelType channelType,
final int indexOfOutputGate, final int indexOfInputGate,
DistributionPattern distributionPattern) {
// Make sure the array is big enough
for (int i = this.backwardEdges.size(); i <= indexOfInputGate; i++) {
this.ba... | java | private void connectBacklink(final AbstractJobVertex vertex, final ChannelType channelType,
final int indexOfOutputGate, final int indexOfInputGate,
DistributionPattern distributionPattern) {
// Make sure the array is big enough
for (int i = this.backwardEdges.size(); i <= indexOfInputGate; i++) {
this.ba... | [
"private",
"void",
"connectBacklink",
"(",
"final",
"AbstractJobVertex",
"vertex",
",",
"final",
"ChannelType",
"channelType",
",",
"final",
"int",
"indexOfOutputGate",
",",
"final",
"int",
"indexOfInputGate",
",",
"DistributionPattern",
"distributionPattern",
")",
"{",... | Creates a backward link from a connected job vertex.
@param vertex
the job vertex to connect to
@param channelType
the channel type the two vertices should be connected by at runtime
@param compressionLevel
the compression level the corresponding channel should have at runtime
@param indexOfOutputGate
index of the pro... | [
"Creates",
"a",
"backward",
"link",
"from",
"a",
"connected",
"job",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java#L284-L295 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java | AbstractJobVertex.checkConfiguration | public void checkConfiguration(final AbstractInvokable invokable) throws IllegalConfigurationException {
if (invokable == null) {
throw new IllegalArgumentException("Argument invokable is null");
}
// see if the task itself has a valid configuration
// because this is user code running on the master, we em... | java | public void checkConfiguration(final AbstractInvokable invokable) throws IllegalConfigurationException {
if (invokable == null) {
throw new IllegalArgumentException("Argument invokable is null");
}
// see if the task itself has a valid configuration
// because this is user code running on the master, we em... | [
"public",
"void",
"checkConfiguration",
"(",
"final",
"AbstractInvokable",
"invokable",
")",
"throws",
"IllegalConfigurationException",
"{",
"if",
"(",
"invokable",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Argument invokable is null\"",
... | Performs task specific checks if the
respective task has been configured properly.
@param invokable
an instance of the task this vertex represents
@throws IllegalConfigurationException
thrown if the respective tasks is not configured properly | [
"Performs",
"task",
"specific",
"checks",
"if",
"the",
"respective",
"task",
"has",
"been",
"configured",
"properly",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/AbstractJobVertex.java#L672-L688 | train |
stratosphere/stratosphere | stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/TwoInputUdfOperator.java | TwoInputUdfOperator.withConstantSetFirst | @SuppressWarnings("unchecked")
public O withConstantSetFirst(String... constantSetFirst) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties();
}
SemanticPropUtil.getSemanticPropsDualFromString(this.udfSemantics, constantSetFirst, null,
null, null, null, null, this.ge... | java | @SuppressWarnings("unchecked")
public O withConstantSetFirst(String... constantSetFirst) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties();
}
SemanticPropUtil.getSemanticPropsDualFromString(this.udfSemantics, constantSetFirst, null,
null, null, null, null, this.ge... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"O",
"withConstantSetFirst",
"(",
"String",
"...",
"constantSetFirst",
")",
"{",
"if",
"(",
"this",
".",
"udfSemantics",
"==",
"null",
")",
"{",
"this",
".",
"udfSemantics",
"=",
"new",
"DualInputSe... | Adds a constant-set annotation for the first input of the UDF.
<p>
Constant set annotations are used by the optimizer to infer the existence of data properties (sorted, partitioned, grouped).
In certain cases, these annotations allow the optimizer to generate a more efficient execution plan which can lead to improved ... | [
"Adds",
"a",
"constant",
"-",
"set",
"annotation",
"for",
"the",
"first",
"input",
"of",
"the",
"UDF",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/TwoInputUdfOperator.java#L118-L129 | train |
stratosphere/stratosphere | stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/TwoInputUdfOperator.java | TwoInputUdfOperator.withConstantSetSecond | @SuppressWarnings("unchecked")
public O withConstantSetSecond(String... constantSetSecond) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties();
}
SemanticPropUtil.getSemanticPropsDualFromString(this.udfSemantics, null, constantSetSecond,
null, null, null, null, this... | java | @SuppressWarnings("unchecked")
public O withConstantSetSecond(String... constantSetSecond) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties();
}
SemanticPropUtil.getSemanticPropsDualFromString(this.udfSemantics, null, constantSetSecond,
null, null, null, null, this... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"O",
"withConstantSetSecond",
"(",
"String",
"...",
"constantSetSecond",
")",
"{",
"if",
"(",
"this",
".",
"udfSemantics",
"==",
"null",
")",
"{",
"this",
".",
"udfSemantics",
"=",
"new",
"DualInput... | Adds a constant-set annotation for the second input of the UDF.
<p>
Constant set annotations are used by the optimizer to infer the existence of data properties (sorted, partitioned, grouped).
In certain cases, these annotations allow the optimizer to generate a more efficient execution plan which can lead to improved... | [
"Adds",
"a",
"constant",
"-",
"set",
"annotation",
"for",
"the",
"second",
"input",
"of",
"the",
"UDF",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/TwoInputUdfOperator.java#L149-L160 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/deadlockdetect/DeadlockPreventer.java | DeadlockPreventer.hasDeadlock | public boolean hasDeadlock(List<? extends PlanNode> sinks) {
this.g = new DeadlockGraph();
for(PlanNode s : sinks) {
s.accept(this);
}
if(g.hasCycle()) {
return true;
} else {
return false;
}
} | java | public boolean hasDeadlock(List<? extends PlanNode> sinks) {
this.g = new DeadlockGraph();
for(PlanNode s : sinks) {
s.accept(this);
}
if(g.hasCycle()) {
return true;
} else {
return false;
}
} | [
"public",
"boolean",
"hasDeadlock",
"(",
"List",
"<",
"?",
"extends",
"PlanNode",
">",
"sinks",
")",
"{",
"this",
".",
"g",
"=",
"new",
"DeadlockGraph",
"(",
")",
";",
"for",
"(",
"PlanNode",
"s",
":",
"sinks",
")",
"{",
"s",
".",
"accept",
"(",
"t... | Creates new DeadlockGraph from plan and checks for cycles
@param plan
@return | [
"Creates",
"new",
"DeadlockGraph",
"from",
"plan",
"and",
"checks",
"for",
"cycles"
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/deadlockdetect/DeadlockPreventer.java#L131-L143 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.duplicateVertex | public ExecutionVertex duplicateVertex(final boolean preserveVertexID) {
ExecutionVertexID newVertexID;
if (preserveVertexID) {
newVertexID = this.vertexID;
} else {
newVertexID = new ExecutionVertexID();
}
final ExecutionVertex duplicatedVertex = new ExecutionVertex(newVertexID, this.executionGraph,
... | java | public ExecutionVertex duplicateVertex(final boolean preserveVertexID) {
ExecutionVertexID newVertexID;
if (preserveVertexID) {
newVertexID = this.vertexID;
} else {
newVertexID = new ExecutionVertexID();
}
final ExecutionVertex duplicatedVertex = new ExecutionVertex(newVertexID, this.executionGraph,
... | [
"public",
"ExecutionVertex",
"duplicateVertex",
"(",
"final",
"boolean",
"preserveVertexID",
")",
"{",
"ExecutionVertexID",
"newVertexID",
";",
"if",
"(",
"preserveVertexID",
")",
"{",
"newVertexID",
"=",
"this",
".",
"vertexID",
";",
"}",
"else",
"{",
"newVertexI... | Returns a duplicate of this execution vertex.
@param preserveVertexID
<code>true</code> to copy the vertex's ID to the duplicated vertex, <code>false</code> to create a new ID
@return a duplicate of this execution vertex | [
"Returns",
"a",
"duplicate",
"of",
"this",
"execution",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L214-L241 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.insertOutputGate | void insertOutputGate(final int pos, final ExecutionGate outputGate) {
if (this.outputGates[pos] != null) {
throw new IllegalStateException("Output gate at position " + pos + " is not null");
}
this.outputGates[pos] = outputGate;
} | java | void insertOutputGate(final int pos, final ExecutionGate outputGate) {
if (this.outputGates[pos] != null) {
throw new IllegalStateException("Output gate at position " + pos + " is not null");
}
this.outputGates[pos] = outputGate;
} | [
"void",
"insertOutputGate",
"(",
"final",
"int",
"pos",
",",
"final",
"ExecutionGate",
"outputGate",
")",
"{",
"if",
"(",
"this",
".",
"outputGates",
"[",
"pos",
"]",
"!=",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Output gate at posit... | Inserts the output gate at the given position.
@param pos
the position to insert the output gate
@param outputGate
the output gate to be inserted | [
"Inserts",
"the",
"output",
"gate",
"at",
"the",
"given",
"position",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L251-L258 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.insertInputGate | void insertInputGate(final int pos, final ExecutionGate inputGate) {
if (this.inputGates[pos] != null) {
throw new IllegalStateException("Input gate at position " + pos + " is not null");
}
this.inputGates[pos] = inputGate;
} | java | void insertInputGate(final int pos, final ExecutionGate inputGate) {
if (this.inputGates[pos] != null) {
throw new IllegalStateException("Input gate at position " + pos + " is not null");
}
this.inputGates[pos] = inputGate;
} | [
"void",
"insertInputGate",
"(",
"final",
"int",
"pos",
",",
"final",
"ExecutionGate",
"inputGate",
")",
"{",
"if",
"(",
"this",
".",
"inputGates",
"[",
"pos",
"]",
"!=",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Input gate at position ... | Inserts the input gate at the given position.
@param pos
the position to insert the input gate
@param outputGate
the input gate to be inserted | [
"Inserts",
"the",
"input",
"gate",
"at",
"the",
"given",
"position",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L268-L275 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.updateExecutionStateAsynchronously | public void updateExecutionStateAsynchronously(final ExecutionState newExecutionState,
final String optionalMessage) {
final Runnable command = new Runnable() {
/**
* {@inheritDoc}
*/
@Override
public void run() {
updateExecutionState(newExecutionState, optionalMessage);
}
};
this.e... | java | public void updateExecutionStateAsynchronously(final ExecutionState newExecutionState,
final String optionalMessage) {
final Runnable command = new Runnable() {
/**
* {@inheritDoc}
*/
@Override
public void run() {
updateExecutionState(newExecutionState, optionalMessage);
}
};
this.e... | [
"public",
"void",
"updateExecutionStateAsynchronously",
"(",
"final",
"ExecutionState",
"newExecutionState",
",",
"final",
"String",
"optionalMessage",
")",
"{",
"final",
"Runnable",
"command",
"=",
"new",
"Runnable",
"(",
")",
"{",
"/**\n\t\t\t * {@inheritDoc}\n\t\t\t */... | Updates the vertex's current execution state through the job's executor service.
@param newExecutionState
the new execution state
@param optionalMessage
an optional message related to the state change | [
"Updates",
"the",
"vertex",
"s",
"current",
"execution",
"state",
"through",
"the",
"job",
"s",
"executor",
"service",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L305-L321 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.updateExecutionState | public ExecutionState updateExecutionState(ExecutionState newExecutionState, final String optionalMessage) {
if (newExecutionState == null) {
throw new IllegalArgumentException("Argument newExecutionState must not be null");
}
final ExecutionState currentExecutionState = this.executionState.get();
if (curr... | java | public ExecutionState updateExecutionState(ExecutionState newExecutionState, final String optionalMessage) {
if (newExecutionState == null) {
throw new IllegalArgumentException("Argument newExecutionState must not be null");
}
final ExecutionState currentExecutionState = this.executionState.get();
if (curr... | [
"public",
"ExecutionState",
"updateExecutionState",
"(",
"ExecutionState",
"newExecutionState",
",",
"final",
"String",
"optionalMessage",
")",
"{",
"if",
"(",
"newExecutionState",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Argument newE... | Updates the vertex's current execution state.
@param newExecutionState
the new execution state
@param optionalMessage
an optional message related to the state change | [
"Updates",
"the",
"vertex",
"s",
"current",
"execution",
"state",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L352-L394 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.checkCancelRequestedFlag | private void checkCancelRequestedFlag() {
if (this.cancelRequested.compareAndSet(true, false)) {
final TaskCancelResult tsr = cancelTask();
if (tsr.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS
&& tsr.getReturnCode() != AbstractTaskResult.ReturnCode.TASK_NOT_FOUND) {
LOG.error("Unable to can... | java | private void checkCancelRequestedFlag() {
if (this.cancelRequested.compareAndSet(true, false)) {
final TaskCancelResult tsr = cancelTask();
if (tsr.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS
&& tsr.getReturnCode() != AbstractTaskResult.ReturnCode.TASK_NOT_FOUND) {
LOG.error("Unable to can... | [
"private",
"void",
"checkCancelRequestedFlag",
"(",
")",
"{",
"if",
"(",
"this",
".",
"cancelRequested",
".",
"compareAndSet",
"(",
"true",
",",
"false",
")",
")",
"{",
"final",
"TaskCancelResult",
"tsr",
"=",
"cancelTask",
"(",
")",
";",
"if",
"(",
"tsr",... | Checks if another thread requested the vertex to cancel while it was in state STARTING. If so, the method clears
the respective flag and repeats the cancel request. | [
"Checks",
"if",
"another",
"thread",
"requested",
"the",
"vertex",
"to",
"cancel",
"while",
"it",
"was",
"in",
"state",
"STARTING",
".",
"If",
"so",
"the",
"method",
"clears",
"the",
"respective",
"flag",
"and",
"repeats",
"the",
"cancel",
"request",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L426-L436 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.getNumberOfPredecessors | public int getNumberOfPredecessors() {
int numberOfPredecessors = 0;
for (int i = 0; i < this.inputGates.length; ++i) {
numberOfPredecessors += this.inputGates[i].getNumberOfEdges();
}
return numberOfPredecessors;
} | java | public int getNumberOfPredecessors() {
int numberOfPredecessors = 0;
for (int i = 0; i < this.inputGates.length; ++i) {
numberOfPredecessors += this.inputGates[i].getNumberOfEdges();
}
return numberOfPredecessors;
} | [
"public",
"int",
"getNumberOfPredecessors",
"(",
")",
"{",
"int",
"numberOfPredecessors",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"inputGates",
".",
"length",
";",
"++",
"i",
")",
"{",
"numberOfPredecessors",
"+=",
... | Returns the number of predecessors, i.e. the number of vertices
which connect to this vertex.
@return the number of predecessors | [
"Returns",
"the",
"number",
"of",
"predecessors",
"i",
".",
"e",
".",
"the",
"number",
"of",
"vertices",
"which",
"connect",
"to",
"this",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L501-L510 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.getNumberOfSuccessors | public int getNumberOfSuccessors() {
int numberOfSuccessors = 0;
for (int i = 0; i < this.outputGates.length; ++i) {
numberOfSuccessors += this.outputGates[i].getNumberOfEdges();
}
return numberOfSuccessors;
} | java | public int getNumberOfSuccessors() {
int numberOfSuccessors = 0;
for (int i = 0; i < this.outputGates.length; ++i) {
numberOfSuccessors += this.outputGates[i].getNumberOfEdges();
}
return numberOfSuccessors;
} | [
"public",
"int",
"getNumberOfSuccessors",
"(",
")",
"{",
"int",
"numberOfSuccessors",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"outputGates",
".",
"length",
";",
"++",
"i",
")",
"{",
"numberOfSuccessors",
"+=",
"this... | Returns the number of successors, i.e. the number of vertices
this vertex is connected to.
@return the number of successors | [
"Returns",
"the",
"number",
"of",
"successors",
"i",
".",
"e",
".",
"the",
"number",
"of",
"vertices",
"this",
"vertex",
"is",
"connected",
"to",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L518-L527 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.startTask | public TaskSubmissionResult startTask() {
final AllocatedResource ar = this.allocatedResource.get();
if (ar == null) {
final TaskSubmissionResult result = new TaskSubmissionResult(getID(),
AbstractTaskResult.ReturnCode.NO_INSTANCE);
result.setDescription("Assigned instance of vertex " + this.toString() ... | java | public TaskSubmissionResult startTask() {
final AllocatedResource ar = this.allocatedResource.get();
if (ar == null) {
final TaskSubmissionResult result = new TaskSubmissionResult(getID(),
AbstractTaskResult.ReturnCode.NO_INSTANCE);
result.setDescription("Assigned instance of vertex " + this.toString() ... | [
"public",
"TaskSubmissionResult",
"startTask",
"(",
")",
"{",
"final",
"AllocatedResource",
"ar",
"=",
"this",
".",
"allocatedResource",
".",
"get",
"(",
")",
";",
"if",
"(",
"ar",
"==",
"null",
")",
"{",
"final",
"TaskSubmissionResult",
"result",
"=",
"new"... | Deploys and starts the task represented by this vertex
on the assigned instance.
@return the result of the task submission attempt | [
"Deploys",
"and",
"starts",
"the",
"task",
"represented",
"by",
"this",
"vertex",
"on",
"the",
"assigned",
"instance",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L667-L692 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java | ExecutionVertex.constructDeploymentDescriptor | public TaskDeploymentDescriptor constructDeploymentDescriptor() {
final SerializableArrayList<GateDeploymentDescriptor> ogd = new SerializableArrayList<GateDeploymentDescriptor>(
this.outputGates.length);
for (int i = 0; i < this.outputGates.length; ++i) {
final ExecutionGate eg = this.outputGates[i];
fi... | java | public TaskDeploymentDescriptor constructDeploymentDescriptor() {
final SerializableArrayList<GateDeploymentDescriptor> ogd = new SerializableArrayList<GateDeploymentDescriptor>(
this.outputGates.length);
for (int i = 0; i < this.outputGates.length; ++i) {
final ExecutionGate eg = this.outputGates[i];
fi... | [
"public",
"TaskDeploymentDescriptor",
"constructDeploymentDescriptor",
"(",
")",
"{",
"final",
"SerializableArrayList",
"<",
"GateDeploymentDescriptor",
">",
"ogd",
"=",
"new",
"SerializableArrayList",
"<",
"GateDeploymentDescriptor",
">",
"(",
"this",
".",
"outputGates",
... | Constructs a new task deployment descriptor for this vertex.
@return a new task deployment descriptor for this vertex | [
"Constructs",
"a",
"new",
"task",
"deployment",
"descriptor",
"for",
"this",
"vertex",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionVertex.java#L955-L998 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java | ClusterInstance.createSlice | synchronized AllocatedSlice createSlice(final InstanceType reqType, final JobID jobID) {
// check whether we can accommodate the instance
if (remainingCapacity.getNumberOfComputeUnits() >= reqType.getNumberOfComputeUnits()
&& remainingCapacity.getNumberOfCores() >= reqType.getNumberOfCores()
&& remainingCapa... | java | synchronized AllocatedSlice createSlice(final InstanceType reqType, final JobID jobID) {
// check whether we can accommodate the instance
if (remainingCapacity.getNumberOfComputeUnits() >= reqType.getNumberOfComputeUnits()
&& remainingCapacity.getNumberOfCores() >= reqType.getNumberOfCores()
&& remainingCapa... | [
"synchronized",
"AllocatedSlice",
"createSlice",
"(",
"final",
"InstanceType",
"reqType",
",",
"final",
"JobID",
"jobID",
")",
"{",
"// check whether we can accommodate the instance",
"if",
"(",
"remainingCapacity",
".",
"getNumberOfComputeUnits",
"(",
")",
">=",
"reqType... | Tries to create a new slice on this instance.
@param reqType
the type describing the hardware characteristics of the slice
@param jobID
the ID of the job the new slice belongs to
@return a new {@AllocatedSlice} object if a slice with the given hardware characteristics could
still be accommodated on this instance or <c... | [
"Tries",
"to",
"create",
"a",
"new",
"slice",
"on",
"this",
"instance",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java#L113-L137 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java | ClusterInstance.removeAllocatedSlice | synchronized AllocatedSlice removeAllocatedSlice(final AllocationID allocationID) {
final AllocatedSlice slice = this.allocatedSlices.remove(allocationID);
if (slice != null) {
this.remainingCapacity = InstanceTypeFactory.construct(this.remainingCapacity.getIdentifier(),
this.remainingCapacity
.getNum... | java | synchronized AllocatedSlice removeAllocatedSlice(final AllocationID allocationID) {
final AllocatedSlice slice = this.allocatedSlices.remove(allocationID);
if (slice != null) {
this.remainingCapacity = InstanceTypeFactory.construct(this.remainingCapacity.getIdentifier(),
this.remainingCapacity
.getNum... | [
"synchronized",
"AllocatedSlice",
"removeAllocatedSlice",
"(",
"final",
"AllocationID",
"allocationID",
")",
"{",
"final",
"AllocatedSlice",
"slice",
"=",
"this",
".",
"allocatedSlices",
".",
"remove",
"(",
"allocationID",
")",
";",
"if",
"(",
"slice",
"!=",
"null... | Removes the slice identified by the given allocation ID from
this instance and frees up the allocated resources.
@param allocationID
the allocation ID of the slice to be removed
@return the slice with has been removed from the instance or <code>null</code> if no slice
with the given allocation ID could be found | [
"Removes",
"the",
"slice",
"identified",
"by",
"the",
"given",
"allocation",
"ID",
"from",
"this",
"instance",
"and",
"frees",
"up",
"the",
"allocated",
"resources",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java#L148-L163 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java | ClusterInstance.removeAllAllocatedSlices | synchronized List<AllocatedSlice> removeAllAllocatedSlices() {
final List<AllocatedSlice> slices = new ArrayList<AllocatedSlice>(this.allocatedSlices.values());
final Iterator<AllocatedSlice> it = slices.iterator();
while (it.hasNext()) {
removeAllocatedSlice(it.next().getAllocationID());
}
return slices... | java | synchronized List<AllocatedSlice> removeAllAllocatedSlices() {
final List<AllocatedSlice> slices = new ArrayList<AllocatedSlice>(this.allocatedSlices.values());
final Iterator<AllocatedSlice> it = slices.iterator();
while (it.hasNext()) {
removeAllocatedSlice(it.next().getAllocationID());
}
return slices... | [
"synchronized",
"List",
"<",
"AllocatedSlice",
">",
"removeAllAllocatedSlices",
"(",
")",
"{",
"final",
"List",
"<",
"AllocatedSlice",
">",
"slices",
"=",
"new",
"ArrayList",
"<",
"AllocatedSlice",
">",
"(",
"this",
".",
"allocatedSlices",
".",
"values",
"(",
... | Removes all allocated slices on this instance and frees
up their allocated resources.
@return a list of all removed slices | [
"Removes",
"all",
"allocated",
"slices",
"on",
"this",
"instance",
"and",
"frees",
"up",
"their",
"allocated",
"resources",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterInstance.java#L171-L180 | train |
stratosphere/stratosphere | stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dag/OptimizerNode.java | OptimizerNode.getConstantKeySet | protected int[] getConstantKeySet(int input) {
Operator<?> contract = getPactContract();
if (contract instanceof AbstractUdfOperator<?, ?>) {
AbstractUdfOperator<?, ?> abstractPact = (AbstractUdfOperator<?, ?>) contract;
int[] keyColumns = abstractPact.getKeyColumns(input);
if (keyColumns != null) {
if... | java | protected int[] getConstantKeySet(int input) {
Operator<?> contract = getPactContract();
if (contract instanceof AbstractUdfOperator<?, ?>) {
AbstractUdfOperator<?, ?> abstractPact = (AbstractUdfOperator<?, ?>) contract;
int[] keyColumns = abstractPact.getKeyColumns(input);
if (keyColumns != null) {
if... | [
"protected",
"int",
"[",
"]",
"getConstantKeySet",
"(",
"int",
"input",
")",
"{",
"Operator",
"<",
"?",
">",
"contract",
"=",
"getPactContract",
"(",
")",
";",
"if",
"(",
"contract",
"instanceof",
"AbstractUdfOperator",
"<",
"?",
",",
"?",
">",
")",
"{",... | Returns the key columns for the specific input, if all keys are preserved
by this node. Null, otherwise.
@param input
@return | [
"Returns",
"the",
"key",
"columns",
"for",
"the",
"specific",
"input",
"if",
"all",
"keys",
"are",
"preserved",
"by",
"this",
"node",
".",
"Null",
"otherwise",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dag/OptimizerNode.java#L712-L730 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.addVertex | public void addVertex(final AbstractJobInputVertex inputVertex) {
if (!inputVertices.containsKey(inputVertex.getID())) {
inputVertices.put(inputVertex.getID(), inputVertex);
}
} | java | public void addVertex(final AbstractJobInputVertex inputVertex) {
if (!inputVertices.containsKey(inputVertex.getID())) {
inputVertices.put(inputVertex.getID(), inputVertex);
}
} | [
"public",
"void",
"addVertex",
"(",
"final",
"AbstractJobInputVertex",
"inputVertex",
")",
"{",
"if",
"(",
"!",
"inputVertices",
".",
"containsKey",
"(",
"inputVertex",
".",
"getID",
"(",
")",
")",
")",
"{",
"inputVertices",
".",
"put",
"(",
"inputVertex",
"... | Adds a new input vertex to the job graph if it is not already included.
@param inputVertex
the new input vertex to be added | [
"Adds",
"a",
"new",
"input",
"vertex",
"to",
"the",
"job",
"graph",
"if",
"it",
"is",
"not",
"already",
"included",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L148-L153 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.addVertex | public void addVertex(final AbstractJobOutputVertex outputVertex) {
if (!outputVertices.containsKey(outputVertex.getID())) {
outputVertices.put(outputVertex.getID(), outputVertex);
}
} | java | public void addVertex(final AbstractJobOutputVertex outputVertex) {
if (!outputVertices.containsKey(outputVertex.getID())) {
outputVertices.put(outputVertex.getID(), outputVertex);
}
} | [
"public",
"void",
"addVertex",
"(",
"final",
"AbstractJobOutputVertex",
"outputVertex",
")",
"{",
"if",
"(",
"!",
"outputVertices",
".",
"containsKey",
"(",
"outputVertex",
".",
"getID",
"(",
")",
")",
")",
"{",
"outputVertices",
".",
"put",
"(",
"outputVertex... | Adds a new output vertex to the job graph if it is not already included.
@param outputVertex
the new output vertex to be added | [
"Adds",
"a",
"new",
"output",
"vertex",
"to",
"the",
"job",
"graph",
"if",
"it",
"is",
"not",
"already",
"included",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L174-L179 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.getInputVertices | public Iterator<AbstractJobInputVertex> getInputVertices() {
final Collection<AbstractJobInputVertex> coll = this.inputVertices.values();
return coll.iterator();
} | java | public Iterator<AbstractJobInputVertex> getInputVertices() {
final Collection<AbstractJobInputVertex> coll = this.inputVertices.values();
return coll.iterator();
} | [
"public",
"Iterator",
"<",
"AbstractJobInputVertex",
">",
"getInputVertices",
"(",
")",
"{",
"final",
"Collection",
"<",
"AbstractJobInputVertex",
">",
"coll",
"=",
"this",
".",
"inputVertices",
".",
"values",
"(",
")",
";",
"return",
"coll",
".",
"iterator",
... | Returns an iterator to iterate all input vertices registered with the job graph.
@return an iterator to iterate all input vertices registered with the job graph | [
"Returns",
"an",
"iterator",
"to",
"iterate",
"all",
"input",
"vertices",
"registered",
"with",
"the",
"job",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L213-L218 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.getOutputVertices | public Iterator<AbstractJobOutputVertex> getOutputVertices() {
final Collection<AbstractJobOutputVertex> coll = this.outputVertices.values();
return coll.iterator();
} | java | public Iterator<AbstractJobOutputVertex> getOutputVertices() {
final Collection<AbstractJobOutputVertex> coll = this.outputVertices.values();
return coll.iterator();
} | [
"public",
"Iterator",
"<",
"AbstractJobOutputVertex",
">",
"getOutputVertices",
"(",
")",
"{",
"final",
"Collection",
"<",
"AbstractJobOutputVertex",
">",
"coll",
"=",
"this",
".",
"outputVertices",
".",
"values",
"(",
")",
";",
"return",
"coll",
".",
"iterator"... | Returns an iterator to iterate all output vertices registered with the job graph.
@return an iterator to iterate all output vertices registered with the job graph | [
"Returns",
"an",
"iterator",
"to",
"iterate",
"all",
"output",
"vertices",
"registered",
"with",
"the",
"job",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L225-L230 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.getTaskVertices | public Iterator<JobTaskVertex> getTaskVertices() {
final Collection<JobTaskVertex> coll = this.taskVertices.values();
return coll.iterator();
} | java | public Iterator<JobTaskVertex> getTaskVertices() {
final Collection<JobTaskVertex> coll = this.taskVertices.values();
return coll.iterator();
} | [
"public",
"Iterator",
"<",
"JobTaskVertex",
">",
"getTaskVertices",
"(",
")",
"{",
"final",
"Collection",
"<",
"JobTaskVertex",
">",
"coll",
"=",
"this",
".",
"taskVertices",
".",
"values",
"(",
")",
";",
"return",
"coll",
".",
"iterator",
"(",
")",
";",
... | Returns an iterator to iterate all task vertices registered with the job graph.
@return an iterator to iterate all task vertices registered with the job graph | [
"Returns",
"an",
"iterator",
"to",
"iterate",
"all",
"task",
"vertices",
"registered",
"with",
"the",
"job",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L237-L242 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.getAllReachableJobVertices | public AbstractJobVertex[] getAllReachableJobVertices() {
final Vector<AbstractJobVertex> collector = new Vector<AbstractJobVertex>();
collectVertices(null, collector);
return collector.toArray(new AbstractJobVertex[0]);
} | java | public AbstractJobVertex[] getAllReachableJobVertices() {
final Vector<AbstractJobVertex> collector = new Vector<AbstractJobVertex>();
collectVertices(null, collector);
return collector.toArray(new AbstractJobVertex[0]);
} | [
"public",
"AbstractJobVertex",
"[",
"]",
"getAllReachableJobVertices",
"(",
")",
"{",
"final",
"Vector",
"<",
"AbstractJobVertex",
">",
"collector",
"=",
"new",
"Vector",
"<",
"AbstractJobVertex",
">",
"(",
")",
";",
"collectVertices",
"(",
"null",
",",
"collect... | Returns an array of all job vertices than can be reached when traversing the job graph from the input vertices.
@return an array of all job vertices than can be reached when traversing the job graph from the input vertices | [
"Returns",
"an",
"array",
"of",
"all",
"job",
"vertices",
"than",
"can",
"be",
"reached",
"when",
"traversing",
"the",
"job",
"graph",
"from",
"the",
"input",
"vertices",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L259-L264 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.getAllJobVertices | public AbstractJobVertex[] getAllJobVertices() {
int i = 0;
final AbstractJobVertex[] vertices = new AbstractJobVertex[inputVertices.size() + outputVertices.size()
+ taskVertices.size()];
final Iterator<AbstractJobInputVertex> iv = getInputVertices();
while (iv.hasNext()) {
vertices[i++] = iv.next();
... | java | public AbstractJobVertex[] getAllJobVertices() {
int i = 0;
final AbstractJobVertex[] vertices = new AbstractJobVertex[inputVertices.size() + outputVertices.size()
+ taskVertices.size()];
final Iterator<AbstractJobInputVertex> iv = getInputVertices();
while (iv.hasNext()) {
vertices[i++] = iv.next();
... | [
"public",
"AbstractJobVertex",
"[",
"]",
"getAllJobVertices",
"(",
")",
"{",
"int",
"i",
"=",
"0",
";",
"final",
"AbstractJobVertex",
"[",
"]",
"vertices",
"=",
"new",
"AbstractJobVertex",
"[",
"inputVertices",
".",
"size",
"(",
")",
"+",
"outputVertices",
"... | Returns an array of all job vertices that are registered with the job graph. The order in which the vertices
appear in the list is not defined.
@return an array of all job vertices that are registered with the job graph | [
"Returns",
"an",
"array",
"of",
"all",
"job",
"vertices",
"that",
"are",
"registered",
"with",
"the",
"job",
"graph",
".",
"The",
"order",
"in",
"which",
"the",
"vertices",
"appear",
"in",
"the",
"list",
"is",
"not",
"defined",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L272-L294 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.collectVertices | private void collectVertices(final AbstractJobVertex jv, final List<AbstractJobVertex> collector) {
if (jv == null) {
final Iterator<AbstractJobInputVertex> iter = getInputVertices();
while (iter.hasNext()) {
collectVertices(iter.next(), collector);
}
} else {
if (!collector.contains(jv)) {
co... | java | private void collectVertices(final AbstractJobVertex jv, final List<AbstractJobVertex> collector) {
if (jv == null) {
final Iterator<AbstractJobInputVertex> iter = getInputVertices();
while (iter.hasNext()) {
collectVertices(iter.next(), collector);
}
} else {
if (!collector.contains(jv)) {
co... | [
"private",
"void",
"collectVertices",
"(",
"final",
"AbstractJobVertex",
"jv",
",",
"final",
"List",
"<",
"AbstractJobVertex",
">",
"collector",
")",
"{",
"if",
"(",
"jv",
"==",
"null",
")",
"{",
"final",
"Iterator",
"<",
"AbstractJobInputVertex",
">",
"iter",... | Auxiliary method to collect all vertices which are reachable from the input vertices.
@param jv
the currently considered job vertex
@param collector
a temporary list to store the vertices that have already been visisted | [
"Auxiliary",
"method",
"to",
"collect",
"all",
"vertices",
"which",
"are",
"reachable",
"from",
"the",
"input",
"vertices",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L304-L323 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.findVertexByID | public AbstractJobVertex findVertexByID(final JobVertexID id) {
if (this.inputVertices.containsKey(id)) {
return this.inputVertices.get(id);
}
if (this.outputVertices.containsKey(id)) {
return this.outputVertices.get(id);
}
if (this.taskVertices.containsKey(id)) {
return this.taskVertices.get(id);... | java | public AbstractJobVertex findVertexByID(final JobVertexID id) {
if (this.inputVertices.containsKey(id)) {
return this.inputVertices.get(id);
}
if (this.outputVertices.containsKey(id)) {
return this.outputVertices.get(id);
}
if (this.taskVertices.containsKey(id)) {
return this.taskVertices.get(id);... | [
"public",
"AbstractJobVertex",
"findVertexByID",
"(",
"final",
"JobVertexID",
"id",
")",
"{",
"if",
"(",
"this",
".",
"inputVertices",
".",
"containsKey",
"(",
"id",
")",
")",
"{",
"return",
"this",
".",
"inputVertices",
".",
"get",
"(",
"id",
")",
";",
... | Searches for a vertex with a matching ID and returns it.
@param id
the ID of the vertex to search for
@return the vertex with the matching ID or <code>null</code> if no vertex with such ID could be found | [
"Searches",
"for",
"a",
"vertex",
"with",
"a",
"matching",
"ID",
"and",
"returns",
"it",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L341-L356 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.includedInJobGraph | private boolean includedInJobGraph(final JobVertexID id) {
if (this.inputVertices.containsKey(id)) {
return true;
}
if (this.outputVertices.containsKey(id)) {
return true;
}
if (this.taskVertices.containsKey(id)) {
return true;
}
return false;
} | java | private boolean includedInJobGraph(final JobVertexID id) {
if (this.inputVertices.containsKey(id)) {
return true;
}
if (this.outputVertices.containsKey(id)) {
return true;
}
if (this.taskVertices.containsKey(id)) {
return true;
}
return false;
} | [
"private",
"boolean",
"includedInJobGraph",
"(",
"final",
"JobVertexID",
"id",
")",
"{",
"if",
"(",
"this",
".",
"inputVertices",
".",
"containsKey",
"(",
"id",
")",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"this",
".",
"outputVertices",
".",
"co... | Checks if the job vertex with the given ID is registered with the job graph.
@param id
the ID of the vertex to search for
@return <code>true</code> if a vertex with the given ID is registered with the job graph, <code>false</code>
otherwise. | [
"Checks",
"if",
"the",
"job",
"vertex",
"with",
"the",
"given",
"ID",
"is",
"registered",
"with",
"the",
"job",
"graph",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L366-L381 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.isWeaklyConnected | public boolean isWeaklyConnected() {
final AbstractJobVertex[] reachable = getAllReachableJobVertices();
final AbstractJobVertex[] all = getAllJobVertices();
// Check if number if reachable vertices matches number of registered vertices
if (reachable.length != all.length) {
return false;
}
final HashM... | java | public boolean isWeaklyConnected() {
final AbstractJobVertex[] reachable = getAllReachableJobVertices();
final AbstractJobVertex[] all = getAllJobVertices();
// Check if number if reachable vertices matches number of registered vertices
if (reachable.length != all.length) {
return false;
}
final HashM... | [
"public",
"boolean",
"isWeaklyConnected",
"(",
")",
"{",
"final",
"AbstractJobVertex",
"[",
"]",
"reachable",
"=",
"getAllReachableJobVertices",
"(",
")",
";",
"final",
"AbstractJobVertex",
"[",
"]",
"all",
"=",
"getAllJobVertices",
"(",
")",
";",
"// Check if num... | Checks if the job graph is weakly connected.
@return <code>true</code> if the job graph is weakly connected, otherwise <code>false</code> | [
"Checks",
"if",
"the",
"job",
"graph",
"is",
"weakly",
"connected",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L388-L418 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.isAcyclic | public boolean isAcyclic() {
// Tarjan's algorithm to detect strongly connected componenent of a graph
final AbstractJobVertex[] reachable = getAllReachableJobVertices();
final HashMap<AbstractJobVertex, Integer> indexMap = new HashMap<AbstractJobVertex, Integer>();
final HashMap<AbstractJobVertex, Integer> lo... | java | public boolean isAcyclic() {
// Tarjan's algorithm to detect strongly connected componenent of a graph
final AbstractJobVertex[] reachable = getAllReachableJobVertices();
final HashMap<AbstractJobVertex, Integer> indexMap = new HashMap<AbstractJobVertex, Integer>();
final HashMap<AbstractJobVertex, Integer> lo... | [
"public",
"boolean",
"isAcyclic",
"(",
")",
"{",
"// Tarjan's algorithm to detect strongly connected componenent of a graph",
"final",
"AbstractJobVertex",
"[",
"]",
"reachable",
"=",
"getAllReachableJobVertices",
"(",
")",
";",
"final",
"HashMap",
"<",
"AbstractJobVertex",
... | Checks if the job graph is acyclic.
@return <code>true</code> if the job graph is acyclic, <code>false</code> otherwise | [
"Checks",
"if",
"the",
"job",
"graph",
"is",
"acyclic",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L425-L443 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.tarjan | private boolean tarjan(final AbstractJobVertex jv, Integer index,
final HashMap<AbstractJobVertex, Integer> indexMap, final HashMap<AbstractJobVertex, Integer> lowLinkMap,
final Stack<AbstractJobVertex> stack) {
indexMap.put(jv, Integer.valueOf(index));
lowLinkMap.put(jv, Integer.valueOf(index));
index = I... | java | private boolean tarjan(final AbstractJobVertex jv, Integer index,
final HashMap<AbstractJobVertex, Integer> indexMap, final HashMap<AbstractJobVertex, Integer> lowLinkMap,
final Stack<AbstractJobVertex> stack) {
indexMap.put(jv, Integer.valueOf(index));
lowLinkMap.put(jv, Integer.valueOf(index));
index = I... | [
"private",
"boolean",
"tarjan",
"(",
"final",
"AbstractJobVertex",
"jv",
",",
"Integer",
"index",
",",
"final",
"HashMap",
"<",
"AbstractJobVertex",
",",
"Integer",
">",
"indexMap",
",",
"final",
"HashMap",
"<",
"AbstractJobVertex",
",",
"Integer",
">",
"lowLink... | Auxiliary method implementing Tarjan's algorithm for strongly-connected components to determine whether the job
graph is acyclic. | [
"Auxiliary",
"method",
"implementing",
"Tarjan",
"s",
"algorithm",
"for",
"strongly",
"-",
"connected",
"components",
"to",
"determine",
"whether",
"the",
"job",
"graph",
"is",
"acyclic",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L449-L491 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java | JobGraph.readRequiredJarFiles | private void readRequiredJarFiles(final DataInput in) throws IOException {
// Do jar files follow;
final int numJars = in.readInt();
if (numJars > 0) {
for (int i = 0; i < numJars; i++) {
final Path p = new Path();
p.read(in);
this.userJars.add(p);
// Read the size of the jar file
fina... | java | private void readRequiredJarFiles(final DataInput in) throws IOException {
// Do jar files follow;
final int numJars = in.readInt();
if (numJars > 0) {
for (int i = 0; i < numJars; i++) {
final Path p = new Path();
p.read(in);
this.userJars.add(p);
// Read the size of the jar file
fina... | [
"private",
"void",
"readRequiredJarFiles",
"(",
"final",
"DataInput",
"in",
")",
"throws",
"IOException",
"{",
"// Do jar files follow;",
"final",
"int",
"numJars",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"if",
"(",
"numJars",
">",
"0",
")",
"{",
"for",
... | Reads required JAR files from an input stream and adds them to the
library cache manager.
@param in
the data stream to read the JAR files from
@throws IOException
thrown if an error occurs while reading the stream | [
"Reads",
"required",
"JAR",
"files",
"from",
"an",
"input",
"stream",
"and",
"adds",
"them",
"to",
"the",
"library",
"cache",
"manager",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java#L721-L745 | train |
stratosphere/stratosphere | stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobsInfoServlet.java | JobsInfoServlet.getJMConnection | private ExtendedManagementProtocol getJMConnection() throws IOException {
String jmHost = config.getString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, null);
String jmPort = config.getString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, null);
return RPC.getProxy(ExtendedManagementProtocol.class,
new InetSock... | java | private ExtendedManagementProtocol getJMConnection() throws IOException {
String jmHost = config.getString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, null);
String jmPort = config.getString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, null);
return RPC.getProxy(ExtendedManagementProtocol.class,
new InetSock... | [
"private",
"ExtendedManagementProtocol",
"getJMConnection",
"(",
")",
"throws",
"IOException",
"{",
"String",
"jmHost",
"=",
"config",
".",
"getString",
"(",
"ConfigConstants",
".",
"JOB_MANAGER_IPC_ADDRESS_KEY",
",",
"null",
")",
";",
"String",
"jmPort",
"=",
"conf... | Sets up a connection to the JobManager.
@return Connection to the JobManager.
@throws IOException | [
"Sets",
"up",
"a",
"connection",
"to",
"the",
"JobManager",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobsInfoServlet.java#L104-L110 | train |
stratosphere/stratosphere | stratosphere-clients/src/main/java/eu/stratosphere/client/program/PackagedProgram.java | PackagedProgram.getPreviewPlan | public String getPreviewPlan() throws ProgramInvocationException {
Thread.currentThread().setContextClassLoader(this.getUserCodeClassLoader());
List<DataSinkNode> previewPlan;
if (isUsingProgramEntryPoint()) {
previewPlan = PactCompiler.createPreOptimizedPlan(getPlan());
}
else if (isUsingInteractiveMod... | java | public String getPreviewPlan() throws ProgramInvocationException {
Thread.currentThread().setContextClassLoader(this.getUserCodeClassLoader());
List<DataSinkNode> previewPlan;
if (isUsingProgramEntryPoint()) {
previewPlan = PactCompiler.createPreOptimizedPlan(getPlan());
}
else if (isUsingInteractiveMod... | [
"public",
"String",
"getPreviewPlan",
"(",
")",
"throws",
"ProgramInvocationException",
"{",
"Thread",
".",
"currentThread",
"(",
")",
".",
"setContextClassLoader",
"(",
"this",
".",
"getUserCodeClassLoader",
"(",
")",
")",
";",
"List",
"<",
"DataSinkNode",
">",
... | Returns the analyzed plan without any optimizations.
@return
the analyzed plan without any optimizations.
@throws ProgramInvocationException Thrown if an error occurred in the
user-provided pact assembler. This may indicate
missing parameters for generation. | [
"Returns",
"the",
"analyzed",
"plan",
"without",
"any",
"optimizations",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/program/PackagedProgram.java#L206-L253 | train |
stratosphere/stratosphere | stratosphere-clients/src/main/java/eu/stratosphere/client/program/PackagedProgram.java | PackagedProgram.getDescription | public String getDescription() throws ProgramInvocationException {
if (ProgramDescription.class.isAssignableFrom(this.mainClass)) {
ProgramDescription descr;
if (this.program != null) {
descr = (ProgramDescription) this.program;
} else {
try {
descr = InstantiationUtil.instantiate(
th... | java | public String getDescription() throws ProgramInvocationException {
if (ProgramDescription.class.isAssignableFrom(this.mainClass)) {
ProgramDescription descr;
if (this.program != null) {
descr = (ProgramDescription) this.program;
} else {
try {
descr = InstantiationUtil.instantiate(
th... | [
"public",
"String",
"getDescription",
"(",
")",
"throws",
"ProgramInvocationException",
"{",
"if",
"(",
"ProgramDescription",
".",
"class",
".",
"isAssignableFrom",
"(",
"this",
".",
"mainClass",
")",
")",
"{",
"ProgramDescription",
"descr",
";",
"if",
"(",
"thi... | Returns the description provided by the Program class. This
may contain a description of the plan itself and its arguments.
@return The description of the PactProgram's input parameters.
@throws ProgramInvocationException
This invocation is thrown if the Program can't be properly loaded. Causes
may be a missing / wron... | [
"Returns",
"the",
"description",
"provided",
"by",
"the",
"Program",
"class",
".",
"This",
"may",
"contain",
"a",
"description",
"of",
"the",
"plan",
"itself",
"and",
"its",
"arguments",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/program/PackagedProgram.java#L267-L293 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java | InputSplitTracker.registerJob | void registerJob(final ExecutionGraph eg) {
final Iterator<ExecutionGroupVertex> it = new ExecutionGroupVertexIterator(eg, true, -1);
while (it.hasNext()) {
final ExecutionGroupVertex groupVertex = it.next();
final InputSplit[] inputSplits = groupVertex.getInputSplits();
if (inputSplits == null) {
c... | java | void registerJob(final ExecutionGraph eg) {
final Iterator<ExecutionGroupVertex> it = new ExecutionGroupVertexIterator(eg, true, -1);
while (it.hasNext()) {
final ExecutionGroupVertex groupVertex = it.next();
final InputSplit[] inputSplits = groupVertex.getInputSplits();
if (inputSplits == null) {
c... | [
"void",
"registerJob",
"(",
"final",
"ExecutionGraph",
"eg",
")",
"{",
"final",
"Iterator",
"<",
"ExecutionGroupVertex",
">",
"it",
"=",
"new",
"ExecutionGroupVertexIterator",
"(",
"eg",
",",
"true",
",",
"-",
"1",
")",
";",
"while",
"(",
"it",
".",
"hasNe... | Registers a new job with the input split tracker.
@param eg
the execution graph of the job to be registered | [
"Registers",
"a",
"new",
"job",
"with",
"the",
"input",
"split",
"tracker",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java#L65-L88 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java | InputSplitTracker.unregisterJob | void unregisterJob(final ExecutionGraph eg) {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, true);
while (it.hasNext()) {
this.splitMap.remove(it.next().getID());
}
} | java | void unregisterJob(final ExecutionGraph eg) {
final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, true);
while (it.hasNext()) {
this.splitMap.remove(it.next().getID());
}
} | [
"void",
"unregisterJob",
"(",
"final",
"ExecutionGraph",
"eg",
")",
"{",
"final",
"Iterator",
"<",
"ExecutionVertex",
">",
"it",
"=",
"new",
"ExecutionGraphIterator",
"(",
"eg",
",",
"true",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{... | Unregisters a job from the input split tracker.
@param eg
the execution graph of the job to be unregistered | [
"Unregisters",
"a",
"job",
"from",
"the",
"input",
"split",
"tracker",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java#L96-L102 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java | InputSplitTracker.addInputSplitToLog | void addInputSplitToLog(final ExecutionVertex vertex, final int sequenceNumber, final InputSplit inputSplit) {
final List<InputSplit> inputSplitLog = this.splitMap.get(vertex.getID());
if (inputSplitLog == null) {
LOG.error("Cannot find input split log for vertex " + vertex + " (" + vertex.getID() + ")");
re... | java | void addInputSplitToLog(final ExecutionVertex vertex, final int sequenceNumber, final InputSplit inputSplit) {
final List<InputSplit> inputSplitLog = this.splitMap.get(vertex.getID());
if (inputSplitLog == null) {
LOG.error("Cannot find input split log for vertex " + vertex + " (" + vertex.getID() + ")");
re... | [
"void",
"addInputSplitToLog",
"(",
"final",
"ExecutionVertex",
"vertex",
",",
"final",
"int",
"sequenceNumber",
",",
"final",
"InputSplit",
"inputSplit",
")",
"{",
"final",
"List",
"<",
"InputSplit",
">",
"inputSplitLog",
"=",
"this",
".",
"splitMap",
".",
"get"... | Adds the given input split to the vertex's log and stores it under the specified sequence number.
@param vertex
the vertex for which the input split shall be stored
@param sequenceNumber
the sequence number identifying the log entry under which the input split shall be stored
@param inputSplit
the input split to be st... | [
"Adds",
"the",
"given",
"input",
"split",
"to",
"the",
"vertex",
"s",
"log",
"and",
"stores",
"it",
"under",
"the",
"specified",
"sequence",
"number",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/splitassigner/InputSplitTracker.java#L143-L160 | train |
stratosphere/stratosphere | stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/AbstractInstance.java | AbstractInstance.getTaskManagerProxy | private TaskOperationProtocol getTaskManagerProxy() throws IOException {
if (this.taskManager == null) {
this.taskManager = RPC.getProxy(TaskOperationProtocol.class,
new InetSocketAddress(getInstanceConnectionInfo().address(),
getInstanceConnectionInfo().ipcPort()), NetUtils.getSocketFactory());
}
... | java | private TaskOperationProtocol getTaskManagerProxy() throws IOException {
if (this.taskManager == null) {
this.taskManager = RPC.getProxy(TaskOperationProtocol.class,
new InetSocketAddress(getInstanceConnectionInfo().address(),
getInstanceConnectionInfo().ipcPort()), NetUtils.getSocketFactory());
}
... | [
"private",
"TaskOperationProtocol",
"getTaskManagerProxy",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"this",
".",
"taskManager",
"==",
"null",
")",
"{",
"this",
".",
"taskManager",
"=",
"RPC",
".",
"getProxy",
"(",
"TaskOperationProtocol",
".",
"class",... | Creates or returns the RPC stub object for the instance's task manager.
@return the RPC stub object for the instance's task manager
@throws IOException
thrown if the RPC stub object for the task manager cannot be created | [
"Creates",
"or",
"returns",
"the",
"RPC",
"stub",
"object",
"for",
"the",
"instance",
"s",
"task",
"manager",
"."
] | c543a08f9676c5b2b0a7088123bd6e795a8ae0c8 | https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/AbstractInstance.java#L94-L104 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.