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,000
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadDelivery.java
DownloadDelivery.postFailure
void postFailure(final DownloadRequest request, final int statusCode, final String errMsg) { downloadPoster.execute(new Runnable() { @Override public void run() { request.downloadCallback().onFailure(request.downloadId(), statusCode, errMsg); } }); }
java
void postFailure(final DownloadRequest request, final int statusCode, final String errMsg) { downloadPoster.execute(new Runnable() { @Override public void run() { request.downloadCallback().onFailure(request.downloadId(), statusCode, errMsg); } }); }
[ "void", "postFailure", "(", "final", "DownloadRequest", "request", ",", "final", "int", "statusCode", ",", "final", "String", "errMsg", ")", "{", "downloadPoster", ".", "execute", "(", "new", "Runnable", "(", ")", "{", "@", "Override", "public", "void", "run...
Post download failure event. @param request download request @param statusCode status code @param errMsg error message
[ "Post", "download", "failure", "event", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadDelivery.java#L85-L91
101,001
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadManager.java
DownloadManager.add
public int add(DownloadRequest request) { request = checkNotNull(request, "request == null"); if (isDownloading(request.uri().toString())) { return -1; } request.context(context); request.downloader(downloader.copy()); /* add download request into download request queue */ return dow...
java
public int add(DownloadRequest request) { request = checkNotNull(request, "request == null"); if (isDownloading(request.uri().toString())) { return -1; } request.context(context); request.downloader(downloader.copy()); /* add download request into download request queue */ return dow...
[ "public", "int", "add", "(", "DownloadRequest", "request", ")", "{", "request", "=", "checkNotNull", "(", "request", ",", "\"request == null\"", ")", ";", "if", "(", "isDownloading", "(", "request", ".", "uri", "(", ")", ".", "toString", "(", ")", ")", "...
Add one download request into the queue. @param request download request @return download id, if the id is not set, then manager will generate one. if the request is in downloading, then -1 will be returned
[ "Add", "one", "download", "request", "into", "the", "queue", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadManager.java#L37-L48
101,002
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequest.java
DownloadRequest.updateDestinationFilePath
@SuppressWarnings("ResultOfMethodCallIgnored") void updateDestinationFilePath(String filename) { String separator = destinationDirectory.endsWith("/") ? "" : File.separator; destinationFilePath = destinationDirectory + separator + filename; Log.d("TAG", "destinationFilePath: " + destinationFilePath); /*...
java
@SuppressWarnings("ResultOfMethodCallIgnored") void updateDestinationFilePath(String filename) { String separator = destinationDirectory.endsWith("/") ? "" : File.separator; destinationFilePath = destinationDirectory + separator + filename; Log.d("TAG", "destinationFilePath: " + destinationFilePath); /*...
[ "@", "SuppressWarnings", "(", "\"ResultOfMethodCallIgnored\"", ")", "void", "updateDestinationFilePath", "(", "String", "filename", ")", "{", "String", "separator", "=", "destinationDirectory", ".", "endsWith", "(", "\"/\"", ")", "?", "\"\"", ":", "File", ".", "se...
Update absolute file path according to the directory and filename. @param filename filename to save
[ "Update", "absolute", "file", "path", "according", "to", "the", "directory", "and", "filename", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequest.java#L228-L238
101,003
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java
DownloadRequestQueue.add
boolean add(DownloadRequest request) { /* if the request is downloading, do nothing */ if (query(request.downloadId()) != DownloadState.INVALID || query(request.uri()) != DownloadState.INVALID) { Log.w(TAG, "the download requst is in downloading"); return false; } /* tag the request...
java
boolean add(DownloadRequest request) { /* if the request is downloading, do nothing */ if (query(request.downloadId()) != DownloadState.INVALID || query(request.uri()) != DownloadState.INVALID) { Log.w(TAG, "the download requst is in downloading"); return false; } /* tag the request...
[ "boolean", "add", "(", "DownloadRequest", "request", ")", "{", "/* if the request is downloading, do nothing */", "if", "(", "query", "(", "request", ".", "downloadId", "(", ")", ")", "!=", "DownloadState", ".", "INVALID", "||", "query", "(", "request", ".", "ur...
Add download request to the download request queue. @param request download request @return true if the request is not in queue, otherwise return false
[ "Add", "download", "request", "to", "the", "download", "request", "queue", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java#L86-L105
101,004
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java
DownloadRequestQueue.cancel
boolean cancel(int downloadId) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.downloadId() == downloadId) { request.cancel(); return true; } } } return false; }
java
boolean cancel(int downloadId) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.downloadId() == downloadId) { request.cancel(); return true; } } } return false; }
[ "boolean", "cancel", "(", "int", "downloadId", ")", "{", "synchronized", "(", "currentRequests", ")", "{", "for", "(", "DownloadRequest", "request", ":", "currentRequests", ")", "{", "if", "(", "request", ".", "downloadId", "(", ")", "==", "downloadId", ")",...
Cancel a download in progress. @param downloadId download id @return true if download has canceled, otherwise return false
[ "Cancel", "a", "download", "in", "progress", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java#L113-L124
101,005
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java
DownloadRequestQueue.query
DownloadState query(int downloadId) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.downloadId() == downloadId) { return request.downloadState(); } } } return DownloadState.INVALID; }
java
DownloadState query(int downloadId) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.downloadId() == downloadId) { return request.downloadState(); } } } return DownloadState.INVALID; }
[ "DownloadState", "query", "(", "int", "downloadId", ")", "{", "synchronized", "(", "currentRequests", ")", "{", "for", "(", "DownloadRequest", "request", ":", "currentRequests", ")", "{", "if", "(", "request", ".", "downloadId", "(", ")", "==", "downloadId", ...
To check if the request is downloading according to download id. @param downloadId download id @return true if the request is downloading, otherwise return false
[ "To", "check", "if", "the", "request", "is", "downloading", "according", "to", "download", "id", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java#L154-L164
101,006
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java
DownloadRequestQueue.query
DownloadState query(Uri uri) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.uri().toString().equals(uri.toString())) { return request.downloadState(); } } } return DownloadState.INVALID; }
java
DownloadState query(Uri uri) { synchronized (currentRequests) { for (DownloadRequest request : currentRequests) { if (request.uri().toString().equals(uri.toString())) { return request.downloadState(); } } } return DownloadState.INVALID; }
[ "DownloadState", "query", "(", "Uri", "uri", ")", "{", "synchronized", "(", "currentRequests", ")", "{", "for", "(", "DownloadRequest", "request", ":", "currentRequests", ")", "{", "if", "(", "request", ".", "uri", "(", ")", ".", "toString", "(", ")", "....
To check if the request is downloading according to download url. @param uri the uri to check @return true if the request is downloading, otherwise return false
[ "To", "check", "if", "the", "request", "is", "downloading", "according", "to", "download", "url", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java#L172-L182
101,007
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java
DownloadRequestQueue.release
void release() { /* release current download request */ cancelAll(); /* release download queue */ if (downloadQueue != null) { downloadQueue = null; } /* release dispathcers */ if (dispatchers != null) { stop(); for (int i = 0; i < dispatchers.length; i++) { disp...
java
void release() { /* release current download request */ cancelAll(); /* release download queue */ if (downloadQueue != null) { downloadQueue = null; } /* release dispathcers */ if (dispatchers != null) { stop(); for (int i = 0; i < dispatchers.length; i++) { disp...
[ "void", "release", "(", ")", "{", "/* release current download request */", "cancelAll", "(", ")", ";", "/* release download queue */", "if", "(", "downloadQueue", "!=", "null", ")", "{", "downloadQueue", "=", "null", ";", "}", "/* release dispathcers */", "if", "("...
Release all the resource.
[ "Release", "all", "the", "resource", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/DownloadRequestQueue.java#L207-L226
101,008
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/Utils.java
Utils.isWifi
static boolean isWifi(Context context) { if (context == null) { return false; } ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (manager == null) { return false; } NetworkInfo info = manager.getActiveNetworkInfo(...
java
static boolean isWifi(Context context) { if (context == null) { return false; } ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (manager == null) { return false; } NetworkInfo info = manager.getActiveNetworkInfo(...
[ "static", "boolean", "isWifi", "(", "Context", "context", ")", "{", "if", "(", "context", "==", "null", ")", "{", "return", "false", ";", "}", "ConnectivityManager", "manager", "=", "(", "ConnectivityManager", ")", "context", ".", "getSystemService", "(", "C...
To check whether current network is wifi. @param context context @return true if network if wifi, otherwise return false
[ "To", "check", "whether", "current", "network", "is", "wifi", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/Utils.java#L48-L61
101,009
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/Utils.java
Utils.getFilenameFromUrl
static String getFilenameFromUrl(String url) { String filename = md5(url) + ".down"; int index = url.lastIndexOf("/"); if (index > 0) { String tmpFilename = url.substring(index + 1); int qmarkIndex = tmpFilename.indexOf("?"); if (qmarkIndex > 0) { tmpFilename = tmpFilename.substri...
java
static String getFilenameFromUrl(String url) { String filename = md5(url) + ".down"; int index = url.lastIndexOf("/"); if (index > 0) { String tmpFilename = url.substring(index + 1); int qmarkIndex = tmpFilename.indexOf("?"); if (qmarkIndex > 0) { tmpFilename = tmpFilename.substri...
[ "static", "String", "getFilenameFromUrl", "(", "String", "url", ")", "{", "String", "filename", "=", "md5", "(", "url", ")", "+", "\".down\"", ";", "int", "index", "=", "url", ".", "lastIndexOf", "(", "\"/\"", ")", ";", "if", "(", "index", ">", "0", ...
Get filename from url. @param url url @return filename or md5 if no available filename
[ "Get", "filename", "from", "url", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/Utils.java#L92-L110
101,010
Coolerfall/Android-HttpDownloadManager
library/src/main/java/com/coolerfall/download/Utils.java
Utils.getFilenameFromHeader
public static String getFilenameFromHeader(String url, String contentDisposition) { String filename; if (!TextUtils.isEmpty(contentDisposition)) { int index = contentDisposition.indexOf("filename"); if (index > 0) { filename = contentDisposition.substring(index + 9, contentDisposition.length...
java
public static String getFilenameFromHeader(String url, String contentDisposition) { String filename; if (!TextUtils.isEmpty(contentDisposition)) { int index = contentDisposition.indexOf("filename"); if (index > 0) { filename = contentDisposition.substring(index + 9, contentDisposition.length...
[ "public", "static", "String", "getFilenameFromHeader", "(", "String", "url", ",", "String", "contentDisposition", ")", "{", "String", "filename", ";", "if", "(", "!", "TextUtils", ".", "isEmpty", "(", "contentDisposition", ")", ")", "{", "int", "index", "=", ...
Get filename from content disposition in header. @param url url of current file to download @param contentDisposition content disposition in header @return filename in header if existed, otherwise get from url
[ "Get", "filename", "from", "content", "disposition", "in", "header", "." ]
2b32451c1799c77708c12bf8155e43c7dc25bc57
https://github.com/Coolerfall/Android-HttpDownloadManager/blob/2b32451c1799c77708c12bf8155e43c7dc25bc57/library/src/main/java/com/coolerfall/download/Utils.java#L119-L140
101,011
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/profiling/ProfilingUtils.java
ProfilingUtils.loadJobManagerProfiler
@SuppressWarnings("unchecked") public static JobManagerProfiler loadJobManagerProfiler(String profilerClassName, InetAddress jobManagerBindAddress) { final Class<? extends JobManagerProfiler> profilerClass; try { profilerClass = (Class<? extends JobManagerProfiler>) Class.forName(profilerClassName); } catch ...
java
@SuppressWarnings("unchecked") public static JobManagerProfiler loadJobManagerProfiler(String profilerClassName, InetAddress jobManagerBindAddress) { final Class<? extends JobManagerProfiler> profilerClass; try { profilerClass = (Class<? extends JobManagerProfiler>) Class.forName(profilerClassName); } catch ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "JobManagerProfiler", "loadJobManagerProfiler", "(", "String", "profilerClassName", ",", "InetAddress", "jobManagerBindAddress", ")", "{", "final", "Class", "<", "?", "extends", "JobManagerProfiler", ...
Creates an instance of the job manager's profiling component. @param profilerClassName the class name of the profiling component to load @param jobManagerBindAddress the address the job manager's RPC server is bound to @return an instance of the job manager profiling component or <code>null</code> if an error occurs
[ "Creates", "an", "instance", "of", "the", "job", "manager", "s", "profiling", "component", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/profiling/ProfilingUtils.java#L87-L123
101,012
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/profiling/ProfilingUtils.java
ProfilingUtils.loadTaskManagerProfiler
@SuppressWarnings("unchecked") public static TaskManagerProfiler loadTaskManagerProfiler(String profilerClassName, InetAddress jobManagerAddress, InstanceConnectionInfo instanceConnectionInfo) { final Class<? extends TaskManagerProfiler> profilerClass; try { profilerClass = (Class<? extends TaskManagerProfi...
java
@SuppressWarnings("unchecked") public static TaskManagerProfiler loadTaskManagerProfiler(String profilerClassName, InetAddress jobManagerAddress, InstanceConnectionInfo instanceConnectionInfo) { final Class<? extends TaskManagerProfiler> profilerClass; try { profilerClass = (Class<? extends TaskManagerProfi...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "TaskManagerProfiler", "loadTaskManagerProfiler", "(", "String", "profilerClassName", ",", "InetAddress", "jobManagerAddress", ",", "InstanceConnectionInfo", "instanceConnectionInfo", ")", "{", "final", ...
Creates an instance of the task manager's profiling component. @param profilerClassName the class name of the profiling component to load @return an instance of the task manager profiling component or <code>null</code> if an error occurs
[ "Creates", "an", "instance", "of", "the", "task", "manager", "s", "profiling", "component", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/profiling/ProfilingUtils.java#L132-L169
101,013
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/DistributionPatternProvider.java
DistributionPatternProvider.createWire
public static boolean createWire(final DistributionPattern pattern, final int nodeLowerStage, final int nodeUpperStage, final int sizeSetLowerStage, final int sizeSetUpperStage) { switch (pattern) { case BIPARTITE: return true; case POINTWISE: if (sizeSetLowerStage < sizeSetUpperStage) { if (nodeLo...
java
public static boolean createWire(final DistributionPattern pattern, final int nodeLowerStage, final int nodeUpperStage, final int sizeSetLowerStage, final int sizeSetUpperStage) { switch (pattern) { case BIPARTITE: return true; case POINTWISE: if (sizeSetLowerStage < sizeSetUpperStage) { if (nodeLo...
[ "public", "static", "boolean", "createWire", "(", "final", "DistributionPattern", "pattern", ",", "final", "int", "nodeLowerStage", ",", "final", "int", "nodeUpperStage", ",", "final", "int", "sizeSetLowerStage", ",", "final", "int", "sizeSetUpperStage", ")", "{", ...
Checks if two subtasks of different tasks should be wired. @param pattern the distribution pattern that should be used @param nodeLowerStage the index of the producing task's subtask @param nodeUpperStage the index of the consuming task's subtask @param sizeSetLowerStage the number of subtasks of the producing task @p...
[ "Checks", "if", "two", "subtasks", "of", "different", "tasks", "should", "be", "wired", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/DistributionPatternProvider.java#L36-L76
101,014
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.insertForwardEdge
void insertForwardEdge(final ManagementGroupEdge edge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); } this.forwardEdges.set(index, edge); }
java
void insertForwardEdge(final ManagementGroupEdge edge, final int index) { while (index >= this.forwardEdges.size()) { this.forwardEdges.add(null); } this.forwardEdges.set(index, edge); }
[ "void", "insertForwardEdge", "(", "final", "ManagementGroupEdge", "edge", ",", "final", "int", "index", ")", "{", "while", "(", "index", ">=", "this", ".", "forwardEdges", ".", "size", "(", ")", ")", "{", "this", ".", "forwardEdges", ".", "add", "(", "nu...
Inserts a new edge starting at this group vertex at the given index. @param edge the edge to be added @param index the index at which the edge shall be added
[ "Inserts", "a", "new", "edge", "starting", "at", "this", "group", "vertex", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L127-L134
101,015
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.insertBackwardEdge
void insertBackwardEdge(final ManagementGroupEdge edge, final int index) { while (index >= this.backwardEdges.size()) { this.backwardEdges.add(null); } this.backwardEdges.set(index, edge); }
java
void insertBackwardEdge(final ManagementGroupEdge edge, final int index) { while (index >= this.backwardEdges.size()) { this.backwardEdges.add(null); } this.backwardEdges.set(index, edge); }
[ "void", "insertBackwardEdge", "(", "final", "ManagementGroupEdge", "edge", ",", "final", "int", "index", ")", "{", "while", "(", "index", ">=", "this", ".", "backwardEdges", ".", "size", "(", ")", ")", "{", "this", ".", "backwardEdges", ".", "add", "(", ...
Inserts a new edge arriving at this group vertex at the given index. @param edge the edge to be added @param index the index at which the edge shall be added
[ "Inserts", "a", "new", "edge", "arriving", "at", "this", "group", "vertex", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L144-L151
101,016
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.getForwardEdge
public ManagementGroupEdge getForwardEdge(final int index) { if (index < this.forwardEdges.size()) { return this.forwardEdges.get(index); } return null; }
java
public ManagementGroupEdge getForwardEdge(final int index) { if (index < this.forwardEdges.size()) { return this.forwardEdges.get(index); } return null; }
[ "public", "ManagementGroupEdge", "getForwardEdge", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "forwardEdges", ".", "size", "(", ")", ")", "{", "return", "this", ".", "forwardEdges", ".", "get", "(", "index", ")", ";", ...
Returns the group edge which leaves this group vertex at the given index. @param index the index of the group edge @return the group edge which leaves this group vertex at the given index or <code>null</code> if no such group edge exists
[ "Returns", "the", "group", "edge", "which", "leaves", "this", "group", "vertex", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L179-L186
101,017
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.getBackwardEdge
public ManagementGroupEdge getBackwardEdge(final int index) { if (index < this.backwardEdges.size()) { return this.backwardEdges.get(index); } return null; }
java
public ManagementGroupEdge getBackwardEdge(final int index) { if (index < this.backwardEdges.size()) { return this.backwardEdges.get(index); } return null; }
[ "public", "ManagementGroupEdge", "getBackwardEdge", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "backwardEdges", ".", "size", "(", ")", ")", "{", "return", "this", ".", "backwardEdges", ".", "get", "(", "index", ")", ";"...
Returns the group edge which arrives at this group vertex at the given index. @param index the index of the group edge @return the group edge which arrives at this group vertex at the given index or <code>null</code> if no such group edge exists
[ "Returns", "the", "group", "edge", "which", "arrives", "at", "this", "group", "vertex", "at", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L196-L203
101,018
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.collectVertices
void collectVertices(final List<ManagementVertex> vertices) { final Iterator<ManagementVertex> it = this.groupMembers.iterator(); while (it.hasNext()) { vertices.add(it.next()); } }
java
void collectVertices(final List<ManagementVertex> vertices) { final Iterator<ManagementVertex> it = this.groupMembers.iterator(); while (it.hasNext()) { vertices.add(it.next()); } }
[ "void", "collectVertices", "(", "final", "List", "<", "ManagementVertex", ">", "vertices", ")", "{", "final", "Iterator", "<", "ManagementVertex", ">", "it", "=", "this", ".", "groupMembers", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasNex...
Adds all management vertices which are included in this group vertex to the given list. @param vertices the list to which the vertices shall be added
[ "Adds", "all", "management", "vertices", "which", "are", "included", "in", "this", "group", "vertex", "to", "the", "given", "list", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L228-L234
101,019
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.getGroupMember
public ManagementVertex getGroupMember(final int index) { if (index < this.groupMembers.size()) { return this.groupMembers.get(index); } return null; }
java
public ManagementVertex getGroupMember(final int index) { if (index < this.groupMembers.size()) { return this.groupMembers.get(index); } return null; }
[ "public", "ManagementVertex", "getGroupMember", "(", "final", "int", "index", ")", "{", "if", "(", "index", "<", "this", ".", "groupMembers", ".", "size", "(", ")", ")", "{", "return", "this", ".", "groupMembers", ".", "get", "(", "index", ")", ";", "}...
Returns the management vertex with the given index. @param index the index of the management vertex to be returned @return the management vertex with the given index or <code>null</code> if no such vertex exists
[ "Returns", "the", "management", "vertex", "with", "the", "given", "index", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L270-L277
101,020
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.getSuccessors
public List<ManagementGroupVertex> getSuccessors() { final List<ManagementGroupVertex> successors = new ArrayList<ManagementGroupVertex>(); for (ManagementGroupEdge edge : this.forwardEdges) { successors.add(edge.getTarget()); } return successors; }
java
public List<ManagementGroupVertex> getSuccessors() { final List<ManagementGroupVertex> successors = new ArrayList<ManagementGroupVertex>(); for (ManagementGroupEdge edge : this.forwardEdges) { successors.add(edge.getTarget()); } return successors; }
[ "public", "List", "<", "ManagementGroupVertex", ">", "getSuccessors", "(", ")", "{", "final", "List", "<", "ManagementGroupVertex", ">", "successors", "=", "new", "ArrayList", "<", "ManagementGroupVertex", ">", "(", ")", ";", "for", "(", "ManagementGroupEdge", "...
Returns the list of successors of this group vertex. A successor is a group vertex which can be reached via a group edge originating at this group vertex. @return the list of successors of this group vertex.
[ "Returns", "the", "list", "of", "successors", "of", "this", "group", "vertex", ".", "A", "successor", "is", "a", "group", "vertex", "which", "can", "be", "reached", "via", "a", "group", "edge", "originating", "at", "this", "group", "vertex", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L382-L391
101,021
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.getPredecessors
public List<ManagementGroupVertex> getPredecessors() { final List<ManagementGroupVertex> predecessors = new ArrayList<ManagementGroupVertex>(); for (ManagementGroupEdge edge : this.backwardEdges) { predecessors.add(edge.getSource()); } return predecessors; }
java
public List<ManagementGroupVertex> getPredecessors() { final List<ManagementGroupVertex> predecessors = new ArrayList<ManagementGroupVertex>(); for (ManagementGroupEdge edge : this.backwardEdges) { predecessors.add(edge.getSource()); } return predecessors; }
[ "public", "List", "<", "ManagementGroupVertex", ">", "getPredecessors", "(", ")", "{", "final", "List", "<", "ManagementGroupVertex", ">", "predecessors", "=", "new", "ArrayList", "<", "ManagementGroupVertex", ">", "(", ")", ";", "for", "(", "ManagementGroupEdge",...
Returns the list of predecessors of this group vertex. A predecessors is a group vertex which can be reached via a group edge arriving at this group vertex. @return the list of predecessors of this group vertex.
[ "Returns", "the", "list", "of", "predecessors", "of", "this", "group", "vertex", ".", "A", "predecessors", "is", "a", "group", "vertex", "which", "can", "be", "reached", "via", "a", "group", "edge", "arriving", "at", "this", "group", "vertex", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L399-L408
101,022
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java
ManagementGroupVertex.toJson
public String toJson() { StringBuilder json = new StringBuilder(""); json.append("{"); json.append("\"groupvertexid\": \"" + this.getID() + "\","); json.append("\"groupvertexname\": \"" + StringUtils.escapeHtml(this.getName()) + "\","); json.append("\"numberofgroupmembers\": " + this.getNumberOfGroupMember...
java
public String toJson() { StringBuilder json = new StringBuilder(""); json.append("{"); json.append("\"groupvertexid\": \"" + this.getID() + "\","); json.append("\"groupvertexname\": \"" + StringUtils.escapeHtml(this.getName()) + "\","); json.append("\"numberofgroupmembers\": " + this.getNumberOfGroupMember...
[ "public", "String", "toJson", "(", ")", "{", "StringBuilder", "json", "=", "new", "StringBuilder", "(", "\"\"", ")", ";", "json", ".", "append", "(", "\"{\"", ")", ";", "json", ".", "append", "(", "\"\\\"groupvertexid\\\": \\\"\"", "+", "this", ".", "getID...
Returns Json representation of this ManagementGroupVertex @return
[ "Returns", "Json", "representation", "of", "this", "ManagementGroupVertex" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/managementgraph/ManagementGroupVertex.java#L420-L478
101,023
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/local/LocalInstanceManager.java
LocalInstanceManager.createDefaultInstanceType
public static final InstanceType createDefaultInstanceType() { final HardwareDescription hardwareDescription = HardwareDescriptionFactory.extractFromSystem(); int diskCapacityInGB = 0; final String[] tempDirs = GlobalConfiguration.getString(ConfigConstants.TASK_MANAGER_TMP_DIR_KEY, ConfigConstants.DEFAULT_TAS...
java
public static final InstanceType createDefaultInstanceType() { final HardwareDescription hardwareDescription = HardwareDescriptionFactory.extractFromSystem(); int diskCapacityInGB = 0; final String[] tempDirs = GlobalConfiguration.getString(ConfigConstants.TASK_MANAGER_TMP_DIR_KEY, ConfigConstants.DEFAULT_TAS...
[ "public", "static", "final", "InstanceType", "createDefaultInstanceType", "(", ")", "{", "final", "HardwareDescription", "hardwareDescription", "=", "HardwareDescriptionFactory", ".", "extractFromSystem", "(", ")", ";", "int", "diskCapacityInGB", "=", "0", ";", "final",...
Creates a default instance type based on the hardware characteristics of the machine that calls this method. The default instance type contains the machine's number of CPU cores and size of physical memory. The disc capacity is calculated from the free space in the directory for temporary files. @return the default in...
[ "Creates", "a", "default", "instance", "type", "based", "on", "the", "hardware", "characteristics", "of", "the", "machine", "that", "calls", "this", "method", ".", "The", "default", "instance", "type", "contains", "the", "machine", "s", "number", "of", "CPU", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/local/LocalInstanceManager.java#L319-L337
101,024
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/program/Client.java
Client.run
public JobExecutionResult run(JobWithJars prog, int parallelism, boolean wait) throws CompilerException, ProgramInvocationException { return run(getOptimizedPlan(prog, parallelism), prog.getJarFiles(), wait); }
java
public JobExecutionResult run(JobWithJars prog, int parallelism, boolean wait) throws CompilerException, ProgramInvocationException { return run(getOptimizedPlan(prog, parallelism), prog.getJarFiles(), wait); }
[ "public", "JobExecutionResult", "run", "(", "JobWithJars", "prog", ",", "int", "parallelism", ",", "boolean", "wait", ")", "throws", "CompilerException", ",", "ProgramInvocationException", "{", "return", "run", "(", "getOptimizedPlan", "(", "prog", ",", "parallelism...
Runs a program on the nephele system whose job-manager is configured in this client's configuration. This method involves all steps, from compiling, job-graph generation to submission. @param prog The program to be executed. @param wait A flag that indicates whether this function call should block until the program ex...
[ "Runs", "a", "program", "on", "the", "nephele", "system", "whose", "job", "-", "manager", "is", "configured", "in", "this", "client", "s", "configuration", ".", "This", "method", "involves", "all", "steps", "from", "compiling", "job", "-", "graph", "generati...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/program/Client.java#L261-L263
101,025
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/cache/FileCache.java
FileCache.createTmpFile
public FutureTask<Path> createTmpFile(String name, String filePath, JobID jobID) { synchronized (count) { Pair<JobID, String> key = new ImmutablePair(jobID,name); if (count.containsKey(key)) { count.put(key, count.get(key) + 1); } else { count.put(key, 1); } } CopyProcess cp = new CopyProcess...
java
public FutureTask<Path> createTmpFile(String name, String filePath, JobID jobID) { synchronized (count) { Pair<JobID, String> key = new ImmutablePair(jobID,name); if (count.containsKey(key)) { count.put(key, count.get(key) + 1); } else { count.put(key, 1); } } CopyProcess cp = new CopyProcess...
[ "public", "FutureTask", "<", "Path", ">", "createTmpFile", "(", "String", "name", ",", "String", "filePath", ",", "JobID", "jobID", ")", "{", "synchronized", "(", "count", ")", "{", "Pair", "<", "JobID", ",", "String", ">", "key", "=", "new", "ImmutableP...
If the file doesn't exists locally, it will copy the file to the temp directory.
[ "If", "the", "file", "doesn", "t", "exists", "locally", "it", "will", "copy", "the", "file", "to", "the", "temp", "directory", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/cache/FileCache.java#L56-L70
101,026
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/cache/FileCache.java
FileCache.deleteTmpFile
public void deleteTmpFile(String name, JobID jobID) { DeleteProcess dp = new DeleteProcess(name, jobID, count.get(new ImmutablePair(jobID,name))); executorService.schedule(dp, 5000L, TimeUnit.MILLISECONDS); }
java
public void deleteTmpFile(String name, JobID jobID) { DeleteProcess dp = new DeleteProcess(name, jobID, count.get(new ImmutablePair(jobID,name))); executorService.schedule(dp, 5000L, TimeUnit.MILLISECONDS); }
[ "public", "void", "deleteTmpFile", "(", "String", "name", ",", "JobID", "jobID", ")", "{", "DeleteProcess", "dp", "=", "new", "DeleteProcess", "(", "name", ",", "jobID", ",", "count", ".", "get", "(", "new", "ImmutablePair", "(", "jobID", ",", "name", ")...
Leave a 5 seconds delay to clear the local file.
[ "Leave", "a", "5", "seconds", "delay", "to", "clear", "the", "local", "file", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/cache/FileCache.java#L75-L78
101,027
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/io/DelimitedInputFormat.java
DelimitedInputFormat.configure
@Override public void configure(Configuration parameters) { super.configure(parameters); String delimString = parameters.getString(RECORD_DELIMITER, null); if (delimString != null) { String charsetName = parameters.getString(RECORD_DELIMITER_ENCODING, null); if (charsetName == null) { setDelimiter(...
java
@Override public void configure(Configuration parameters) { super.configure(parameters); String delimString = parameters.getString(RECORD_DELIMITER, null); if (delimString != null) { String charsetName = parameters.getString(RECORD_DELIMITER_ENCODING, null); if (charsetName == null) { setDelimiter(...
[ "@", "Override", "public", "void", "configure", "(", "Configuration", "parameters", ")", "{", "super", ".", "configure", "(", "parameters", ")", ";", "String", "delimString", "=", "parameters", ".", "getString", "(", "RECORD_DELIMITER", ",", "null", ")", ";", ...
Configures this input format by reading the path to the file from the configuration andge the string that defines the record delimiter. @param parameters The configuration object to read the parameters from.
[ "Configures", "this", "input", "format", "by", "reading", "the", "path", "to", "the", "file", "from", "the", "configuration", "andge", "the", "string", "that", "defines", "the", "record", "delimiter", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/io/DelimitedInputFormat.java#L273-L307
101,028
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManagerUtils.java
JobManagerUtils.loadInstanceManager
@SuppressWarnings("unchecked") static InstanceManager loadInstanceManager(final String instanceManagerClassName) { Class<? extends InstanceManager> instanceManagerClass; try { instanceManagerClass = (Class<? extends InstanceManager>) Class.forName(instanceManagerClassName); } catch (ClassNotFoundException e)...
java
@SuppressWarnings("unchecked") static InstanceManager loadInstanceManager(final String instanceManagerClassName) { Class<? extends InstanceManager> instanceManagerClass; try { instanceManagerClass = (Class<? extends InstanceManager>) Class.forName(instanceManagerClassName); } catch (ClassNotFoundException e)...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "static", "InstanceManager", "loadInstanceManager", "(", "final", "String", "instanceManagerClassName", ")", "{", "Class", "<", "?", "extends", "InstanceManager", ">", "instanceManagerClass", ";", "try", "{", "instan...
Tries to locate a class with given name and to instantiate a instance manager from it. @param instanceManagerClassName the name of the class to instantiate the instance manager object from @return the {@link InstanceManager} object instantiated from the class with the provided name
[ "Tries", "to", "locate", "a", "class", "with", "given", "name", "and", "to", "instantiate", "a", "instance", "manager", "from", "it", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/JobManagerUtils.java#L111-L135
101,029
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/bufferprovider/LocalBufferPool.java
LocalBufferPool.recycleBuffer
private void recycleBuffer(MemorySegment buffer) { synchronized (this.buffers) { if (this.isDestroyed) { this.globalBufferPool.returnBuffer(buffer); this.numRequestedBuffers--; } else { // if the number of designated buffers changed in the meantime, make sure // to return the buffer to the globa...
java
private void recycleBuffer(MemorySegment buffer) { synchronized (this.buffers) { if (this.isDestroyed) { this.globalBufferPool.returnBuffer(buffer); this.numRequestedBuffers--; } else { // if the number of designated buffers changed in the meantime, make sure // to return the buffer to the globa...
[ "private", "void", "recycleBuffer", "(", "MemorySegment", "buffer", ")", "{", "synchronized", "(", "this", ".", "buffers", ")", "{", "if", "(", "this", ".", "isDestroyed", ")", "{", "this", ".", "globalBufferPool", ".", "returnBuffer", "(", "buffer", ")", ...
Returns a buffer to the buffer pool and notifies listeners about the availability of a new buffer. @param buffer buffer to return to the buffer pool
[ "Returns", "a", "buffer", "to", "the", "buffer", "pool", "and", "notifies", "listeners", "about", "the", "availability", "of", "a", "new", "buffer", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/network/bufferprovider/LocalBufferPool.java#L291-L318
101,030
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/topology/NetworkNode.java
NetworkNode.getDistance
public int getDistance(final NetworkNode networkNode) { int steps = 0; NetworkNode tmp = this; while (tmp != null) { final int distance = tmp.isPredecessorOrSelfOf(networkNode); if (distance >= 0) { return (steps + distance); } tmp = tmp.getParentNode(); ++steps; } return Integer.MAX_VA...
java
public int getDistance(final NetworkNode networkNode) { int steps = 0; NetworkNode tmp = this; while (tmp != null) { final int distance = tmp.isPredecessorOrSelfOf(networkNode); if (distance >= 0) { return (steps + distance); } tmp = tmp.getParentNode(); ++steps; } return Integer.MAX_VA...
[ "public", "int", "getDistance", "(", "final", "NetworkNode", "networkNode", ")", "{", "int", "steps", "=", "0", ";", "NetworkNode", "tmp", "=", "this", ";", "while", "(", "tmp", "!=", "null", ")", "{", "final", "int", "distance", "=", "tmp", ".", "isPr...
Determines the distance to the given network node. The distance is determined as the number of internal network nodes that must be traversed in order to send a packet from one node to the other plus one. @param networkNode the node to determine the distance for @return the distance to the given network node or <code>I...
[ "Determines", "the", "distance", "to", "the", "given", "network", "node", ".", "The", "distance", "is", "determined", "as", "the", "number", "of", "internal", "network", "nodes", "that", "must", "be", "traversed", "in", "order", "to", "send", "a", "packet", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/topology/NetworkNode.java#L161-L177
101,031
stratosphere/stratosphere
stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCInputFormat.java
JDBCInputFormat.nextRecord
@Override public Record nextRecord(Record record) { try { resultSet.next(); ResultSetMetaData rsmd = resultSet.getMetaData(); int column_count = rsmd.getColumnCount(); record.setNumFields(column_count); for (int pos = 0; pos < column_count; pos++) { int type = rsmd.getColumnType(pos + 1); ret...
java
@Override public Record nextRecord(Record record) { try { resultSet.next(); ResultSetMetaData rsmd = resultSet.getMetaData(); int column_count = rsmd.getColumnCount(); record.setNumFields(column_count); for (int pos = 0; pos < column_count; pos++) { int type = rsmd.getColumnType(pos + 1); ret...
[ "@", "Override", "public", "Record", "nextRecord", "(", "Record", "record", ")", "{", "try", "{", "resultSet", ".", "next", "(", ")", ";", "ResultSetMetaData", "rsmd", "=", "resultSet", ".", "getMetaData", "(", ")", ";", "int", "column_count", "=", "rsmd",...
Stores the next resultSet row in a Record @param record target Record @return boolean value indicating that the operation was successful
[ "Stores", "the", "next", "resultSet", "row", "in", "a", "Record" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/record/io/jdbc/JDBCInputFormat.java#L352-L373
101,032
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexUpdateFunction.java
VertexUpdateFunction.getIterationAggregator
public <T extends Aggregator<?>> T getIterationAggregator(String name) { return this.runtimeContext.<T>getIterationAggregator(name); }
java
public <T extends Aggregator<?>> T getIterationAggregator(String name) { return this.runtimeContext.<T>getIterationAggregator(name); }
[ "public", "<", "T", "extends", "Aggregator", "<", "?", ">", ">", "T", "getIterationAggregator", "(", "String", "name", ")", "{", "return", "this", ".", "runtimeContext", ".", "<", "T", ">", "getIterationAggregator", "(", "name", ")", ";", "}" ]
Gets the iteration aggregator registered under the given name. The iteration aggregator is combines all aggregates globally once per superstep and makes them available in the next superstep. @param name The name of the aggregator. @return The aggregator registered under this name, or null, if no aggregator was registe...
[ "Gets", "the", "iteration", "aggregator", "registered", "under", "the", "given", "name", ".", "The", "iteration", "aggregator", "is", "combines", "all", "aggregates", "globally", "once", "per", "superstep", "and", "makes", "them", "available", "in", "the", "next...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexUpdateFunction.java#L94-L96
101,033
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexUpdateFunction.java
VertexUpdateFunction.getPreviousIterationAggregate
public <T extends Value> T getPreviousIterationAggregate(String name) { return this.runtimeContext.<T>getPreviousIterationAggregate(name); }
java
public <T extends Value> T getPreviousIterationAggregate(String name) { return this.runtimeContext.<T>getPreviousIterationAggregate(name); }
[ "public", "<", "T", "extends", "Value", ">", "T", "getPreviousIterationAggregate", "(", "String", "name", ")", "{", "return", "this", ".", "runtimeContext", ".", "<", "T", ">", "getPreviousIterationAggregate", "(", "name", ")", ";", "}" ]
Get the aggregated value that an aggregator computed in the previous iteration. @param name The name of the aggregator. @return The aggregated value of the previous iteration.
[ "Get", "the", "aggregated", "value", "that", "an", "aggregator", "computed", "in", "the", "previous", "iteration", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexUpdateFunction.java#L104-L106
101,034
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/iomanager/BlockChannelWriter.java
BlockChannelWriter.writeBlock
public void writeBlock(MemorySegment segment) throws IOException { // check the error state of this channel checkErroneous(); // write the current buffer and get the next one this.requestsNotReturned.incrementAndGet(); if (this.closed || this.requestQueue.isClosed()) { // if we found ourselves closed a...
java
public void writeBlock(MemorySegment segment) throws IOException { // check the error state of this channel checkErroneous(); // write the current buffer and get the next one this.requestsNotReturned.incrementAndGet(); if (this.closed || this.requestQueue.isClosed()) { // if we found ourselves closed a...
[ "public", "void", "writeBlock", "(", "MemorySegment", "segment", ")", "throws", "IOException", "{", "// check the error state of this channel", "checkErroneous", "(", ")", ";", "// write the current buffer and get the next one", "this", ".", "requestsNotReturned", ".", "incre...
Issues a asynchronous write request to the writer. @param segment The segment to be written. @throws IOException Thrown, when the writer encounters an I/O error. Due to the asynchronous nature of the writer, the exception thrown here may have been caused by an earlier write request.
[ "Issues", "a", "asynchronous", "write", "request", "to", "the", "writer", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/iomanager/BlockChannelWriter.java#L64-L78
101,035
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getProgramSpecificOptions
static Options getProgramSpecificOptions(Options options) { options.addOption(JAR_OPTION); options.addOption(CLASS_OPTION); options.addOption(PARALLELISM_OPTION); options.addOption(ARGS_OPTION); return options; }
java
static Options getProgramSpecificOptions(Options options) { options.addOption(JAR_OPTION); options.addOption(CLASS_OPTION); options.addOption(PARALLELISM_OPTION); options.addOption(ARGS_OPTION); return options; }
[ "static", "Options", "getProgramSpecificOptions", "(", "Options", "options", ")", "{", "options", ".", "addOption", "(", "JAR_OPTION", ")", ";", "options", ".", "addOption", "(", "CLASS_OPTION", ")", ";", "options", ".", "addOption", "(", "PARALLELISM_OPTION", "...
gets the program options with the old flags for jar file and arguments
[ "gets", "the", "program", "options", "with", "the", "old", "flags", "for", "jar", "file", "and", "arguments" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L167-L173
101,036
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getProgramSpecificOptionsWithoutDeprecatedOptions
static Options getProgramSpecificOptionsWithoutDeprecatedOptions(Options options) { options.addOption(CLASS_OPTION); options.addOption(PARALLELISM_OPTION); return options; }
java
static Options getProgramSpecificOptionsWithoutDeprecatedOptions(Options options) { options.addOption(CLASS_OPTION); options.addOption(PARALLELISM_OPTION); return options; }
[ "static", "Options", "getProgramSpecificOptionsWithoutDeprecatedOptions", "(", "Options", "options", ")", "{", "options", ".", "addOption", "(", "CLASS_OPTION", ")", ";", "options", ".", "addOption", "(", "PARALLELISM_OPTION", ")", ";", "return", "options", ";", "}"...
gets the program options without the old flags for jar file and arguments
[ "gets", "the", "program", "options", "without", "the", "old", "flags", "for", "jar", "file", "and", "arguments" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L176-L180
101,037
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getRunOptions
static Options getRunOptions(Options options) { Options o = getProgramSpecificOptions(options); return getJobManagerAddressOption(o); }
java
static Options getRunOptions(Options options) { Options o = getProgramSpecificOptions(options); return getJobManagerAddressOption(o); }
[ "static", "Options", "getRunOptions", "(", "Options", "options", ")", "{", "Options", "o", "=", "getProgramSpecificOptions", "(", "options", ")", ";", "return", "getJobManagerAddressOption", "(", "o", ")", ";", "}" ]
Builds command line options for the run action. @return Command line options for the run action.
[ "Builds", "command", "line", "options", "for", "the", "run", "action", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L187-L190
101,038
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getInfoOptions
static Options getInfoOptions(Options options) { options = getProgramSpecificOptions(options); options = getJobManagerAddressOption(options); options.addOption(DESCR_OPTION); options.addOption(PLAN_OPTION); return options; }
java
static Options getInfoOptions(Options options) { options = getProgramSpecificOptions(options); options = getJobManagerAddressOption(options); options.addOption(DESCR_OPTION); options.addOption(PLAN_OPTION); return options; }
[ "static", "Options", "getInfoOptions", "(", "Options", "options", ")", "{", "options", "=", "getProgramSpecificOptions", "(", "options", ")", ";", "options", "=", "getJobManagerAddressOption", "(", "options", ")", ";", "options", ".", "addOption", "(", "DESCR_OPTI...
Builds command line options for the info action. @return Command line options for the info action.
[ "Builds", "command", "line", "options", "for", "the", "info", "action", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L207-L213
101,039
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getListOptions
static Options getListOptions(Options options) { options.addOption(RUNNING_OPTION); options.addOption(SCHEDULED_OPTION); options = getJobManagerAddressOption(options); return options; }
java
static Options getListOptions(Options options) { options.addOption(RUNNING_OPTION); options.addOption(SCHEDULED_OPTION); options = getJobManagerAddressOption(options); return options; }
[ "static", "Options", "getListOptions", "(", "Options", "options", ")", "{", "options", ".", "addOption", "(", "RUNNING_OPTION", ")", ";", "options", ".", "addOption", "(", "SCHEDULED_OPTION", ")", ";", "options", "=", "getJobManagerAddressOption", "(", "options", ...
Builds command line options for the list action. @return Command line options for the list action.
[ "Builds", "command", "line", "options", "for", "the", "list", "action", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L228-L233
101,040
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getCancelOptions
static Options getCancelOptions(Options options) { options.addOption(ID_OPTION); options = getJobManagerAddressOption(options); return options; }
java
static Options getCancelOptions(Options options) { options.addOption(ID_OPTION); options = getJobManagerAddressOption(options); return options; }
[ "static", "Options", "getCancelOptions", "(", "Options", "options", ")", "{", "options", ".", "addOption", "(", "ID_OPTION", ")", ";", "options", "=", "getJobManagerAddressOption", "(", "options", ")", ";", "return", "options", ";", "}" ]
Builds command line options for the cancel action. @return Command line options for the cancel action.
[ "Builds", "command", "line", "options", "for", "the", "cancel", "action", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L240-L244
101,041
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.cancel
protected int cancel(String[] args) { // Parse command line options CommandLine line; try { line = parser.parse(CANCEL_OPTIONS, args, false); } catch (MissingOptionException e) { System.out.println(e.getMessage()); printHelpForCancel(); return 1; } catch (UnrecognizedOptionException e) { Sy...
java
protected int cancel(String[] args) { // Parse command line options CommandLine line; try { line = parser.parse(CANCEL_OPTIONS, args, false); } catch (MissingOptionException e) { System.out.println(e.getMessage()); printHelpForCancel(); return 1; } catch (UnrecognizedOptionException e) { Sy...
[ "protected", "int", "cancel", "(", "String", "[", "]", "args", ")", "{", "// Parse command line options", "CommandLine", "line", ";", "try", "{", "line", "=", "parser", ".", "parse", "(", "CANCEL_OPTIONS", ",", "args", ",", "false", ")", ";", "}", "catch",...
Executes the cancel action. @param args Command line arguments for the cancel action.
[ "Executes", "the", "cancel", "action", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L587-L653
101,042
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.getGlobalConfiguration
protected Configuration getGlobalConfiguration() { if (!globalConfigurationLoaded) { String location = getConfigurationDirectory(); GlobalConfiguration.loadConfiguration(location); globalConfigurationLoaded = true; } return GlobalConfiguration.getConfiguration(); }
java
protected Configuration getGlobalConfiguration() { if (!globalConfigurationLoaded) { String location = getConfigurationDirectory(); GlobalConfiguration.loadConfiguration(location); globalConfigurationLoaded = true; } return GlobalConfiguration.getConfiguration(); }
[ "protected", "Configuration", "getGlobalConfiguration", "(", ")", "{", "if", "(", "!", "globalConfigurationLoaded", ")", "{", "String", "location", "=", "getConfigurationDirectory", "(", ")", ";", "GlobalConfiguration", ".", "loadConfiguration", "(", "location", ")", ...
Reads configuration settings. The default path can be overridden by setting the ENV variable "STRATOSPHERE_CONF_DIR". @return Stratosphere's global configuration
[ "Reads", "configuration", "settings", ".", "The", "default", "path", "can", "be", "overridden", "by", "setting", "the", "ENV", "variable", "STRATOSPHERE_CONF_DIR", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L803-L810
101,043
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.handleError
private int handleError(Throwable t) { System.out.println("Error: " + t.getMessage()); if (this.verbose) { t.printStackTrace(); } else { System.out.println("For a more detailed error message use the vebose output option '-v'."); } return 1; }
java
private int handleError(Throwable t) { System.out.println("Error: " + t.getMessage()); if (this.verbose) { t.printStackTrace(); } else { System.out.println("For a more detailed error message use the vebose output option '-v'."); } return 1; }
[ "private", "int", "handleError", "(", "Throwable", "t", ")", "{", "System", ".", "out", ".", "println", "(", "\"Error: \"", "+", "t", ".", "getMessage", "(", ")", ")", ";", "if", "(", "this", ".", "verbose", ")", "{", "t", ".", "printStackTrace", "("...
Displays exceptions. @param e the exception to display.
[ "Displays", "exceptions", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L883-L891
101,044
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java
CliFrontend.main
public static void main(String[] args) throws ParseException { CliFrontend cli = new CliFrontend(); int retCode = cli.parseParameters(args); System.exit(retCode); }
java
public static void main(String[] args) throws ParseException { CliFrontend cli = new CliFrontend(); int retCode = cli.parseParameters(args); System.exit(retCode); }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "ParseException", "{", "CliFrontend", "cli", "=", "new", "CliFrontend", "(", ")", ";", "int", "retCode", "=", "cli", ".", "parseParameters", "(", "args", ")", ";", "Syste...
Submits the job based on the arguments
[ "Submits", "the", "job", "based", "on", "the", "arguments" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/CliFrontend.java#L949-L953
101,045
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java
RegularPactTask.registerInputOutput
@Override public void registerInputOutput() { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Start registering input and output.")); } // get the classloader first. the classloader might have been set before by mock environments during testing if (this.userCodeClassLoader == null) { try { th...
java
@Override public void registerInputOutput() { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Start registering input and output.")); } // get the classloader first. the classloader might have been set before by mock environments during testing if (this.userCodeClassLoader == null) { try { th...
[ "@", "Override", "public", "void", "registerInputOutput", "(", ")", "{", "if", "(", "LOG", ".", "isDebugEnabled", "(", ")", ")", "{", "LOG", ".", "debug", "(", "formatLogString", "(", "\"Start registering input and output.\"", ")", ")", ";", "}", "// get the c...
Initialization method. Runs in the execution graph setup phase in the JobManager and as a setup method on the TaskManager.
[ "Initialization", "method", ".", "Runs", "in", "the", "execution", "graph", "setup", "phase", "in", "the", "JobManager", "and", "as", "a", "setup", "method", "on", "the", "TaskManager", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java#L223-L272
101,046
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java
RegularPactTask.reportAndClearAccumulators
protected static void reportAndClearAccumulators(Environment env, Map<String, Accumulator<?, ?>> accumulators, ArrayList<ChainedDriver<?, ?>> chainedTasks) { // We can merge here the accumulators from the stub and the chained // tasks. Type conflicts can occur here if counters with same name but // different ...
java
protected static void reportAndClearAccumulators(Environment env, Map<String, Accumulator<?, ?>> accumulators, ArrayList<ChainedDriver<?, ?>> chainedTasks) { // We can merge here the accumulators from the stub and the chained // tasks. Type conflicts can occur here if counters with same name but // different ...
[ "protected", "static", "void", "reportAndClearAccumulators", "(", "Environment", "env", ",", "Map", "<", "String", ",", "Accumulator", "<", "?", ",", "?", ">", ">", "accumulators", ",", "ArrayList", "<", "ChainedDriver", "<", "?", ",", "?", ">", ">", "chai...
This method is called at the end of a task, receiving the accumulators of the task and the chained tasks. It merges them into a single map of accumulators and sends them to the JobManager. @param chainedTasks Each chained task might have accumulators which will be merged with the accumulators of the stub.
[ "This", "method", "is", "called", "at", "the", "end", "of", "a", "task", "receiving", "the", "accumulators", "of", "the", "task", "and", "the", "chained", "tasks", ".", "It", "merges", "them", "into", "a", "single", "map", "of", "accumulators", "and", "s...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java#L564-L598
101,047
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java
RegularPactTask.initInputsSerializersAndComparators
protected void initInputsSerializersAndComparators(int numInputs) throws Exception { this.inputSerializers = new TypeSerializerFactory<?>[numInputs]; this.inputComparators = this.driver.requiresComparatorOnInput() ? new TypeComparator[numInputs] : null; this.inputIterators = new MutableObjectIterator[numInputs]; ...
java
protected void initInputsSerializersAndComparators(int numInputs) throws Exception { this.inputSerializers = new TypeSerializerFactory<?>[numInputs]; this.inputComparators = this.driver.requiresComparatorOnInput() ? new TypeComparator[numInputs] : null; this.inputIterators = new MutableObjectIterator[numInputs]; ...
[ "protected", "void", "initInputsSerializersAndComparators", "(", "int", "numInputs", ")", "throws", "Exception", "{", "this", ".", "inputSerializers", "=", "new", "TypeSerializerFactory", "<", "?", ">", "[", "numInputs", "]", ";", "this", ".", "inputComparators", ...
Creates all the serializers and comparators.
[ "Creates", "all", "the", "serializers", "and", "comparators", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/pact/runtime/task/RegularPactTask.java#L763-L781
101,048
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionPipeline.java
ExecutionPipeline.setAllocatedResource
public void setAllocatedResource(final AllocatedResource resource) { final Iterator<ExecutionVertex> it = this.vertices.iterator(); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); vertex.setAllocatedResource(resource); } }
java
public void setAllocatedResource(final AllocatedResource resource) { final Iterator<ExecutionVertex> it = this.vertices.iterator(); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); vertex.setAllocatedResource(resource); } }
[ "public", "void", "setAllocatedResource", "(", "final", "AllocatedResource", "resource", ")", "{", "final", "Iterator", "<", "ExecutionVertex", ">", "it", "=", "this", ".", "vertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasNext", "(", ...
Sets the given allocated resource for all vertices included in this pipeline. @param resource the allocated resource to set for all vertices included in this pipeline
[ "Sets", "the", "given", "allocated", "resource", "for", "all", "vertices", "included", "in", "this", "pipeline", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionPipeline.java#L99-L106
101,049
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionPipeline.java
ExecutionPipeline.updateExecutionState
public void updateExecutionState(final ExecutionState executionState) { final Iterator<ExecutionVertex> it = this.vertices.iterator(); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); vertex.updateExecutionState(executionState); } }
java
public void updateExecutionState(final ExecutionState executionState) { final Iterator<ExecutionVertex> it = this.vertices.iterator(); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); vertex.updateExecutionState(executionState); } }
[ "public", "void", "updateExecutionState", "(", "final", "ExecutionState", "executionState", ")", "{", "final", "Iterator", "<", "ExecutionVertex", ">", "it", "=", "this", ".", "vertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ".", "hasNext", "(...
Updates the execution state for all vertices included in this pipeline. @param executionState the execution state to set for all vertices included in this pipeline
[ "Updates", "the", "execution", "state", "for", "all", "vertices", "included", "in", "this", "pipeline", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionPipeline.java#L114-L122
101,050
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java
RuntimeEnvironment.getExecutingThread
public Thread getExecutingThread() { synchronized (this) { if (this.executingThread == null) { if (this.taskName == null) { this.executingThread = new Thread(this); } else { this.executingThread = new Thread(this, getTaskNameWithIndex()); } } return this.executingThread; } }
java
public Thread getExecutingThread() { synchronized (this) { if (this.executingThread == null) { if (this.taskName == null) { this.executingThread = new Thread(this); } else { this.executingThread = new Thread(this, getTaskNameWithIndex()); } } return this.executingThread; } }
[ "public", "Thread", "getExecutingThread", "(", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "executingThread", "==", "null", ")", "{", "if", "(", "this", ".", "taskName", "==", "null", ")", "{", "this", ".", "executingThread",...
Returns the thread which is assigned to execute the user code. @return the thread which is assigned to execute the user code
[ "Returns", "the", "thread", "which", "is", "assigned", "to", "execute", "the", "user", "code", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java#L421-L435
101,051
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java
RuntimeEnvironment.waitForInputChannelsToBeClosed
private void waitForInputChannelsToBeClosed() throws IOException, InterruptedException { // Wait for disconnection of all output gates while (true) { // Make sure, we leave this method with an InterruptedException when the task has been canceled if (this.executionObserver.isCanceled()) { throw new Interr...
java
private void waitForInputChannelsToBeClosed() throws IOException, InterruptedException { // Wait for disconnection of all output gates while (true) { // Make sure, we leave this method with an InterruptedException when the task has been canceled if (this.executionObserver.isCanceled()) { throw new Interr...
[ "private", "void", "waitForInputChannelsToBeClosed", "(", ")", "throws", "IOException", ",", "InterruptedException", "{", "// Wait for disconnection of all output gates", "while", "(", "true", ")", "{", "// Make sure, we leave this method with an InterruptedException when the task ha...
Blocks until all input channels are closed. @throws IOException thrown if an error occurred while closing the input channels @throws InterruptedException thrown if the thread waiting for the channels to be closed is interrupted
[ "Blocks", "until", "all", "input", "channels", "are", "closed", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java#L460-L484
101,052
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java
RuntimeEnvironment.closeInputGates
private void closeInputGates() throws IOException, InterruptedException { for (int i = 0; i < this.inputGates.size(); i++) { final InputGate<? extends IOReadableWritable> eig = this.inputGates.get(i); // Important: close must be called on each input gate exactly once eig.close(); } }
java
private void closeInputGates() throws IOException, InterruptedException { for (int i = 0; i < this.inputGates.size(); i++) { final InputGate<? extends IOReadableWritable> eig = this.inputGates.get(i); // Important: close must be called on each input gate exactly once eig.close(); } }
[ "private", "void", "closeInputGates", "(", ")", "throws", "IOException", ",", "InterruptedException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "inputGates", ".", "size", "(", ")", ";", "i", "++", ")", "{", "final", "InputGate"...
Closes all input gates which are not already closed.
[ "Closes", "all", "input", "gates", "which", "are", "not", "already", "closed", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java#L489-L496
101,053
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java
RuntimeEnvironment.requestAllOutputGatesToClose
private void requestAllOutputGatesToClose() throws IOException, InterruptedException { for (int i = 0; i < this.outputGates.size(); i++) { this.outputGates.get(i).requestClose(); } }
java
private void requestAllOutputGatesToClose() throws IOException, InterruptedException { for (int i = 0; i < this.outputGates.size(); i++) { this.outputGates.get(i).requestClose(); } }
[ "private", "void", "requestAllOutputGatesToClose", "(", ")", "throws", "IOException", ",", "InterruptedException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "outputGates", ".", "size", "(", ")", ";", "i", "++", ")", "{", "this", ...
Requests all output gates to be closed.
[ "Requests", "all", "output", "gates", "to", "be", "closed", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/RuntimeEnvironment.java#L501-L505
101,054
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/ipc/RPC.java
RPC.stopProxy
public static void stopProxy(VersionedProtocol proxy) { if (proxy != null) { ((Invoker) Proxy.getInvocationHandler(proxy)).close(); } }
java
public static void stopProxy(VersionedProtocol proxy) { if (proxy != null) { ((Invoker) Proxy.getInvocationHandler(proxy)).close(); } }
[ "public", "static", "void", "stopProxy", "(", "VersionedProtocol", "proxy", ")", "{", "if", "(", "proxy", "!=", "null", ")", "{", "(", "(", "Invoker", ")", "Proxy", ".", "getInvocationHandler", "(", "proxy", ")", ")", ".", "close", "(", ")", ";", "}", ...
Stop this proxy and release its invoker's resource @param proxy the proxy to be stopped
[ "Stop", "this", "proxy", "and", "release", "its", "invoker", "s", "resource" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/ipc/RPC.java#L344-L348
101,055
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/util/StringUtils.java
StringUtils.arrayToString
public static final String arrayToString(Object array) { if (array == null) { throw new NullPointerException(); } if (array instanceof int[]) { return Arrays.toString((int[]) array); } if (array instanceof long[]) { return Arrays.toString((long[]) array); } if (array instanceof Object[]) { ...
java
public static final String arrayToString(Object array) { if (array == null) { throw new NullPointerException(); } if (array instanceof int[]) { return Arrays.toString((int[]) array); } if (array instanceof long[]) { return Arrays.toString((long[]) array); } if (array instanceof Object[]) { ...
[ "public", "static", "final", "String", "arrayToString", "(", "Object", "array", ")", "{", "if", "(", "array", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "if", "(", "array", "instanceof", "int", "[", "]", ")", "{...
Returns a string representation of the given array. This method takes an Object to allow also all types of primitive type arrays. @param array The array to create a string representation for. @return The string representation of the array. @throws IllegalArgumentException If the given object is no array.
[ "Returns", "a", "string", "representation", "of", "the", "given", "array", ".", "This", "method", "takes", "an", "Object", "to", "allow", "also", "all", "types", "of", "primitive", "type", "arrays", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/util/StringUtils.java#L179-L217
101,056
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/LocalProperties.java
LocalProperties.filterByNodesConstantSet
public LocalProperties filterByNodesConstantSet(OptimizerNode node, int input) { // check, whether the local order is preserved Ordering no = this.ordering; FieldList ngf = this.groupedFields; Set<FieldSet> nuf = this.uniqueFields; if (this.ordering != null) { final FieldList involvedIndexes = this.ord...
java
public LocalProperties filterByNodesConstantSet(OptimizerNode node, int input) { // check, whether the local order is preserved Ordering no = this.ordering; FieldList ngf = this.groupedFields; Set<FieldSet> nuf = this.uniqueFields; if (this.ordering != null) { final FieldList involvedIndexes = this.ord...
[ "public", "LocalProperties", "filterByNodesConstantSet", "(", "OptimizerNode", "node", ",", "int", "input", ")", "{", "// check, whether the local order is preserved", "Ordering", "no", "=", "this", ".", "ordering", ";", "FieldList", "ngf", "=", "this", ".", "groupedF...
Filters these properties by what can be preserved through a user function's constant fields set. @param node The optimizer node that potentially modifies the properties. @param input The input of the node which is relevant. @return True, if the resulting properties are non trivial.
[ "Filters", "these", "properties", "by", "what", "can", "be", "preserved", "through", "a", "user", "function", "s", "constant", "fields", "set", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/LocalProperties.java#L165-L214
101,057
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionSignature.java
ExecutionSignature.createSignature
public static synchronized ExecutionSignature createSignature( final Class<? extends AbstractInvokable> invokableClass, final JobID jobID) { // First, try to load message digest algorithm, if necessary if (messageDigest == null) { try { messageDigest = MessageDigest.getInstance(HASHINGALGORITHM); } ca...
java
public static synchronized ExecutionSignature createSignature( final Class<? extends AbstractInvokable> invokableClass, final JobID jobID) { // First, try to load message digest algorithm, if necessary if (messageDigest == null) { try { messageDigest = MessageDigest.getInstance(HASHINGALGORITHM); } ca...
[ "public", "static", "synchronized", "ExecutionSignature", "createSignature", "(", "final", "Class", "<", "?", "extends", "AbstractInvokable", ">", "invokableClass", ",", "final", "JobID", "jobID", ")", "{", "// First, try to load message digest algorithm, if necessary", "if...
Calculates the execution signature from the given class name and job ID. @param invokableClass the name of the class to contain the task program @param jobID the ID of the job @return the cryptographic signature of this vertex
[ "Calculates", "the", "execution", "signature", "from", "the", "given", "class", "name", "and", "job", "ID", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/executiongraph/ExecutionSignature.java#L78-L114
101,058
stratosphere/stratosphere
stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/io/jdbc/JDBCInputFormat.java
JDBCInputFormat.open
@Override public void open(InputSplit ignored) throws IOException { try { establishConnection(); statement = dbConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); resultSet = statement.executeQuery(query); } catch (SQLException se) { close(); throw new IllegalArgumen...
java
@Override public void open(InputSplit ignored) throws IOException { try { establishConnection(); statement = dbConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); resultSet = statement.executeQuery(query); } catch (SQLException se) { close(); throw new IllegalArgumen...
[ "@", "Override", "public", "void", "open", "(", "InputSplit", "ignored", ")", "throws", "IOException", "{", "try", "{", "establishConnection", "(", ")", ";", "statement", "=", "dbConn", ".", "createStatement", "(", "ResultSet", ".", "TYPE_SCROLL_INSENSITIVE", ",...
Connects to the source database and executes the query. @param ignored @throws IOException
[ "Connects", "to", "the", "source", "database", "and", "executes", "the", "query", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/io/jdbc/JDBCInputFormat.java#L75-L87
101,059
stratosphere/stratosphere
stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/io/jdbc/JDBCInputFormat.java
JDBCInputFormat.nextRecord
@Override public OUT nextRecord(OUT tuple) throws IOException { try { resultSet.next(); if (columnTypes == null) { extractTypes(tuple); } addValue(tuple); return tuple; } catch (SQLException se) { close(); throw new IOException("Couldn't read data - " + se.getMessage(), se); } catch (Nul...
java
@Override public OUT nextRecord(OUT tuple) throws IOException { try { resultSet.next(); if (columnTypes == null) { extractTypes(tuple); } addValue(tuple); return tuple; } catch (SQLException se) { close(); throw new IOException("Couldn't read data - " + se.getMessage(), se); } catch (Nul...
[ "@", "Override", "public", "OUT", "nextRecord", "(", "OUT", "tuple", ")", "throws", "IOException", "{", "try", "{", "resultSet", ".", "next", "(", ")", ";", "if", "(", "columnTypes", "==", "null", ")", "{", "extractTypes", "(", "tuple", ")", ";", "}", ...
Stores the next resultSet row in a tuple @param tuple @return tuple containing next row @throws java.io.IOException
[ "Stores", "the", "next", "resultSet", "row", "in", "a", "tuple" ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/jdbc/src/main/java/eu/stratosphere/api/java/io/jdbc/JDBCInputFormat.java#L151-L167
101,060
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/fs/hdfs/DistributedFileSystem.java
DistributedFileSystem.getHadoopConfiguration
public static org.apache.hadoop.conf.Configuration getHadoopConfiguration() { Configuration retConf = new org.apache.hadoop.conf.Configuration(); // We need to load both core-site.xml and hdfs-site.xml to determine the default fs path and // the hdfs configuration // Try to load HDFS configuration from Hadoop'...
java
public static org.apache.hadoop.conf.Configuration getHadoopConfiguration() { Configuration retConf = new org.apache.hadoop.conf.Configuration(); // We need to load both core-site.xml and hdfs-site.xml to determine the default fs path and // the hdfs configuration // Try to load HDFS configuration from Hadoop'...
[ "public", "static", "org", ".", "apache", ".", "hadoop", ".", "conf", ".", "Configuration", "getHadoopConfiguration", "(", ")", "{", "Configuration", "retConf", "=", "new", "org", ".", "apache", ".", "hadoop", ".", "conf", ".", "Configuration", "(", ")", "...
Returns a new Hadoop Configuration object using the path to the hadoop conf configured in the Stratosphere configuration. This method is public because its being used in the HadoopDataSource.
[ "Returns", "a", "new", "Hadoop", "Configuration", "object", "using", "the", "path", "to", "the", "hadoop", "conf", "configured", "in", "the", "Stratosphere", "configuration", ".", "This", "method", "is", "public", "because", "its", "being", "used", "in", "the"...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/fs/hdfs/DistributedFileSystem.java#L164-L218
101,061
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/iomanager/BlockChannelReader.java
BlockChannelReader.readBlock
public void readBlock(MemorySegment segment) throws IOException { // check the error state of this channel checkErroneous(); // write the current buffer and get the next one // the statements have to be in this order to avoid incrementing the counter // after the channel has been closed this.requestsNot...
java
public void readBlock(MemorySegment segment) throws IOException { // check the error state of this channel checkErroneous(); // write the current buffer and get the next one // the statements have to be in this order to avoid incrementing the counter // after the channel has been closed this.requestsNot...
[ "public", "void", "readBlock", "(", "MemorySegment", "segment", ")", "throws", "IOException", "{", "// check the error state of this channel", "checkErroneous", "(", ")", ";", "// write the current buffer and get the next one", "// the statements have to be in this order to avoid inc...
Issues a read request, which will asynchronously fill the given segment with the next block in the underlying file channel. Once the read request is fulfilled, the segment will be added to this reader's return queue. @param segment The segment to read the block into. @throws IOException Thrown, when the reader encount...
[ "Issues", "a", "read", "request", "which", "will", "asynchronously", "fill", "the", "given", "segment", "with", "the", "next", "block", "in", "the", "underlying", "file", "channel", ".", "Once", "the", "read", "request", "is", "fulfilled", "the", "segment", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/services/iomanager/BlockChannelReader.java#L66-L82
101,062
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/ExecutionEnvironment.java
ExecutionEnvironment.readTextFile
public DataSource<String> readTextFile(String filePath) { Validate.notNull(filePath, "The file path may not be null."); return new DataSource<String>(this, new TextInputFormat(new Path(filePath)), BasicTypeInfo.STRING_TYPE_INFO ); }
java
public DataSource<String> readTextFile(String filePath) { Validate.notNull(filePath, "The file path may not be null."); return new DataSource<String>(this, new TextInputFormat(new Path(filePath)), BasicTypeInfo.STRING_TYPE_INFO ); }
[ "public", "DataSource", "<", "String", ">", "readTextFile", "(", "String", "filePath", ")", "{", "Validate", ".", "notNull", "(", "filePath", ",", "\"The file path may not be null.\"", ")", ";", "return", "new", "DataSource", "<", "String", ">", "(", "this", "...
Creates a DataSet that represents the Strings produced by reading the given file line wise. The file will be read with the system's default character set. @param filePath The path of the file, as a URI (e.g., "file:///some/local/file" or "hdfs://host:port/file/path"). @return A DataSet that represents the data read fr...
[ "Creates", "a", "DataSet", "that", "represents", "the", "Strings", "produced", "by", "reading", "the", "given", "file", "line", "wise", ".", "The", "file", "will", "be", "read", "with", "the", "system", "s", "default", "character", "set", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/ExecutionEnvironment.java#L175-L179
101,063
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/ExecutionEnvironment.java
ExecutionEnvironment.generateSequence
public DataSource<Long> generateSequence(long from, long to) { return fromParallelCollection(new NumberSequenceIterator(from, to), BasicTypeInfo.LONG_TYPE_INFO); }
java
public DataSource<Long> generateSequence(long from, long to) { return fromParallelCollection(new NumberSequenceIterator(from, to), BasicTypeInfo.LONG_TYPE_INFO); }
[ "public", "DataSource", "<", "Long", ">", "generateSequence", "(", "long", "from", ",", "long", "to", ")", "{", "return", "fromParallelCollection", "(", "new", "NumberSequenceIterator", "(", "from", ",", "to", ")", ",", "BasicTypeInfo", ".", "LONG_TYPE_INFO", ...
Creates a new data set that contains a sequence of numbers. The data set will be created in parallel, so there is no guarantee about the oder of the elements. @param from The number to start at (inclusive). @param to The number to stop at (inclusive). @return A DataSet, containing all number in the {@code [from, to]} ...
[ "Creates", "a", "new", "data", "set", "that", "contains", "a", "sequence", "of", "numbers", ".", "The", "data", "set", "will", "be", "created", "in", "parallel", "so", "there", "is", "no", "guarantee", "about", "the", "oder", "of", "the", "elements", "."...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/ExecutionEnvironment.java#L494-L496
101,064
stratosphere/stratosphere
stratosphere-java/src/main/java/eu/stratosphere/api/java/record/io/DelimitedOutputFormat.java
DelimitedOutputFormat.configure
public void configure(Configuration config) { super.configure(config); final String delim = config.getString(RECORD_DELIMITER, "\n"); final String charsetName = config.getString(RECORD_DELIMITER_ENCODING, null); if (delim == null) { throw new IllegalArgumentException("The delimiter in the DelimitedOutp...
java
public void configure(Configuration config) { super.configure(config); final String delim = config.getString(RECORD_DELIMITER, "\n"); final String charsetName = config.getString(RECORD_DELIMITER_ENCODING, null); if (delim == null) { throw new IllegalArgumentException("The delimiter in the DelimitedOutp...
[ "public", "void", "configure", "(", "Configuration", "config", ")", "{", "super", ".", "configure", "(", "config", ")", ";", "final", "String", "delim", "=", "config", ".", "getString", "(", "RECORD_DELIMITER", ",", "\"\\n\"", ")", ";", "final", "String", ...
Calls the super classes to configure themselves and reads the config parameters for the delimiter and the write buffer size. @param config The configuration to read the parameters from. @see eu.stratosphere.api.java.record.io.FileOutputFormat#configure(eu.stratosphere.configuration.Configuration)
[ "Calls", "the", "super", "classes", "to", "configure", "themselves", "and", "reads", "the", "config", "parameters", "for", "the", "delimiter", "and", "the", "write", "buffer", "size", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-java/src/main/java/eu/stratosphere/api/java/record/io/DelimitedOutputFormat.java#L79-L100
101,065
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java
VertexCentricIteration.addBroadcastSetForMessagingFunction
public void addBroadcastSetForMessagingFunction(String name, DataSet<?> data) { this.bcVarsMessaging.add(new Tuple2<String, DataSet<?>>(name, data)); }
java
public void addBroadcastSetForMessagingFunction(String name, DataSet<?> data) { this.bcVarsMessaging.add(new Tuple2<String, DataSet<?>>(name, data)); }
[ "public", "void", "addBroadcastSetForMessagingFunction", "(", "String", "name", ",", "DataSet", "<", "?", ">", "data", ")", "{", "this", ".", "bcVarsMessaging", ".", "add", "(", "new", "Tuple2", "<", "String", ",", "DataSet", "<", "?", ">", ">", "(", "na...
Adds a data set as a broadcast set to the messaging function. @param name The name under which the broadcast data is available in the messaging function. @param data The data set to be broadcasted.
[ "Adds", "a", "data", "set", "as", "a", "broadcast", "set", "to", "the", "messaging", "function", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java#L180-L182
101,066
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java
VertexCentricIteration.addBroadcastSetForUpdateFunction
public void addBroadcastSetForUpdateFunction(String name, DataSet<?> data) { this.bcVarsUpdate.add(new Tuple2<String, DataSet<?>>(name, data)); }
java
public void addBroadcastSetForUpdateFunction(String name, DataSet<?> data) { this.bcVarsUpdate.add(new Tuple2<String, DataSet<?>>(name, data)); }
[ "public", "void", "addBroadcastSetForUpdateFunction", "(", "String", "name", ",", "DataSet", "<", "?", ">", "data", ")", "{", "this", ".", "bcVarsUpdate", ".", "add", "(", "new", "Tuple2", "<", "String", ",", "DataSet", "<", "?", ">", ">", "(", "name", ...
Adds a data set as a broadcast set to the vertex update function. @param name The name under which the broadcast data is available in the vertex update function. @param data The data set to be broadcasted.
[ "Adds", "a", "data", "set", "as", "a", "broadcast", "set", "to", "the", "vertex", "update", "function", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java#L190-L192
101,067
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java
VertexCentricIteration.setInput
@Override public void setInput(DataSet<Tuple2<VertexKey, VertexValue>> inputData) { // sanity check that we really have two tuples TypeInformation<Tuple2<VertexKey, VertexValue>> inputType = inputData.getType(); Validate.isTrue(inputType.isTupleType() && inputType.getArity() == 2, "The input data set (the initia...
java
@Override public void setInput(DataSet<Tuple2<VertexKey, VertexValue>> inputData) { // sanity check that we really have two tuples TypeInformation<Tuple2<VertexKey, VertexValue>> inputType = inputData.getType(); Validate.isTrue(inputType.isTupleType() && inputType.getArity() == 2, "The input data set (the initia...
[ "@", "Override", "public", "void", "setInput", "(", "DataSet", "<", "Tuple2", "<", "VertexKey", ",", "VertexValue", ">", ">", "inputData", ")", "{", "// sanity check that we really have two tuples", "TypeInformation", "<", "Tuple2", "<", "VertexKey", ",", "VertexVal...
Sets the input data set for this operator. In the case of this operator this input data set represents the set of vertices with their initial state. @param inputData The input data set, which in the case of this operator represents the set of vertices with their initial state. @see eu.stratosphere.api.java.operators....
[ "Sets", "the", "input", "data", "set", "for", "this", "operator", ".", "In", "the", "case", "of", "this", "operator", "this", "input", "data", "set", "represents", "the", "set", "of", "vertices", "with", "their", "initial", "state", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java#L244-L260
101,068
stratosphere/stratosphere
stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java
VertexCentricIteration.withPlainEdges
public static final <VertexKey extends Comparable<VertexKey>, VertexValue, Message> VertexCentricIteration<VertexKey, VertexValue, Message, ?> withPlainEdges( DataSet<Tuple2<VertexKey, VertexKey>> edgesWithoutValue, VertexUpdateFunction<VertexKey, VertexValue, Message> vertexUpdateFunction, Messagin...
java
public static final <VertexKey extends Comparable<VertexKey>, VertexValue, Message> VertexCentricIteration<VertexKey, VertexValue, Message, ?> withPlainEdges( DataSet<Tuple2<VertexKey, VertexKey>> edgesWithoutValue, VertexUpdateFunction<VertexKey, VertexValue, Message> vertexUpdateFunction, Messagin...
[ "public", "static", "final", "<", "VertexKey", "extends", "Comparable", "<", "VertexKey", ">", ",", "VertexValue", ",", "Message", ">", "VertexCentricIteration", "<", "VertexKey", ",", "VertexValue", ",", "Message", ",", "?", ">", "withPlainEdges", "(", "DataSet...
Creates a new vertex-centric iteration operator for graphs where the edges are not associated with a value. @param edgesWithoutValue The data set containing edges. Edges are represented as 2-tuples: (source-id, target-id) @param vertexUpdateFunction The function that updates the state of the vertices from the incoming...
[ "Creates", "a", "new", "vertex", "-", "centric", "iteration", "operator", "for", "graphs", "where", "the", "edges", "are", "not", "associated", "with", "a", "value", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/VertexCentricIteration.java#L346-L358
101,069
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java
AccumulatorManager.processIncomingAccumulators
public void processIncomingAccumulators(JobID jobID, Map<String, Accumulator<?, ?>> newAccumulators) { synchronized (this.jobAccumulators) { // System.out.println("JobManager: Received accumulator result for job " // + jobID.toString()); // System.out.println(AccumulatorHelper.getAccumulatorsFormated(n...
java
public void processIncomingAccumulators(JobID jobID, Map<String, Accumulator<?, ?>> newAccumulators) { synchronized (this.jobAccumulators) { // System.out.println("JobManager: Received accumulator result for job " // + jobID.toString()); // System.out.println(AccumulatorHelper.getAccumulatorsFormated(n...
[ "public", "void", "processIncomingAccumulators", "(", "JobID", "jobID", ",", "Map", "<", "String", ",", "Accumulator", "<", "?", ",", "?", ">", ">", "newAccumulators", ")", "{", "synchronized", "(", "this", ".", "jobAccumulators", ")", "{", "//\t\t\tSystem.out...
Merges the new accumulators with the existing accumulators collected for the job.
[ "Merges", "the", "new", "accumulators", "with", "the", "existing", "accumulators", "collected", "for", "the", "job", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java#L49-L65
101,070
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java
AccumulatorManager.getJobAccumulators
public Map<String, Accumulator<?, ?>> getJobAccumulators(JobID jobID) { JobAccumulators jobAccumulators = this.jobAccumulators.get(jobID); if (jobAccumulators == null) { return new HashMap<String, Accumulator<?, ?>>(); } return jobAccumulators.getAccumulators(); }
java
public Map<String, Accumulator<?, ?>> getJobAccumulators(JobID jobID) { JobAccumulators jobAccumulators = this.jobAccumulators.get(jobID); if (jobAccumulators == null) { return new HashMap<String, Accumulator<?, ?>>(); } return jobAccumulators.getAccumulators(); }
[ "public", "Map", "<", "String", ",", "Accumulator", "<", "?", ",", "?", ">", ">", "getJobAccumulators", "(", "JobID", "jobID", ")", "{", "JobAccumulators", "jobAccumulators", "=", "this", ".", "jobAccumulators", ".", "get", "(", "jobID", ")", ";", "if", ...
Returns all collected accumulators for the job. For efficiency the internal accumulator is returned, so please use it read-only.
[ "Returns", "all", "collected", "accumulators", "for", "the", "job", ".", "For", "efficiency", "the", "internal", "accumulator", "is", "returned", "so", "please", "use", "it", "read", "-", "only", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java#L71-L77
101,071
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java
AccumulatorManager.cleanup
private void cleanup(JobID jobId) { if (!lru.contains(jobId)) { lru.addFirst(jobId); } if (lru.size() > this.maxEntries) { JobID toRemove = lru.removeLast(); this.jobAccumulators.remove(toRemove); } }
java
private void cleanup(JobID jobId) { if (!lru.contains(jobId)) { lru.addFirst(jobId); } if (lru.size() > this.maxEntries) { JobID toRemove = lru.removeLast(); this.jobAccumulators.remove(toRemove); } }
[ "private", "void", "cleanup", "(", "JobID", "jobId", ")", "{", "if", "(", "!", "lru", ".", "contains", "(", "jobId", ")", ")", "{", "lru", ".", "addFirst", "(", "jobId", ")", ";", "}", "if", "(", "lru", ".", "size", "(", ")", ">", "this", ".", ...
Cleanup data for the oldest jobs if the maximum number of entries is reached.
[ "Cleanup", "data", "for", "the", "oldest", "jobs", "if", "the", "maximum", "number", "of", "entries", "is", "reached", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/accumulators/AccumulatorManager.java#L83-L91
101,072
stratosphere/stratosphere
stratosphere-clients/src/main/java/eu/stratosphere/client/WebFrontend.java
WebFrontend.main
public static void main(String[] args) { try { // get the config directory first String configDir = null; if (args.length >= 2 && args[0].equals("-configDir")) { configDir = args[1]; } if (configDir == null) { System.err .println("Error: Configuration directory must be specified.\nWebFro...
java
public static void main(String[] args) { try { // get the config directory first String configDir = null; if (args.length >= 2 && args[0].equals("-configDir")) { configDir = args[1]; } if (configDir == null) { System.err .println("Error: Configuration directory must be specified.\nWebFro...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "try", "{", "// get the config directory first", "String", "configDir", "=", "null", ";", "if", "(", "args", ".", "length", ">=", "2", "&&", "args", "[", "0", "]", ".", "equ...
Main method. accepts a single parameter, which is the config directory. @param args The parameters to the entry point.
[ "Main", "method", ".", "accepts", "a", "single", "parameter", "which", "is", "the", "config", "directory", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-clients/src/main/java/eu/stratosphere/client/WebFrontend.java#L41-L76
101,073
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java
GlobalConfiguration.getLongInternal
private long getLongInternal(final String key, final long defaultValue) { long retVal = defaultValue; try { synchronized (this.confData) { if (this.confData.containsKey(key)) { retVal = Long.parseLong(this.confData.get(key)); } } } catch (NumberFormatException e) { if (LOG.isDebugEnabled...
java
private long getLongInternal(final String key, final long defaultValue) { long retVal = defaultValue; try { synchronized (this.confData) { if (this.confData.containsKey(key)) { retVal = Long.parseLong(this.confData.get(key)); } } } catch (NumberFormatException e) { if (LOG.isDebugEnabled...
[ "private", "long", "getLongInternal", "(", "final", "String", "key", ",", "final", "long", "defaultValue", ")", "{", "long", "retVal", "=", "defaultValue", ";", "try", "{", "synchronized", "(", "this", ".", "confData", ")", "{", "if", "(", "this", ".", "...
Returns the value associated with the given key as a long integer. @param key the key pointing to the associated value @param defaultValue the default value which is returned in case there is no value associated with the given key @return the (default) value associated with the given key
[ "Returns", "the", "value", "associated", "with", "the", "given", "key", "as", "a", "long", "integer", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java#L147-L166
101,074
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java
GlobalConfiguration.getConfigurationInternal
private Configuration getConfigurationInternal(final String[] keys) { Configuration conf = new Configuration(); synchronized (this.confData) { final Iterator<String> it = this.confData.keySet().iterator(); while (it.hasNext()) { final String key = it.next(); boolean found = false; if (keys !=...
java
private Configuration getConfigurationInternal(final String[] keys) { Configuration conf = new Configuration(); synchronized (this.confData) { final Iterator<String> it = this.confData.keySet().iterator(); while (it.hasNext()) { final String key = it.next(); boolean found = false; if (keys !=...
[ "private", "Configuration", "getConfigurationInternal", "(", "final", "String", "[", "]", "keys", ")", "{", "Configuration", "conf", "=", "new", "Configuration", "(", ")", ";", "synchronized", "(", "this", ".", "confData", ")", "{", "final", "Iterator", "<", ...
Internal non-static method to return configuration. @param keys array of keys specifying the subset of pairs to copy. @return the {@link Configuration} object including the key/value pairs
[ "Internal", "non", "-", "static", "method", "to", "return", "configuration", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java#L579-L609
101,075
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java
GlobalConfiguration.includeConfigurationInternal
private void includeConfigurationInternal(final Configuration conf) { if (conf == null) { LOG.error("Given configuration object is null, ignoring it..."); return; } synchronized (this.confData) { final Iterator<String> it = conf.keySet().iterator(); while (it.hasNext()) { final String key = i...
java
private void includeConfigurationInternal(final Configuration conf) { if (conf == null) { LOG.error("Given configuration object is null, ignoring it..."); return; } synchronized (this.confData) { final Iterator<String> it = conf.keySet().iterator(); while (it.hasNext()) { final String key = i...
[ "private", "void", "includeConfigurationInternal", "(", "final", "Configuration", "conf", ")", "{", "if", "(", "conf", "==", "null", ")", "{", "LOG", ".", "error", "(", "\"Given configuration object is null, ignoring it...\"", ")", ";", "return", ";", "}", "synchr...
Internal non-static method to include configuration. @param conf the {@link Configuration} object to merge into the global configuration
[ "Internal", "non", "-", "static", "method", "to", "include", "configuration", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/configuration/GlobalConfiguration.java#L631-L648
101,076
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/base/GenericDataSinkBase.java
GenericDataSinkBase.setRangePartitioned
public void setRangePartitioned(Ordering partitionOrdering, DataDistribution distribution) { if (partitionOrdering.getNumberOfFields() != distribution.getNumberOfFields()) { throw new IllegalArgumentException("The number of keys in the distribution must match number of ordered fields."); } // TODO: check co...
java
public void setRangePartitioned(Ordering partitionOrdering, DataDistribution distribution) { if (partitionOrdering.getNumberOfFields() != distribution.getNumberOfFields()) { throw new IllegalArgumentException("The number of keys in the distribution must match number of ordered fields."); } // TODO: check co...
[ "public", "void", "setRangePartitioned", "(", "Ordering", "partitionOrdering", ",", "DataDistribution", "distribution", ")", "{", "if", "(", "partitionOrdering", ".", "getNumberOfFields", "(", ")", "!=", "distribution", ".", "getNumberOfFields", "(", ")", ")", "{", ...
Sets the sink to partition the records into ranges over the given ordering. The bucket boundaries are determined using the given data distribution. @param partitionOrdering The record ordering over which to partition in ranges. @param distribution The distribution to use for the range partitioning.
[ "Sets", "the", "sink", "to", "partition", "the", "records", "into", "ranges", "over", "the", "given", "ordering", ".", "The", "bucket", "boundaries", "are", "determined", "using", "the", "given", "data", "distribution", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/api/common/operators/base/GenericDataSinkBase.java#L221-L231
101,077
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java
InstanceRequestMap.setMinimumNumberOfInstances
public void setMinimumNumberOfInstances(final InstanceType instanceType, final int number) { this.minimumMap.put(instanceType, Integer.valueOf(number)); }
java
public void setMinimumNumberOfInstances(final InstanceType instanceType, final int number) { this.minimumMap.put(instanceType, Integer.valueOf(number)); }
[ "public", "void", "setMinimumNumberOfInstances", "(", "final", "InstanceType", "instanceType", ",", "final", "int", "number", ")", "{", "this", ".", "minimumMap", ".", "put", "(", "instanceType", ",", "Integer", ".", "valueOf", "(", "number", ")", ")", ";", ...
Sets the minimum number of instances to be requested from the given instance type. @param instanceType the type of instance to request @param number the minimum number of instances to request
[ "Sets", "the", "minimum", "number", "of", "instances", "to", "be", "requested", "from", "the", "given", "instance", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java#L53-L56
101,078
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java
InstanceRequestMap.setMaximumNumberOfInstances
public void setMaximumNumberOfInstances(final InstanceType instanceType, final int number) { this.maximumMap.put(instanceType, Integer.valueOf(number)); }
java
public void setMaximumNumberOfInstances(final InstanceType instanceType, final int number) { this.maximumMap.put(instanceType, Integer.valueOf(number)); }
[ "public", "void", "setMaximumNumberOfInstances", "(", "final", "InstanceType", "instanceType", ",", "final", "int", "number", ")", "{", "this", ".", "maximumMap", ".", "put", "(", "instanceType", ",", "Integer", ".", "valueOf", "(", "number", ")", ")", ";", ...
Sets the maximum number of instances to be requested from the given instance type. @param instanceType the type of instance to request @param number the maximum number of instances to request
[ "Sets", "the", "maximum", "number", "of", "instances", "to", "be", "requested", "from", "the", "given", "instance", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java#L66-L69
101,079
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java
InstanceRequestMap.setNumberOfInstances
public void setNumberOfInstances(final InstanceType instanceType, final int number) { setMinimumNumberOfInstances(instanceType, number); setMaximumNumberOfInstances(instanceType, number); }
java
public void setNumberOfInstances(final InstanceType instanceType, final int number) { setMinimumNumberOfInstances(instanceType, number); setMaximumNumberOfInstances(instanceType, number); }
[ "public", "void", "setNumberOfInstances", "(", "final", "InstanceType", "instanceType", ",", "final", "int", "number", ")", "{", "setMinimumNumberOfInstances", "(", "instanceType", ",", "number", ")", ";", "setMaximumNumberOfInstances", "(", "instanceType", ",", "numb...
Sets both the minimum and the maximum number of instances to be requested from the given instance type. @param instanceType the type of instance to request @param number the minimum and the maximum number of instances to request
[ "Sets", "both", "the", "minimum", "and", "the", "maximum", "number", "of", "instances", "to", "be", "requested", "from", "the", "given", "instance", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java#L79-L83
101,080
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java
InstanceRequestMap.getMinimumNumberOfInstances
public int getMinimumNumberOfInstances(final InstanceType instanceType) { final Integer val = this.minimumMap.get(instanceType); if (val != null) { return val.intValue(); } return 0; }
java
public int getMinimumNumberOfInstances(final InstanceType instanceType) { final Integer val = this.minimumMap.get(instanceType); if (val != null) { return val.intValue(); } return 0; }
[ "public", "int", "getMinimumNumberOfInstances", "(", "final", "InstanceType", "instanceType", ")", "{", "final", "Integer", "val", "=", "this", ".", "minimumMap", ".", "get", "(", "instanceType", ")", ";", "if", "(", "val", "!=", "null", ")", "{", "return", ...
Returns the minimum number of instances to be requested from the given instance type. @param instanceType the type of instance to request @return the minimum number of instances to be requested from the given instance type
[ "Returns", "the", "minimum", "number", "of", "instances", "to", "be", "requested", "from", "the", "given", "instance", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java#L92-L100
101,081
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java
InstanceRequestMap.getMaximumNumberOfInstances
public int getMaximumNumberOfInstances(final InstanceType instanceType) { final Integer val = this.maximumMap.get(instanceType); if (val != null) { return val.intValue(); } return 0; }
java
public int getMaximumNumberOfInstances(final InstanceType instanceType) { final Integer val = this.maximumMap.get(instanceType); if (val != null) { return val.intValue(); } return 0; }
[ "public", "int", "getMaximumNumberOfInstances", "(", "final", "InstanceType", "instanceType", ")", "{", "final", "Integer", "val", "=", "this", ".", "maximumMap", ".", "get", "(", "instanceType", ")", ";", "if", "(", "val", "!=", "null", ")", "{", "return", ...
Returns the maximum number of instances to be requested from the given instance type. @param instanceType the type of instance to request @return the maximum number of instances to be requested from the given instance type
[ "Returns", "the", "maximum", "number", "of", "instances", "to", "be", "requested", "from", "the", "given", "instance", "type", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/instance/InstanceRequestMap.java#L109-L117
101,082
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedGlobalProperties.java
RequestedGlobalProperties.filterByNodesConstantSet
public RequestedGlobalProperties 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 null; } } } else if (this.partitioningFi...
java
public RequestedGlobalProperties 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 null; } } } else if (this.partitioningFi...
[ "public", "RequestedGlobalProperties", "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 by the given node when propagated down to the given input. @param node The node representing the contract. @param input The index of the input. @return True, if any non-default value is preserved, false otherwise.
[ "Filters", "these", "properties", "by", "what", "can", "be", "preserved", "by", "the", "given", "node", "when", "propagated", "down", "to", "the", "given", "input", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedGlobalProperties.java#L166-L187
101,083
stratosphere/stratosphere
stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedGlobalProperties.java
RequestedGlobalProperties.parameterizeChannel
public void parameterizeChannel(Channel channel, boolean globalDopChange, boolean localDopChange) { // if we request nothing, then we need no special strategy. forward, if the number of instances remains // the same, randomly repartition otherwise if (isTrivial()) { channel.setShipStrategy(globalDopChange ? Sh...
java
public void parameterizeChannel(Channel channel, boolean globalDopChange, boolean localDopChange) { // if we request nothing, then we need no special strategy. forward, if the number of instances remains // the same, randomly repartition otherwise if (isTrivial()) { channel.setShipStrategy(globalDopChange ? Sh...
[ "public", "void", "parameterizeChannel", "(", "Channel", "channel", ",", "boolean", "globalDopChange", ",", "boolean", "localDopChange", ")", "{", "// if we request nothing, then we need no special strategy. forward, if the number of instances remains", "// the same, randomly repartiti...
Parameterizes the ship strategy fields of a channel such that the channel produces the desired global properties. @param channel The channel to parameterize. @param globalDopChange @param localDopChange
[ "Parameterizes", "the", "ship", "strategy", "fields", "of", "a", "channel", "such", "that", "the", "channel", "produces", "the", "desired", "global", "properties", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-compiler/src/main/java/eu/stratosphere/compiler/dataproperties/RequestedGlobalProperties.java#L223-L268
101,084
stratosphere/stratosphere
stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/common/HBaseUtil.java
HBaseUtil.convertScanToString
static String convertScanToString(Scan scan) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(out); scan.write(dos); return Base64.encodeBytes(out.toByteArray()); }
java
static String convertScanToString(Scan scan) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(out); scan.write(dos); return Base64.encodeBytes(out.toByteArray()); }
[ "static", "String", "convertScanToString", "(", "Scan", "scan", ")", "throws", "IOException", "{", "ByteArrayOutputStream", "out", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "DataOutputStream", "dos", "=", "new", "DataOutputStream", "(", "out", ")", ";", ...
Writes the given scan into a Base64 encoded string. @param scan The scan to write out. @return The scan saved in a Base64 encoded string. @throws IOException When writing the scan fails.
[ "Writes", "the", "given", "scan", "into", "a", "Base64", "encoded", "string", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/common/HBaseUtil.java#L39-L44
101,085
stratosphere/stratosphere
stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/common/HBaseUtil.java
HBaseUtil.convertStringToScan
public static Scan convertStringToScan(String base64) throws IOException { ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(base64)); DataInputStream dis = new DataInputStream(bis); Scan scan = new Scan(); scan.readFields(dis); return scan; }
java
public static Scan convertStringToScan(String base64) throws IOException { ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(base64)); DataInputStream dis = new DataInputStream(bis); Scan scan = new Scan(); scan.readFields(dis); return scan; }
[ "public", "static", "Scan", "convertStringToScan", "(", "String", "base64", ")", "throws", "IOException", "{", "ByteArrayInputStream", "bis", "=", "new", "ByteArrayInputStream", "(", "Base64", ".", "decode", "(", "base64", ")", ")", ";", "DataInputStream", "dis", ...
Converts the given Base64 string back into a Scan instance. @param base64 The scan details. @return The newly created Scan instance. @throws IOException When reading the scan instance fails.
[ "Converts", "the", "given", "Base64", "string", "back", "into", "a", "Scan", "instance", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-addons/hbase/src/main/java/eu/stratosphere/addons/hbase/common/HBaseUtil.java#L55-L61
101,086
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java
LibraryCacheManager.incrementReferenceCounter
private int incrementReferenceCounter(final JobID jobID) { while (true) { AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { ai = new AtomicInteger(1); if (this.libraryReferenceCounter.putIfAbsent(jobID, ai) == null) { return 1; } // We had a race, try again ...
java
private int incrementReferenceCounter(final JobID jobID) { while (true) { AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { ai = new AtomicInteger(1); if (this.libraryReferenceCounter.putIfAbsent(jobID, ai) == null) { return 1; } // We had a race, try again ...
[ "private", "int", "incrementReferenceCounter", "(", "final", "JobID", "jobID", ")", "{", "while", "(", "true", ")", "{", "AtomicInteger", "ai", "=", "this", ".", "libraryReferenceCounter", ".", "get", "(", "jobID", ")", ";", "if", "(", "ai", "==", "null", ...
Increments the reference counter for the library manager entry with the given job ID. @param jobID the job ID identifying the library manager entry @return the increased reference counter
[ "Increments", "the", "reference", "counter", "for", "the", "library", "manager", "entry", "with", "the", "given", "job", "ID", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java#L168-L185
101,087
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java
LibraryCacheManager.decrementReferenceCounter
private int decrementReferenceCounter(final JobID jobID) { final AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { throw new IllegalStateException("Cannot find reference counter entry for job " + jobID); } int retVal = ai.decrementAndGet(); if (retVal == 0) { this.library...
java
private int decrementReferenceCounter(final JobID jobID) { final AtomicInteger ai = this.libraryReferenceCounter.get(jobID); if (ai == null) { throw new IllegalStateException("Cannot find reference counter entry for job " + jobID); } int retVal = ai.decrementAndGet(); if (retVal == 0) { this.library...
[ "private", "int", "decrementReferenceCounter", "(", "final", "JobID", "jobID", ")", "{", "final", "AtomicInteger", "ai", "=", "this", ".", "libraryReferenceCounter", ".", "get", "(", "jobID", ")", ";", "if", "(", "ai", "==", "null", ")", "{", "throw", "new...
Decrements the reference counter for the library manager entry with the given job ID. @param jobID the job ID identifying the library manager entry @return the decremented reference counter
[ "Decrements", "the", "reference", "counter", "for", "the", "library", "manager", "entry", "with", "the", "given", "job", "ID", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java#L194-L209
101,088
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java
LibraryCacheManager.register
public static void register(final JobID id, final String[] requiredJarFiles) throws IOException { final LibraryCacheManager lib = get(); lib.registerInternal(id, requiredJarFiles); }
java
public static void register(final JobID id, final String[] requiredJarFiles) throws IOException { final LibraryCacheManager lib = get(); lib.registerInternal(id, requiredJarFiles); }
[ "public", "static", "void", "register", "(", "final", "JobID", "id", ",", "final", "String", "[", "]", "requiredJarFiles", ")", "throws", "IOException", "{", "final", "LibraryCacheManager", "lib", "=", "get", "(", ")", ";", "lib", ".", "registerInternal", "(...
Registers a job ID with a set of library paths that are required to run the job. For every registered job the library cache manager creates a class loader that is used to instantiate the job's environment later on. @param id the ID of the job to be registered. @param clientPaths the client path's of the required libra...
[ "Registers", "a", "job", "ID", "with", "a", "set", "of", "library", "paths", "that", "are", "required", "to", "run", "the", "job", ".", "For", "every", "registered", "job", "the", "library", "cache", "manager", "creates", "a", "class", "loader", "that", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java#L274-L278
101,089
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java
LibraryCacheManager.registerInternal
private void registerInternal(final JobID id, final String[] requiredJarFiles) throws IOException { // Use spin lock here while (this.lockMap.putIfAbsent(id, LOCK_OBJECT) != null); try { if (incrementReferenceCounter(id) > 1) { return; } // Check if library manager entry for this id already exists...
java
private void registerInternal(final JobID id, final String[] requiredJarFiles) throws IOException { // Use spin lock here while (this.lockMap.putIfAbsent(id, LOCK_OBJECT) != null); try { if (incrementReferenceCounter(id) > 1) { return; } // Check if library manager entry for this id already exists...
[ "private", "void", "registerInternal", "(", "final", "JobID", "id", ",", "final", "String", "[", "]", "requiredJarFiles", ")", "throws", "IOException", "{", "// Use spin lock here", "while", "(", "this", ".", "lockMap", ".", "putIfAbsent", "(", "id", ",", "LOC...
Registers a job ID with a set of library paths that are required to run the job. For every registered job the library cache manager creates a class loader that is used to instantiate the vertex's environment later on. @param id the ID of the job to be registered. @param clientPaths the client path's of the required li...
[ "Registers", "a", "job", "ID", "with", "a", "set", "of", "library", "paths", "that", "are", "required", "to", "run", "the", "job", ".", "For", "every", "registered", "job", "the", "library", "cache", "manager", "creates", "a", "class", "loader", "that", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/execution/librarycache/LibraryCacheManager.java#L292-L335
101,090
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.getEventsForJob
public void getEventsForJob(final JobID jobID, final List<AbstractEvent> eventList, final boolean includeManagementEvents) { synchronized (this.collectedEvents) { List<AbstractEvent> eventsForJob = this.collectedEvents.get(jobID); if (eventsForJob != null) { final Iterator<AbstractEvent> it = eventsFo...
java
public void getEventsForJob(final JobID jobID, final List<AbstractEvent> eventList, final boolean includeManagementEvents) { synchronized (this.collectedEvents) { List<AbstractEvent> eventsForJob = this.collectedEvents.get(jobID); if (eventsForJob != null) { final Iterator<AbstractEvent> it = eventsFo...
[ "public", "void", "getEventsForJob", "(", "final", "JobID", "jobID", ",", "final", "List", "<", "AbstractEvent", ">", "eventList", ",", "final", "boolean", "includeManagementEvents", ")", "{", "synchronized", "(", "this", ".", "collectedEvents", ")", "{", "List"...
Retrieves and adds the collected events for the job with the given job ID to the provided list. @param jobID the ID of the job to retrieve the events for @param eventList the list to which the events shall be added @param includeManagementEvents <code>true</code> if {@link ManagementEvent} objects shall be added to th...
[ "Retrieves", "and", "adds", "the", "collected", "events", "for", "the", "job", "with", "the", "given", "job", "ID", "to", "the", "provided", "list", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L348-L367
101,091
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.addEvent
private void addEvent(JobID jobID, AbstractEvent event) { synchronized (this.collectedEvents) { List<AbstractEvent> eventList = this.collectedEvents.get(jobID); if (eventList == null) { eventList = new ArrayList<AbstractEvent>(); this.collectedEvents.put(jobID, eventList); } eventList.add(event...
java
private void addEvent(JobID jobID, AbstractEvent event) { synchronized (this.collectedEvents) { List<AbstractEvent> eventList = this.collectedEvents.get(jobID); if (eventList == null) { eventList = new ArrayList<AbstractEvent>(); this.collectedEvents.put(jobID, eventList); } eventList.add(event...
[ "private", "void", "addEvent", "(", "JobID", "jobID", ",", "AbstractEvent", "event", ")", "{", "synchronized", "(", "this", ".", "collectedEvents", ")", "{", "List", "<", "AbstractEvent", ">", "eventList", "=", "this", ".", "collectedEvents", ".", "get", "("...
Adds an event to the job's event list. @param jobID the ID of the job the event belongs to @param event the event to be added to the job's event list
[ "Adds", "an", "event", "to", "the", "job", "s", "event", "list", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L407-L419
101,092
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.registerJob
public void registerJob(final ExecutionGraph executionGraph, final boolean profilingAvailable, final long submissionTimestamp) { final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(executionGraph, true); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); // Register the listen...
java
public void registerJob(final ExecutionGraph executionGraph, final boolean profilingAvailable, final long submissionTimestamp) { final Iterator<ExecutionVertex> it = new ExecutionGraphIterator(executionGraph, true); while (it.hasNext()) { final ExecutionVertex vertex = it.next(); // Register the listen...
[ "public", "void", "registerJob", "(", "final", "ExecutionGraph", "executionGraph", ",", "final", "boolean", "profilingAvailable", ",", "final", "long", "submissionTimestamp", ")", "{", "final", "Iterator", "<", "ExecutionVertex", ">", "it", "=", "new", "ExecutionGra...
Registers a job in form of its execution graph representation with the job progress collector. The collector will subscribe to state changes of the individual subtasks. A separate deregistration is not necessary since the job progress collector periodically discards outdated progress information. @param executionGraph...
[ "Registers", "a", "job", "in", "form", "of", "its", "execution", "graph", "representation", "with", "the", "job", "progress", "collector", ".", "The", "collector", "will", "subscribe", "to", "state", "changes", "of", "the", "individual", "subtasks", ".", "A", ...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L462-L482
101,093
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.run
@Override public void run() { final long currentTime = System.currentTimeMillis(); synchronized (this.collectedEvents) { final Iterator<JobID> it = this.collectedEvents.keySet().iterator(); while (it.hasNext()) { final JobID jobID = it.next(); final List<AbstractEvent> eventList = this.collectedE...
java
@Override public void run() { final long currentTime = System.currentTimeMillis(); synchronized (this.collectedEvents) { final Iterator<JobID> it = this.collectedEvents.keySet().iterator(); while (it.hasNext()) { final JobID jobID = it.next(); final List<AbstractEvent> eventList = this.collectedE...
[ "@", "Override", "public", "void", "run", "(", ")", "{", "final", "long", "currentTime", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "synchronized", "(", "this", ".", "collectedEvents", ")", "{", "final", "Iterator", "<", "JobID", ">", "it", ...
This method will periodically be called to clean up expired collected events.
[ "This", "method", "will", "periodically", "be", "called", "to", "clean", "up", "expired", "collected", "events", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L488-L550
101,094
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.updateManagementGraph
private void updateManagementGraph(final JobID jobID, final VertexAssignmentEvent vertexAssignmentEvent) { synchronized (this.recentManagementGraphs) { final ManagementGraph managementGraph = this.recentManagementGraphs.get(jobID); if (managementGraph == null) { return; } final ManagementVertex vert...
java
private void updateManagementGraph(final JobID jobID, final VertexAssignmentEvent vertexAssignmentEvent) { synchronized (this.recentManagementGraphs) { final ManagementGraph managementGraph = this.recentManagementGraphs.get(jobID); if (managementGraph == null) { return; } final ManagementVertex vert...
[ "private", "void", "updateManagementGraph", "(", "final", "JobID", "jobID", ",", "final", "VertexAssignmentEvent", "vertexAssignmentEvent", ")", "{", "synchronized", "(", "this", ".", "recentManagementGraphs", ")", "{", "final", "ManagementGraph", "managementGraph", "="...
Applies changes in the vertex assignment to the stored management graph. @param jobID the ID of the job whose management graph shall be updated @param vertexAssignmentEvent the event describing the changes in the vertex assignment
[ "Applies", "changes", "in", "the", "vertex", "assignment", "to", "the", "stored", "management", "graph", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L598-L614
101,095
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java
EventCollector.updateManagementGraph
private void updateManagementGraph(final JobID jobID, final ExecutionStateChangeEvent executionStateChangeEvent, String optionalMessage) { synchronized (this.recentManagementGraphs) { final ManagementGraph managementGraph = this.recentManagementGraphs.get(jobID); if (managementGraph == null) { return; ...
java
private void updateManagementGraph(final JobID jobID, final ExecutionStateChangeEvent executionStateChangeEvent, String optionalMessage) { synchronized (this.recentManagementGraphs) { final ManagementGraph managementGraph = this.recentManagementGraphs.get(jobID); if (managementGraph == null) { return; ...
[ "private", "void", "updateManagementGraph", "(", "final", "JobID", "jobID", ",", "final", "ExecutionStateChangeEvent", "executionStateChangeEvent", ",", "String", "optionalMessage", ")", "{", "synchronized", "(", "this", ".", "recentManagementGraphs", ")", "{", "final",...
Applies changes in the state of an execution vertex to the stored management graph. @param jobID the ID of the job whose management graph shall be updated @param executionStateChangeEvent the event describing the changes in the execution state of the vertex
[ "Applies", "changes", "in", "the", "state", "of", "an", "execution", "vertex", "to", "the", "stored", "management", "graph", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/jobmanager/EventCollector.java#L624-L642
101,096
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java
InputGate.readRecord
public InputChannelResult readRecord(T target) throws IOException, InterruptedException { if (this.channelToReadFrom == -1) { if (this.isClosed()) { return InputChannelResult.END_OF_STREAM; } if (Thread.interrupted()) { throw new InterruptedException(); } this.channelToReadFrom = wai...
java
public InputChannelResult readRecord(T target) throws IOException, InterruptedException { if (this.channelToReadFrom == -1) { if (this.isClosed()) { return InputChannelResult.END_OF_STREAM; } if (Thread.interrupted()) { throw new InterruptedException(); } this.channelToReadFrom = wai...
[ "public", "InputChannelResult", "readRecord", "(", "T", "target", ")", "throws", "IOException", ",", "InterruptedException", "{", "if", "(", "this", ".", "channelToReadFrom", "==", "-", "1", ")", "{", "if", "(", "this", ".", "isClosed", "(", ")", ")", "{",...
Reads a record from one of the associated input channels. Channels are read such that one buffer from a channel is consecutively consumed. The buffers in turn are consumed in the order in which they arrive. Note that this method is not guaranteed to return a record, because the currently available channel data may not ...
[ "Reads", "a", "record", "from", "one", "of", "the", "associated", "input", "channels", ".", "Channels", "are", "read", "such", "that", "one", "buffer", "from", "a", "channel", "is", "consecutively", "consumed", ".", "The", "buffers", "in", "turn", "are", "...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java#L157-L201
101,097
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java
InputGate.notifyRecordIsAvailable
public void notifyRecordIsAvailable(int channelIndex) { this.availableChannels.add(Integer.valueOf(channelIndex)); RecordAvailabilityListener<T> listener = this.recordAvailabilityListener.get(); if (listener != null) { listener.reportRecordAvailability(this); } }
java
public void notifyRecordIsAvailable(int channelIndex) { this.availableChannels.add(Integer.valueOf(channelIndex)); RecordAvailabilityListener<T> listener = this.recordAvailabilityListener.get(); if (listener != null) { listener.reportRecordAvailability(this); } }
[ "public", "void", "notifyRecordIsAvailable", "(", "int", "channelIndex", ")", "{", "this", ".", "availableChannels", ".", "add", "(", "Integer", ".", "valueOf", "(", "channelIndex", ")", ")", ";", "RecordAvailabilityListener", "<", "T", ">", "listener", "=", "...
Notify the gate that the channel with the given index has at least one record available. @param channelIndex the index of the channel which has at least one record available
[ "Notify", "the", "gate", "that", "the", "channel", "with", "the", "given", "index", "has", "at", "least", "one", "record", "available", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java#L216-L223
101,098
stratosphere/stratosphere
stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java
InputGate.close
public void close() throws IOException, InterruptedException { for (int i = 0; i < this.getNumberOfInputChannels(); i++) { final InputChannel<T> inputChannel = this.channels[i]; inputChannel.close(); } }
java
public void close() throws IOException, InterruptedException { for (int i = 0; i < this.getNumberOfInputChannels(); i++) { final InputChannel<T> inputChannel = this.channels[i]; inputChannel.close(); } }
[ "public", "void", "close", "(", ")", "throws", "IOException", ",", "InterruptedException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "getNumberOfInputChannels", "(", ")", ";", "i", "++", ")", "{", "final", "InputChannel", "<", ...
Immediately closes the input gate and all its input channels. The corresponding output channels are notified. Any remaining records in any buffers or queue is considered irrelevant and is discarded. @throws IOException thrown if an I/O error occurs while closing the gate @throws InterruptedException thrown if the thre...
[ "Immediately", "closes", "the", "input", "gate", "and", "all", "its", "input", "channels", ".", "The", "corresponding", "output", "channels", "are", "notified", ".", "Any", "remaining", "records", "in", "any", "buffers", "or", "queue", "is", "considered", "irr...
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-runtime/src/main/java/eu/stratosphere/runtime/io/gates/InputGate.java#L267-L274
101,099
stratosphere/stratosphere
stratosphere-core/src/main/java/eu/stratosphere/core/fs/Path.java
Path.hasWindowsDrive
private boolean hasWindowsDrive(String path, boolean slashed) { if (!OperatingSystem.isWindows()) { return false; } final int start = slashed ? 1 : 0; return path.length() >= start + 2 && (slashed ? path.charAt(0) == '/' : true) && path.charAt(start + 1) == ':' && ((path.charAt(start) >= 'A' && path...
java
private boolean hasWindowsDrive(String path, boolean slashed) { if (!OperatingSystem.isWindows()) { return false; } final int start = slashed ? 1 : 0; return path.length() >= start + 2 && (slashed ? path.charAt(0) == '/' : true) && path.charAt(start + 1) == ':' && ((path.charAt(start) >= 'A' && path...
[ "private", "boolean", "hasWindowsDrive", "(", "String", "path", ",", "boolean", "slashed", ")", "{", "if", "(", "!", "OperatingSystem", ".", "isWindows", "(", ")", ")", "{", "return", "false", ";", "}", "final", "int", "start", "=", "slashed", "?", "1", ...
Checks if the provided path string contains a windows drive letter. @param path the path to check @param slashed <code>true</code> to indicate the first character of the string is a slash, <code>false</code> otherwise @return <code>true</code> if the path string contains a windows drive letter, <code>false</code> othe...
[ "Checks", "if", "the", "provided", "path", "string", "contains", "a", "windows", "drive", "letter", "." ]
c543a08f9676c5b2b0a7088123bd6e795a8ae0c8
https://github.com/stratosphere/stratosphere/blob/c543a08f9676c5b2b0a7088123bd6e795a8ae0c8/stratosphere-core/src/main/java/eu/stratosphere/core/fs/Path.java#L264-L274