docstring_tokens
sequence
code_tokens
sequence
[ "returns", "the", "action", "graph" ]
[ "return", "action", "graph", ";" ]
[ "gets", "string", "values", "from", "the", "list", "of", "mdui", "objects" ]
[ "val", "list", "=", "new", "array", "list", "<", "string", ">", "(", ")", ";", "items", "for", "each", "(", "d", "-", ">", "{", "if", "(", "d", "instanceof", "xsuri", ")", "{", "list", "add", "(", "(", "(", "xsuri", ")", "d", ")", "get", "value", "(", ")", ")", ";", "}", "else", "if", "(", "d", "instanceof", "x", "s", "string", ")", "{", "list", "add", "(", "(", "(", "x", "s", "string", ")", "d", ")", "get", "value", "(", ")", ")", ";", "}", "}", ")", ";", "return", "list", ";" ]
[ "gets", "logo", "urls" ]
[ "val", "list", "=", "new", "array", "list", "<", "logo", ">", "(", ")", ";", "if", "(", "this", "ui", "info", "!", "=", "null", ")", "{", "list", "add", "all", "(", "this", "ui", "info", "get", "logos", "(", ")", "stream", "(", ")", "map", "(", "l", "-", ">", "new", "logo", "(", "l", "get", "u", "r", "l", "(", ")", ",", "l", "get", "height", "(", ")", ",", "l", "get", "width", "(", ")", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ")", ";", "}", "return", "list", ";" ]
[ "gets", "localized", "description" ]
[ "if", "(", "this", "ui", "info", "!", "=", "null", ")", "{", "val", "description", "=", "get", "localized", "values", "(", "locale", ",", "this", "ui", "info", "get", "descriptions", "(", ")", ")", ";", "return", "(", "description", "!", "=", "null", ")", "?", "description", ":", "super", "get", "description", "(", ")", ";", "}", "return", "super", "get", "description", "(", ")", ";" ]
[ "gets", "localized", "display", "name" ]
[ "if", "(", "this", "ui", "info", "!", "=", "null", ")", "{", "val", "display", "name", "=", "get", "localized", "values", "(", "locale", ",", "this", "ui", "info", "get", "display", "names", "(", ")", ")", ";", "return", "(", "display", "name", "!", "=", "null", ")", "?", "display", "name", ":", "super", "get", "display", "name", "(", ")", ";", "}", "return", "super", "get", "display", "name", "(", ")", ";" ]
[ "gets", "localized", "information", "u", "r", "l" ]
[ "if", "(", "this", "ui", "info", "!", "=", "null", ")", "{", "val", "information", "url", "=", "get", "localized", "values", "(", "locale", ",", "this", "ui", "info", "get", "information", "u", "r", "ls", "(", ")", ")", ";", "return", "(", "information", "url", "!", "=", "null", ")", "?", "information", "url", ":", "super", "get", "information", "u", "r", "l", "(", ")", ";", "}", "return", "super", "get", "information", "u", "r", "l", "(", ")", ";" ]
[ "gets", "localized", "privacy", "statement", "u", "r", "l" ]
[ "if", "(", "this", "ui", "info", "!", "=", "null", ")", "{", "val", "privacy", "statement", "u", "r", "l", "=", "get", "localized", "values", "(", "locale", ",", "this", "ui", "info", "get", "privacy", "statement", "u", "r", "ls", "(", ")", ")", ";", "return", "(", "privacy", "statement", "u", "r", "l", "!", "=", "null", ")", "?", "privacy", "statement", "u", "r", "l", ":", "super", "get", "privacy", "statement", "u", "r", "l", "(", ")", ";", "}", "return", "super", "get", "privacy", "statement", "u", "r", "l", "(", ")", ";" ]
[ "returns", "the", "map", "from", "column", "to", "data", "source" ]
[ "return", "data", "source", "map", ";" ]
[ "increases", "the", "reference", "count", "of", "a", "live", "object", "in", "the", "static", "map", "adds", "it", "if", "it", "s", "not", "being", "held" ]
[ "synchronized", "(", "s", "live", "objects", ")", "{", "integer", "count", "=", "s", "live", "objects", "get", "(", "value", ")", ";", "if", "(", "count", "=", "=", "null", ")", "{", "s", "live", "objects", "put", "(", "value", ",", "1", ")", ";", "}", "else", "{", "s", "live", "objects", "put", "(", "value", ",", "count", "+", "1", ")", ";", "}", "}" ]
[ "get", "the", "current", "referenced", "value", "null", "if", "there", "s", "no", "value" ]
[ "return", "m", "value", ";" ]
[ "checks", "if", "this", "shared", "-", "reference", "is", "valid", "i", "e", "its", "reference", "count", "is", "greater", "than", "zero" ]
[ "return", "m", "ref", "count", ">", "0", ";" ]
[ "checks", "if", "the", "shared", "-", "reference", "is", "valid", "i", "e", "its", "reference", "count", "is", "greater", "than", "zero" ]
[ "return", "ref", "!", "=", "null", "&", "&", "ref", "is", "valid", "(", ")", ";" ]
[ "bump", "up", "the", "reference", "count", "for", "the", "shared", "reference", "note", ":", "the", "reference", "must", "be", "valid", "(", "aka", "not", "null", ")", "at", "this", "point" ]
[ "ensure", "valid", "(", ")", ";", "m", "ref", "count", "+", "+", ";" ]
[ "decrement", "the", "reference", "count", "for", "the", "shared", "reference", "if", "the", "reference", "count", "drops", "to", "zero", "then", "dispose", "of", "the", "referenced", "value" ]
[ "if", "(", "decrease", "ref", "count", "(", ")", "=", "=", "0", ")", "{", "t", "deleted", ";", "synchronized", "(", "this", ")", "{", "deleted", "=", "m", "value", ";", "m", "value", "=", "null", ";", "}", "m", "resource", "releaser", "release", "(", "deleted", ")", ";", "remove", "live", "reference", "(", "deleted", ")", ";", "}" ]
[ "decrements", "reference", "count", "for", "the", "shared", "reference", "returns", "value", "of", "m", "ref", "count", "after", "decrementing" ]
[ "ensure", "valid", "(", ")", ";", "preconditions", "check", "argument", "(", "m", "ref", "count", ">", "0", ")", ";", "m", "ref", "count", "-", "-", ";", "return", "m", "ref", "count", ";" ]
[ "assert", "that", "there", "is", "a", "valid", "referenced", "value", "throw", "a", "null", "reference", "exception", "otherwise" ]
[ "if", "(", "!", "is", "valid", "(", "this", ")", ")", "{", "throw", "new", "null", "reference", "exception", "(", ")", ";", "}" ]
[ "a", "test", "-", "only", "method", "to", "get", "the", "ref", "count", "do", "not", "use", "in", "regular", "code" ]
[ "return", "m", "ref", "count", ";" ]
[ "retrieve", "(", "or", "create", "if", "it", "doesn", "t", "exist", ")", "the", "correct", "instance", "for", "this", "seed", "object" ]
[ "return", "retrieve", "(", "hv", ",", "null", ")", ";" ]
[ "checks", "if", "a", "simple", "naming", "context", "builder", "is", "active" ]
[ "return", "activated", ";" ]
[ "if", "this", "chunk", "is", "a", "single", "byte", "of", "non", "-", "pushdata", "content", "(", "could", "be", "op", "reserved", "or", "some", "invalid", "opcode", ")" ]
[ "return", "opcode", ">", "op", "pushdata4", ";" ]
[ "returns", "true", "if", "this", "chunk", "is", "pushdata", "content", "including", "the", "single", "-", "byte", "pushdatas" ]
[ "return", "opcode", "<", "=", "op", "16", ";" ]
[ "if", "this", "chunk", "is", "an", "op", "n", "opcode", "returns", "the", "equivalent", "integer", "value" ]
[ "check", "state", "(", "is", "op", "code", "(", ")", ")", ";", "return", "script", "decode", "from", "op", "n", "(", "opcode", ")", ";" ]
[ "{" ]
[ "return", "s", "to", "string", "(", "visor", "cache", "reset", "lost", "partitions", "task", "arg", "class", ",", "this", ")", ";" ]
[ "primitive", "int", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", ">", "array", "length", ")", "{", "int", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "int", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "current", "size", ")", ";", "array", "=", "new", "array", ";", "}", "array", "[", "current", "size", "]", "=", "element", ";", "return", "array", ";" ]
[ "primitive", "long", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", ">", "array", "length", ")", "{", "long", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "long", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "current", "size", ")", ";", "array", "=", "new", "array", ";", "}", "array", "[", "current", "size", "]", "=", "element", ";", "return", "array", ";" ]
[ "primitive", "boolean", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", ">", "array", "length", ")", "{", "boolean", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "boolean", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "current", "size", ")", ";", "array", "=", "new", "array", ";", "}", "array", "[", "current", "size", "]", "=", "element", ";", "return", "array", ";" ]
[ "primitive", "float", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", ">", "array", "length", ")", "{", "float", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "float", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "current", "size", ")", ";", "array", "=", "new", "array", ";", "}", "array", "[", "current", "size", "]", "=", "element", ";", "return", "array", ";" ]
[ "primitive", "int", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", "<", "=", "array", "length", ")", "{", "system", "arraycopy", "(", "array", ",", "index", ",", "array", ",", "index", "+", "1", ",", "current", "size", "-", "index", ")", ";", "array", "[", "index", "]", "=", "element", ";", "return", "array", ";", "}", "int", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "int", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "index", ")", ";", "new", "array", "[", "index", "]", "=", "element", ";", "system", "arraycopy", "(", "array", ",", "index", ",", "new", "array", ",", "index", "+", "1", ",", "array", "length", "-", "index", ")", ";", "return", "new", "array", ";" ]
[ "primitive", "long", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", "<", "=", "array", "length", ")", "{", "system", "arraycopy", "(", "array", ",", "index", ",", "array", ",", "index", "+", "1", ",", "current", "size", "-", "index", ")", ";", "array", "[", "index", "]", "=", "element", ";", "return", "array", ";", "}", "long", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "long", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "index", ")", ";", "new", "array", "[", "index", "]", "=", "element", ";", "system", "arraycopy", "(", "array", ",", "index", ",", "new", "array", ",", "index", "+", "1", ",", "array", "length", "-", "index", ")", ";", "return", "new", "array", ";" ]
[ "primitive", "boolean", "version", "of", "{" ]
[ "assert", "current", "size", "<", "=", "array", "length", ";", "if", "(", "current", "size", "+", "1", "<", "=", "array", "length", ")", "{", "system", "arraycopy", "(", "array", ",", "index", ",", "array", ",", "index", "+", "1", ",", "current", "size", "-", "index", ")", ";", "array", "[", "index", "]", "=", "element", ";", "return", "array", ";", "}", "boolean", "[", "]", "new", "array", "=", "array", "utils", "new", "unpadded", "boolean", "array", "(", "grow", "size", "(", "current", "size", ")", ")", ";", "system", "arraycopy", "(", "array", ",", "0", ",", "new", "array", ",", "0", ",", "index", ")", ";", "new", "array", "[", "index", "]", "=", "element", ";", "system", "arraycopy", "(", "array", ",", "index", ",", "new", "array", ",", "index", "+", "1", ",", "array", "length", "-", "index", ")", ";", "return", "new", "array", ";" ]
[ "get", "the", "list", "of", "cached", "files", "that", "were", "registered", "for", "distribution", "among", "the", "task", "managers" ]
[ "return", "cache", "file", ";" ]
[ "sets", "the", "parallelism", "for", "operations", "executed", "through", "this", "environment", "setting", "a", "parallelism", "of", "x", "here", "will", "cause", "all", "operators", "(", "such", "as", "map", "batch", "reduce", ")", "to", "run", "with", "x", "parallel", "instances", "this", "method", "overrides", "the", "default", "parallelism", "for", "this", "environment", "the", "{", "@", "link", "local", "stream", "environment", "}", "uses", "by", "default", "a", "value", "equal", "to", "the", "number", "of", "hardware", "contexts", "(", "cpu", "cores", "/", "threads", ")", "when", "executing", "the", "program", "via", "the", "command", "line", "client", "from", "a", "jar", "file", "the", "default", "degree", "of", "parallelism", "is", "the", "one", "configured", "for", "that", "setup" ]
[ "config", "set", "parallelism", "(", "parallelism", ")", ";", "return", "this", ";" ]
[ "gets", "the", "maximum", "degree", "of", "parallelism", "defined", "for", "the", "program" ]
[ "return", "config", "get", "max", "parallelism", "(", ")", ";" ]
[ "gets", "the", "maximum", "time", "frequency", "(", "milliseconds", ")", "for", "the", "flushing", "of", "the", "output", "buffers", "for", "clarification", "on", "the", "extremal", "values", "see", "{", "@", "link", "#", "set", "buffer", "timeout", "(", "long", ")", "}" ]
[ "return", "this", "buffer", "timeout", ";" ]
[ "disables", "operator", "chaining", "for", "streaming", "operators", "operator", "chaining", "allows", "non", "-", "shuffle", "operations", "to", "be", "co", "-", "located", "in", "the", "same", "thread", "fully", "avoiding", "serialization", "and", "de", "-", "serialization" ]
[ "this", "is", "chaining", "enabled", "=", "false", ";", "return", "this", ";" ]
[ "returns", "whether", "operator", "chaining", "is", "enabled" ]
[ "return", "is", "chaining", "enabled", ";" ]
[ "gets", "the", "checkpoint", "config", "which", "defines", "values", "like", "checkpoint", "interval", "delay", "between", "checkpoints", "etc" ]
[ "return", "checkpoint", "cfg", ";" ]
[ "enables", "checkpointing", "for", "the", "streaming", "job", "the", "distributed", "state", "of", "the", "streaming", "dataflow", "will", "be", "periodically", "snapshotted", "in", "case", "of", "a", "failure", "the", "streaming", "dataflow", "will", "be", "restarted", "from", "the", "latest", "completed", "checkpoint", "this", "method", "selects", "{", "@", "link", "checkpointing", "mode", "#", "exactly", "once", "}", "guarantees" ]
[ "checkpoint", "cfg", "set", "checkpoint", "interval", "(", "interval", ")", ";", "return", "this", ";" ]
[ "enables", "checkpointing", "for", "the", "streaming", "job", "the", "distributed", "state", "of", "the", "streaming", "dataflow", "will", "be", "periodically", "snapshotted", "in", "case", "of", "a", "failure", "the", "streaming", "dataflow", "will", "be", "restarted", "from", "the", "latest", "completed", "checkpoint" ]
[ "checkpoint", "cfg", "set", "checkpointing", "mode", "(", "mode", ")", ";", "checkpoint", "cfg", "set", "checkpoint", "interval", "(", "interval", ")", ";", "return", "this", ";" ]
[ "enables", "checkpointing", "for", "the", "streaming", "job", "the", "distributed", "state", "of", "the", "streaming", "dataflow", "will", "be", "periodically", "snapshotted", "in", "case", "of", "a", "failure", "the", "streaming", "dataflow", "will", "be", "restarted", "from", "the", "latest", "completed", "checkpoint", "this", "method", "selects", "{", "@", "link", "checkpointing", "mode", "#", "exactly", "once", "}", "guarantees" ]
[ "checkpoint", "cfg", "set", "checkpoint", "interval", "(", "500", ")", ";", "return", "this", ";" ]
[ "returns", "the", "checkpointing", "interval", "or", "-", "1", "if", "checkpointing", "is", "disabled" ]
[ "return", "checkpoint", "cfg", "get", "checkpoint", "interval", "(", ")", ";" ]
[ "returns", "the", "checkpointing", "mode", "(", "exactly", "-", "once", "vs", "at", "-", "least", "-", "once", ")" ]
[ "return", "checkpoint", "cfg", "get", "checkpointing", "mode", "(", ")", ";" ]
[ "sets", "the", "state", "backend", "that", "describes", "how", "to", "store", "and", "checkpoint", "operator", "state", "it", "defines", "both", "which", "data", "structures", "hold", "state", "during", "execution", "(", "for", "example", "hash", "tables", "rock", "d", "b", "or", "other", "data", "stores", ")", "as", "well", "as", "where", "checkpointed", "data", "will", "be", "persisted" ]
[ "this", "default", "state", "backend", "=", "preconditions", "check", "not", "null", "(", "backend", ")", ";", "return", "this", ";" ]
[ "gets", "the", "state", "backend", "that", "defines", "how", "to", "store", "and", "checkpoint", "state" ]
[ "return", "default", "state", "backend", ";" ]
[ "sets", "the", "time", "characteristic", "for", "all", "streams", "create", "from", "this", "environment", "e", "g", "processing", "time", "event", "time", "or", "ingestion", "time" ]
[ "this", "time", "characteristic", "=", "preconditions", "check", "not", "null", "(", "characteristic", ")", ";", "if", "(", "characteristic", "=", "=", "time", "characteristic", "processing", "time", ")", "{", "get", "config", "(", ")", "set", "auto", "watermark", "interval", "(", "0", ")", ";", "}", "else", "{", "get", "config", "(", ")", "set", "auto", "watermark", "interval", "(", "200", ")", ";", "}" ]
[ "gets", "the", "time", "characteristic" ]
[ "return", "time", "characteristic", ";" ]
[ "creates", "a", "data", "stream", "from", "the", "given", "iterator" ]
[ "return", "from", "collection", "(", "data", ",", "type", "extractor", "get", "for", "class", "(", "type", ")", ")", ";" ]
[ "creates", "a", "new", "data", "stream", "that", "contains", "elements", "in", "the", "iterator", "the", "iterator", "is", "splittable", "allowing", "the", "framework", "to", "create", "a", "parallel", "data", "stream", "source", "that", "returns", "the", "elements", "in", "the", "iterator" ]
[ "return", "from", "parallel", "collection", "(", "iterator", ",", "type", "extractor", "get", "for", "class", "(", "type", ")", ")", ";" ]
[ "private", "helper", "for", "passing", "different", "names" ]
[ "return", "add", "source", "(", "new", "from", "splittable", "iterator", "function", "<", ">", "(", "iterator", ")", ",", "operator", "name", ",", "type", "info", ")", ";" ]
[ "reads", "the", "contents", "of", "the", "user", "-", "specified", "{", "@", "code", "file", "path", "}", "based", "on", "the", "given", "{", "@", "link", "file", "input", "format", "}" ]
[ "return", "read", "file", "(", "input", "format", ",", "file", "path", ",", "file", "processing", "mode", "process", "once", ",", "-", "1", ")", ";" ]
[ "creates", "a", "new", "data", "stream", "that", "contains", "the", "strings", "received", "infinitely", "from", "a", "socket", "received", "strings", "are", "decoded", "by", "the", "system", "s", "default", "character", "set", "on", "the", "termination", "of", "the", "socket", "server", "connection", "retries", "can", "be", "initiated" ]
[ "return", "socket", "text", "stream", "(", "hostname", ",", "port", ",", "string", "value", "of", "(", "delimiter", ")", ",", "max", "retry", ")", ";" ]
[ "creates", "a", "new", "data", "stream", "that", "contains", "the", "strings", "received", "infinitely", "from", "a", "socket", "received", "strings", "are", "decoded", "by", "the", "system", "s", "default", "character", "set", "the", "reader", "is", "terminated", "immediately", "when", "the", "socket", "is", "down" ]
[ "return", "socket", "text", "stream", "(", "hostname", ",", "port", ",", "delimiter", ",", "0", ")", ";" ]
[ "generic", "method", "to", "create", "an", "input", "data", "stream", "with", "{", "@", "link", "org", "apache", "flink", "api", "common", "io", "input", "format", "}" ]
[ "return", "create", "input", "(", "input", "format", ",", "type", "extractor", "get", "input", "format", "types", "(", "input", "format", ")", ")", ";" ]
[ "ads", "a", "data", "source", "with", "a", "custom", "type", "information", "thus", "opening", "a", "{", "@", "link", "data", "stream", "}", "only", "in", "very", "special", "cases", "does", "the", "user", "need", "to", "support", "type", "information", "otherwise", "use", "{", "@", "link", "#", "add", "source", "(", "org", "apache", "flink", "streaming", "api", "functions", "source", "source", "function", ")", "}" ]
[ "return", "add", "source", "(", "function", ",", "source", "name", ",", "null", ")", ";" ]
[ "triggers", "the", "program", "execution", "the", "environment", "will", "execute", "all", "parts", "of", "the", "program", "that", "have", "resulted", "in", "a", "sink", "operation", "sink", "operations", "are", "for", "example", "printing", "results", "or", "forwarding", "them", "to", "a", "message", "queue" ]
[ "return", "execute", "(", "default", "job", "name", ")", ";" ]
[ "creates", "the", "plan", "with", "which", "the", "system", "will", "execute", "the", "program", "and", "returns", "it", "as", "a", "string", "using", "a", "json", "representation", "of", "the", "execution", "data", "flow", "graph", "note", "that", "this", "needs", "to", "be", "called", "before", "the", "plan", "is", "executed" ]
[ "return", "get", "stream", "graph", "(", ")", "get", "streaming", "plan", "as", "j", "s", "o", "n", "(", ")", ";" ]
[ "returns", "a", "closure", "-", "cleaned", "version", "of", "the", "given", "function", "cleans", "only", "if", "closure", "cleaning", "is", "not", "disabled", "in", "the", "{" ]
[ "if", "(", "get", "config", "(", ")", "is", "closure", "cleaner", "enabled", "(", ")", ")", "{", "closure", "cleaner", "clean", "(", "f", ",", "true", ")", ";", "}", "closure", "cleaner", "ensure", "serializable", "(", "f", ")", ";", "return", "f", ";" ]
[ "creates", "a", "{", "@", "link", "local", "stream", "environment", "}", "the", "local", "execution", "environment", "will", "run", "the", "program", "in", "a", "multi", "-", "threaded", "fashion", "in", "the", "same", "jvm", "as", "the", "environment", "was", "created", "in", "the", "default", "parallelism", "of", "the", "local", "environment", "is", "the", "number", "of", "hardware", "contexts", "(", "cpu", "cores", "/", "threads", ")", "unless", "it", "was", "specified", "differently", "by", "{", "@", "link", "#", "set", "parallelism", "(", "int", ")", "}" ]
[ "return", "create", "local", "environment", "(", "default", "local", "parallelism", ")", ";" ]
[ "creates", "a", "{", "@", "link", "local", "stream", "environment", "}", "the", "local", "execution", "environment", "will", "run", "the", "program", "in", "a", "multi", "-", "threaded", "fashion", "in", "the", "same", "jvm", "as", "the", "environment", "was", "created", "in", "it", "will", "use", "the", "parallelism", "specified", "in", "the", "parameter" ]
[ "return", "create", "local", "environment", "(", "parallelism", ",", "new", "configuration", "(", ")", ")", ";" ]
[ "creates", "a", "{", "@", "link", "local", "stream", "environment", "}", "the", "local", "execution", "environment", "will", "run", "the", "program", "in", "a", "multi", "-", "threaded", "fashion", "in", "the", "same", "jvm", "as", "the", "environment", "was", "created", "in", "it", "will", "use", "the", "parallelism", "specified", "in", "the", "parameter" ]
[ "final", "local", "stream", "environment", "current", "environment", ";", "current", "environment", "=", "new", "local", "stream", "environment", "(", "configuration", ")", ";", "current", "environment", "set", "parallelism", "(", "parallelism", ")", ";", "return", "current", "environment", ";" ]
[ "creates", "a", "{", "@", "link", "remote", "stream", "environment", "}", "the", "remote", "environment", "sends", "(", "parts", "of", ")", "the", "program", "to", "a", "cluster", "for", "execution", "note", "that", "all", "file", "paths", "used", "in", "the", "program", "must", "be", "accessible", "from", "the", "cluster", "the", "execution", "will", "use", "no", "parallelism", "unless", "the", "parallelism", "is", "set", "explicitly", "via", "{", "@", "link", "#", "set", "parallelism", "}" ]
[ "return", "new", "remote", "stream", "environment", "(", "host", ",", "port", ",", "jar", "files", ")", ";" ]
[ "creates", "a", "{", "@", "link", "remote", "stream", "environment", "}", "the", "remote", "environment", "sends", "(", "parts", "of", ")", "the", "program", "to", "a", "cluster", "for", "execution", "note", "that", "all", "file", "paths", "used", "in", "the", "program", "must", "be", "accessible", "from", "the", "cluster", "the", "execution", "will", "use", "the", "specified", "parallelism" ]
[ "remote", "stream", "environment", "env", "=", "new", "remote", "stream", "environment", "(", "host", ",", "port", ",", "jar", "files", ")", ";", "env", "set", "parallelism", "(", "parallelism", ")", ";", "return", "env", ";" ]
[ "creates", "a", "{", "@", "link", "remote", "stream", "environment", "}", "the", "remote", "environment", "sends", "(", "parts", "of", ")", "the", "program", "to", "a", "cluster", "for", "execution", "note", "that", "all", "file", "paths", "used", "in", "the", "program", "must", "be", "accessible", "from", "the", "cluster", "the", "execution", "will", "use", "the", "specified", "parallelism" ]
[ "return", "new", "remote", "stream", "environment", "(", "host", ",", "port", ",", "client", "config", ",", "jar", "files", ")", ";" ]
[ "gets", "the", "default", "parallelism", "that", "will", "be", "used", "for", "the", "local", "execution", "environment", "created", "by", "{", "@", "link", "#", "create", "local", "environment", "(", ")", "}" ]
[ "return", "default", "local", "parallelism", ";" ]
[ "sets", "the", "default", "parallelism", "that", "will", "be", "used", "for", "the", "local", "execution", "environment", "created", "by", "{", "@", "link", "#", "create", "local", "environment", "(", ")", "}" ]
[ "default", "local", "parallelism", "=", "parallelism", ";" ]
[ "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "context", "environment", "factory", "=", "ctx", ";" ]
[ "registers", "a", "file", "at", "the", "distributed", "cache", "under", "the", "given", "name", "the", "file", "will", "be", "accessible", "from", "any", "user", "-", "defined", "function", "in", "the", "(", "distributed", ")", "runtime", "under", "a", "local", "path", "files", "may", "be", "local", "files", "(", "which", "will", "be", "distributed", "via", "blob", "server", ")", "or", "files", "in", "a", "distributed", "file", "system", "the", "runtime", "will", "copy", "the", "files", "temporarily", "to", "a", "local", "cache", "if", "needed" ]
[ "this", "cache", "file", "add", "(", "new", "tuple", "2", "<", ">", "(", "name", ",", "new", "distributed", "cache", "distributed", "cache", "entry", "(", "file", "path", ",", "executable", ")", ")", ")", ";" ]
[ "used", "to", "setup", "the", "trash", "policy", "must", "be", "implemented", "by", "all", "trash", "policy", "implementations" ]
[ "public", "abstract", "void", "initialize", "(", "configuration", "conf", ",", "file", "system", "fs", ",", "path", "home", ")", ";" ]
[ "returns", "true", "if", "this", "collector", "is", "enabled", ";", "false", "otherwise" ]
[ "public", "abstract", "boolean", "is", "enabled", "(", ")", ";" ]
[ "move", "a", "file", "or", "directory", "to", "the", "current", "trash", "directory" ]
[ "public", "abstract", "boolean", "move", "to", "trash", "(", "path", "path", ")", "throws", "i", "o", "exception", ";" ]
[ "create", "a", "trash", "checkpoint" ]
[ "public", "abstract", "void", "create", "checkpoint", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "delete", "old", "trash", "checkpoint", "(", "s", ")" ]
[ "public", "abstract", "void", "delete", "checkpoint", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "get", "the", "current", "working", "directory", "of", "the", "trash", "policy" ]
[ "public", "abstract", "path", "get", "current", "trash", "dir", "(", ")", ";" ]
[ "return", "a", "{" ]
[ "public", "abstract", "runnable", "get", "emptier", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "create", "a", "specialized", "type", "reference", "from", "a", "dynamic", "class", "instance", "bypassing", "the", "standard", "compile", "-", "time", "checks" ]
[ "return", "new", "specialized", "type", "reference", "<", "t", ">", "(", "klass", ")", ";" ]
[ "create", "a", "specialized", "type", "reference", "from", "a", "dynamic", "{", "@", "link", "type", "}", "instance", "bypassing", "the", "standard", "compile", "-", "time", "checks" ]
[ "return", "new", "specialized", "base", "type", "reference", "(", "type", ")", ";" ]
[ "get", "the", "component", "type", "e", "g", "{", "@", "code", "t", "}", "from", "{", "@", "code", "t", "[", "]", "}" ]
[ "type", "component", "type", "=", "get", "component", "type", "(", "m", "type", ")", ";", "return", "(", "component", "type", "!", "=", "null", ")", "?", "create", "specialized", "type", "reference", "(", "component", "type", ")", ":", "null", ";" ]
[ "check", "if", "any", "of", "the", "elements", "in", "this", "array", "contained", "a", "type", "variable" ]
[ "if", "(", "type", "array", "=", "=", "null", ")", "{", "return", "false", ";", "}", "for", "(", "type", "type", ":", "type", "array", ")", "{", "if", "(", "contains", "type", "variable", "(", "type", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";" ]
[ "appends", "a", "single", "event", "to", "the", "buffer", "the", "event", "is", "expected", "in", "a", "json", "format", "in", "json", "string" ]
[ "int", "num", "events", "=", "append", "to", "event", "buffer", "(", "json", "string", ",", "event", "buffer", ",", "null", ",", "stats", "collector", ",", "start", "window", ")", ";", "return", "num", "events", ";" ]
[ "@", "param", "log", "errors", "whether", "to", "emit", "log", "error", "messages", "for", "invalid", "results", "@", "return", "true", "if", "event", "is", "not", "partial", "and", "event", "is", "valid", ";", "note", "that", "a", "partial", "event", "is", "deemed", "invalid" ]
[ "return", "(", "buf", "!", "=", "null", ")", "&", "&", "(", "scan", "event", "(", "log", "errors", ")", "=", "=", "event", "scan", "status", "ok", ")", ";" ]
[ "made", "non", "static", "from", "static" ]
[]
[ "made", "non", "static", "from", "static" ]
[]
[ "made", "private" ]
[]
[ "made", "protected" ]
[]
[ "made", "default" ]
[]
[ "<", "p", ">", "the", "name", "of", "the", "receipt", "rule", "set", "to", "describe", "<", "/", "p", ">" ]
[ "set", "rule", "set", "name", "(", "rule", "set", "name", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "return", "!", "matcher", "matches", "(", "target", ")", ";" ]
[ "maximum", "number", "of", "messages", "to", "process", "before", "the", "action", "is", "triggered" ]
[ "this", "max", "messages", "=", "max", "messages", ";" ]
[ "maximum", "seconds", "camel", "is", "running", "before", "the", "action", "is", "triggered" ]
[ "this", "max", "seconds", "=", "max", "seconds", ";" ]
[ "for", "debugging", "only" ]
[ "try", "{", "h", "2omapper", "m", "=", "new", "h", "2omapper", "(", ")", ";", "m", "run", "(", "null", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "system", "out", "println", "(", "e", ")", ";", "}" ]
[ "change", "producer", "settings", "for", "a", "given", "topic", "and", "j", "commander", "arguments" ]
[ "output", "streams", "[", "client", "]", "write", "(", "load", "simulation", "client", "change", "command", ")", ";", "write", "producer", "options", "(", "output", "streams", "[", "client", "]", ",", "arguments", ",", "topic", ")", ";", "output", "streams", "[", "client", "]", "flush", "(", ")", ";" ]
[ "change", "an", "existing", "topic", "or", "create", "it", "if", "it", "does", "not", "exist" ]
[ "final", "int", "client", "=", "find", "(", "topic", ")", ";", "if", "(", "client", "=", "=", "-", "1", ")", "{", "trade", "(", "arguments", ",", "topic", ",", "random", "next", "int", "(", "clients", "length", ")", ")", ";", "}", "else", "{", "change", "(", "arguments", ",", "topic", ",", "client", ")", ";", "}", "return", "client", ";" ]
[ "find", "a", "topic", "and", "change", "it", "if", "it", "exists" ]
[ "final", "int", "client", "=", "find", "(", "topic", ")", ";", "if", "(", "client", "!", "=", "-", "1", ")", "{", "change", "(", "arguments", ",", "topic", ",", "client", ")", ";", "}", "return", "client", ";" ]
[ "attempt", "to", "find", "a", "topic", "on", "the", "clients" ]
[ "int", "client", "with", "topic", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "clients", "length", ";", "+", "+", "i", ")", "{", "output", "streams", "[", "i", "]", "write", "(", "load", "simulation", "client", "find", "command", ")", ";", "output", "streams", "[", "i", "]", "write", "u", "t", "f", "(", "topic", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "clients", "length", ";", "+", "+", "i", ")", "{", "if", "(", "input", "streams", "[", "i", "]", "read", "boolean", "(", ")", ")", "{", "client", "with", "topic", "=", "i", ";", "}", "}", "return", "client", "with", "topic", ";" ]
[ "start", "a", "controller", "with", "command", "line", "arguments" ]
[ "final", "main", "arguments", "arguments", "=", "new", "main", "arguments", "(", ")", ";", "final", "j", "commander", "jc", "=", "new", "j", "commander", "(", "arguments", ")", ";", "try", "{", "jc", "parse", "(", "args", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "jc", "usage", "(", ")", ";", "ex", "print", "stack", "trace", "(", ")", ";", "system", "exit", "(", "1", ")", ";", "}", "(", "new", "load", "simulation", "controller", "(", "arguments", ")", ")", "run", "(", ")", ";" ]
[ "create", "a", "new", "date", "picker", "dialog", "instance", "with", "a", "specific", "initial", "selection" ]
[ "date", "picker", "dialog", "ret", "=", "new", "date", "picker", "dialog", "(", ")", ";", "ret", "initialize", "(", "call", "back", ",", "year", ",", "month", "of", "year", ",", "day", "of", "month", ")", ";", "return", "ret", ";" ]
[ "e", "g", "switching", "from", "2012", "to", "2013", "when", "feb", "29", "2012", "is", "selected", "-", ">", "feb", "28", "2013" ]
[ "int", "day", "=", "m", "calendar", "get", "(", "calendar", "day", "of", "month", ")", ";", "int", "days", "in", "month", "=", "date", "time", "picker", "utils", "get", "days", "in", "month", "(", "month", ",", "year", ")", ";", "if", "(", "day", ">", "days", "in", "month", ")", "{", "m", "calendar", "set", "(", "calendar", "day", "of", "month", ",", "days", "in", "month", ")", ";", "}" ]
[ "wrap", "a", "{", "@", "link", "support", "s", "q", "lite", "open", "helper", "}", "for", "observable", "queries", "<", "p", ">", "while", "not", "strictly", "required", "instances", "of", "this", "class", "assume", "that", "they", "will", "be", "the", "only", "ones", "interacting", "with", "the", "underlying", "{", "@", "link", "support", "s", "q", "lite", "open", "helper", "}", "and", "it", "is", "required", "for", "automatic", "notifications", "of", "table", "changes", "to", "work", "see", "{", "@", "linkplain", "brite", "database", "#", "create", "query", "the", "<", "code", ">", "query", "<", "/", "code", ">", "method", "}", "for", "more", "information", "on", "that", "behavior" ]
[ "return", "new", "brite", "database", "(", "helper", ",", "logger", ",", "scheduler", ",", "query", "transformer", ")", ";" ]
[ "wrap", "a", "{", "@", "link", "content", "resolver", "}", "for", "observable", "queries" ]
[ "return", "new", "brite", "content", "resolver", "(", "content", "resolver", ",", "logger", ",", "scheduler", ",", "query", "transformer", ")", ";" ]
[ "creates", "an", "{", "@", "linkplain", "observable", "operator", "operator", "}", "which", "transforms", "a", "query", "to", "a", "{", "@", "code", "list", "<", "t", ">", "}", "using", "{", "@", "code", "mapper", "}", "use", "with", "{", "@", "link", "observable", "#", "lift", "}", "<", "p", ">", "be", "careful", "using", "this", "operator", "as", "it", "will", "always", "consume", "the", "entire", "cursor", "and", "create", "objects", "for", "each", "row", "every", "time", "this", "observable", "emits", "a", "new", "query", "on", "tables", "whose", "queries", "update", "frequently", "or", "very", "large", "result", "sets", "this", "can", "result", "in", "the", "creation", "of", "many", "objects", "<", "p", ">", "this", "operator", "ignores", "{", "@", "code", "null", "}", "cursors", "returned", "from", "{", "@", "link", "#", "run", "(", ")", "}" ]
[ "return", "new", "query", "to", "list", "operator", "<", ">", "(", "mapper", ")", ";" ]