id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
101,200
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
101,201
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
101,202
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
101,203
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
101,204
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
101,205
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
101,206
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
101,207
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
101,208
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
101,209
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
101,210
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
101,211
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
101,212
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
101,213
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
101,214
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
101,215
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
101,216
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
101,217
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
101,218
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
101,219
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
101,220
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
101,221
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
101,222
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
101,223
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
101,224
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
101,225
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
101,226
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
101,227
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
101,228
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
101,229
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
101,230
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
101,231
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
101,232
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
101,233
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
101,234
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
101,235
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
101,236
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
101,237
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
101,238
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
101,239
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
101,240
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
101,241
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
101,242
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
101,243
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
101,244
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
101,245
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
101,246
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
101,247
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
101,248
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
101,249
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
101,250
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
101,251
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
101,252
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
101,253
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
101,254
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
101,255
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
101,256
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
101,257
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
101,258
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
101,259
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
101,260
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
101,261
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
101,262
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
101,263
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
101,264
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
101,265
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
101,266
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/AbstractInstance.java
AbstractInstance.checkLibraryAvailability
public synchronized void checkLibraryAvailability(final JobID jobID) throws IOException { // Now distribute the required libraries for the job String[] requiredLibraries = LibraryCacheManager.getRequiredJarFiles(jobID); if (requiredLibraries == null) { throw new IOException("No entry of required libraries fo...
java
public synchronized void checkLibraryAvailability(final JobID jobID) throws IOException { // Now distribute the required libraries for the job String[] requiredLibraries = LibraryCacheManager.getRequiredJarFiles(jobID); if (requiredLibraries == null) { throw new IOException("No entry of required libraries fo...
[ "public", "synchronized", "void", "checkLibraryAvailability", "(", "final", "JobID", "jobID", ")", "throws", "IOException", "{", "// Now distribute the required libraries for the job", "String", "[", "]", "requiredLibraries", "=", "LibraryCacheManager", ".", "getRequiredJarFi...
Checks if all the libraries required to run the job with the given job ID are available on this instance. Any libary that is missing is transferred to the instance as a result of this call. @param jobID the ID of the job whose libraries are to be checked for @throws IOException thrown if an error occurs while checking...
[ "Checks", "if", "all", "the", "libraries", "required", "to", "run", "the", "job", "with", "the", "given", "job", "ID", "are", "available", "on", "this", "instance", ".", "Any", "libary", "that", "is", "missing", "is", "transferred", "to", "the", "instance"...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/AbstractInstance.java#L154-L177
101,267
stratosphere/stratosphere
stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/TableInputFormat.java
TableInputFormat.mapResultToRecord
public void mapResultToRecord(Record record, HBaseKey key, HBaseResult result) { record.setField(0, key); record.setField(1, result); }
java
public void mapResultToRecord(Record record, HBaseKey key, HBaseResult result) { record.setField(0, key); record.setField(1, result); }
[ "public", "void", "mapResultToRecord", "(", "Record", "record", ",", "HBaseKey", "key", ",", "HBaseResult", "result", ")", "{", "record", ".", "setField", "(", "0", ",", "key", ")", ";", "record", ".", "setField", "(", "1", ",", "result", ")", ";", "}"...
Maps the current HBase Result into a Record. This implementation simply stores the HBaseKey at position 0, and the HBase Result object at position 1. @param record @param key @param result
[ "Maps", "the", "current", "HBase", "Result", "into", "a", "Record", ".", "This", "implementation", "simply", "stores", "the", "HBaseKey", "at", "position", "0", "and", "the", "HBase", "Result", "object", "at", "position", "1", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/TableInputFormat.java#L257-L260
101,268
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/NativeCodeLoader.java
NativeCodeLoader.loadLibraryFromFile
public static void loadLibraryFromFile(final String directory, final String filename) throws IOException { final String libraryPath = directory + File.separator + filename; synchronized (loadedLibrarySet) { final File outputFile = new File(directory, filename); if (!outputFile.exists()) { // Try to ex...
java
public static void loadLibraryFromFile(final String directory, final String filename) throws IOException { final String libraryPath = directory + File.separator + filename; synchronized (loadedLibrarySet) { final File outputFile = new File(directory, filename); if (!outputFile.exists()) { // Try to ex...
[ "public", "static", "void", "loadLibraryFromFile", "(", "final", "String", "directory", ",", "final", "String", "filename", ")", "throws", "IOException", "{", "final", "String", "libraryPath", "=", "directory", "+", "File", ".", "separator", "+", "filename", ";"...
Loads a native library from a file. @param directory the directory in which the library is supposed to be located @param filename filename of the library to be loaded @throws IOException thrown if an internal native library cannot be extracted
[ "Loads", "a", "native", "library", "from", "a", "file", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/NativeCodeLoader.java#L61-L84
101,269
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/PendingRequestsMap.java
PendingRequestsMap.addRequest
void addRequest(final InstanceType instanceType, final int numberOfInstances) { Integer numberOfRemainingInstances = this.pendingRequests.get(instanceType); if (numberOfRemainingInstances == null) { numberOfRemainingInstances = Integer.valueOf(numberOfInstances); } else { numberOfRemainingInstances = Integ...
java
void addRequest(final InstanceType instanceType, final int numberOfInstances) { Integer numberOfRemainingInstances = this.pendingRequests.get(instanceType); if (numberOfRemainingInstances == null) { numberOfRemainingInstances = Integer.valueOf(numberOfInstances); } else { numberOfRemainingInstances = Integ...
[ "void", "addRequest", "(", "final", "InstanceType", "instanceType", ",", "final", "int", "numberOfInstances", ")", "{", "Integer", "numberOfRemainingInstances", "=", "this", ".", "pendingRequests", ".", "get", "(", "instanceType", ")", ";", "if", "(", "numberOfRem...
Adds the a pending request for the given number of instances of the given type to this map. @param instanceType the requested instance type @param numberOfInstances the requested number of instances of this type
[ "Adds", "the", "a", "pending", "request", "for", "the", "given", "number", "of", "instances", "of", "the", "given", "type", "to", "this", "map", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/PendingRequestsMap.java#L55-L65
101,270
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/PendingRequestsMap.java
PendingRequestsMap.decreaseNumberOfPendingInstances
void decreaseNumberOfPendingInstances(final InstanceType instanceType) { Integer numberOfRemainingInstances = this.pendingRequests.get(instanceType); if (numberOfRemainingInstances == null) { return; } numberOfRemainingInstances = Integer.valueOf(numberOfRemainingInstances.intValue() - 1); if (numberOfRe...
java
void decreaseNumberOfPendingInstances(final InstanceType instanceType) { Integer numberOfRemainingInstances = this.pendingRequests.get(instanceType); if (numberOfRemainingInstances == null) { return; } numberOfRemainingInstances = Integer.valueOf(numberOfRemainingInstances.intValue() - 1); if (numberOfRe...
[ "void", "decreaseNumberOfPendingInstances", "(", "final", "InstanceType", "instanceType", ")", "{", "Integer", "numberOfRemainingInstances", "=", "this", ".", "pendingRequests", ".", "get", "(", "instanceType", ")", ";", "if", "(", "numberOfRemainingInstances", "==", ...
Decreases the number of remaining instances to request of the given type. @param instanceType the instance type for which the number of remaining instances shall be decreased
[ "Decreases", "the", "number", "of", "remaining", "instances", "to", "request", "of", "the", "given", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/PendingRequestsMap.java#L83-L96
101,271
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getStage
public ManagementStage getStage(final int index) { if (index >= 0 && index < this.stages.size()) { return this.stages.get(index); } return null; }
java
public ManagementStage getStage(final int index) { if (index >= 0 && index < this.stages.size()) { return this.stages.get(index); } return null; }
[ "public", "ManagementStage", "getStage", "(", "final", "int", "index", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "stages", ".", "size", "(", ")", ")", "{", "return", "this", ".", "stages", ".", "get", "(", "index", "...
Returns the management stage with the given index. @param index the index of the management stage to be returned @return the management stage with the given index or <code>null</code> if no such management stage exists
[ "Returns", "the", "management", "stage", "with", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L169-L176
101,272
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getNumberOfInputGroupVertices
public int getNumberOfInputGroupVertices(final int stage) { if (stage < 0 || stage >= this.stages.size()) { return 0; } return this.stages.get(stage).getNumberOfInputGroupVertices(); }
java
public int getNumberOfInputGroupVertices(final int stage) { if (stage < 0 || stage >= this.stages.size()) { return 0; } return this.stages.get(stage).getNumberOfInputGroupVertices(); }
[ "public", "int", "getNumberOfInputGroupVertices", "(", "final", "int", "stage", ")", "{", "if", "(", "stage", "<", "0", "||", "stage", ">=", "this", ".", "stages", ".", "size", "(", ")", ")", "{", "return", "0", ";", "}", "return", "this", ".", "stag...
Returns the number of input group vertices in the management stage with the given index. @param stage the index to the management stage @return the number of input group vertices in this stage, possibly 0.
[ "Returns", "the", "number", "of", "input", "group", "vertices", "in", "the", "management", "stage", "with", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L185-L192
101,273
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getInputGroupVertex
public ManagementGroupVertex getInputGroupVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getInputGroupVertex(index); }
java
public ManagementGroupVertex getInputGroupVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getInputGroupVertex(index); }
[ "public", "ManagementGroupVertex", "getInputGroupVertex", "(", "final", "int", "stage", ",", "final", "int", "index", ")", "{", "if", "(", "stage", ">=", "this", ".", "stages", ".", "size", "(", ")", ")", "{", "return", "null", ";", "}", "return", "this"...
Returns the input group vertex at the given index in the given stage. @param stage the index to the management stage @param index the index to the input group vertex @return the input group vertex at the given index in the given stage or <code>null</code> if either the stage does not exists or the given index is inval...
[ "Returns", "the", "input", "group", "vertex", "at", "the", "given", "index", "in", "the", "given", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L220-L227
101,274
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getOutputGroupVertex
public ManagementGroupVertex getOutputGroupVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getOutputGroupVertex(index); }
java
public ManagementGroupVertex getOutputGroupVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getOutputGroupVertex(index); }
[ "public", "ManagementGroupVertex", "getOutputGroupVertex", "(", "final", "int", "stage", ",", "final", "int", "index", ")", "{", "if", "(", "stage", ">=", "this", ".", "stages", ".", "size", "(", ")", ")", "{", "return", "null", ";", "}", "return", "this...
Returns the output group vertex at the given index in the given stage. @param stage the index to the management stage @param index the index to the output group vertex @return the output group vertex at the given index in the given stage or <code>null</code> if either the stage does not exists or the given index is in...
[ "Returns", "the", "output", "group", "vertex", "at", "the", "given", "index", "in", "the", "given", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L239-L246
101,275
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getInputVertex
public ManagementVertex getInputVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getInputManagementVertex(index); }
java
public ManagementVertex getInputVertex(final int stage, final int index) { if (stage >= this.stages.size()) { return null; } return this.stages.get(stage).getInputManagementVertex(index); }
[ "public", "ManagementVertex", "getInputVertex", "(", "final", "int", "stage", ",", "final", "int", "index", ")", "{", "if", "(", "stage", ">=", "this", ".", "stages", ".", "size", "(", ")", ")", "{", "return", "null", ";", "}", "return", "this", ".", ...
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/managementgraph/ManagementGraph.java#L290-L297
101,276
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getGroupVerticesInTopologicalOrder
public List<ManagementGroupVertex> getGroupVerticesInTopologicalOrder() { final List<ManagementGroupVertex> topologicalSort = new ArrayList<ManagementGroupVertex>(); final Deque<ManagementGroupVertex> noIncomingEdges = new ArrayDeque<ManagementGroupVertex>(); final Map<ManagementGroupVertex, Integer> indegrees =...
java
public List<ManagementGroupVertex> getGroupVerticesInTopologicalOrder() { final List<ManagementGroupVertex> topologicalSort = new ArrayList<ManagementGroupVertex>(); final Deque<ManagementGroupVertex> noIncomingEdges = new ArrayDeque<ManagementGroupVertex>(); final Map<ManagementGroupVertex, Integer> indegrees =...
[ "public", "List", "<", "ManagementGroupVertex", ">", "getGroupVerticesInTopologicalOrder", "(", ")", "{", "final", "List", "<", "ManagementGroupVertex", ">", "topologicalSort", "=", "new", "ArrayList", "<", "ManagementGroupVertex", ">", "(", ")", ";", "final", "Dequ...
Returns a list of group vertices sorted in topological order. @return a list of group vertices sorted in topological order
[ "Returns", "a", "list", "of", "group", "vertices", "sorted", "in", "topological", "order", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L332-L365
101,277
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java
ManagementGraph.getGroupVerticesInReverseTopologicalOrder
public List<ManagementGroupVertex> getGroupVerticesInReverseTopologicalOrder() { final List<ManagementGroupVertex> reverseTopologicalSort = new ArrayList<ManagementGroupVertex>(); final Deque<ManagementGroupVertex> noOutgoingEdges = new ArrayDeque<ManagementGroupVertex>(); final Map<ManagementGroupVertex, Intege...
java
public List<ManagementGroupVertex> getGroupVerticesInReverseTopologicalOrder() { final List<ManagementGroupVertex> reverseTopologicalSort = new ArrayList<ManagementGroupVertex>(); final Deque<ManagementGroupVertex> noOutgoingEdges = new ArrayDeque<ManagementGroupVertex>(); final Map<ManagementGroupVertex, Intege...
[ "public", "List", "<", "ManagementGroupVertex", ">", "getGroupVerticesInReverseTopologicalOrder", "(", ")", "{", "final", "List", "<", "ManagementGroupVertex", ">", "reverseTopologicalSort", "=", "new", "ArrayList", "<", "ManagementGroupVertex", ">", "(", ")", ";", "f...
Returns a list of group vertices sorted in reverse topological order. @return a list of group vertices sorted in reverse topological order
[ "Returns", "a", "list", "of", "group", "vertices", "sorted", "in", "reverse", "topological", "order", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraph.java#L372-L405
101,278
inmite/android-validation-komensky
library/src/main/java/eu/inmite/android/lib/validations/form/FormValidator.java
FormValidator.validate
public static boolean validate(Fragment fragment, IValidationCallback callback) { return validate(fragment.getActivity(), fragment, callback); }
java
public static boolean validate(Fragment fragment, IValidationCallback callback) { return validate(fragment.getActivity(), fragment, callback); }
[ "public", "static", "boolean", "validate", "(", "Fragment", "fragment", ",", "IValidationCallback", "callback", ")", "{", "return", "validate", "(", "fragment", ".", "getActivity", "(", ")", ",", "fragment", ",", "callback", ")", ";", "}" ]
Perform validation over the views of given fragment @param fragment fragment with views to validate @param callback callback the will receive result of validation, results are ordered by order param in annotation. @return whether the validation succeeded
[ "Perform", "validation", "over", "the", "views", "of", "given", "fragment" ]
7c544f2d9f104a9800fcf4757eecb3caa8e76451
https://github.com/inmite/android-validation-komensky/blob/7c544f2d9f104a9800fcf4757eecb3caa8e76451/library/src/main/java/eu/inmite/android/lib/validations/form/FormValidator.java#L203-L205
101,279
inmite/android-validation-komensky
library/src/main/java/eu/inmite/android/lib/validations/form/FormValidator.java
FormValidator.performFieldValidations
@SuppressWarnings("unchecked") private static ValidationFail performFieldValidations(Context context, FieldInfo fieldInfo, View view) { // first, we need to check if condition is not applied for all validations on field if (fieldInfo.condition != null && fieldInfo.condition.validationAnnotation().equals(Condition....
java
@SuppressWarnings("unchecked") private static ValidationFail performFieldValidations(Context context, FieldInfo fieldInfo, View view) { // first, we need to check if condition is not applied for all validations on field if (fieldInfo.condition != null && fieldInfo.condition.validationAnnotation().equals(Condition....
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "static", "ValidationFail", "performFieldValidations", "(", "Context", "context", ",", "FieldInfo", "fieldInfo", ",", "View", "view", ")", "{", "// first, we need to check if condition is not applied for all valid...
perform all validations on single field
[ "perform", "all", "validations", "on", "single", "field" ]
7c544f2d9f104a9800fcf4757eecb3caa8e76451
https://github.com/inmite/android-validation-komensky/blob/7c544f2d9f104a9800fcf4757eecb3caa8e76451/library/src/main/java/eu/inmite/android/lib/validations/form/FormValidator.java#L299-L339
101,280
inmite/android-validation-komensky
library/src/main/java/eu/inmite/android/lib/validations/form/FieldFinder.java
FieldFinder.getFieldsForTarget
static Map<View, FormValidator.FieldInfo> getFieldsForTarget(Object target) { Map<View, FormValidator.FieldInfo> infoMap = sCachedFieldsByTarget.get(target); if (infoMap != null) { for (View view : infoMap.keySet()) { // view has been removed from the window - we will need to scan fields of target again ...
java
static Map<View, FormValidator.FieldInfo> getFieldsForTarget(Object target) { Map<View, FormValidator.FieldInfo> infoMap = sCachedFieldsByTarget.get(target); if (infoMap != null) { for (View view : infoMap.keySet()) { // view has been removed from the window - we will need to scan fields of target again ...
[ "static", "Map", "<", "View", ",", "FormValidator", ".", "FieldInfo", ">", "getFieldsForTarget", "(", "Object", "target", ")", "{", "Map", "<", "View", ",", "FormValidator", ".", "FieldInfo", ">", "infoMap", "=", "sCachedFieldsByTarget", ".", "get", "(", "ta...
get map of field information on view for given target
[ "get", "map", "of", "field", "information", "on", "view", "for", "given", "target" ]
7c544f2d9f104a9800fcf4757eecb3caa8e76451
https://github.com/inmite/android-validation-komensky/blob/7c544f2d9f104a9800fcf4757eecb3caa8e76451/library/src/main/java/eu/inmite/android/lib/validations/form/FieldFinder.java#L32-L51
101,281
inmite/android-validation-komensky
library/src/main/java/eu/inmite/android/lib/validations/form/FieldFinder.java
FieldFinder.findFieldsToValidate
@SuppressWarnings("TryWithIdenticalCatches") private static Map<View, FormValidator.FieldInfo> findFieldsToValidate(Object target) { final Field[] fields = target.getClass().getDeclaredFields(); if (fields == null || fields.length == 0) { return Collections.emptyMap(); } final WeakHashMap<View, FormValidat...
java
@SuppressWarnings("TryWithIdenticalCatches") private static Map<View, FormValidator.FieldInfo> findFieldsToValidate(Object target) { final Field[] fields = target.getClass().getDeclaredFields(); if (fields == null || fields.length == 0) { return Collections.emptyMap(); } final WeakHashMap<View, FormValidat...
[ "@", "SuppressWarnings", "(", "\"TryWithIdenticalCatches\"", ")", "private", "static", "Map", "<", "View", ",", "FormValidator", ".", "FieldInfo", ">", "findFieldsToValidate", "(", "Object", "target", ")", "{", "final", "Field", "[", "]", "fields", "=", "target"...
find fields on target to validate and prepare for their validation
[ "find", "fields", "on", "target", "to", "validate", "and", "prepare", "for", "their", "validation" ]
7c544f2d9f104a9800fcf4757eecb3caa8e76451
https://github.com/inmite/android-validation-komensky/blob/7c544f2d9f104a9800fcf4757eecb3caa8e76451/library/src/main/java/eu/inmite/android/lib/validations/form/FieldFinder.java#L56-L112
101,282
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.getEnum
public static <T extends Enum<T>> T getEnum(Class<T> enumClass, AbstractConfig config, String key) { Preconditions.checkNotNull(enumClass, "enumClass cannot be null"); Preconditions.checkState(enumClass.isEnum(), "enumClass must be an enum."); String textValue = config.getString(key); return Enum.valueO...
java
public static <T extends Enum<T>> T getEnum(Class<T> enumClass, AbstractConfig config, String key) { Preconditions.checkNotNull(enumClass, "enumClass cannot be null"); Preconditions.checkState(enumClass.isEnum(), "enumClass must be an enum."); String textValue = config.getString(key); return Enum.valueO...
[ "public", "static", "<", "T", "extends", "Enum", "<", "T", ">", ">", "T", "getEnum", "(", "Class", "<", "T", ">", "enumClass", ",", "AbstractConfig", "config", ",", "String", "key", ")", "{", "Preconditions", ".", "checkNotNull", "(", "enumClass", ",", ...
Method is used to return an enum value from a given string. @param enumClass Class for the resulting enum value @param config config to read the value from @param key key for the value @param <T> Enum class to return type for. @return enum value for the given key. @see ValidEnum
[ "Method", "is", "used", "to", "return", "an", "enum", "value", "from", "a", "given", "string", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L60-L65
101,283
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.enumValues
public static String enumValues(Class<?> enumClass) { Preconditions.checkNotNull(enumClass, "enumClass cannot be null"); Preconditions.checkState(enumClass.isEnum(), "enumClass must be an enum."); return Joiner.on(", ").join(enumClass.getEnumConstants()); }
java
public static String enumValues(Class<?> enumClass) { Preconditions.checkNotNull(enumClass, "enumClass cannot be null"); Preconditions.checkState(enumClass.isEnum(), "enumClass must be an enum."); return Joiner.on(", ").join(enumClass.getEnumConstants()); }
[ "public", "static", "String", "enumValues", "(", "Class", "<", "?", ">", "enumClass", ")", "{", "Preconditions", ".", "checkNotNull", "(", "enumClass", ",", "\"enumClass cannot be null\"", ")", ";", "Preconditions", ".", "checkState", "(", "enumClass", ".", "isE...
Method is used to return the values for an enum. @param enumClass Enum class to return the constants for. @return Returns a comma seperated string of all of the values in the enum.
[ "Method", "is", "used", "to", "return", "the", "values", "for", "an", "enum", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L73-L77
101,284
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.getAbsoluteFile
public static File getAbsoluteFile(AbstractConfig config, String key) { Preconditions.checkNotNull(config, "config cannot be null"); String path = config.getString(key); File file = new File(path); if (!file.isAbsolute()) { throw new ConfigException( key, path, "Must ...
java
public static File getAbsoluteFile(AbstractConfig config, String key) { Preconditions.checkNotNull(config, "config cannot be null"); String path = config.getString(key); File file = new File(path); if (!file.isAbsolute()) { throw new ConfigException( key, path, "Must ...
[ "public", "static", "File", "getAbsoluteFile", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "Preconditions", ".", "checkNotNull", "(", "config", ",", "\"config cannot be null\"", ")", ";", "String", "path", "=", "config", ".", "getString", "(...
Method is used to return a File checking to ensure that it is an absolute path. @param config config to read the value from @param key key for the value @return File for the config value.
[ "Method", "is", "used", "to", "return", "a", "File", "checking", "to", "ensure", "that", "it", "is", "an", "absolute", "path", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L86-L98
101,285
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.hostAndPorts
public static List<HostAndPort> hostAndPorts(AbstractConfig config, String key, Integer defaultPort) { final List<String> inputs = config.getList(key); List<HostAndPort> result = new ArrayList<>(); for (final String input : inputs) { final HostAndPort hostAndPort = hostAndPort(input, defaultPort); ...
java
public static List<HostAndPort> hostAndPorts(AbstractConfig config, String key, Integer defaultPort) { final List<String> inputs = config.getList(key); List<HostAndPort> result = new ArrayList<>(); for (final String input : inputs) { final HostAndPort hostAndPort = hostAndPort(input, defaultPort); ...
[ "public", "static", "List", "<", "HostAndPort", ">", "hostAndPorts", "(", "AbstractConfig", "config", ",", "String", "key", ",", "Integer", "defaultPort", ")", "{", "final", "List", "<", "String", ">", "inputs", "=", "config", ".", "getList", "(", "key", "...
Method is used to parse a list ConfigDef item to a list of HostAndPort @param config Config to read from @param key ConfigItem to get the host string from. @param defaultPort The default port to use if a port was not specified. Can be null. @return
[ "Method", "is", "used", "to", "parse", "a", "list", "ConfigDef", "item", "to", "a", "list", "of", "HostAndPort" ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L181-L190
101,286
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.hostAndPorts
public static List<HostAndPort> hostAndPorts(AbstractConfig config, String key) { return hostAndPorts(config, key, null); }
java
public static List<HostAndPort> hostAndPorts(AbstractConfig config, String key) { return hostAndPorts(config, key, null); }
[ "public", "static", "List", "<", "HostAndPort", ">", "hostAndPorts", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "return", "hostAndPorts", "(", "config", ",", "key", ",", "null", ")", ";", "}" ]
Method is used to parse hosts and ports @param config @param key @return
[ "Method", "is", "used", "to", "parse", "hosts", "and", "ports" ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L199-L201
101,287
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.url
public static URL url(AbstractConfig config, String key) { final String value = config.getString(key); return url(key, value); }
java
public static URL url(AbstractConfig config, String key) { final String value = config.getString(key); return url(key, value); }
[ "public", "static", "URL", "url", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "value", "=", "config", ".", "getString", "(", "key", ")", ";", "return", "url", "(", "key", ",", "value", ")", ";", "}" ]
Method is used to retrieve a URL from a configuration key. @param config Config to read @param key Key to read @return URL for the value.
[ "Method", "is", "used", "to", "retrieve", "a", "URL", "from", "a", "configuration", "key", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L223-L226
101,288
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.uri
public static URI uri(AbstractConfig config, String key) { final String value = config.getString(key); return uri(key, value); }
java
public static URI uri(AbstractConfig config, String key) { final String value = config.getString(key); return uri(key, value); }
[ "public", "static", "URI", "uri", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "value", "=", "config", ".", "getString", "(", "key", ")", ";", "return", "uri", "(", "key", ",", "value", ")", ";", "}" ]
Method is used to retrieve a URI from a configuration key. @param config Config to read @param key Key to read @return URI for the value.
[ "Method", "is", "used", "to", "retrieve", "a", "URI", "from", "a", "configuration", "key", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L264-L267
101,289
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.getSet
public static Set<String> getSet(AbstractConfig config, String key) { List<String> value = config.getList(key); return ImmutableSet.copyOf(value); }
java
public static Set<String> getSet(AbstractConfig config, String key) { List<String> value = config.getList(key); return ImmutableSet.copyOf(value); }
[ "public", "static", "Set", "<", "String", ">", "getSet", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "List", "<", "String", ">", "value", "=", "config", ".", "getList", "(", "key", ")", ";", "return", "ImmutableSet", ".", "copyOf", ...
Method is used to retrieve a list and convert it to an immutable set. @param config Config to read @param key Key to read @return ImmutableSet with the contents of the config key. @see com.google.common.collect.ImmutableSet
[ "Method", "is", "used", "to", "retrieve", "a", "list", "and", "convert", "it", "to", "an", "immutable", "set", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L293-L296
101,290
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.pattern
public static Pattern pattern(AbstractConfig config, String key) { String pattern = config.getString(key); try { return Pattern.compile(pattern); } catch (PatternSyntaxException e) { throw new ConfigException( key, pattern, String.format( "Could not c...
java
public static Pattern pattern(AbstractConfig config, String key) { String pattern = config.getString(key); try { return Pattern.compile(pattern); } catch (PatternSyntaxException e) { throw new ConfigException( key, pattern, String.format( "Could not c...
[ "public", "static", "Pattern", "pattern", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "String", "pattern", "=", "config", ".", "getString", "(", "key", ")", ";", "try", "{", "return", "Pattern", ".", "compile", "(", "pattern", ")", "...
Method is used to create a pattern based on the config element. @param config @param key @return
[ "Method", "is", "used", "to", "create", "a", "pattern", "based", "on", "the", "config", "element", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L305-L320
101,291
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.passwordCharArray
public static char[] passwordCharArray(AbstractConfig config, String key) { final Password password = config.getPassword(key); return password.value().toCharArray(); }
java
public static char[] passwordCharArray(AbstractConfig config, String key) { final Password password = config.getPassword(key); return password.value().toCharArray(); }
[ "public", "static", "char", "[", "]", "passwordCharArray", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "Password", "password", "=", "config", ".", "getPassword", "(", "key", ")", ";", "return", "password", ".", "value", "(", "...
Method is used to return an array of characters representing the password stored in the config. @param config Config to read from @param key Key to read from @return char array containing the password
[ "Method", "is", "used", "to", "return", "an", "array", "of", "characters", "representing", "the", "password", "stored", "in", "the", "config", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L365-L368
101,292
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.keyStore
public static KeyStore keyStore(AbstractConfig config, String key) { final String keyStoreType = config.getString(key); try { return KeyStore.getInstance(keyStoreType); } catch (KeyStoreException e) { ConfigException exception = new ConfigException( key, keyStoreType, ...
java
public static KeyStore keyStore(AbstractConfig config, String key) { final String keyStoreType = config.getString(key); try { return KeyStore.getInstance(keyStoreType); } catch (KeyStoreException e) { ConfigException exception = new ConfigException( key, keyStoreType, ...
[ "public", "static", "KeyStore", "keyStore", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "keyStoreType", "=", "config", ".", "getString", "(", "key", ")", ";", "try", "{", "return", "KeyStore", ".", "getInstance", "(", ...
Method will create a KeyStore based on the KeyStore type specified in the config. @param config Config to read from. @param key Key to read from @return KeyStore based on the type specified in the config.
[ "Method", "will", "create", "a", "KeyStore", "based", "on", "the", "KeyStore", "type", "specified", "in", "the", "config", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L377-L390
101,293
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.keyManagerFactory
public static KeyManagerFactory keyManagerFactory(AbstractConfig config, String key) { final String keyManagerFactoryType = config.getString(key); try { return KeyManagerFactory.getInstance(keyManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new ConfigExcep...
java
public static KeyManagerFactory keyManagerFactory(AbstractConfig config, String key) { final String keyManagerFactoryType = config.getString(key); try { return KeyManagerFactory.getInstance(keyManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new ConfigExcep...
[ "public", "static", "KeyManagerFactory", "keyManagerFactory", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "keyManagerFactoryType", "=", "config", ".", "getString", "(", "key", ")", ";", "try", "{", "return", "KeyManagerFacto...
Method will create a KeyManagerFactory based on the Algorithm type specified in the config. @param config Config to read from. @param key Key to read from @return KeyManagerFactory based on the type specified in the config.
[ "Method", "will", "create", "a", "KeyManagerFactory", "based", "on", "the", "Algorithm", "type", "specified", "in", "the", "config", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L399-L412
101,294
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.trustManagerFactory
public static TrustManagerFactory trustManagerFactory(AbstractConfig config, String key) { final String trustManagerFactoryType = config.getString(key); try { return TrustManagerFactory.getInstance(trustManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new C...
java
public static TrustManagerFactory trustManagerFactory(AbstractConfig config, String key) { final String trustManagerFactoryType = config.getString(key); try { return TrustManagerFactory.getInstance(trustManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new C...
[ "public", "static", "TrustManagerFactory", "trustManagerFactory", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "trustManagerFactoryType", "=", "config", ".", "getString", "(", "key", ")", ";", "try", "{", "return", "TrustMana...
Method will create a TrustManagerFactory based on the Algorithm type specified in the config. @param config Config to read from. @param key Key to read from @return TrustManagerFactory based on the type specified in the config.
[ "Method", "will", "create", "a", "TrustManagerFactory", "based", "on", "the", "Algorithm", "type", "specified", "in", "the", "config", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L421-L434
101,295
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java
ConfigUtils.sslContext
public static SSLContext sslContext(AbstractConfig config, String key) { final String trustManagerFactoryType = config.getString(key); try { return SSLContext.getInstance(trustManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new ConfigException( k...
java
public static SSLContext sslContext(AbstractConfig config, String key) { final String trustManagerFactoryType = config.getString(key); try { return SSLContext.getInstance(trustManagerFactoryType); } catch (NoSuchAlgorithmException e) { ConfigException exception = new ConfigException( k...
[ "public", "static", "SSLContext", "sslContext", "(", "AbstractConfig", "config", ",", "String", "key", ")", "{", "final", "String", "trustManagerFactoryType", "=", "config", ".", "getString", "(", "key", ")", ";", "try", "{", "return", "SSLContext", ".", "getI...
Method will create a SSLContext based on the Algorithm type specified in the config. @param config Config to read from. @param key Key to read from @return SSLContext based on the type specified in the config.
[ "Method", "will", "create", "a", "SSLContext", "based", "on", "the", "Algorithm", "type", "specified", "in", "the", "config", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/config/ConfigUtils.java#L443-L456
101,296
Mangopay/mangopay2-java-sdk
src/main/java/com/mangopay/core/APIs/ApiBase.java
ApiBase.getRequestUrl
protected String getRequestUrl(String key) throws Exception { String result = ""; try { result = this.methods.get(key)[0]; } catch (Exception ex) { throw new Exception("Unknown method key: " + key); } return result; }
java
protected String getRequestUrl(String key) throws Exception { String result = ""; try { result = this.methods.get(key)[0]; } catch (Exception ex) { throw new Exception("Unknown method key: " + key); } return result; }
[ "protected", "String", "getRequestUrl", "(", "String", "key", ")", "throws", "Exception", "{", "String", "result", "=", "\"\"", ";", "try", "{", "result", "=", "this", ".", "methods", ".", "get", "(", "key", ")", "[", "0", "]", ";", "}", "catch", "("...
Gets the URL of REST Mango Pay API. @param key The method key to get URL of. @return The URL string of given method.
[ "Gets", "the", "URL", "of", "REST", "Mango", "Pay", "API", "." ]
037cecb44ea62def63b507817fd9961649151157
https://github.com/Mangopay/mangopay2-java-sdk/blob/037cecb44ea62def63b507817fd9961649151157/src/main/java/com/mangopay/core/APIs/ApiBase.java#L199-L207
101,297
Mangopay/mangopay2-java-sdk
src/main/java/com/mangopay/core/APIs/ApiBase.java
ApiBase.getList
protected <T extends Dto> List<T> getList(Class<T[]> classOfT, Class<T> classOfTItem, String methodKey, Pagination pagination, String entityId, String secondEntityId, Map<String, String> filter, Sorting sorting) throws Exception { String urlMethod = ""; if (entityId != null && entityId.length() > 0 &&...
java
protected <T extends Dto> List<T> getList(Class<T[]> classOfT, Class<T> classOfTItem, String methodKey, Pagination pagination, String entityId, String secondEntityId, Map<String, String> filter, Sorting sorting) throws Exception { String urlMethod = ""; if (entityId != null && entityId.length() > 0 &&...
[ "protected", "<", "T", "extends", "Dto", ">", "List", "<", "T", ">", "getList", "(", "Class", "<", "T", "[", "]", ">", "classOfT", ",", "Class", "<", "T", ">", "classOfTItem", ",", "String", "methodKey", ",", "Pagination", "pagination", ",", "String", ...
Gets the array of Dto instances from API. @param <T> Type on behalf of which the request is being called. @param classOfT Type on behalf of which the request is being called. @param methodKey Relevant method key. @param pagination Pagination object. @param entityId ...
[ "Gets", "the", "array", "of", "Dto", "instances", "from", "API", "." ]
037cecb44ea62def63b507817fd9961649151157
https://github.com/Mangopay/mangopay2-java-sdk/blob/037cecb44ea62def63b507817fd9961649151157/src/main/java/com/mangopay/core/APIs/ApiBase.java#L322-L351
101,298
jcustenborder/connect-utils
connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/data/SourceRecordConcurrentLinkedDeque.java
SourceRecordConcurrentLinkedDeque.drain
public boolean drain(List<SourceRecord> records, int timeout) throws InterruptedException { Preconditions.checkNotNull(records, "records cannot be null"); Preconditions.checkArgument(timeout >= 0, "timeout should be greater than or equal to 0."); if (log.isDebugEnabled()) { log.debug("determining siz...
java
public boolean drain(List<SourceRecord> records, int timeout) throws InterruptedException { Preconditions.checkNotNull(records, "records cannot be null"); Preconditions.checkArgument(timeout >= 0, "timeout should be greater than or equal to 0."); if (log.isDebugEnabled()) { log.debug("determining siz...
[ "public", "boolean", "drain", "(", "List", "<", "SourceRecord", ">", "records", ",", "int", "timeout", ")", "throws", "InterruptedException", "{", "Preconditions", ".", "checkNotNull", "(", "records", ",", "\"records cannot be null\"", ")", ";", "Preconditions", "...
Method is used to drain the records from the deque in order and add them to the supplied list. @param records list to add the records to. @param timeout amount of time to sleep if no records are added. @return true if records were added to the list, false if not. @throws InterruptedException Thrown if the thread i...
[ "Method", "is", "used", "to", "drain", "the", "records", "from", "the", "deque", "in", "order", "and", "add", "them", "to", "the", "supplied", "list", "." ]
19add138921f59ffcc85282d7aad551eeb582370
https://github.com/jcustenborder/connect-utils/blob/19add138921f59ffcc85282d7aad551eeb582370/connect-utils/src/main/java/com/github/jcustenborder/kafka/connect/utils/data/SourceRecordConcurrentLinkedDeque.java#L73-L108
101,299
Mangopay/mangopay2-java-sdk
src/main/java/com/mangopay/core/AuthenticationHelper.java
AuthenticationHelper.getHttpHeaderBasicKey
public String getHttpHeaderBasicKey() throws Exception { if (root.getConfig().getClientId() == null || root.getConfig().getClientId().length() == 0) throw new Exception ("MangoPay.config.ClientId is not set."); if (root.getConfig().getClientPassword() == null || root.getConfig()...
java
public String getHttpHeaderBasicKey() throws Exception { if (root.getConfig().getClientId() == null || root.getConfig().getClientId().length() == 0) throw new Exception ("MangoPay.config.ClientId is not set."); if (root.getConfig().getClientPassword() == null || root.getConfig()...
[ "public", "String", "getHttpHeaderBasicKey", "(", ")", "throws", "Exception", "{", "if", "(", "root", ".", "getConfig", "(", ")", ".", "getClientId", "(", ")", "==", "null", "||", "root", ".", "getConfig", "(", ")", ".", "getClientId", "(", ")", ".", "...
Gets basic key for HTTP header. @return Authorization string. @throws Exception
[ "Gets", "basic", "key", "for", "HTTP", "header", "." ]
037cecb44ea62def63b507817fd9961649151157
https://github.com/Mangopay/mangopay2-java-sdk/blob/037cecb44ea62def63b507817fd9961649151157/src/main/java/com/mangopay/core/AuthenticationHelper.java#L38-L48