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,100
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/io/BinaryInputFormat.java
BinaryInputFormat.createStatistics
protected SequentialStatistics createStatistics(List<FileStatus> files, FileBaseStatistics stats) throws IOException { if (files.isEmpty()) { return null; } BlockInfo blockInfo = this.createBlockInfo(); long totalCount = 0; for (FileStatus file : files) { // invalid file if (file.getLen() < bloc...
java
protected SequentialStatistics createStatistics(List<FileStatus> files, FileBaseStatistics stats) throws IOException { if (files.isEmpty()) { return null; } BlockInfo blockInfo = this.createBlockInfo(); long totalCount = 0; for (FileStatus file : files) { // invalid file if (file.getLen() < bloc...
[ "protected", "SequentialStatistics", "createStatistics", "(", "List", "<", "FileStatus", ">", "files", ",", "FileBaseStatistics", "stats", ")", "throws", "IOException", "{", "if", "(", "files", ".", "isEmpty", "(", ")", ")", "{", "return", "null", ";", "}", ...
Fill in the statistics. The last modification time and the total input size are prefilled. @param files The files that are associated with this block input format. @param stats The pre-filled statistics.
[ "Fill", "in", "the", "statistics", ".", "The", "last", "modification", "time", "and", "the", "total", "input", "size", "are", "prefilled", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/io/BinaryInputFormat.java#L197-L223
101,101
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java
ManagementVertex.addGate
void addGate(final ManagementGate gate) { if (gate.isInputGate()) { this.inputGates.add(gate); } else { this.outputGates.add(gate); } }
java
void addGate(final ManagementGate gate) { if (gate.isInputGate()) { this.inputGates.add(gate); } else { this.outputGates.add(gate); } }
[ "void", "addGate", "(", "final", "ManagementGate", "gate", ")", "{", "if", "(", "gate", ".", "isInputGate", "(", ")", ")", "{", "this", ".", "inputGates", ".", "add", "(", "gate", ")", ";", "}", "else", "{", "this", ".", "outputGates", ".", "add", ...
Adds a management gate to this vertex. @param gate the management gate to be added
[ "Adds", "a", "management", "gate", "to", "this", "vertex", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java#L116-L123
101,102
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java
ManagementVertex.getInputGate
public ManagementGate getInputGate(final int index) { if (index < this.inputGates.size()) { return this.inputGates.get(index); } return null; }
java
public ManagementGate getInputGate(final int index) { if (index < this.inputGates.size()) { return this.inputGates.get(index); } return null; }
[ "public", "ManagementGate", "getInputGate", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "inputGates", ".", "size", "(", ")", ")", "{", "return", "this", ".", "inputGates", ".", "get", "(", "index", ")", ";", "}", "re...
Returns the input gate at the given index. @param index the index of the input gate to be returned @return the input gate at the given index or <code>null</code> if no such input gate exists
[ "Returns", "the", "input", "gate", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java#L168-L175
101,103
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java
ManagementVertex.getOutputGate
public ManagementGate getOutputGate(final int index) { if (index < this.outputGates.size()) { return this.outputGates.get(index); } return null; }
java
public ManagementGate getOutputGate(final int index) { if (index < this.outputGates.size()) { return this.outputGates.get(index); } return null; }
[ "public", "ManagementGate", "getOutputGate", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "outputGates", ".", "size", "(", ")", ")", "{", "return", "this", ".", "outputGates", ".", "get", "(", "index", ")", ";", "}", ...
Returns the output gate at the given index. @param index the index of the output gate to be returned @return the output gate at the given index or <code>null</code> if no such output gate exists
[ "Returns", "the", "output", "gate", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java#L184-L191
101,104
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java
ManagementVertex.toJson
public String toJson() { StringBuilder json = new StringBuilder(""); json.append("{"); json.append("\"vertexid\": \"" + this.getID() + "\","); json.append("\"vertexname\": \"" + StringUtils.escapeHtml(this.toString()) + "\","); json.append("\"vertexstatus\": \"" + this.getExecutionState() + "\","); json.app...
java
public String toJson() { StringBuilder json = new StringBuilder(""); json.append("{"); json.append("\"vertexid\": \"" + this.getID() + "\","); json.append("\"vertexname\": \"" + StringUtils.escapeHtml(this.toString()) + "\","); json.append("\"vertexstatus\": \"" + this.getExecutionState() + "\","); json.app...
[ "public", "String", "toJson", "(", ")", "{", "StringBuilder", "json", "=", "new", "StringBuilder", "(", "\"\"", ")", ";", "json", ".", "append", "(", "\"{\"", ")", ";", "json", ".", "append", "(", "\"\\\"vertexid\\\": \\\"\"", "+", "this", ".", "getID", ...
Returns Json representation of this ManagementVertex @return
[ "Returns", "Json", "representation", "of", "this", "ManagementVertex" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementVertex.java#L347-L357
101,105
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/iterative/concurrent/SuperstepBarrier.java
SuperstepBarrier.eventOccurred
@Override public void eventOccurred(AbstractTaskEvent event) { if (event instanceof TerminationEvent) { terminationSignaled = true; } else if (event instanceof AllWorkersDoneEvent) { AllWorkersDoneEvent wde = (AllWorkersDoneEvent) event; aggregatorNames = wde.getAggregatorNames(); aggregates = wde.ge...
java
@Override public void eventOccurred(AbstractTaskEvent event) { if (event instanceof TerminationEvent) { terminationSignaled = true; } else if (event instanceof AllWorkersDoneEvent) { AllWorkersDoneEvent wde = (AllWorkersDoneEvent) event; aggregatorNames = wde.getAggregatorNames(); aggregates = wde.ge...
[ "@", "Override", "public", "void", "eventOccurred", "(", "AbstractTaskEvent", "event", ")", "{", "if", "(", "event", "instanceof", "TerminationEvent", ")", "{", "terminationSignaled", "=", "true", ";", "}", "else", "if", "(", "event", "instanceof", "AllWorkersDo...
barrier will release the waiting thread if an event occurs
[ "barrier", "will", "release", "the", "waiting", "thread", "if", "an", "event", "occurs" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/iterative/concurrent/SuperstepBarrier.java#L63-L78
101,106
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/web/JobmanagerInfoServlet.java
JobmanagerInfoServlet.writeJsonForJobs
private void writeJsonForJobs(PrintWriter wrt, List<RecentJobEvent> jobs) { try { wrt.write("["); // Loop Jobs for (int i = 0; i < jobs.size(); i++) { RecentJobEvent jobEvent = jobs.get(i); writeJsonForJob(wrt, jobEvent); //Write seperator between json objects if(i != jobs.size(...
java
private void writeJsonForJobs(PrintWriter wrt, List<RecentJobEvent> jobs) { try { wrt.write("["); // Loop Jobs for (int i = 0; i < jobs.size(); i++) { RecentJobEvent jobEvent = jobs.get(i); writeJsonForJob(wrt, jobEvent); //Write seperator between json objects if(i != jobs.size(...
[ "private", "void", "writeJsonForJobs", "(", "PrintWriter", "wrt", ",", "List", "<", "RecentJobEvent", ">", "jobs", ")", "{", "try", "{", "wrt", ".", "write", "(", "\"[\"", ")", ";", "// Loop Jobs", "for", "(", "int", "i", "=", "0", ";", "i", "<", "jo...
Writes ManagementGraph as Json for all recent jobs @param wrt @param jobs
[ "Writes", "ManagementGraph", "as", "Json", "for", "all", "recent", "jobs" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/web/JobmanagerInfoServlet.java#L119-L144
101,107
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/web/JobmanagerInfoServlet.java
JobmanagerInfoServlet.writeJsonForArchive
private void writeJsonForArchive(PrintWriter wrt, List<RecentJobEvent> jobs) { wrt.write("["); // sort jobs by time Collections.sort(jobs, new Comparator<RecentJobEvent>() { @Override public int compare(RecentJobEvent o1, RecentJobEvent o2) { if(o1.getTimestamp() < o2.getTimestamp()) { retur...
java
private void writeJsonForArchive(PrintWriter wrt, List<RecentJobEvent> jobs) { wrt.write("["); // sort jobs by time Collections.sort(jobs, new Comparator<RecentJobEvent>() { @Override public int compare(RecentJobEvent o1, RecentJobEvent o2) { if(o1.getTimestamp() < o2.getTimestamp()) { retur...
[ "private", "void", "writeJsonForArchive", "(", "PrintWriter", "wrt", ",", "List", "<", "RecentJobEvent", ">", "jobs", ")", "{", "wrt", ".", "write", "(", "\"[\"", ")", ";", "// sort jobs by time", "Collections", ".", "sort", "(", "jobs", ",", "new", "Compara...
Writes Json with a list of currently archived jobs, sorted by time @param wrt @param jobs
[ "Writes", "Json", "with", "a", "list", "of", "currently", "archived", "jobs", "sorted", "by", "time" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/web/JobmanagerInfoServlet.java#L180-L217
101,108
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.main
@SuppressWarnings("static-access") public static void main(String[] args) throws IOException { Option configDirOpt = OptionBuilder.withArgName("config directory").hasArg().withDescription( "Specify configuration directory.").create("configDir"); // tempDir option is used by the YARN client. Option tempDir =...
java
@SuppressWarnings("static-access") public static void main(String[] args) throws IOException { Option configDirOpt = OptionBuilder.withArgName("config directory").hasArg().withDescription( "Specify configuration directory.").create("configDir"); // tempDir option is used by the YARN client. Option tempDir =...
[ "@", "SuppressWarnings", "(", "\"static-access\"", ")", "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "IOException", "{", "Option", "configDirOpt", "=", "OptionBuilder", ".", "withArgName", "(", "\"config directory\"", ")", ...
Entry point for the program. @param args arguments from the command line @throws IOException
[ "Entry", "point", "for", "the", "program", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L391-L452
101,109
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.runHeartbeatLoop
private void runHeartbeatLoop() { final long interval = GlobalConfiguration.getInteger( ConfigConstants.TASK_MANAGER_HEARTBEAT_INTERVAL_KEY, ConfigConstants.DEFAULT_TASK_MANAGER_HEARTBEAT_INTERVAL); while (!shutdownStarted.get()) { // send heart beat try { LOG.debug("heartbeat"); this.job...
java
private void runHeartbeatLoop() { final long interval = GlobalConfiguration.getInteger( ConfigConstants.TASK_MANAGER_HEARTBEAT_INTERVAL_KEY, ConfigConstants.DEFAULT_TASK_MANAGER_HEARTBEAT_INTERVAL); while (!shutdownStarted.get()) { // send heart beat try { LOG.debug("heartbeat"); this.job...
[ "private", "void", "runHeartbeatLoop", "(", ")", "{", "final", "long", "interval", "=", "GlobalConfiguration", ".", "getInteger", "(", "ConfigConstants", ".", "TASK_MANAGER_HEARTBEAT_INTERVAL_KEY", ",", "ConfigConstants", ".", "DEFAULT_TASK_MANAGER_HEARTBEAT_INTERVAL", ")",...
This method send the periodic heartbeats.
[ "This", "method", "send", "the", "periodic", "heartbeats", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L457-L485
101,110
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.getTaskManagerAddress
private InetAddress getTaskManagerAddress(InetSocketAddress jobManagerAddress) throws IOException { AddressDetectionState strategy = AddressDetectionState.ADDRESS; while (true) { Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces(); while (e.hasMoreElements()) { NetworkInterface n = ...
java
private InetAddress getTaskManagerAddress(InetSocketAddress jobManagerAddress) throws IOException { AddressDetectionState strategy = AddressDetectionState.ADDRESS; while (true) { Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces(); while (e.hasMoreElements()) { NetworkInterface n = ...
[ "private", "InetAddress", "getTaskManagerAddress", "(", "InetSocketAddress", "jobManagerAddress", ")", "throws", "IOException", "{", "AddressDetectionState", "strategy", "=", "AddressDetectionState", ".", "ADDRESS", ";", "while", "(", "true", ")", "{", "Enumeration", "<...
Find out the TaskManager's own IP address.
[ "Find", "out", "the", "TaskManager", "s", "own", "IP", "address", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L511-L558
101,111
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.createAndRegisterTask
private Task createAndRegisterTask(final ExecutionVertexID id, final Configuration jobConfiguration, final RuntimeEnvironment environment) throws InsufficientResourcesException, IOException { if (id == null) { throw new IllegalArgumentException("Argument id is null"); } if (environment == null) { ...
java
private Task createAndRegisterTask(final ExecutionVertexID id, final Configuration jobConfiguration, final RuntimeEnvironment environment) throws InsufficientResourcesException, IOException { if (id == null) { throw new IllegalArgumentException("Argument id is null"); } if (environment == null) { ...
[ "private", "Task", "createAndRegisterTask", "(", "final", "ExecutionVertexID", "id", ",", "final", "Configuration", "jobConfiguration", ",", "final", "RuntimeEnvironment", "environment", ")", "throws", "InsufficientResourcesException", ",", "IOException", "{", "if", "(", ...
Registers an newly incoming runtime task with the task manager. @param id the ID of the task to register @param jobConfiguration the job configuration that has been attached to the original job graph @param environment the environment of the task to be registered @return the task to be started or <code>null</code> if ...
[ "Registers", "an", "newly", "incoming", "runtime", "task", "with", "the", "task", "manager", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L733-L784
101,112
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.unregisterTask
private void unregisterTask(final ExecutionVertexID id) { // Task de-registration must be atomic synchronized (this) { final Task task = this.runningTasks.remove(id); if (task == null) { LOG.error("Cannot find task with ID " + id + " to unregister"); return; } // remove the local tmp file for...
java
private void unregisterTask(final ExecutionVertexID id) { // Task de-registration must be atomic synchronized (this) { final Task task = this.runningTasks.remove(id); if (task == null) { LOG.error("Cannot find task with ID " + id + " to unregister"); return; } // remove the local tmp file for...
[ "private", "void", "unregisterTask", "(", "final", "ExecutionVertexID", "id", ")", "{", "// Task de-registration must be atomic", "synchronized", "(", "this", ")", "{", "final", "Task", "task", "=", "this", ".", "runningTasks", ".", "remove", "(", "id", ")", ";"...
Unregisters a finished or aborted task. @param id the ID of the task to be unregistered
[ "Unregisters", "a", "finished", "or", "aborted", "task", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L792-L825
101,113
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.shutdown
public void shutdown() { if (!this.shutdownStarted.compareAndSet(false, true)) { return; } LOG.info("Shutting down TaskManager"); // first, stop the heartbeat thread and wait for it to terminate this.heartbeatThread.interrupt(); try { this.heartbeatThread.join(1000); } catch (InterruptedExcepti...
java
public void shutdown() { if (!this.shutdownStarted.compareAndSet(false, true)) { return; } LOG.info("Shutting down TaskManager"); // first, stop the heartbeat thread and wait for it to terminate this.heartbeatThread.interrupt(); try { this.heartbeatThread.join(1000); } catch (InterruptedExcepti...
[ "public", "void", "shutdown", "(", ")", "{", "if", "(", "!", "this", ".", "shutdownStarted", ".", "compareAndSet", "(", "false", ",", "true", ")", ")", "{", "return", ";", "}", "LOG", ".", "info", "(", "\"Shutting down TaskManager\"", ")", ";", "// first...
Shuts the task manager down.
[ "Shuts", "the", "task", "manager", "down", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L879-L940
101,114
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java
TaskManager.checkTempDirs
private static final void checkTempDirs(final String[] tempDirs) throws Exception { for (int i = 0; i < tempDirs.length; ++i) { final String dir = tempDirs[i]; if (dir == null) { throw new Exception("Temporary file directory #" + (i + 1) + " is null."); } final File f = new File(dir); if (!f.ex...
java
private static final void checkTempDirs(final String[] tempDirs) throws Exception { for (int i = 0; i < tempDirs.length; ++i) { final String dir = tempDirs[i]; if (dir == null) { throw new Exception("Temporary file directory #" + (i + 1) + " is null."); } final File f = new File(dir); if (!f.ex...
[ "private", "static", "final", "void", "checkTempDirs", "(", "final", "String", "[", "]", "tempDirs", ")", "throws", "Exception", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tempDirs", ".", "length", ";", "++", "i", ")", "{", "final", "Stri...
Checks, whether the given strings describe existing directories that are writable. If that is not the case, an exception is raised. @param tempDirs An array of strings which are checked to be paths to writable directories. @throws Exception Thrown, if any of the mentioned checks fails.
[ "Checks", "whether", "the", "given", "strings", "describe", "existing", "directories", "that", "are", "writable", ".", "If", "that", "is", "not", "the", "case", "an", "exception", "is", "raised", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/TaskManager.java#L987-L1010
101,115
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java
JobManager.logVersionInformation
private static void logVersionInformation() { String version = JobManager.class.getPackage().getImplementationVersion(); // if version == null, then the JobManager runs from inside the IDE (or somehow not from the maven build jar) String revision = "<unknown>"; try { Properties properties = new Properties();...
java
private static void logVersionInformation() { String version = JobManager.class.getPackage().getImplementationVersion(); // if version == null, then the JobManager runs from inside the IDE (or somehow not from the maven build jar) String revision = "<unknown>"; try { Properties properties = new Properties();...
[ "private", "static", "void", "logVersionInformation", "(", ")", "{", "String", "version", "=", "JobManager", ".", "class", ".", "getPackage", "(", ")", ".", "getImplementationVersion", "(", ")", ";", "// if version == null, then the JobManager runs from inside the IDE (or...
Log Stratosphere version information.
[ "Log", "Stratosphere", "version", "information", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java#L308-L323
101,116
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java
JobManager.main
public static void main(String[] args) { // determine if a valid log4j config exists and initialize a default logger if not if (System.getProperty("log4j.configuration") == null) { Logger root = Logger.getRootLogger(); root.removeAllAppenders(); PatternLayout layout = new PatternLayout("%d{HH:mm:ss,SSS} %-...
java
public static void main(String[] args) { // determine if a valid log4j config exists and initialize a default logger if not if (System.getProperty("log4j.configuration") == null) { Logger root = Logger.getRootLogger(); root.removeAllAppenders(); PatternLayout layout = new PatternLayout("%d{HH:mm:ss,SSS} %-...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "// determine if a valid log4j config exists and initialize a default logger if not", "if", "(", "System", ".", "getProperty", "(", "\"log4j.configuration\"", ")", "==", "null", ")", "{", "...
Entry point for the program @param args arguments from the command line
[ "Entry", "point", "for", "the", "program" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java#L332-L362
101,117
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java
JobManager.cancelJob
private TaskCancelResult cancelJob(final ExecutionGraph eg) { TaskCancelResult errorResult = null; /** * Cancel all nodes in the current and upper execution stages. */ final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, eg.getIndexOfCurrentExecutionStage(), false, true); while (it.has...
java
private TaskCancelResult cancelJob(final ExecutionGraph eg) { TaskCancelResult errorResult = null; /** * Cancel all nodes in the current and upper execution stages. */ final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(eg, eg.getIndexOfCurrentExecutionStage(), false, true); while (it.has...
[ "private", "TaskCancelResult", "cancelJob", "(", "final", "ExecutionGraph", "eg", ")", "{", "TaskCancelResult", "errorResult", "=", "null", ";", "/**\n\t\t * Cancel all nodes in the current and upper execution stages.\n\t\t */", "final", "Iterator", "<", "ExecutionVertex", ">",...
Cancels all the tasks in the current and upper stages of the given execution graph. @param eg the execution graph representing the job to cancel. @return <code>null</code> if no error occurred during the cancel attempt, otherwise the returned object will describe the error
[ "Cancels", "all", "the", "tasks", "in", "the", "current", "and", "upper", "stages", "of", "the", "given", "execution", "graph", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java#L691-L710
101,118
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java
JobManager.getManagementGraph
@Override public ManagementGraph getManagementGraph(final JobID jobID) throws IOException { ManagementGraph mg = this.eventCollector.getManagementGraph(jobID); if (mg == null) { if(this.archive != null) { mg = this.archive.getManagementGraph(jobID); } if (mg == null) { throw new IOException("...
java
@Override public ManagementGraph getManagementGraph(final JobID jobID) throws IOException { ManagementGraph mg = this.eventCollector.getManagementGraph(jobID); if (mg == null) { if(this.archive != null) { mg = this.archive.getManagementGraph(jobID); } if (mg == null) { throw new IOException("...
[ "@", "Override", "public", "ManagementGraph", "getManagementGraph", "(", "final", "JobID", "jobID", ")", "throws", "IOException", "{", "ManagementGraph", "mg", "=", "this", ".", "eventCollector", ".", "getManagementGraph", "(", "jobID", ")", ";", "if", "(", "mg"...
Returns current ManagementGraph from eventCollector and, if not current, from archive {@inheritDoc}
[ "Returns", "current", "ManagementGraph", "from", "eventCollector", "and", "if", "not", "current", "from", "archive" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java#L832-L847
101,119
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java
JobManager.startInfoServer
public void startInfoServer() { final Configuration config = GlobalConfiguration.getConfiguration(); // Start InfoServer try { int port = config.getInteger(ConfigConstants.JOB_MANAGER_WEB_PORT_KEY, ConfigConstants.DEFAULT_JOB_MANAGER_WEB_FRONTEND_PORT); server = new WebInfoServer(config, port, this); ser...
java
public void startInfoServer() { final Configuration config = GlobalConfiguration.getConfiguration(); // Start InfoServer try { int port = config.getInteger(ConfigConstants.JOB_MANAGER_WEB_PORT_KEY, ConfigConstants.DEFAULT_JOB_MANAGER_WEB_FRONTEND_PORT); server = new WebInfoServer(config, port, this); ser...
[ "public", "void", "startInfoServer", "(", ")", "{", "final", "Configuration", "config", "=", "GlobalConfiguration", ".", "getConfiguration", "(", ")", ";", "// Start InfoServer", "try", "{", "int", "port", "=", "config", ".", "getInteger", "(", "ConfigConstants", ...
Starts the Jetty Infoserver for the Jobmanager
[ "Starts", "the", "Jetty", "Infoserver", "for", "the", "Jobmanager" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManager.java#L1167-L1179
101,120
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/io/CsvReader.java
CsvReader.types
public <T0, T1, T2> DataSource<Tuple3<T0, T1, T2>> types(Class<T0> type0, Class<T1> type1, Class<T2> type2) { TupleTypeInfo<Tuple3<T0, T1, T2>> types = TupleTypeInfo.getBasicTupleTypeInfo(type0, type1, type2); CsvInputFormat<Tuple3<T0, T1, T2>> inputFormat = new CsvInputFormat<Tuple3<T0, T1, T2>>(path); configure...
java
public <T0, T1, T2> DataSource<Tuple3<T0, T1, T2>> types(Class<T0> type0, Class<T1> type1, Class<T2> type2) { TupleTypeInfo<Tuple3<T0, T1, T2>> types = TupleTypeInfo.getBasicTupleTypeInfo(type0, type1, type2); CsvInputFormat<Tuple3<T0, T1, T2>> inputFormat = new CsvInputFormat<Tuple3<T0, T1, T2>>(path); configure...
[ "public", "<", "T0", ",", "T1", ",", "T2", ">", "DataSource", "<", "Tuple3", "<", "T0", ",", "T1", ",", "T2", ">", ">", "types", "(", "Class", "<", "T0", ">", "type0", ",", "Class", "<", "T1", ">", "type1", ",", "Class", "<", "T2", ">", "type...
Specifies the types for the CSV fields. This method parses the CSV data to a 3-tuple which has fields of the specified types. This method is overloaded for each possible length of the tuples to support type safe creation of data sets through CSV parsing. @param type0 The type of CSV field 0 and the type of field 0 in ...
[ "Specifies", "the", "types", "for", "the", "CSV", "fields", ".", "This", "method", "parses", "the", "CSV", "data", "to", "a", "3", "-", "tuple", "which", "has", "fields", "of", "the", "specified", "types", ".", "This", "method", "is", "overloaded", "for"...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/io/CsvReader.java#L302-L307
101,121
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Ordering.java
Ordering.appendOrdering
public Ordering appendOrdering(Integer index, Class<? extends Key<?>> type, Order order) { if (index.intValue() < 0) { throw new IllegalArgumentException("The key index must not be negative."); } if (order == null) { throw new NullPointerException(); } if (order == Order.NONE) { throw new IllegalArgu...
java
public Ordering appendOrdering(Integer index, Class<? extends Key<?>> type, Order order) { if (index.intValue() < 0) { throw new IllegalArgumentException("The key index must not be negative."); } if (order == null) { throw new NullPointerException(); } if (order == Order.NONE) { throw new IllegalArgu...
[ "public", "Ordering", "appendOrdering", "(", "Integer", "index", ",", "Class", "<", "?", "extends", "Key", "<", "?", ">", ">", "type", ",", "Order", "order", ")", "{", "if", "(", "index", ".", "intValue", "(", ")", "<", "0", ")", "{", "throw", "new...
Extends this ordering by appending an additional order requirement. @param index Field index of the appended order requirement. @param type Type of the appended order requirement. @param order Order of the appended order requirement. @return This ordering with an additional appended order requirement.
[ "Extends", "this", "ordering", "by", "appending", "an", "additional", "order", "requirement", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Ordering.java#L58-L73
101,122
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/GlobalProperties.java
GlobalProperties.setHashPartitioned
public void setHashPartitioned(FieldList partitionedFields) { this.partitioning = PartitioningProperty.HASH_PARTITIONED; this.partitioningFields = partitionedFields; this.ordering = null; }
java
public void setHashPartitioned(FieldList partitionedFields) { this.partitioning = PartitioningProperty.HASH_PARTITIONED; this.partitioningFields = partitionedFields; this.ordering = null; }
[ "public", "void", "setHashPartitioned", "(", "FieldList", "partitionedFields", ")", "{", "this", ".", "partitioning", "=", "PartitioningProperty", ".", "HASH_PARTITIONED", ";", "this", ".", "partitioningFields", "=", "partitionedFields", ";", "this", ".", "ordering", ...
Sets the partitioning property for the global properties. @param partitioning The new partitioning to set. @param partitionedFields
[ "Sets", "the", "partitioning", "property", "for", "the", "global", "properties", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/GlobalProperties.java#L64-L68
101,123
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/GlobalProperties.java
GlobalProperties.filterByNodesConstantSet
public GlobalProperties filterByNodesConstantSet(OptimizerNode node, int input) { // check if partitioning survives if (this.ordering != null) { for (int col : this.ordering.getInvolvedIndexes()) { if (!node.isFieldConstant(input, col)) { return new GlobalProperties(); } } } if (this.partitio...
java
public GlobalProperties filterByNodesConstantSet(OptimizerNode node, int input) { // check if partitioning survives if (this.ordering != null) { for (int col : this.ordering.getInvolvedIndexes()) { if (!node.isFieldConstant(input, col)) { return new GlobalProperties(); } } } if (this.partitio...
[ "public", "GlobalProperties", "filterByNodesConstantSet", "(", "OptimizerNode", "node", ",", "int", "input", ")", "{", "// check if partitioning survives", "if", "(", "this", ".", "ordering", "!=", "null", ")", "{", "for", "(", "int", "col", ":", "this", ".", ...
Filters these properties by what can be preserved through the given output contract. @param contract The output contract. @return True, if any non-default value is preserved, false otherwise.
[ "Filters", "these", "properties", "by", "what", "can", "be", "preserved", "through", "the", "given", "output", "contract", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/GlobalProperties.java#L200-L242
101,124
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/DeltaIteration.java
DeltaIteration.parallelism
public DeltaIteration<ST, WT> parallelism(int parallelism) { Validate.isTrue(parallelism > 0 || parallelism == -1, "The degree of parallelism must be positive, or -1 (use default)."); this.parallelism = parallelism; return this; }
java
public DeltaIteration<ST, WT> parallelism(int parallelism) { Validate.isTrue(parallelism > 0 || parallelism == -1, "The degree of parallelism must be positive, or -1 (use default)."); this.parallelism = parallelism; return this; }
[ "public", "DeltaIteration", "<", "ST", ",", "WT", ">", "parallelism", "(", "int", "parallelism", ")", "{", "Validate", ".", "isTrue", "(", "parallelism", ">", "0", "||", "parallelism", "==", "-", "1", ",", "\"The degree of parallelism must be positive, or -1 (use ...
Sets the degree of parallelism for the iteration. @param parallelism The degree of parallelism. @return The iteration object, for function call chaining.
[ "Sets", "the", "degree", "of", "parallelism", "for", "the", "iteration", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/DeltaIteration.java#L167-L171
101,125
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobSubmissionServlet.java
JobSubmissionServlet.showErrorPage
private void showErrorPage(HttpServletResponse resp, String message) throws IOException { resp.setStatus(HttpServletResponse.SC_OK); resp.setContentType(GUIServletStub.CONTENT_TYPE_HTML); PrintWriter writer = resp.getWriter(); writer .println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transition...
java
private void showErrorPage(HttpServletResponse resp, String message) throws IOException { resp.setStatus(HttpServletResponse.SC_OK); resp.setContentType(GUIServletStub.CONTENT_TYPE_HTML); PrintWriter writer = resp.getWriter(); writer .println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transition...
[ "private", "void", "showErrorPage", "(", "HttpServletResponse", "resp", ",", "String", "message", ")", "throws", "IOException", "{", "resp", ".", "setStatus", "(", "HttpServletResponse", ".", "SC_OK", ")", ";", "resp", ".", "setContentType", "(", "GUIServletStub",...
Prints the error page, containing the given message. @param resp The response handler. @param message The message to display. @throws IOException Thrown, if the error page could not be printed due to an I/O problem.
[ "Prints", "the", "error", "page", "containing", "the", "given", "message", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobSubmissionServlet.java#L343-L373
101,126
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobSubmissionServlet.java
JobSubmissionServlet.checkParameterSet
private boolean checkParameterSet(HttpServletResponse resp, String parameter, String parameterName) throws IOException { if (parameter == null) { showErrorPage(resp, "The parameter '" + parameterName + "' is not set."); return true; } else { return false; } }
java
private boolean checkParameterSet(HttpServletResponse resp, String parameter, String parameterName) throws IOException { if (parameter == null) { showErrorPage(resp, "The parameter '" + parameterName + "' is not set."); return true; } else { return false; } }
[ "private", "boolean", "checkParameterSet", "(", "HttpServletResponse", "resp", ",", "String", "parameter", ",", "String", "parameterName", ")", "throws", "IOException", "{", "if", "(", "parameter", "==", "null", ")", "{", "showErrorPage", "(", "resp", ",", "\"Th...
Checks the given parameter. If it is null, it prints the error page. @param resp The response handler. @param parameter The parameter to check. @param parameterName The name of the parameter, to describe it in the error message. @return True, if the parameter is null, false otherwise. @throws IOException Thrown, if th...
[ "Checks", "the", "given", "parameter", ".", "If", "it", "is", "null", "it", "prints", "the", "error", "page", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/web/JobSubmissionServlet.java#L388-L396
101,127
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/Task.java
Task.cancelOrKillExecution
private void cancelOrKillExecution(boolean cancel) { final Thread executingThread = this.environment.getExecutingThread(); if (executingThread == null) { return; } if (this.executionState != ExecutionState.RUNNING && this.executionState != ExecutionState.FINISHING) { return; } LOG.info((cancel ? "C...
java
private void cancelOrKillExecution(boolean cancel) { final Thread executingThread = this.environment.getExecutingThread(); if (executingThread == null) { return; } if (this.executionState != ExecutionState.RUNNING && this.executionState != ExecutionState.FINISHING) { return; } LOG.info((cancel ? "C...
[ "private", "void", "cancelOrKillExecution", "(", "boolean", "cancel", ")", "{", "final", "Thread", "executingThread", "=", "this", ".", "environment", ".", "getExecutingThread", "(", ")", ";", "if", "(", "executingThread", "==", "null", ")", "{", "return", ";"...
Cancels or kills the task. @param cancel <code>true/code> if the task shall be canceled, <code>false</code> if it shall be killed
[ "Cancels", "or", "kills", "the", "task", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/taskmanager/Task.java#L117-L168
101,128
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/RecordReader.java
RecordReader.hasNext
@Override public boolean hasNext() throws IOException, InterruptedException{ if (this.lookahead != null) { return true; } else { if (this.noMoreRecordsWillFollow) { return false; } T record = instantiateRecordType(); while (true) { InputChannelResult result = this.inputGate.readRecor...
java
@Override public boolean hasNext() throws IOException, InterruptedException{ if (this.lookahead != null) { return true; } else { if (this.noMoreRecordsWillFollow) { return false; } T record = instantiateRecordType(); while (true) { InputChannelResult result = this.inputGate.readRecor...
[ "@", "Override", "public", "boolean", "hasNext", "(", ")", "throws", "IOException", ",", "InterruptedException", "{", "if", "(", "this", ".", "lookahead", "!=", "null", ")", "{", "return", "true", ";", "}", "else", "{", "if", "(", "this", ".", "noMoreRec...
Checks if at least one more record can be read from the associated input gate. This method may block until the associated input gate is able to read the record from one of its input channels. @return <code>true</code>it at least one more record can be read from the associated input gate, otherwise <code>false</code>
[ "Checks", "if", "at", "least", "one", "more", "record", "can", "be", "read", "from", "the", "associated", "input", "gate", ".", "This", "method", "may", "block", "until", "the", "associated", "input", "gate", "is", "able", "to", "read", "the", "record", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/api/RecordReader.java#L80-L120
101,129
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/web/WebInterfaceServer.java
WebInterfaceServer.checkAndCreateDirectories
private final void checkAndCreateDirectories(File f, boolean needWritePermission) throws IOException { String dir = f.getAbsolutePath(); // check if it exists and it is not a directory if (f.exists() && !f.isDirectory()) { throw new IOException("A none directory file with the same name as the configured direc...
java
private final void checkAndCreateDirectories(File f, boolean needWritePermission) throws IOException { String dir = f.getAbsolutePath(); // check if it exists and it is not a directory if (f.exists() && !f.isDirectory()) { throw new IOException("A none directory file with the same name as the configured direc...
[ "private", "final", "void", "checkAndCreateDirectories", "(", "File", "f", ",", "boolean", "needWritePermission", ")", "throws", "IOException", "{", "String", "dir", "=", "f", ".", "getAbsolutePath", "(", ")", ";", "// check if it exists and it is not a directory", "i...
Checks and creates the directory described by the abstract directory path. This function checks if the directory exists and creates it if necessary. It also checks read permissions and write permission, if necessary. @param dir The String describing the directory path. @param needWritePermission A flag indicating whet...
[ "Checks", "and", "creates", "the", "directory", "described", "by", "the", "abstract", "directory", "path", ".", "This", "function", "checks", "if", "the", "directory", "exists", "and", "creates", "it", "if", "necessary", ".", "It", "also", "checks", "read", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/web/WebInterfaceServer.java#L257-L282
101,130
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/SingleInputUdfOperator.java
SingleInputUdfOperator.withConstantSet
public O withConstantSet(String... constantSet) { SingleInputSemanticProperties props = SemanticPropUtil.getSemanticPropsSingleFromString(constantSet, null, null, this.getInputType(), this.getResultType()); this.setSemanticProperties(props); @SuppressWarnings("unchecked") O returnType = (O) this; return retur...
java
public O withConstantSet(String... constantSet) { SingleInputSemanticProperties props = SemanticPropUtil.getSemanticPropsSingleFromString(constantSet, null, null, this.getInputType(), this.getResultType()); this.setSemanticProperties(props); @SuppressWarnings("unchecked") O returnType = (O) this; return retur...
[ "public", "O", "withConstantSet", "(", "String", "...", "constantSet", ")", "{", "SingleInputSemanticProperties", "props", "=", "SemanticPropUtil", ".", "getSemanticPropsSingleFromString", "(", "constantSet", ",", "null", ",", "null", ",", "this", ".", "getInputType",...
Adds a constant-set annotation for 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 performance. Consta...
[ "Adds", "a", "constant", "-", "set", "annotation", "for", "the", "UDF", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/SingleInputUdfOperator.java#L113-L119
101,131
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/record/io/FixedLengthInputFormat.java
FixedLengthInputFormat.fillReadBuffer
private void fillReadBuffer() throws IOException { // special case for compressed files. if(splitLength == FileInputFormat.READ_WHOLE_SPLIT_FLAG) { int read = this.stream.read(this.readBuffer, 0, this.readBufferSize); if (read == -1) { exhausted = true; } else { this.streamPos += read; this.rea...
java
private void fillReadBuffer() throws IOException { // special case for compressed files. if(splitLength == FileInputFormat.READ_WHOLE_SPLIT_FLAG) { int read = this.stream.read(this.readBuffer, 0, this.readBufferSize); if (read == -1) { exhausted = true; } else { this.streamPos += read; this.rea...
[ "private", "void", "fillReadBuffer", "(", ")", "throws", "IOException", "{", "// special case for compressed files.", "if", "(", "splitLength", "==", "FileInputFormat", ".", "READ_WHOLE_SPLIT_FLAG", ")", "{", "int", "read", "=", "this", ".", "stream", ".", "read", ...
Fills the next read buffer from the file stream. @throws IOException
[ "Fills", "the", "next", "read", "buffer", "from", "the", "file", "stream", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/record/io/FixedLengthInputFormat.java#L208-L238
101,132
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/functions/FunctionAnnotation.java
FunctionAnnotation.readSingleConstantAnnotations
public static Set<Annotation> readSingleConstantAnnotations(Class<?> udfClass) { ConstantFields constantSet = udfClass.getAnnotation(ConstantFields.class); ConstantFieldsExcept notConstantSet = udfClass.getAnnotation(ConstantFieldsExcept.class); ReadFields readfieldSet = udfClass.getAnnotation(ReadFields.class); ...
java
public static Set<Annotation> readSingleConstantAnnotations(Class<?> udfClass) { ConstantFields constantSet = udfClass.getAnnotation(ConstantFields.class); ConstantFieldsExcept notConstantSet = udfClass.getAnnotation(ConstantFieldsExcept.class); ReadFields readfieldSet = udfClass.getAnnotation(ReadFields.class); ...
[ "public", "static", "Set", "<", "Annotation", ">", "readSingleConstantAnnotations", "(", "Class", "<", "?", ">", "udfClass", ")", "{", "ConstantFields", "constantSet", "=", "udfClass", ".", "getAnnotation", "(", "ConstantFields", ".", "class", ")", ";", "Constan...
Reads the annotations of a user defined function with one input and returns semantic properties according to the constant fields annotated. @param udfClass The user defined function, represented by its class. @return The DualInputSemanticProperties containing the constant fields.
[ "Reads", "the", "annotations", "of", "a", "user", "defined", "function", "with", "one", "input", "and", "returns", "semantic", "properties", "according", "to", "the", "constant", "fields", "annotated", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/functions/FunctionAnnotation.java#L314-L343
101,133
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/functions/FunctionAnnotation.java
FunctionAnnotation.readDualConstantAnnotations
public static Set<Annotation> readDualConstantAnnotations(Class<?> udfClass) { // get readSet annotation from stub ConstantFieldsFirst constantSet1 = udfClass.getAnnotation(ConstantFieldsFirst.class); ConstantFieldsSecond constantSet2= udfClass.getAnnotation(ConstantFieldsSecond.class); // get readSet annotat...
java
public static Set<Annotation> readDualConstantAnnotations(Class<?> udfClass) { // get readSet annotation from stub ConstantFieldsFirst constantSet1 = udfClass.getAnnotation(ConstantFieldsFirst.class); ConstantFieldsSecond constantSet2= udfClass.getAnnotation(ConstantFieldsSecond.class); // get readSet annotat...
[ "public", "static", "Set", "<", "Annotation", ">", "readDualConstantAnnotations", "(", "Class", "<", "?", ">", "udfClass", ")", "{", "// get readSet annotation from stub", "ConstantFieldsFirst", "constantSet1", "=", "udfClass", ".", "getAnnotation", "(", "ConstantFields...
Reads the annotations of a user defined function with two inputs and returns semantic properties according to the constant fields annotated. @param udfClass The user defined function, represented by its class. @return The DualInputSemanticProperties containing the constant fields.
[ "Reads", "the", "annotations", "of", "a", "user", "defined", "function", "with", "two", "inputs", "and", "returns", "semantic", "properties", "according", "to", "the", "constant", "fields", "annotated", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/functions/FunctionAnnotation.java#L352-L414
101,134
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.put
public final CheckedMemorySegment put(int index, byte b) { if (index >= 0 && index < this.size) { this.memory[this.offset + index] = b; return this; } else { throw new IndexOutOfBoundsException(); } }
java
public final CheckedMemorySegment put(int index, byte b) { if (index >= 0 && index < this.size) { this.memory[this.offset + index] = b; return this; } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "CheckedMemorySegment", "put", "(", "int", "index", ",", "byte", "b", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", ")", "{", "this", ".", "memory", "[", "this", ".", "offset", "+", "index", "]...
Writes the given byte into this buffer at the given position. @param position The position at which the byte will be written. @param b The byte value to be written. @return This view itself. @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger or equal to the size of the memory segment.
[ "Writes", "the", "given", "byte", "into", "this", "buffer", "at", "the", "given", "position", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L186-L193
101,135
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.get
public final CheckedMemorySegment get(int index, byte[] dst, int offset, int length) { if (index >= 0 && index < this.size && index <= this.size - length && offset <= dst.length - length) { System.arraycopy(this.memory, this.offset + index, dst, offset, length); return this; } else { throw new IndexOutOfBo...
java
public final CheckedMemorySegment get(int index, byte[] dst, int offset, int length) { if (index >= 0 && index < this.size && index <= this.size - length && offset <= dst.length - length) { System.arraycopy(this.memory, this.offset + index, dst, offset, length); return this; } else { throw new IndexOutOfBo...
[ "public", "final", "CheckedMemorySegment", "get", "(", "int", "index", ",", "byte", "[", "]", "dst", ",", "int", "offset", ",", "int", "length", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "&&", "index", "<=", ...
Bulk get method. Copies length memory from the specified position to the destination memory, beginning at the given offset @param position The position at which the first byte will be read. @param dst The memory into which the memory will be copied. @param offset The copying offset in the destination memory. @param le...
[ "Bulk", "get", "method", ".", "Copies", "length", "memory", "from", "the", "specified", "position", "to", "the", "destination", "memory", "beginning", "at", "the", "given", "offset" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L244-L251
101,136
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.put
public final CheckedMemorySegment put(int index, byte[] src, int offset, int length) { if (index >= 0 && index < this.size && index <= this.size - length && offset <= src.length - length) { System.arraycopy(src, offset, this.memory, this.offset + index, length); return this; } else { throw new IndexOutOfBo...
java
public final CheckedMemorySegment put(int index, byte[] src, int offset, int length) { if (index >= 0 && index < this.size && index <= this.size - length && offset <= src.length - length) { System.arraycopy(src, offset, this.memory, this.offset + index, length); return this; } else { throw new IndexOutOfBo...
[ "public", "final", "CheckedMemorySegment", "put", "(", "int", "index", ",", "byte", "[", "]", "src", ",", "int", "offset", ",", "int", "length", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "&&", "index", "<=", ...
Bulk put method. Copies length memory starting at position offset from the source memory into the memory segment starting at the specified index. @param index The position in the memory segment array, where the data is put. @param src The source array to copy the data from. @param offset The offset in the source array...
[ "Bulk", "put", "method", ".", "Copies", "length", "memory", "starting", "at", "position", "offset", "from", "the", "source", "memory", "into", "the", "memory", "segment", "starting", "at", "the", "specified", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L268-L275
101,137
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.putBoolean
public final CheckedMemorySegment putBoolean(int index, boolean value) { if (index >= 0 && index < this.size) { this.memory[this.offset + index] = (byte) (value ? 1 : 0); return this; } else { throw new IndexOutOfBoundsException(); } }
java
public final CheckedMemorySegment putBoolean(int index, boolean value) { if (index >= 0 && index < this.size) { this.memory[this.offset + index] = (byte) (value ? 1 : 0); return this; } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "CheckedMemorySegment", "putBoolean", "(", "int", "index", ",", "boolean", "value", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", ")", "{", "this", ".", "memory", "[", "this", ".", "offset", "+", ...
Writes one byte containing the byte value into this buffer at the given position. @param position The position at which the memory will be written. @param value The char value to be written. @return This view itself. @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger then the segment size m...
[ "Writes", "one", "byte", "containing", "the", "byte", "value", "into", "this", "buffer", "at", "the", "given", "position", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L347-L354
101,138
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.getChar
public final char getChar(int index) { if (index >= 0 && index < this.size - 1) { return (char) ( ((this.memory[this.offset + index + 0] & 0xff) << 8) | (this.memory[this.offset + index + 1] & 0xff) ); } else { throw new IndexOutOfBoundsException(); } }
java
public final char getChar(int index) { if (index >= 0 && index < this.size - 1) { return (char) ( ((this.memory[this.offset + index + 0] & 0xff) << 8) | (this.memory[this.offset + index + 1] & 0xff) ); } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "char", "getChar", "(", "int", "index", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "-", "1", ")", "{", "return", "(", "char", ")", "(", "(", "(", "this", ".", "memory", "[", "this", ".",...
Reads two memory at the given position, composing them into a char value according to the current byte order. @param position The position from which the memory will be read. @return The char value at the given position. @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger then the segment si...
[ "Reads", "two", "memory", "at", "the", "given", "position", "composing", "them", "into", "a", "char", "value", "according", "to", "the", "current", "byte", "order", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L366-L373
101,139
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.putChar
public final CheckedMemorySegment putChar(int index, char value) { if (index >= 0 && index < this.size - 1) { this.memory[this.offset + index + 0] = (byte) (value >> 8); this.memory[this.offset + index + 1] = (byte) value; return this; } else { throw new IndexOutOfBoundsException(); } }
java
public final CheckedMemorySegment putChar(int index, char value) { if (index >= 0 && index < this.size - 1) { this.memory[this.offset + index + 0] = (byte) (value >> 8); this.memory[this.offset + index + 1] = (byte) value; return this; } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "CheckedMemorySegment", "putChar", "(", "int", "index", ",", "char", "value", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "-", "1", ")", "{", "this", ".", "memory", "[", "this", ".", "offset", ...
Writes two memory containing the given char value, in the current byte order, into this buffer at the given position. @param position The position at which the memory will be written. @param value The char value to be written. @return This view itself. @throws IndexOutOfBoundsException Thrown, if the index is negativ...
[ "Writes", "two", "memory", "containing", "the", "given", "char", "value", "in", "the", "current", "byte", "order", "into", "this", "buffer", "at", "the", "given", "position", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L386-L394
101,140
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.getShort
public final short getShort(int index) { if (index >= 0 && index < this.size - 1) { return (short) ( ((this.memory[this.offset + index + 0] & 0xff) << 8) | ((this.memory[this.offset + index + 1] & 0xff)) ); } else { throw new IndexOutOfBoundsException(); } }
java
public final short getShort(int index) { if (index >= 0 && index < this.size - 1) { return (short) ( ((this.memory[this.offset + index + 0] & 0xff) << 8) | ((this.memory[this.offset + index + 1] & 0xff)) ); } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "short", "getShort", "(", "int", "index", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "-", "1", ")", "{", "return", "(", "short", ")", "(", "(", "(", "this", ".", "memory", "[", "this", "...
Reads two memory at the given position, composing them into a short value according to the current byte order. @param position The position from which the memory will be read. @return The short value at the given position. @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger then the segment ...
[ "Reads", "two", "memory", "at", "the", "given", "position", "composing", "them", "into", "a", "short", "value", "according", "to", "the", "current", "byte", "order", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L406-L414
101,141
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java
CheckedMemorySegment.putShort
public final CheckedMemorySegment putShort(int index, short value) { if (index >= 0 && index < this.size - 1) { this.memory[this.offset + index + 0] = (byte) (value >> 8); this.memory[this.offset + index + 1] = (byte) value; return this; } else { throw new IndexOutOfBoundsException(); } }
java
public final CheckedMemorySegment putShort(int index, short value) { if (index >= 0 && index < this.size - 1) { this.memory[this.offset + index + 0] = (byte) (value >> 8); this.memory[this.offset + index + 1] = (byte) value; return this; } else { throw new IndexOutOfBoundsException(); } }
[ "public", "final", "CheckedMemorySegment", "putShort", "(", "int", "index", ",", "short", "value", ")", "{", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "size", "-", "1", ")", "{", "this", ".", "memory", "[", "this", ".", "offset"...
Writes two memory containing the given short value, in the current byte order, into this buffer at the given position. @param position The position at which the memory will be written. @param value The short value to be written. @return This view itself. @throws IndexOutOfBoundsException Thrown, if the index is negat...
[ "Writes", "two", "memory", "containing", "the", "given", "short", "value", "in", "the", "current", "byte", "order", "into", "this", "buffer", "at", "the", "given", "position", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/memorymanager/CheckedMemorySegment.java#L427-L435
101,142
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java
ClusterManager.sortAvailableInstancesByNumberOfCPUCores
private void sortAvailableInstancesByNumberOfCPUCores() { if (this.availableInstanceTypes.length < 2) { return; } for (int i = 1; i < this.availableInstanceTypes.length; i++) { final InstanceType it = this.availableInstanceTypes[i]; int j = i; while (j > 0 && this.availableInstanceTypes[j - 1].getNu...
java
private void sortAvailableInstancesByNumberOfCPUCores() { if (this.availableInstanceTypes.length < 2) { return; } for (int i = 1; i < this.availableInstanceTypes.length; i++) { final InstanceType it = this.availableInstanceTypes[i]; int j = i; while (j > 0 && this.availableInstanceTypes[j - 1].getNu...
[ "private", "void", "sortAvailableInstancesByNumberOfCPUCores", "(", ")", "{", "if", "(", "this", ".", "availableInstanceTypes", ".", "length", "<", "2", ")", "{", "return", ";", "}", "for", "(", "int", "i", "=", "1", ";", "i", "<", "this", ".", "availabl...
Sorts the list of available instance types by the number of CPU cores in a descending order.
[ "Sorts", "the", "list", "of", "available", "instance", "types", "by", "the", "number", "of", "CPU", "cores", "in", "a", "descending", "order", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java#L282-L297
101,143
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java
ClusterManager.checkPendingRequests
private void checkPendingRequests() { final Iterator<Map.Entry<JobID, PendingRequestsMap>> it = this.pendingRequestsOfJob.entrySet().iterator(); while (it.hasNext()) { final List<AllocatedResource> allocatedResources = new ArrayList<AllocatedResource>(); final Map.Entry<JobID, PendingRequestsMap> entry = it...
java
private void checkPendingRequests() { final Iterator<Map.Entry<JobID, PendingRequestsMap>> it = this.pendingRequestsOfJob.entrySet().iterator(); while (it.hasNext()) { final List<AllocatedResource> allocatedResources = new ArrayList<AllocatedResource>(); final Map.Entry<JobID, PendingRequestsMap> entry = it...
[ "private", "void", "checkPendingRequests", "(", ")", "{", "final", "Iterator", "<", "Map", ".", "Entry", "<", "JobID", ",", "PendingRequestsMap", ">", ">", "it", "=", "this", ".", "pendingRequestsOfJob", ".", "entrySet", "(", ")", ".", "iterator", "(", ")"...
Checks if a pending request can be fulfilled.
[ "Checks", "if", "a", "pending", "request", "can", "be", "fulfilled", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java#L538-L601
101,144
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java
ClusterManager.getSliceOfType
private AllocatedSlice getSliceOfType(final JobID jobID, final InstanceType instanceType) { AllocatedSlice slice = null; // Try to match the instance type without slicing first for (final ClusterInstance host : this.registeredHosts.values()) { if (host.getType().equals(instanceType)) { slice = host.creat...
java
private AllocatedSlice getSliceOfType(final JobID jobID, final InstanceType instanceType) { AllocatedSlice slice = null; // Try to match the instance type without slicing first for (final ClusterInstance host : this.registeredHosts.values()) { if (host.getType().equals(instanceType)) { slice = host.creat...
[ "private", "AllocatedSlice", "getSliceOfType", "(", "final", "JobID", "jobID", ",", "final", "InstanceType", "instanceType", ")", "{", "AllocatedSlice", "slice", "=", "null", ";", "// Try to match the instance type without slicing first", "for", "(", "final", "ClusterInst...
Attempts to allocate a slice of the given type for the given job. The method first attempts to allocate this slice by finding a physical host which exactly matches the given instance type. If this attempt failed, it tries to allocate the slice by partitioning the resources of a more powerful host. @param jobID the ID ...
[ "Attempts", "to", "allocate", "a", "slice", "of", "the", "given", "type", "for", "the", "given", "job", ".", "The", "method", "first", "attempts", "to", "allocate", "this", "slice", "by", "finding", "a", "physical", "host", "which", "exactly", "matches", "...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java#L614-L640
101,145
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java
ClusterManager.calculateInstanceAccommodationMatrix
private int[][] calculateInstanceAccommodationMatrix() { if (this.availableInstanceTypes == null) { LOG.error("Cannot compute instance accommodation matrix: availableInstanceTypes is null"); return null; } final int matrixSize = this.availableInstanceTypes.length; final int[][] am = new int[matrixSize][...
java
private int[][] calculateInstanceAccommodationMatrix() { if (this.availableInstanceTypes == null) { LOG.error("Cannot compute instance accommodation matrix: availableInstanceTypes is null"); return null; } final int matrixSize = this.availableInstanceTypes.length; final int[][] am = new int[matrixSize][...
[ "private", "int", "[", "]", "[", "]", "calculateInstanceAccommodationMatrix", "(", ")", "{", "if", "(", "this", ".", "availableInstanceTypes", "==", "null", ")", "{", "LOG", ".", "error", "(", "\"Cannot compute instance accommodation matrix: availableInstanceTypes is nu...
Calculates the instance accommodation matrix which stores how many times a particular instance type can be accommodated inside another instance type based on the list of available instance types. @return the instance accommodation matrix
[ "Calculates", "the", "instance", "accommodation", "matrix", "which", "stores", "how", "many", "times", "a", "particular", "instance", "type", "can", "be", "accommodated", "inside", "another", "instance", "type", "based", "on", "the", "list", "of", "available", "...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/cluster/ClusterManager.java#L857-L890
101,146
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java
LocalExecutor.stop
public void stop() throws Exception { synchronized (this.lock) { if (this.nephele != null) { this.nephele.stop(); this.nephele = null; } else { throw new IllegalStateException("The local executor was not started."); } } }
java
public void stop() throws Exception { synchronized (this.lock) { if (this.nephele != null) { this.nephele.stop(); this.nephele = null; } else { throw new IllegalStateException("The local executor was not started."); } } }
[ "public", "void", "stop", "(", ")", "throws", "Exception", "{", "synchronized", "(", "this", ".", "lock", ")", "{", "if", "(", "this", ".", "nephele", "!=", "null", ")", "{", "this", ".", "nephele", ".", "stop", "(", ")", ";", "this", ".", "nephele...
Stop the local executor instance. You should not call executePlan after this.
[ "Stop", "the", "local", "executor", "instance", ".", "You", "should", "not", "call", "executePlan", "after", "this", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java#L172-L181
101,147
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java
LocalExecutor.executePlan
public JobExecutionResult executePlan(Plan plan) throws Exception { if (plan == null) { throw new IllegalArgumentException("The plan may not be null."); } ContextChecker checker = new ContextChecker(); checker.check(plan); synchronized (this.lock) { // check if we start a session dedicated for...
java
public JobExecutionResult executePlan(Plan plan) throws Exception { if (plan == null) { throw new IllegalArgumentException("The plan may not be null."); } ContextChecker checker = new ContextChecker(); checker.check(plan); synchronized (this.lock) { // check if we start a session dedicated for...
[ "public", "JobExecutionResult", "executePlan", "(", "Plan", "plan", ")", "throws", "Exception", "{", "if", "(", "plan", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"The plan may not be null.\"", ")", ";", "}", "ContextChecker", "chec...
Execute the given plan on the local Nephele instance, wait for the job to finish and return the runtime in milliseconds. @param plan The plan of the program to execute. @return The net runtime of the program, in milliseconds. @throws Exception Thrown, if either the startup of the local execution context, or the execu...
[ "Execute", "the", "given", "plan", "on", "the", "local", "Nephele", "instance", "wait", "for", "the", "job", "to", "finish", "and", "return", "the", "runtime", "in", "milliseconds", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java#L193-L231
101,148
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java
LocalExecutor.execute
public static JobExecutionResult execute(Plan plan) throws Exception { LocalExecutor exec = new LocalExecutor(); try { exec.start(); return exec.executePlan(plan); } finally { exec.stop(); } }
java
public static JobExecutionResult execute(Plan plan) throws Exception { LocalExecutor exec = new LocalExecutor(); try { exec.start(); return exec.executePlan(plan); } finally { exec.stop(); } }
[ "public", "static", "JobExecutionResult", "execute", "(", "Plan", "plan", ")", "throws", "Exception", "{", "LocalExecutor", "exec", "=", "new", "LocalExecutor", "(", ")", ";", "try", "{", "exec", ".", "start", "(", ")", ";", "return", "exec", ".", "execute...
Executes the program represented by the given Pact plan. @param pa The program's plan. @return The net runtime of the program, in milliseconds. @throws Exception Thrown, if either the startup of the local execution context, or the execution caused an exception.
[ "Executes", "the", "program", "represented", "by", "the", "given", "Pact", "plan", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java#L297-L305
101,149
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java
LocalExecutor.getPlanAsJSON
public static String getPlanAsJSON(Plan plan) { PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator(); List<DataSinkNode> sinks = PactCompiler.createPreOptimizedPlan(plan); return gen.getPactPlanAsJSON(sinks); }
java
public static String getPlanAsJSON(Plan plan) { PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator(); List<DataSinkNode> sinks = PactCompiler.createPreOptimizedPlan(plan); return gen.getPactPlanAsJSON(sinks); }
[ "public", "static", "String", "getPlanAsJSON", "(", "Plan", "plan", ")", "{", "PlanJSONDumpGenerator", "gen", "=", "new", "PlanJSONDumpGenerator", "(", ")", ";", "List", "<", "DataSinkNode", ">", "sinks", "=", "PactCompiler", ".", "createPreOptimizedPlan", "(", ...
Return unoptimized plan as JSON. @return
[ "Return", "unoptimized", "plan", "as", "JSON", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/LocalExecutor.java#L333-L337
101,150
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java
ChannelManager.register
public void register(Task task) throws InsufficientResourcesException { // Check if we can safely run this task with the given buffers ensureBufferAvailability(task); RuntimeEnvironment environment = task.getRuntimeEnvironment(); // -----------------------------------------------------------------------------...
java
public void register(Task task) throws InsufficientResourcesException { // Check if we can safely run this task with the given buffers ensureBufferAvailability(task); RuntimeEnvironment environment = task.getRuntimeEnvironment(); // -----------------------------------------------------------------------------...
[ "public", "void", "register", "(", "Task", "task", ")", "throws", "InsufficientResourcesException", "{", "// Check if we can safely run this task with the given buffers", "ensureBufferAvailability", "(", "task", ")", ";", "RuntimeEnvironment", "environment", "=", "task", ".",...
Registers the given task with the channel manager. @param task the task to be registered @throws InsufficientResourcesException thrown if not enough buffers available to safely run this task
[ "Registers", "the", "given", "task", "with", "the", "channel", "manager", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java#L117-L179
101,151
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java
ChannelManager.unregister
public void unregister(ExecutionVertexID vertexId, Task task) { final Environment environment = task.getEnvironment(); // destroy and remove OUTPUT channels from registered channels and cache for (ChannelID id : environment.getOutputChannelIDs()) { Channel channel = this.channels.remove(id); if (channel !=...
java
public void unregister(ExecutionVertexID vertexId, Task task) { final Environment environment = task.getEnvironment(); // destroy and remove OUTPUT channels from registered channels and cache for (ChannelID id : environment.getOutputChannelIDs()) { Channel channel = this.channels.remove(id); if (channel !=...
[ "public", "void", "unregister", "(", "ExecutionVertexID", "vertexId", ",", "Task", "task", ")", "{", "final", "Environment", "environment", "=", "task", ".", "getEnvironment", "(", ")", ";", "// destroy and remove OUTPUT channels from registered channels and cache", "for"...
Unregisters the given task from the channel manager. @param vertexId the ID of the task to be unregistered @param task the task to be unregistered
[ "Unregisters", "the", "given", "task", "from", "the", "channel", "manager", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java#L187-L227
101,152
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java
ChannelManager.getReceiverList
private EnvelopeReceiverList getReceiverList(JobID jobID, ChannelID sourceChannelID, boolean reportException) throws IOException { EnvelopeReceiverList receiverList = this.receiverCache.get(sourceChannelID); if (receiverList != null) { return receiverList; } while (true) { ConnectionInfoLookupResponse l...
java
private EnvelopeReceiverList getReceiverList(JobID jobID, ChannelID sourceChannelID, boolean reportException) throws IOException { EnvelopeReceiverList receiverList = this.receiverCache.get(sourceChannelID); if (receiverList != null) { return receiverList; } while (true) { ConnectionInfoLookupResponse l...
[ "private", "EnvelopeReceiverList", "getReceiverList", "(", "JobID", "jobID", ",", "ChannelID", "sourceChannelID", ",", "boolean", "reportException", ")", "throws", "IOException", "{", "EnvelopeReceiverList", "receiverList", "=", "this", ".", "receiverCache", ".", "get",...
Returns the list of receivers for transfer envelopes produced by the channel with the given source channel ID. @param jobID the ID of the job the given channel ID belongs to @param sourceChannelID the source channel ID for which the receiver list shall be retrieved @return the list of receivers or <code>null</code> if...
[ "Returns", "the", "list", "of", "receivers", "for", "transfer", "envelopes", "produced", "by", "the", "channel", "with", "the", "given", "source", "channel", "ID", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java#L340-L397
101,153
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java
ChannelManager.invalidateLookupCacheEntries
public void invalidateLookupCacheEntries(Set<ChannelID> channelIDs) { for (ChannelID id : channelIDs) { this.receiverCache.remove(id); } }
java
public void invalidateLookupCacheEntries(Set<ChannelID> channelIDs) { for (ChannelID id : channelIDs) { this.receiverCache.remove(id); } }
[ "public", "void", "invalidateLookupCacheEntries", "(", "Set", "<", "ChannelID", ">", "channelIDs", ")", "{", "for", "(", "ChannelID", "id", ":", "channelIDs", ")", "{", "this", ".", "receiverCache", ".", "remove", "(", "id", ")", ";", "}", "}" ]
Invalidates the entries identified by the given channel IDs from the receiver lookup cache. @param channelIDs channel IDs for entries to invalidate
[ "Invalidates", "the", "entries", "identified", "by", "the", "given", "channel", "IDs", "from", "the", "receiver", "lookup", "cache", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/ChannelManager.java#L404-L408
101,154
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java
ClassUtils.getProtocolByName
public static Class<? extends VersionedProtocol> getProtocolByName(final String className) throws ClassNotFoundException { if (!className.contains("Protocol")) { throw new ClassNotFoundException("Only use this method for protocols!"); } return (Class<? extends VersionedProtocol>) Class.forName(className, ...
java
public static Class<? extends VersionedProtocol> getProtocolByName(final String className) throws ClassNotFoundException { if (!className.contains("Protocol")) { throw new ClassNotFoundException("Only use this method for protocols!"); } return (Class<? extends VersionedProtocol>) Class.forName(className, ...
[ "public", "static", "Class", "<", "?", "extends", "VersionedProtocol", ">", "getProtocolByName", "(", "final", "String", "className", ")", "throws", "ClassNotFoundException", "{", "if", "(", "!", "className", ".", "contains", "(", "\"Protocol\"", ")", ")", "{", ...
Searches for a protocol class by its name and attempts to load it. @param className the name of the protocol class @return an instance of the protocol class @throws ClassNotFoundException thrown if no class with such a name can be found
[ "Searches", "for", "a", "protocol", "class", "by", "its", "name", "and", "attempts", "to", "load", "it", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java#L39-L47
101,155
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java
ClassUtils.getRecordByName
@SuppressWarnings("unchecked") public static Class<? extends IOReadableWritable> getRecordByName(final String className) throws ClassNotFoundException { // // Class<?> clazz = Class.forName(className, true, getClassLoader()); // if (IOReadableWritable.class.isAssignableFrom(clazz)) { // return clazz.asSubclas...
java
@SuppressWarnings("unchecked") public static Class<? extends IOReadableWritable> getRecordByName(final String className) throws ClassNotFoundException { // // Class<?> clazz = Class.forName(className, true, getClassLoader()); // if (IOReadableWritable.class.isAssignableFrom(clazz)) { // return clazz.asSubclas...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "Class", "<", "?", "extends", "IOReadableWritable", ">", "getRecordByName", "(", "final", "String", "className", ")", "throws", "ClassNotFoundException", "{", "//\t\t", "//\t\tClass<?> clazz = Class...
Searches for a record class by its name and attempts to load it. @param className the name of the record class @return an instance of the record class @throws ClassNotFoundException thrown if no class with such a name can be found
[ "Searches", "for", "a", "record", "class", "by", "its", "name", "and", "attempts", "to", "load", "it", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java#L58-L70
101,156
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java
ClassUtils.getFileSystemByName
public static Class<? extends FileSystem> getFileSystemByName(final String className) throws ClassNotFoundException { return Class.forName(className, true, getClassLoader()).asSubclass(FileSystem.class); }
java
public static Class<? extends FileSystem> getFileSystemByName(final String className) throws ClassNotFoundException { return Class.forName(className, true, getClassLoader()).asSubclass(FileSystem.class); }
[ "public", "static", "Class", "<", "?", "extends", "FileSystem", ">", "getFileSystemByName", "(", "final", "String", "className", ")", "throws", "ClassNotFoundException", "{", "return", "Class", ".", "forName", "(", "className", ",", "true", ",", "getClassLoader", ...
Searches for a file system class by its name and attempts to load it. @param className the name of the file system class @return an instance of the file system class @throws ClassNotFoundException thrown if no class with such a name can be found
[ "Searches", "for", "a", "file", "system", "class", "by", "its", "name", "and", "attempts", "to", "load", "it", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/ClassUtils.java#L81-L83
101,157
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/hash/CompactingHashTable.java
CompactingHashTable.open
public void open() { // sanity checks if (!this.closed.compareAndSet(true, false)) { throw new IllegalStateException("Hash Table cannot be opened, because it is currently not closed."); } // create the partitions final int partitionFanOut = getPartitioningFanOutNoEstimates(this.availableMemory.size()); ...
java
public void open() { // sanity checks if (!this.closed.compareAndSet(true, false)) { throw new IllegalStateException("Hash Table cannot be opened, because it is currently not closed."); } // create the partitions final int partitionFanOut = getPartitioningFanOutNoEstimates(this.availableMemory.size()); ...
[ "public", "void", "open", "(", ")", "{", "// sanity checks", "if", "(", "!", "this", ".", "closed", ".", "compareAndSet", "(", "true", ",", "false", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Hash Table cannot be opened, because it is currentl...
Build the hash table @throws IOException Thrown, if an I/O problem occurs while spilling a partition.
[ "Build", "the", "hash", "table" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/hash/CompactingHashTable.java#L276-L291
101,158
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/plan/WorksetIterationPlanNode.java
WorksetIterationPlanNode.mergeBranchPlanMaps
@Override protected void mergeBranchPlanMaps(Map<OptimizerNode, PlanNode> branchPlan1, Map<OptimizerNode, PlanNode> branchPlan2){ }
java
@Override protected void mergeBranchPlanMaps(Map<OptimizerNode, PlanNode> branchPlan1, Map<OptimizerNode, PlanNode> branchPlan2){ }
[ "@", "Override", "protected", "void", "mergeBranchPlanMaps", "(", "Map", "<", "OptimizerNode", ",", "PlanNode", ">", "branchPlan1", ",", "Map", "<", "OptimizerNode", ",", "PlanNode", ">", "branchPlan2", ")", "{", "}" ]
Merging can only take place after the solutionSetDelta and nextWorkset PlanNode has been set, because they can contain also some of the branching nodes.
[ "Merging", "can", "only", "take", "place", "after", "the", "solutionSetDelta", "and", "nextWorkset", "PlanNode", "has", "been", "set", "because", "they", "can", "contain", "also", "some", "of", "the", "branching", "nodes", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/plan/WorksetIterationPlanNode.java#L195-L199
101,159
stratosphere/stratosphere
stratosphere-addons/avro/src/main/java/eu/stratosphere/api/java/record/io/avro/AvroRecordInputFormat.java
AvroRecordInputFormat.createInputSplits
@Override public FileInputSplit[] createInputSplits(int minNumSplits) throws IOException { int numAvroFiles = 0; final Path path = this.filePath; // get all the files that are involved in the splits final FileSystem fs = path.getFileSystem(); final FileStatus pathFile = fs.getFileStatus(path); if (!accept...
java
@Override public FileInputSplit[] createInputSplits(int minNumSplits) throws IOException { int numAvroFiles = 0; final Path path = this.filePath; // get all the files that are involved in the splits final FileSystem fs = path.getFileSystem(); final FileStatus pathFile = fs.getFileStatus(path); if (!accept...
[ "@", "Override", "public", "FileInputSplit", "[", "]", "createInputSplits", "(", "int", "minNumSplits", ")", "throws", "IOException", "{", "int", "numAvroFiles", "=", "0", ";", "final", "Path", "path", "=", "this", ".", "filePath", ";", "// get all the files tha...
Set minNumSplits to number of files.
[ "Set", "minNumSplits", "to", "number", "of", "files", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/avro/src/main/java/eu/stratosphere/api/java/record/io/avro/AvroRecordInputFormat.java#L294-L317
101,160
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java
ExecutionStage.getNumberOfInputExecutionVertices
public int getNumberOfInputExecutionVertices() { int retVal = 0; final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { retVal += groupVertex.getCurrentNumberOfGroupMembers()...
java
public int getNumberOfInputExecutionVertices() { int retVal = 0; final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { retVal += groupVertex.getCurrentNumberOfGroupMembers()...
[ "public", "int", "getNumberOfInputExecutionVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ExecutionGroupVertex", ">", "it", "=", "this", ".", "stageMembers", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "ha...
Returns the number of input execution vertices in this stage, i.e. the number of execution vertices which are connected to vertices in a lower stage or have no input channels. @return the number of input vertices in this stage
[ "Returns", "the", "number", "of", "input", "execution", "vertices", "in", "this", "stage", "i", ".", "e", ".", "the", "number", "of", "execution", "vertices", "which", "are", "connected", "to", "vertices", "in", "a", "lower", "stage", "or", "have", "no", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java#L153-L167
101,161
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java
ExecutionStage.getNumberOfOutputExecutionVertices
public int getNumberOfOutputExecutionVertices() { int retVal = 0; final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { retVal += groupVertex.getCurrentNumberOfGroupMembers...
java
public int getNumberOfOutputExecutionVertices() { int retVal = 0; final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { retVal += groupVertex.getCurrentNumberOfGroupMembers...
[ "public", "int", "getNumberOfOutputExecutionVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ExecutionGroupVertex", ">", "it", "=", "this", ".", "stageMembers", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "h...
Returns the number of output execution vertices in this stage, i.e. the number of execution vertices which are connected to vertices in a higher stage or have no output channels. @return the number of output vertices in this stage
[ "Returns", "the", "number", "of", "output", "execution", "vertices", "in", "this", "stage", "i", ".", "e", ".", "the", "number", "of", "execution", "vertices", "which", "are", "connected", "to", "vertices", "in", "a", "higher", "stage", "or", "have", "no",...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java#L176-L190
101,162
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java
ExecutionStage.collectRequiredInstanceTypes
public void collectRequiredInstanceTypes(final InstanceRequestMap instanceRequestMap, final ExecutionState executionState) { final Set<AbstractInstance> collectedInstances = new HashSet<AbstractInstance>(); final ExecutionGroupVertexIterator groupIt = new ExecutionGroupVertexIterator(this.getExecutionGraph(), t...
java
public void collectRequiredInstanceTypes(final InstanceRequestMap instanceRequestMap, final ExecutionState executionState) { final Set<AbstractInstance> collectedInstances = new HashSet<AbstractInstance>(); final ExecutionGroupVertexIterator groupIt = new ExecutionGroupVertexIterator(this.getExecutionGraph(), t...
[ "public", "void", "collectRequiredInstanceTypes", "(", "final", "InstanceRequestMap", "instanceRequestMap", ",", "final", "ExecutionState", "executionState", ")", "{", "final", "Set", "<", "AbstractInstance", ">", "collectedInstances", "=", "new", "HashSet", "<", "Abstr...
Checks which instance types and how many instances of these types are required to execute this stage of the job graph. The required instance types and the number of instances are collected in the given map. Note that this method does not clear the map before collecting the instances. @param instanceRequestMap the map ...
[ "Checks", "which", "instance", "types", "and", "how", "many", "instances", "of", "these", "types", "are", "required", "to", "execute", "this", "stage", "of", "the", "job", "graph", ".", "The", "required", "instance", "types", "and", "the", "number", "of", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java#L254-L305
101,163
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java
ExecutionStage.reconstructExecutionPipelines
void reconstructExecutionPipelines() { Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); final Set<ExecutionVertex> alreadyVisited = new HashSet<ExecutionVertex>(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); // We only look at input vertices first if (!...
java
void reconstructExecutionPipelines() { Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator(); final Set<ExecutionVertex> alreadyVisited = new HashSet<ExecutionVertex>(); while (it.hasNext()) { final ExecutionGroupVertex groupVertex = it.next(); // We only look at input vertices first if (!...
[ "void", "reconstructExecutionPipelines", "(", ")", "{", "Iterator", "<", "ExecutionGroupVertex", ">", "it", "=", "this", ".", "stageMembers", ".", "iterator", "(", ")", ";", "final", "Set", "<", "ExecutionVertex", ">", "alreadyVisited", "=", "new", "HashSet", ...
Reconstructs the execution pipelines for this execution stage.
[ "Reconstructs", "the", "execution", "pipelines", "for", "this", "execution", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java#L320-L361
101,164
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java
ExecutionStage.reconstructExecutionPipeline
private void reconstructExecutionPipeline(final ExecutionVertex vertex, final boolean forward, final Set<ExecutionVertex> alreadyVisited) { ExecutionPipeline pipeline = vertex.getExecutionPipeline(); if (pipeline == null) { pipeline = new ExecutionPipeline(); vertex.setExecutionPipeline(pipeline); } ...
java
private void reconstructExecutionPipeline(final ExecutionVertex vertex, final boolean forward, final Set<ExecutionVertex> alreadyVisited) { ExecutionPipeline pipeline = vertex.getExecutionPipeline(); if (pipeline == null) { pipeline = new ExecutionPipeline(); vertex.setExecutionPipeline(pipeline); } ...
[ "private", "void", "reconstructExecutionPipeline", "(", "final", "ExecutionVertex", "vertex", ",", "final", "boolean", "forward", ",", "final", "Set", "<", "ExecutionVertex", ">", "alreadyVisited", ")", "{", "ExecutionPipeline", "pipeline", "=", "vertex", ".", "getE...
Reconstructs the execution pipeline starting at the given vertex by conducting a depth-first search. @param vertex the vertex to start the depth-first search from @param forward <code>true</code> to traverse the graph according to the original direction of the edges or <code>false</code> for the opposite direction @pa...
[ "Reconstructs", "the", "execution", "pipeline", "starting", "at", "the", "given", "vertex", "by", "conducting", "a", "depth", "-", "first", "search", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionStage.java#L374-L448
101,165
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.check
public void check(Plan plan) { Preconditions.checkNotNull(plan, "The passed plan is null."); this.visitedNodes.clear(); plan.accept(this); }
java
public void check(Plan plan) { Preconditions.checkNotNull(plan, "The passed plan is null."); this.visitedNodes.clear(); plan.accept(this); }
[ "public", "void", "check", "(", "Plan", "plan", ")", "{", "Preconditions", ".", "checkNotNull", "(", "plan", ",", "\"The passed plan is null.\"", ")", ";", "this", ".", "visitedNodes", ".", "clear", "(", ")", ";", "plan", ".", "accept", "(", "this", ")", ...
Checks whether the given plan is valid. In particular it is checked that all contracts have the correct number of inputs and all inputs are of the expected type. In case of an invalid plan an extended RuntimeException is thrown. @param plan The plan to check.
[ "Checks", "whether", "the", "given", "plan", "is", "valid", ".", "In", "particular", "it", "is", "checked", "that", "all", "contracts", "have", "the", "correct", "number", "of", "inputs", "and", "all", "inputs", "are", "of", "the", "expected", "type", ".",...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L59-L63
101,166
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.preVisit
@Override public boolean preVisit(Operator<?> node) { // check if node was already visited if (!this.visitedNodes.add(node)) { return false; } // apply the appropriate check method if (node instanceof FileDataSinkBase) { checkFileDataSink((FileDataSinkBase<?>) node); } else if (node instanceof FileD...
java
@Override public boolean preVisit(Operator<?> node) { // check if node was already visited if (!this.visitedNodes.add(node)) { return false; } // apply the appropriate check method if (node instanceof FileDataSinkBase) { checkFileDataSink((FileDataSinkBase<?>) node); } else if (node instanceof FileD...
[ "@", "Override", "public", "boolean", "preVisit", "(", "Operator", "<", "?", ">", "node", ")", "{", "// check if node was already visited", "if", "(", "!", "this", ".", "visitedNodes", ".", "add", "(", "node", ")", ")", "{", "return", "false", ";", "}", ...
Checks whether the node is correctly connected to its input.
[ "Checks", "whether", "the", "node", "is", "correctly", "connected", "to", "its", "input", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L68-L93
101,167
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.checkDataSink
private void checkDataSink(GenericDataSinkBase<?> dataSinkContract) { Operator<?> input = dataSinkContract.getInput(); // check if input exists if (input == null) { throw new MissingChildException(); } }
java
private void checkDataSink(GenericDataSinkBase<?> dataSinkContract) { Operator<?> input = dataSinkContract.getInput(); // check if input exists if (input == null) { throw new MissingChildException(); } }
[ "private", "void", "checkDataSink", "(", "GenericDataSinkBase", "<", "?", ">", "dataSinkContract", ")", "{", "Operator", "<", "?", ">", "input", "=", "dataSinkContract", ".", "getInput", "(", ")", ";", "// check if input exists", "if", "(", "input", "==", "nul...
Checks if DataSinkContract is correctly connected. In case that the contract is incorrectly connected a RuntimeException is thrown. @param dataSinkContract DataSinkContract that is checked.
[ "Checks", "if", "DataSinkContract", "is", "correctly", "connected", ".", "In", "case", "that", "the", "contract", "is", "incorrectly", "connected", "a", "RuntimeException", "is", "thrown", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L105-L111
101,168
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.checkFileDataSink
private void checkFileDataSink(FileDataSinkBase<?> fileSink) { String path = fileSink.getFilePath(); if (path == null) { throw new InvalidProgramException("File path of FileDataSink is null."); } if (path.length() == 0) { throw new InvalidProgramException("File path of FileDataSink is empty string."); }...
java
private void checkFileDataSink(FileDataSinkBase<?> fileSink) { String path = fileSink.getFilePath(); if (path == null) { throw new InvalidProgramException("File path of FileDataSink is null."); } if (path.length() == 0) { throw new InvalidProgramException("File path of FileDataSink is empty string."); }...
[ "private", "void", "checkFileDataSink", "(", "FileDataSinkBase", "<", "?", ">", "fileSink", ")", "{", "String", "path", "=", "fileSink", ".", "getFilePath", "(", ")", ";", "if", "(", "path", "==", "null", ")", "{", "throw", "new", "InvalidProgramException", ...
Checks if FileDataSink is correctly connected. In case that the contract is incorrectly connected a RuntimeException is thrown. @param fileSink FileDataSink that is checked.
[ "Checks", "if", "FileDataSink", "is", "correctly", "connected", ".", "In", "case", "that", "the", "contract", "is", "incorrectly", "connected", "a", "RuntimeException", "is", "thrown", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L120-L140
101,169
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.checkFileDataSource
private void checkFileDataSource(FileDataSourceBase<?> fileSource) { String path = fileSource.getFilePath(); if (path == null) { throw new InvalidProgramException("File path of FileDataSource is null."); } if (path.length() == 0) { throw new InvalidProgramException("File path of FileDataSource is empty st...
java
private void checkFileDataSource(FileDataSourceBase<?> fileSource) { String path = fileSource.getFilePath(); if (path == null) { throw new InvalidProgramException("File path of FileDataSource is null."); } if (path.length() == 0) { throw new InvalidProgramException("File path of FileDataSource is empty st...
[ "private", "void", "checkFileDataSource", "(", "FileDataSourceBase", "<", "?", ">", "fileSource", ")", "{", "String", "path", "=", "fileSource", ".", "getFilePath", "(", ")", ";", "if", "(", "path", "==", "null", ")", "{", "throw", "new", "InvalidProgramExce...
Checks if FileDataSource is correctly connected. In case that the contract is incorrectly connected a RuntimeException is thrown. @param fileSource FileDataSource that is checked.
[ "Checks", "if", "FileDataSource", "is", "correctly", "connected", ".", "In", "case", "that", "the", "contract", "is", "incorrectly", "connected", "a", "RuntimeException", "is", "thrown", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L149-L168
101,170
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.checkSingleInputContract
private void checkSingleInputContract(SingleInputOperator<?, ?, ?> singleInputContract) { Operator<?> input = singleInputContract.getInput(); // check if input exists if (input == null) { throw new MissingChildException(); } }
java
private void checkSingleInputContract(SingleInputOperator<?, ?, ?> singleInputContract) { Operator<?> input = singleInputContract.getInput(); // check if input exists if (input == null) { throw new MissingChildException(); } }
[ "private", "void", "checkSingleInputContract", "(", "SingleInputOperator", "<", "?", ",", "?", ",", "?", ">", "singleInputContract", ")", "{", "Operator", "<", "?", ">", "input", "=", "singleInputContract", ".", "getInput", "(", ")", ";", "// check if input exis...
Checks whether a SingleInputOperator is correctly connected. In case that the contract is incorrectly connected a RuntimeException is thrown. @param singleInputContract SingleInputOperator that is checked.
[ "Checks", "whether", "a", "SingleInputOperator", "is", "correctly", "connected", ".", "In", "case", "that", "the", "contract", "is", "incorrectly", "connected", "a", "RuntimeException", "is", "thrown", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L177-L183
101,171
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java
ContextChecker.checkDualInputContract
private void checkDualInputContract(DualInputOperator<?, ?, ?, ?> dualInputContract) { Operator<?> input1 = dualInputContract.getFirstInput(); Operator<?> input2 = dualInputContract.getSecondInput(); // check if input exists if (input1 == null || input2 == null) { throw new MissingChildException(); } }
java
private void checkDualInputContract(DualInputOperator<?, ?, ?, ?> dualInputContract) { Operator<?> input1 = dualInputContract.getFirstInput(); Operator<?> input2 = dualInputContract.getSecondInput(); // check if input exists if (input1 == null || input2 == null) { throw new MissingChildException(); } }
[ "private", "void", "checkDualInputContract", "(", "DualInputOperator", "<", "?", ",", "?", ",", "?", ",", "?", ">", "dualInputContract", ")", "{", "Operator", "<", "?", ">", "input1", "=", "dualInputContract", ".", "getFirstInput", "(", ")", ";", "Operator",...
Checks whether a DualInputOperator is correctly connected. In case that the contract is incorrectly connected a RuntimeException is thrown. @param dualInputContract DualInputOperator that is checked.
[ "Checks", "whether", "a", "DualInputOperator", "is", "correctly", "connected", ".", "In", "case", "that", "the", "contract", "is", "incorrectly", "connected", "a", "RuntimeException", "is", "thrown", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/contextcheck/ContextChecker.java#L192-L199
101,172
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/Operator.java
Operator.setParallelism
public O setParallelism(int dop) { if(dop < 1) { throw new IllegalArgumentException("The parallelism of an operator must be at least 1."); } this.dop = dop; @SuppressWarnings("unchecked") O returnType = (O) this; return returnType; }
java
public O setParallelism(int dop) { if(dop < 1) { throw new IllegalArgumentException("The parallelism of an operator must be at least 1."); } this.dop = dop; @SuppressWarnings("unchecked") O returnType = (O) this; return returnType; }
[ "public", "O", "setParallelism", "(", "int", "dop", ")", "{", "if", "(", "dop", "<", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"The parallelism of an operator must be at least 1.\"", ")", ";", "}", "this", ".", "dop", "=", "dop", ";", ...
Sets the degree of parallelism for this operator. The degree must be 1 or more. @param dop The degree of parallelism for this operator. @return The operator with set degree of parallelism.
[ "Sets", "the", "degree", "of", "parallelism", "for", "this", "operator", ".", "The", "degree", "must", "be", "1", "or", "more", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/operators/Operator.java#L88-L97
101,173
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Operator.java
Operator.createUnionCascade
public static <T> Operator<T> createUnionCascade(Operator<T> input1, Operator<T>... input2) { // return cases where we don't need a union if (input2 == null || input2.length == 0) { return input1; } else if (input2.length == 1 && input1 == null) { return input2[0]; } TypeInformation<T> type = null; i...
java
public static <T> Operator<T> createUnionCascade(Operator<T> input1, Operator<T>... input2) { // return cases where we don't need a union if (input2 == null || input2.length == 0) { return input1; } else if (input2.length == 1 && input1 == null) { return input2[0]; } TypeInformation<T> type = null; i...
[ "public", "static", "<", "T", ">", "Operator", "<", "T", ">", "createUnionCascade", "(", "Operator", "<", "T", ">", "input1", ",", "Operator", "<", "T", ">", "...", "input2", ")", "{", "// return cases where we don't need a union", "if", "(", "input2", "==",...
Takes a single Operator and a list of operators and creates a cascade of unions of this inputs, if needed. If not needed there was only one operator as input, then this operator is returned. @param input1 The first input operator. @param input2 The other input operators. @return The single operator or a cascade of un...
[ "Takes", "a", "single", "Operator", "and", "a", "list", "of", "operators", "and", "creates", "a", "cascade", "of", "unions", "of", "this", "inputs", "if", "needed", ".", "If", "not", "needed", "there", "was", "only", "one", "operator", "as", "input", "th...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/Operator.java#L221-L267
101,174
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/io/FileInputFormat.java
FileInputFormat.acceptFile
protected boolean acceptFile(FileStatus fileStatus) { final String name = fileStatus.getPath().getName(); return !name.startsWith("_") && !name.startsWith("."); }
java
protected boolean acceptFile(FileStatus fileStatus) { final String name = fileStatus.getPath().getName(); return !name.startsWith("_") && !name.startsWith("."); }
[ "protected", "boolean", "acceptFile", "(", "FileStatus", "fileStatus", ")", "{", "final", "String", "name", "=", "fileStatus", ".", "getPath", "(", ")", ".", "getName", "(", ")", ";", "return", "!", "name", ".", "startsWith", "(", "\"_\"", ")", "&&", "!"...
A simple hook to filter files and directories from the input. The method may be overridden. Hadoop's FileInputFormat has a similar mechanism and applies the same filters by default. @param fileStatus @return true, if the given file or directory is accepted
[ "A", "simple", "hook", "to", "filter", "files", "and", "directories", "from", "the", "input", ".", "The", "method", "may", "be", "overridden", ".", "Hadoop", "s", "FileInputFormat", "has", "a", "similar", "mechanism", "and", "applies", "the", "same", "filter...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/io/FileInputFormat.java#L544-L547
101,175
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/types/FileRecord.java
FileRecord.append
public void append(final byte[] data, final int start, final int len) { final int oldLength = this.bytes.length; setCapacity(this.bytes.length + len, true); System.arraycopy(data, start, this.bytes, oldLength, len); }
java
public void append(final byte[] data, final int start, final int len) { final int oldLength = this.bytes.length; setCapacity(this.bytes.length + len, true); System.arraycopy(data, start, this.bytes, oldLength, len); }
[ "public", "void", "append", "(", "final", "byte", "[", "]", "data", ",", "final", "int", "start", ",", "final", "int", "len", ")", "{", "final", "int", "oldLength", "=", "this", ".", "bytes", ".", "length", ";", "setCapacity", "(", "this", ".", "byte...
Append a range of bytes to the end of the given data. @param data the data to copy from @param start the first position to append from data @param len the number of bytes to append
[ "Append", "a", "range", "of", "bytes", "to", "the", "end", "of", "the", "given", "data", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/types/FileRecord.java#L64-L68
101,176
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/util/InstantiationUtil.java
InstantiationUtil.isNonStaticInnerClass
public static boolean isNonStaticInnerClass(Class<?> clazz) { if (clazz.getEnclosingClass() == null) { // no inner class return false; } else { // inner class if (clazz.getDeclaringClass() != null) { // named inner class return !Modifier.isStatic(clazz.getModifiers()); } else { // anonymo...
java
public static boolean isNonStaticInnerClass(Class<?> clazz) { if (clazz.getEnclosingClass() == null) { // no inner class return false; } else { // inner class if (clazz.getDeclaringClass() != null) { // named inner class return !Modifier.isStatic(clazz.getModifiers()); } else { // anonymo...
[ "public", "static", "boolean", "isNonStaticInnerClass", "(", "Class", "<", "?", ">", "clazz", ")", "{", "if", "(", "clazz", ".", "getEnclosingClass", "(", ")", "==", "null", ")", "{", "// no inner class", "return", "false", ";", "}", "else", "{", "// inner...
Checks, whether the class is an inner class that is not statically accessible. That is especially true for anonymous inner classes. @param clazz The class to check. @return True, if the class is a non-statically accessible inner class.
[ "Checks", "whether", "the", "class", "is", "an", "inner", "class", "that", "is", "not", "statically", "accessible", ".", "That", "is", "especially", "true", "for", "anonymous", "inner", "classes", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/InstantiationUtil.java#L175-L189
101,177
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getGroupVertex
public ManagementGroupVertex getGroupVertex(final int index) { if (index < this.groupVertices.size()) { return this.groupVertices.get(index); } return null; }
java
public ManagementGroupVertex getGroupVertex(final int index) { if (index < this.groupVertices.size()) { return this.groupVertices.get(index); } return null; }
[ "public", "ManagementGroupVertex", "getGroupVertex", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "groupVertices", ".", "size", "(", ")", ")", "{", "return", "this", ".", "groupVertices", ".", "get", "(", "index", ")", ";...
Returns the management group vertex with the given index. @param index the index of the group vertex to be returned @return the group vertex with the given index or <code>null</code> if no such vertex exists
[ "Returns", "the", "management", "group", "vertex", "with", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L94-L101
101,178
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.addGroupVertex
void addGroupVertex(final ManagementGroupVertex groupVertex) { this.groupVertices.add(groupVertex); this.managementGraph.addGroupVertex(groupVertex.getID(), groupVertex); }
java
void addGroupVertex(final ManagementGroupVertex groupVertex) { this.groupVertices.add(groupVertex); this.managementGraph.addGroupVertex(groupVertex.getID(), groupVertex); }
[ "void", "addGroupVertex", "(", "final", "ManagementGroupVertex", "groupVertex", ")", "{", "this", ".", "groupVertices", ".", "add", "(", "groupVertex", ")", ";", "this", ".", "managementGraph", ".", "addGroupVertex", "(", "groupVertex", ".", "getID", "(", ")", ...
Adds the given group vertex to this management stage. @param groupVertex the group vertex to be added to this management stage
[ "Adds", "the", "given", "group", "vertex", "to", "this", "management", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L109-L114
101,179
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.collectGroupVertices
void collectGroupVertices(final List<ManagementGroupVertex> groupVertices) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { groupVertices.add(it.next()); } }
java
void collectGroupVertices(final List<ManagementGroupVertex> groupVertices) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { groupVertices.add(it.next()); } }
[ "void", "collectGroupVertices", "(", "final", "List", "<", "ManagementGroupVertex", ">", "groupVertices", ")", "{", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "...
Adds all management group vertices contained in this stage to the given list. @param groupVertices the list to which the group vertices in this stage shall be added
[ "Adds", "all", "management", "group", "vertices", "contained", "in", "this", "stage", "to", "the", "given", "list", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L122-L129
101,180
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.collectVertices
void collectVertices(final List<ManagementVertex> vertices) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { it.next().collectVertices(vertices); } }
java
void collectVertices(final List<ManagementVertex> vertices) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { it.next().collectVertices(vertices); } }
[ "void", "collectVertices", "(", "final", "List", "<", "ManagementVertex", ">", "vertices", ")", "{", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "...
Adds all management vertices contained in this stage's group vertices to the given list. @param vertices the list to which the vertices in this stage shall be added
[ "Adds", "all", "management", "vertices", "contained", "in", "this", "stage", "s", "group", "vertices", "to", "the", "given", "list", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L137-L144
101,181
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getNumberOfInputManagementVertices
public int getNumberOfInputManagementVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { retVal += groupVertex.getNumberOfGroupMembers(); ...
java
public int getNumberOfInputManagementVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { retVal += groupVertex.getNumberOfGroupMembers(); ...
[ "public", "int", "getNumberOfInputManagementVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", ...
Returns the number of input management vertices in this stage, i.e. the number of management vertices which are connected to vertices in a lower stage or have no input channels. @return the number of input vertices in this stage
[ "Returns", "the", "number", "of", "input", "management", "vertices", "in", "this", "stage", "i", ".", "e", ".", "the", "number", "of", "management", "vertices", "which", "are", "connected", "to", "vertices", "in", "a", "lower", "stage", "or", "have", "no",...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L153-L167
101,182
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getNumberOfOutputManagementVertices
public int getNumberOfOutputManagementVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { retVal += groupVertex.getNumberOfGroupMembers();...
java
public int getNumberOfOutputManagementVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { retVal += groupVertex.getNumberOfGroupMembers();...
[ "public", "int", "getNumberOfOutputManagementVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", ...
Returns the number of output management vertices in this stage, i.e. the number of management vertices which are connected to vertices in a higher stage or have no output channels. @return the number of output vertices in this stage
[ "Returns", "the", "number", "of", "output", "management", "vertices", "in", "this", "stage", "i", ".", "e", ".", "the", "number", "of", "management", "vertices", "which", "are", "connected", "to", "vertices", "in", "a", "higher", "stage", "or", "have", "no...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L176-L190
101,183
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getNumberOfInputGroupVertices
public int getNumberOfInputGroupVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { if (it.next().isInputVertex()) { ++retVal; } } return retVal; }
java
public int getNumberOfInputGroupVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { if (it.next().isInputVertex()) { ++retVal; } } return retVal; }
[ "public", "int", "getNumberOfInputGroupVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasN...
Returns the number of input group vertices in this stage. Input group vertices are those vertices which have incoming edges from group vertices of a lower stage. @return the number of input group vertices in this stage
[ "Returns", "the", "number", "of", "input", "group", "vertices", "in", "this", "stage", ".", "Input", "group", "vertices", "are", "those", "vertices", "which", "have", "incoming", "edges", "from", "group", "vertices", "of", "a", "lower", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L250-L262
101,184
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getInputGroupVertex
public ManagementGroupVertex getInputGroupVertex(int index) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { if (index == 0) { return groupVertex; } else { ...
java
public ManagementGroupVertex getInputGroupVertex(int index) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isInputVertex()) { if (index == 0) { return groupVertex; } else { ...
[ "public", "ManagementGroupVertex", "getInputGroupVertex", "(", "int", "index", ")", "{", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasNext", "(", ...
Returns the input group vertex in this stage with the given index. Input group vertices are those vertices which have incoming edges from group vertices of a lower stage. @param index the index of the input group vertex to return @return the input group vertex with the given index or <code>null</code> if no such verte...
[ "Returns", "the", "input", "group", "vertex", "in", "this", "stage", "with", "the", "given", "index", ".", "Input", "group", "vertices", "are", "those", "vertices", "which", "have", "incoming", "edges", "from", "group", "vertices", "of", "a", "lower", "stage...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L272-L288
101,185
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getNumberOfOutputGroupVertices
public int getNumberOfOutputGroupVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { if (it.next().isOutputVertex()) { ++retVal; } } return retVal; }
java
public int getNumberOfOutputGroupVertices() { int retVal = 0; final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { if (it.next().isOutputVertex()) { ++retVal; } } return retVal; }
[ "public", "int", "getNumberOfOutputGroupVertices", "(", ")", "{", "int", "retVal", "=", "0", ";", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "has...
Returns the number of output group vertices in this stage. Output group vertices are those vertices which have outgoing edges to group vertices of a higher stage. @return the number of output group vertices in this stage
[ "Returns", "the", "number", "of", "output", "group", "vertices", "in", "this", "stage", ".", "Output", "group", "vertices", "are", "those", "vertices", "which", "have", "outgoing", "edges", "to", "group", "vertices", "of", "a", "higher", "stage", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L296-L308
101,186
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java
ManagementStage.getOutputGroupVertex
public ManagementGroupVertex getOutputGroupVertex(int index) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { if (index == 0) { return groupVertex; } else {...
java
public ManagementGroupVertex getOutputGroupVertex(int index) { final Iterator<ManagementGroupVertex> it = this.groupVertices.iterator(); while (it.hasNext()) { final ManagementGroupVertex groupVertex = it.next(); if (groupVertex.isOutputVertex()) { if (index == 0) { return groupVertex; } else {...
[ "public", "ManagementGroupVertex", "getOutputGroupVertex", "(", "int", "index", ")", "{", "final", "Iterator", "<", "ManagementGroupVertex", ">", "it", "=", "this", ".", "groupVertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasNext", "(", ...
Returns the output group vertex in this stage with the given index. Output group vertices are those vertices which have outgoing edges to group vertices of a higher stage. @param index the index of the output group vertex to return @return the output group vertex with the given index or <code>null</code> if no such ve...
[ "Returns", "the", "output", "group", "vertex", "in", "this", "stage", "with", "the", "given", "index", ".", "Output", "group", "vertices", "are", "those", "vertices", "which", "have", "outgoing", "edges", "to", "group", "vertices", "of", "a", "higher", "stag...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementStage.java#L318-L334
101,187
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java
HardwareDescriptionFactory.extractFromSystem
public static HardwareDescription extractFromSystem() { int numberOfCPUCores = Runtime.getRuntime().availableProcessors(); long sizeOfPhysicalMemory = getSizeOfPhysicalMemory(); if (sizeOfPhysicalMemory < 0) { sizeOfPhysicalMemory = 1; } long sizeOfFreeMemory = getSizeOfFreeMemory(); return new Hardwa...
java
public static HardwareDescription extractFromSystem() { int numberOfCPUCores = Runtime.getRuntime().availableProcessors(); long sizeOfPhysicalMemory = getSizeOfPhysicalMemory(); if (sizeOfPhysicalMemory < 0) { sizeOfPhysicalMemory = 1; } long sizeOfFreeMemory = getSizeOfFreeMemory(); return new Hardwa...
[ "public", "static", "HardwareDescription", "extractFromSystem", "(", ")", "{", "int", "numberOfCPUCores", "=", "Runtime", ".", "getRuntime", "(", ")", ".", "availableProcessors", "(", ")", ";", "long", "sizeOfPhysicalMemory", "=", "getSizeOfPhysicalMemory", "(", ")"...
Extracts a hardware description object from the system. @return the hardware description object or <code>null</code> if at least one value for the hardware description cannot be determined
[ "Extracts", "a", "hardware", "description", "object", "from", "the", "system", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L67-L78
101,188
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java
HardwareDescriptionFactory.getSizeOfFreeMemory
private static long getSizeOfFreeMemory() { float fractionToUse = GlobalConfiguration.getFloat( ConfigConstants.TASK_MANAGER_MEMORY_FRACTION_KEY, ConfigConstants.DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION); Runtime r = Runtime.getRuntime(); long max = r.maxMemory(); long total = r.totalMemory(); long free =...
java
private static long getSizeOfFreeMemory() { float fractionToUse = GlobalConfiguration.getFloat( ConfigConstants.TASK_MANAGER_MEMORY_FRACTION_KEY, ConfigConstants.DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION); Runtime r = Runtime.getRuntime(); long max = r.maxMemory(); long total = r.totalMemory(); long free =...
[ "private", "static", "long", "getSizeOfFreeMemory", "(", ")", "{", "float", "fractionToUse", "=", "GlobalConfiguration", ".", "getFloat", "(", "ConfigConstants", ".", "TASK_MANAGER_MEMORY_FRACTION_KEY", ",", "ConfigConstants", ".", "DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION", ...
Returns the size of free memory in bytes available to the JVM. @return the size of the free memory in bytes available to the JVM or <code>-1</code> if the size cannot be determined
[ "Returns", "the", "size", "of", "free", "memory", "in", "bytes", "available", "to", "the", "JVM", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L104-L115
101,189
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java
HardwareDescriptionFactory.getSizeOfPhysicalMemoryForLinux
@SuppressWarnings("resource") private static long getSizeOfPhysicalMemoryForLinux() { BufferedReader lineReader = null; try { lineReader = new BufferedReader(new FileReader(LINUX_MEMORY_INFO_PATH)); String line = null; while ((line = lineReader.readLine()) != null) { Matcher matcher = LINUX_MEMORY_RE...
java
@SuppressWarnings("resource") private static long getSizeOfPhysicalMemoryForLinux() { BufferedReader lineReader = null; try { lineReader = new BufferedReader(new FileReader(LINUX_MEMORY_INFO_PATH)); String line = null; while ((line = lineReader.readLine()) != null) { Matcher matcher = LINUX_MEMORY_RE...
[ "@", "SuppressWarnings", "(", "\"resource\"", ")", "private", "static", "long", "getSizeOfPhysicalMemoryForLinux", "(", ")", "{", "BufferedReader", "lineReader", "=", "null", ";", "try", "{", "lineReader", "=", "new", "BufferedReader", "(", "new", "FileReader", "(...
Returns the size of the physical memory in bytes on a Linux-based operating system. @return the size of the physical memory in bytes or <code>-1</code> if the size could not be determined
[ "Returns", "the", "size", "of", "the", "physical", "memory", "in", "bytes", "on", "a", "Linux", "-", "based", "operating", "system", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L154-L189
101,190
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java
HardwareDescriptionFactory.getSizeOfPhysicalMemoryForMac
private static long getSizeOfPhysicalMemoryForMac() { BufferedReader bi = null; try { Process proc = Runtime.getRuntime().exec("sysctl hw.memsize"); bi = new BufferedReader( new InputStreamReader(proc.getInputStream())); String line; while ((line = bi.readLine()) != null) { if (line.starts...
java
private static long getSizeOfPhysicalMemoryForMac() { BufferedReader bi = null; try { Process proc = Runtime.getRuntime().exec("sysctl hw.memsize"); bi = new BufferedReader( new InputStreamReader(proc.getInputStream())); String line; while ((line = bi.readLine()) != null) { if (line.starts...
[ "private", "static", "long", "getSizeOfPhysicalMemoryForMac", "(", ")", "{", "BufferedReader", "bi", "=", "null", ";", "try", "{", "Process", "proc", "=", "Runtime", ".", "getRuntime", "(", ")", ".", "exec", "(", "\"sysctl hw.memsize\"", ")", ";", "bi", "=",...
Returns the size of the physical memory in bytes on a Mac OS-based operating system @return the size of the physical memory in bytes or <code>-1</code> if the size could not be determined
[ "Returns", "the", "size", "of", "the", "physical", "memory", "in", "bytes", "on", "a", "Mac", "OS", "-", "based", "operating", "system" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/HardwareDescriptionFactory.java#L198-L231
101,191
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java
ManagementGate.insertForwardEdge
void insertForwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); } this.forwardEdges.set(index, managementEdge); }
java
void insertForwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); } this.forwardEdges.set(index, managementEdge); }
[ "void", "insertForwardEdge", "(", "final", "ManagementEdge", "managementEdge", ",", "final", "int", "index", ")", "{", "while", "(", "index", ">=", "this", ".", "forwardEdges", ".", "size", "(", ")", ")", "{", "this", ".", "forwardEdges", ".", "add", "(", ...
Adds a new edge which originates at this gate. @param managementEdge the edge to be added @param index the index at which the edge shall be added
[ "Adds", "a", "new", "edge", "which", "originates", "at", "this", "gate", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L100-L107
101,192
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java
ManagementGate.insertBackwardEdge
void insertBackwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.backwardEdges.size()) { this.backwardEdges.add(null); } this.backwardEdges.set(index, managementEdge); }
java
void insertBackwardEdge(final ManagementEdge managementEdge, final int index) { while (index >= this.backwardEdges.size()) { this.backwardEdges.add(null); } this.backwardEdges.set(index, managementEdge); }
[ "void", "insertBackwardEdge", "(", "final", "ManagementEdge", "managementEdge", ",", "final", "int", "index", ")", "{", "while", "(", "index", ">=", "this", ".", "backwardEdges", ".", "size", "(", ")", ")", "{", "this", ".", "backwardEdges", ".", "add", "(...
Adds a new edge which arrives at this gate. @param managementEdge the edge to be added @param index the index at which the edge shall be added
[ "Adds", "a", "new", "edge", "which", "arrives", "at", "this", "gate", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L117-L124
101,193
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java
ManagementGate.getForwardEdge
public ManagementEdge getForwardEdge(final int index) { if (index < this.forwardEdges.size()) { return this.forwardEdges.get(index); } return null; }
java
public ManagementEdge getForwardEdge(final int index) { if (index < this.forwardEdges.size()) { return this.forwardEdges.get(index); } return null; }
[ "public", "ManagementEdge", "getForwardEdge", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "forwardEdges", ".", "size", "(", ")", ")", "{", "return", "this", ".", "forwardEdges", ".", "get", "(", "index", ")", ";", "}",...
Returns the edge originating at the given index. @param index the index of the edge to be returned @return the edge at the given index or <code>null</code> if no such edge exists
[ "Returns", "the", "edge", "originating", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L171-L178
101,194
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java
ManagementGate.getBackwardEdge
public ManagementEdge getBackwardEdge(final int index) { if (index < this.backwardEdges.size()) { return this.backwardEdges.get(index); } return null; }
java
public ManagementEdge getBackwardEdge(final int index) { if (index < this.backwardEdges.size()) { return this.backwardEdges.get(index); } return null; }
[ "public", "ManagementEdge", "getBackwardEdge", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "backwardEdges", ".", "size", "(", ")", ")", "{", "return", "this", ".", "backwardEdges", ".", "get", "(", "index", ")", ";", "...
Returns the edge arriving at the given index. @param index the index of the edge to be returned @return the edge at the given index or <code>null</code> if no such edge exists
[ "Returns", "the", "edge", "arriving", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGate.java#L187-L194
101,195
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraphIterator.java
ManagementGraphIterator.currentGateLeadsToOtherStage
private boolean currentGateLeadsToOtherStage(final TraversalEntry te, final boolean forward) { final ManagementGroupVertex groupVertex = te.getManagementVertex().getGroupVertex(); if (forward) { if (te.getCurrentGate() >= groupVertex.getNumberOfForwardEdges()) { return false; } final ManagementGrou...
java
private boolean currentGateLeadsToOtherStage(final TraversalEntry te, final boolean forward) { final ManagementGroupVertex groupVertex = te.getManagementVertex().getGroupVertex(); if (forward) { if (te.getCurrentGate() >= groupVertex.getNumberOfForwardEdges()) { return false; } final ManagementGrou...
[ "private", "boolean", "currentGateLeadsToOtherStage", "(", "final", "TraversalEntry", "te", ",", "final", "boolean", "forward", ")", "{", "final", "ManagementGroupVertex", "groupVertex", "=", "te", ".", "getManagementVertex", "(", ")", ".", "getGroupVertex", "(", ")...
Checks if the current gate leads to another stage or not. @param te the current traversal entry @param forward <code>true</code> if the graph should be traversed in correct order, <code>false</code> to traverse it in reverse order @return <code>true</code> if current gate leads to another stage, otherwise <code>false<...
[ "Checks", "if", "the", "current", "gate", "leads", "to", "another", "stage", "or", "not", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGraphIterator.java#L414-L442
101,196
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java
RequestedLocalProperties.filterByNodesConstantSet
public RequestedLocalProperties filterByNodesConstantSet(OptimizerNode node, int input) { if (this.ordering != null) { final FieldList involvedIndexes = this.ordering.getInvolvedIndexes(); for (int i = 0; i < involvedIndexes.size(); i++) { if (!node.isFieldConstant(input, involvedIndexes.get(i))) { ret...
java
public RequestedLocalProperties filterByNodesConstantSet(OptimizerNode node, int input) { if (this.ordering != null) { final FieldList involvedIndexes = this.ordering.getInvolvedIndexes(); for (int i = 0; i < involvedIndexes.size(); i++) { if (!node.isFieldConstant(input, involvedIndexes.get(i))) { ret...
[ "public", "RequestedLocalProperties", "filterByNodesConstantSet", "(", "OptimizerNode", "node", ",", "int", "input", ")", "{", "if", "(", "this", ".", "ordering", "!=", "null", ")", "{", "final", "FieldList", "involvedIndexes", "=", "this", ".", "ordering", ".",...
Filters these properties by what can be preserved through a user function's constant fields set. Since interesting properties are filtered top-down, anything that partially destroys the ordering makes the properties uninteresting. @param node The optimizer node that potentially modifies the properties. @param input Th...
[ "Filters", "these", "properties", "by", "what", "can", "be", "preserved", "through", "a", "user", "function", "s", "constant", "fields", "set", ".", "Since", "interesting", "properties", "are", "filtered", "top", "-", "down", "anything", "that", "partially", "...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java#L141-L158
101,197
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java
RequestedLocalProperties.parameterizeChannel
public void parameterizeChannel(Channel channel) { if (this.ordering != null) { channel.setLocalStrategy(LocalStrategy.SORT, this.ordering.getInvolvedIndexes(), this.ordering.getFieldSortDirections()); } else if (this.groupedFields != null) { boolean[] dirs = new boolean[this.groupedFields.size()]; Arrays....
java
public void parameterizeChannel(Channel channel) { if (this.ordering != null) { channel.setLocalStrategy(LocalStrategy.SORT, this.ordering.getInvolvedIndexes(), this.ordering.getFieldSortDirections()); } else if (this.groupedFields != null) { boolean[] dirs = new boolean[this.groupedFields.size()]; Arrays....
[ "public", "void", "parameterizeChannel", "(", "Channel", "channel", ")", "{", "if", "(", "this", ".", "ordering", "!=", "null", ")", "{", "channel", ".", "setLocalStrategy", "(", "LocalStrategy", ".", "SORT", ",", "this", ".", "ordering", ".", "getInvolvedIn...
Parameterizes the local strategy fields of a channel such that the channel produces the desired local properties. @param channel The channel to parameterize.
[ "Parameterizes", "the", "local", "strategy", "fields", "of", "a", "channel", "such", "that", "the", "channel", "produces", "the", "desired", "local", "properties", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedLocalProperties.java#L189-L197
101,198
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java
EnumUtils.readEnum
public static <T extends Enum<T>> T readEnum(final DataInput in, final Class<T> enumType) throws IOException { if (!in.readBoolean()) { return null; } return T.valueOf(enumType, StringRecord.readString(in)); }
java
public static <T extends Enum<T>> T readEnum(final DataInput in, final Class<T> enumType) throws IOException { if (!in.readBoolean()) { return null; } return T.valueOf(enumType, StringRecord.readString(in)); }
[ "public", "static", "<", "T", "extends", "Enum", "<", "T", ">", ">", "T", "readEnum", "(", "final", "DataInput", "in", ",", "final", "Class", "<", "T", ">", "enumType", ")", "throws", "IOException", "{", "if", "(", "!", "in", ".", "readBoolean", "(",...
Reads a value from the given enumeration from the specified input stream. @param <T> the type of the enumeration @param in the input stream to read from @param enumType the class of the enumeration @return the value of the given enumeration read from the input stream @throws IOException thrown if any error occurred wh...
[ "Reads", "a", "value", "from", "the", "given", "enumeration", "from", "the", "specified", "input", "stream", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java#L47-L54
101,199
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java
EnumUtils.writeEnum
public static void writeEnum(final DataOutput out, final Enum<?> enumVal) throws IOException { if (enumVal == null) { out.writeBoolean(false); } else { out.writeBoolean(true); StringRecord.writeString(out, enumVal.name()); } }
java
public static void writeEnum(final DataOutput out, final Enum<?> enumVal) throws IOException { if (enumVal == null) { out.writeBoolean(false); } else { out.writeBoolean(true); StringRecord.writeString(out, enumVal.name()); } }
[ "public", "static", "void", "writeEnum", "(", "final", "DataOutput", "out", ",", "final", "Enum", "<", "?", ">", "enumVal", ")", "throws", "IOException", "{", "if", "(", "enumVal", "==", "null", ")", "{", "out", ".", "writeBoolean", "(", "false", ")", ...
Writes a value of an enumeration to the given output stream. @param out the output stream to write to @param enumVal the value of a enumeration to be written to the output stream @throws IOException thrown if any error occurred while writing data to the stream
[ "Writes", "a", "value", "of", "an", "enumeration", "to", "the", "given", "output", "stream", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/util/EnumUtils.java#L66-L74