docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"<",
"tt",
">",
"true",
"<",
"/",
"tt",
">",
"if",
"the",
"connection",
"is",
"established",
"via",
"a",
"proxy",
"<",
"tt",
">",
"false",
"<",
"/",
"tt",
">",
"otherwise"
] |
[
"return",
"(",
"!",
"(",
"null",
"=",
"=",
"proxy",
"host",
"name",
"|",
"|",
"0",
">",
"=",
"proxy",
"port",
"number",
")",
")",
";"
] |
[
"set",
"the",
"state",
"to",
"keep",
"track",
"of",
"the",
"last",
"response",
"for",
"the",
"last",
"request"
] |
[
"last",
"response",
"input",
"stream",
"=",
"in",
"stream",
";"
] |
[
"returns",
"the",
"stream",
"used",
"to",
"read",
"the",
"last",
"response",
"s",
"body"
] |
[
"return",
"last",
"response",
"input",
"stream",
";"
] |
[
"returns",
"{",
"@",
"link",
"http",
"connection",
"params",
"http",
"protocol",
"parameters",
"}",
"associated",
"with",
"this",
"method"
] |
[
"return",
"this",
"params",
";"
] |
[
"set",
"the",
"{",
"@",
"link",
"socket",
"}",
"s",
"timeout",
"via",
"{",
"@",
"link",
"socket",
"#",
"set",
"so",
"timeout",
"}",
"if",
"the",
"connection",
"is",
"already",
"open",
"the",
"so",
"timeout",
"is",
"changed",
"if",
"no",
"connection",
"is",
"open",
"then",
"subsequent",
"connections",
"will",
"use",
"the",
"timeout",
"value",
"<",
"p",
">",
"note",
":",
"this",
"is",
"not",
"a",
"connection",
"timeout",
"but",
"a",
"timeout",
"on",
"network",
"traffic",
"!"
] |
[
"this",
"params",
"set",
"so",
"timeout",
"(",
"timeout",
")",
";",
"if",
"(",
"this",
"socket",
"!",
"=",
"null",
")",
"{",
"this",
"socket",
"set",
"so",
"timeout",
"(",
"timeout",
")",
";",
"}"
] |
[
"sets",
"<",
"code",
">",
"so",
"timeout",
"<",
"/",
"code",
">",
"value",
"directly",
"on",
"the",
"underlying",
"{",
"@",
"link",
"socket",
"socket",
"}",
"this",
"method",
"does",
"not",
"change",
"the",
"default",
"read",
"timeout",
"value",
"set",
"via",
"{",
"@",
"link",
"http",
"connection",
"params",
"}"
] |
[
"assert",
"open",
"(",
")",
";",
"if",
"(",
"this",
"socket",
"!",
"=",
"null",
")",
"{",
"this",
"socket",
"set",
"so",
"timeout",
"(",
"timeout",
")",
";",
"}"
] |
[
"returns",
"the",
"{",
"@",
"link",
"socket",
"}",
"s",
"timeout",
"via",
"{",
"@",
"link",
"socket",
"#",
"get",
"so",
"timeout",
"}",
"if",
"the",
"connection",
"is",
"already",
"open",
"if",
"no",
"connection",
"is",
"open",
"return",
"the",
"value",
"subsequent",
"connection",
"will",
"use",
"<",
"p",
">",
"note",
":",
"this",
"is",
"not",
"a",
"connection",
"timeout",
"but",
"a",
"timeout",
"on",
"network",
"traffic",
"!"
] |
[
"return",
"this",
"params",
"get",
"so",
"timeout",
"(",
")",
";"
] |
[
"sets",
"the",
"connection",
"timeout",
"this",
"is",
"the",
"maximum",
"time",
"that",
"may",
"be",
"spent",
"until",
"a",
"connection",
"is",
"established",
"the",
"connection",
"will",
"fail",
"after",
"this",
"amount",
"of",
"time",
"@",
"param",
"timeout",
"the",
"timeout",
"in",
"milliseconds",
"0",
"means",
"timeout",
"is",
"not",
"used"
] |
[
"this",
"params",
"set",
"connection",
"timeout",
"(",
"timeout",
")",
";"
] |
[
"indicates",
"if",
"the",
"connection",
"is",
"completely",
"transparent",
"from",
"end",
"to",
"end"
] |
[
"return",
"!",
"is",
"proxied",
"(",
")",
"|",
"|",
"tunnel",
"established",
";"
] |
[
"tests",
"if",
"the",
"connection",
"is",
"locked",
"locked",
"connections",
"cannot",
"be",
"released",
"an",
"attempt",
"to",
"release",
"a",
"locked",
"connection",
"will",
"have",
"no",
"effect"
] |
[
"return",
"locked",
";"
] |
[
"locks",
"or",
"unlocks",
"the",
"connection",
"locked",
"connections",
"cannot",
"be",
"released",
"an",
"attempt",
"to",
"release",
"a",
"locked",
"connection",
"will",
"have",
"no",
"effect"
] |
[
"this",
"locked",
"=",
"locked",
";"
] |
[
"gets",
"the",
"socket",
"s",
"send",
"buffer",
"size"
] |
[
"if",
"(",
"socket",
"=",
"=",
"null",
")",
"{",
"return",
"-",
"1",
";",
"}",
"else",
"{",
"return",
"socket",
"get",
"send",
"buffer",
"size",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"socket",
"s",
"send",
"buffer",
"size"
] |
[
"this",
"params",
"set",
"send",
"buffer",
"size",
"(",
"send",
"buffer",
"size",
")",
";"
] |
[
"gets",
"the",
"time",
"at",
"which",
"this",
"app",
"was",
"first",
"installed",
"in",
"milliseconds",
"since",
"january",
"1",
"1970",
"00",
":",
"00",
":",
"00",
"0",
"utc"
] |
[
"package",
"info",
"package",
"info",
";",
"try",
"{",
"package",
"info",
"=",
"context",
"get",
"package",
"manager",
"(",
")",
"get",
"package",
"info",
"(",
"context",
"get",
"package",
"name",
"(",
")",
",",
"0",
")",
";",
"}",
"catch",
"(",
"name",
"not",
"found",
"exception",
"e",
")",
"{",
"package",
"info",
"=",
"null",
";",
"}",
"return",
"package",
"info",
"=",
"=",
"null",
"?",
"no",
"install",
"time",
":",
"package",
"info",
"first",
"install",
"time",
";"
] |
[
"launch",
"a",
"data",
"reduction",
"proxy",
"{",
"@",
"link",
"info",
"bar",
"}",
"with",
"the",
"specified",
"title",
"and",
"link",
"text",
"clicking",
"the",
"link",
"will",
"open",
"the",
"specified",
"settings",
"page"
] |
[
"s",
"title",
"=",
"title",
";",
"s",
"text",
"=",
"text",
";",
"s",
"primary",
"button",
"text",
"=",
"primary",
"button",
"text",
";",
"s",
"secondary",
"button",
"text",
"=",
"secondary",
"button",
"text",
";",
"s",
"icon",
"=",
"icon",
";",
"data",
"reduction",
"promo",
"info",
"bar",
"delegate",
"launch",
"(",
"web",
"contents",
")",
";",
"data",
"reduction",
"promo",
"utils",
"save",
"info",
"bar",
"promo",
"displayed",
"(",
")",
";"
] |
[
"returns",
"false",
"if",
"either",
"mask",
"symbol",
"or",
"any",
"of",
"the",
"symbols",
"in",
"aggregations",
"is",
"not",
"comparable"
] |
[
"for",
"(",
"symbol",
"symbol",
":",
"aggregate",
"info",
"get",
"original",
"non",
"distinct",
"aggregate",
"args",
"(",
")",
")",
"{",
"type",
"type",
"=",
"symbol",
"allocator",
"get",
"types",
"(",
")",
"get",
"(",
"symbol",
")",
";",
"if",
"(",
"!",
"type",
"is",
"comparable",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"if",
"(",
"!",
"symbol",
"allocator",
"get",
"types",
"(",
")",
"get",
"(",
"aggregate",
"info",
"get",
"mask",
"(",
")",
")",
"is",
"comparable",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";"
] |
[
"creates",
"if",
"clause",
"specific",
"to",
"use",
"case",
"here",
"default",
"value",
"always",
"null"
] |
[
"return",
"new",
"if",
"expression",
"(",
"new",
"comparison",
"expression",
"(",
"operator",
",",
"left",
",",
"right",
")",
",",
"result",
",",
"new",
"cast",
"(",
"new",
"null",
"literal",
"(",
")",
",",
"true",
"value",
"type",
"get",
"type",
"signature",
"(",
")",
"to",
"string",
"(",
")",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"obj",
"instanceof",
"product",
"order",
"&",
"&",
"id",
"=",
"=",
"(",
"(",
"product",
"order",
")",
"obj",
")",
"id",
";"
] |
[
"actually",
"estimate",
"the",
"size",
"of",
"the",
"data",
"to",
"read",
"on",
"the",
"cluster",
"based",
"on",
"the",
"given",
"token",
"ranges",
"to",
"address"
] |
[
"long",
"size",
"=",
"0l",
";",
"for",
"(",
"token",
"range",
"token",
"range",
":",
"token",
"ranges",
")",
"{",
"size",
"=",
"size",
"+",
"token",
"range",
"mean",
"partition",
"size",
"*",
"token",
"range",
"partition",
"count",
";",
"}",
"return",
"math",
"round",
"(",
"size",
"/",
"get",
"ring",
"fraction",
"(",
"token",
"ranges",
")",
")",
";"
] |
[
"get",
"a",
"cassandra",
"cluster",
"using",
"hosts",
"and",
"port"
] |
[
"cluster",
"builder",
"builder",
"=",
"cluster",
"builder",
"(",
")",
"add",
"contact",
"points",
"(",
"hosts",
"to",
"array",
"(",
"new",
"string",
"[",
"0",
"]",
")",
")",
"with",
"port",
"(",
"port",
")",
";",
"if",
"(",
"username",
"!",
"=",
"null",
")",
"{",
"builder",
"with",
"auth",
"provider",
"(",
"new",
"plain",
"text",
"auth",
"provider",
"(",
"username",
",",
"password",
")",
")",
";",
"}",
"d",
"c",
"aware",
"round",
"robin",
"policy",
"builder",
"dc",
"aware",
"policy",
"builder",
"=",
"new",
"d",
"c",
"aware",
"round",
"robin",
"policy",
"builder",
"(",
")",
";",
"if",
"(",
"local",
"dc",
"!",
"=",
"null",
")",
"{",
"dc",
"aware",
"policy",
"builder",
"with",
"local",
"dc",
"(",
"local",
"dc",
")",
";",
"}",
"builder",
"with",
"load",
"balancing",
"policy",
"(",
"new",
"token",
"aware",
"policy",
"(",
"dc",
"aware",
"policy",
"builder",
"build",
"(",
")",
")",
")",
";",
"if",
"(",
"consistency",
"level",
"!",
"=",
"null",
")",
"{",
"builder",
"with",
"query",
"options",
"(",
"new",
"query",
"options",
"(",
")",
"set",
"consistency",
"level",
"(",
"consistency",
"level",
"value",
"of",
"(",
"consistency",
"level",
")",
")",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"compute",
"the",
"percentage",
"of",
"token",
"addressed",
"compared",
"with",
"the",
"whole",
"tokens",
"in",
"the",
"cluster"
] |
[
"double",
"ring",
"fraction",
"=",
"0",
";",
"for",
"(",
"token",
"range",
"token",
"range",
":",
"token",
"ranges",
")",
"{",
"ring",
"fraction",
"=",
"ring",
"fraction",
"+",
"(",
"distance",
"(",
"token",
"range",
"range",
"start",
",",
"token",
"range",
"range",
"end",
")",
"double",
"value",
"(",
")",
"/",
"split",
"generator",
"get",
"range",
"size",
"(",
"murmur3partitioner",
")",
"double",
"value",
"(",
")",
")",
";",
"}",
"return",
"ring",
"fraction",
";"
] |
[
"measure",
"distance",
"between",
"two",
"tokens"
] |
[
"return",
"(",
"right",
"compare",
"to",
"(",
"left",
")",
">",
"0",
")",
"?",
"right",
"subtract",
"(",
"left",
")",
":",
"right",
"subtract",
"(",
"left",
")",
"add",
"(",
"split",
"generator",
"get",
"range",
"size",
"(",
"murmur3partitioner",
")",
")",
";"
] |
[
"check",
"if",
"the",
"current",
"partitioner",
"is",
"the",
"murmur",
"3",
"(",
"default",
"in",
"cassandra",
"version",
"newer",
"than",
"2",
")"
] |
[
"return",
"murmur3partitioner",
"equals",
"(",
"cluster",
"get",
"metadata",
"(",
")",
"get",
"partitioner",
"(",
")",
")",
";"
] |
[
"default",
"implementation",
"which",
"will",
"ignore",
"all",
"results",
"sent",
"from",
"execution",
"nodes"
] |
[
"return",
"null",
";"
] |
[
"returns",
"whether",
"we",
"ve",
"generated",
"any",
"new",
"ids"
] |
[
"return",
"current",
"id",
"!",
"=",
"0",
";"
] |
[
"creates",
"a",
"new",
"id",
"for",
"stubbing",
"a",
"method"
] |
[
"return",
"current",
"id",
"+",
"+",
";"
] |
[
"determines",
"an",
"execution",
"filter",
"based",
"on",
"the",
"-",
"-",
"check",
"up",
"to",
"date",
"and",
"-",
"-",
"check",
"tests",
"up",
"to",
"date",
"options",
"returns",
"a",
"singleton",
"if",
"possible"
] |
[
"if",
"(",
"!",
"options",
"test",
"check",
"up",
"to",
"date",
"&",
"&",
"!",
"options",
"check",
"up",
"to",
"date",
")",
"{",
"return",
"predicates",
"always",
"true",
"(",
")",
";",
"}",
"return",
"new",
"check",
"up",
"to",
"date",
"filter",
"(",
"options",
")",
";"
] |
[
"package",
"private",
"for",
"unit",
"tests"
] |
[
"if",
"(",
"attribute",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"acl",
"match",
"rule",
":",
"acl",
")",
"{",
"if",
"(",
"rule",
"matches",
"(",
"attribute",
")",
")",
"{",
"return",
"!",
"rule",
"is",
"deny",
"(",
")",
";",
"}",
"}",
"}",
"return",
"default",
"allow",
";"
] |
[
"adds",
"an",
"allowed",
"user",
"agent",
"peer",
"to",
"the",
"acl",
"list",
"<",
"p",
">",
"user",
"agent",
"may",
"be",
"given",
"as",
"regex"
] |
[
"return",
"add",
"rule",
"(",
"pattern",
",",
"false",
")",
";"
] |
[
"adds",
"an",
"denied",
"user",
"agent",
"to",
"the",
"acl",
"list",
"<",
"p",
">",
"user",
"agent",
"may",
"be",
"given",
"as",
"regex"
] |
[
"return",
"add",
"rule",
"(",
"pattern",
",",
"true",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"return",
"create",
"(",
")",
"extract",
"bind",
"values",
"(",
"this",
")",
";"
] |
[
"subclasses",
"may",
"override",
"this",
"for",
"covariant",
"result",
"types",
"<",
"p",
">",
"{"
] |
[
"this",
"poolable",
"=",
"p",
"?",
"query",
"poolable",
"true",
":",
"query",
"poolable",
"false",
";",
"return",
"this",
";"
] |
[
"subclasses",
"may",
"override",
"this",
"for",
"covariant",
"result",
"types",
"<",
"p",
">",
"{"
] |
[
"this",
"timeout",
"=",
"t",
";",
"return",
"this",
";"
] |
[
"subclasses",
"may",
"override",
"this",
"for",
"covariant",
"result",
"types",
"<",
"p",
">",
"{"
] |
[
"this",
"keep",
"statement",
"=",
"k",
";",
"return",
"this",
";"
] |
[
"default",
"implementation",
"to",
"indicate",
"whether",
"this",
"query",
"should",
"close",
"the",
"{"
] |
[
"return",
"false",
";"
] |
[
"default",
"implementation",
"for",
"preparing",
"a",
"statement",
"subclasses",
"may",
"override",
"this",
"method"
] |
[
"ctx",
"statement",
"(",
"ctx",
"connection",
"(",
")",
"prepare",
"statement",
"(",
"ctx",
"sql",
"(",
")",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"get",
"s",
"q",
"l",
"(",
"get",
"param",
"type",
"(",
"tools",
"settings",
"(",
"configuration",
"(",
")",
")",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"get",
"s",
"q",
"l",
"(",
"inline",
"?",
"inlined",
":",
"indexed",
")",
";"
] |
[
"called",
"by",
"the",
"scr",
"to",
"activate",
"the",
"component",
"with",
"its",
"configuration",
"read",
"from",
"cas"
] |
[
"set",
"properly",
"configured",
"(",
"true",
")",
";"
] |
[
"returns",
"the",
"set",
"of",
"data",
"types",
"that",
"support",
"both",
"import",
"and",
"export"
] |
[
"return",
"sets",
"intersection",
"(",
"supported",
"export",
"types",
",",
"supported",
"import",
"types",
")",
";"
] |
[
"explicitly",
"an",
"entity",
"type",
"is",
"an",
"entity",
"type",
";",
")"
] |
[
"return",
"true",
";"
] |
[
"generates",
"a",
"string",
"representation",
"of",
"this",
"type"
] |
[
"return",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
"+",
"'",
"(",
"'",
"+",
"get",
"associated",
"entity",
"name",
"(",
")",
"+",
"'",
")",
"'",
";"
] |
[
"for",
"entity",
"types",
"the",
"name",
"correlates",
"to",
"the",
"associated",
"entity",
"name"
] |
[
"return",
"associated",
"entity",
"name",
";"
] |
[
"the",
"name",
"of",
"the",
"associated",
"entity"
] |
[
"return",
"associated",
"entity",
"name",
";"
] |
[
"the",
"name",
"of",
"the",
"associated",
"entity"
] |
[
"return",
"get",
"associated",
"entity",
"name",
"(",
")",
";"
] |
[
"retrieves",
"the",
"{",
"@",
"link",
"joinable",
"}",
"defining",
"the",
"associated",
"entity"
] |
[
"return",
"(",
"joinable",
")",
"get",
"associated",
"entity",
"persister",
"(",
"factory",
")",
";"
] |
[
"this",
"returns",
"the",
"wrong",
"class",
"for",
"an",
"entity",
"with",
"a",
"proxy",
"or",
"for",
"a",
"named",
"entity",
"theoretically",
"it",
"should",
"return",
"the",
"proxy",
"class",
"but",
"it",
"doesn",
"t",
"<",
"p",
"/",
">",
"the",
"problem",
"here",
"is",
"that",
"we",
"do",
"not",
"necessarily",
"have",
"a",
"ref",
"to",
"the",
"associated",
"entity",
"persister",
"(",
"nor",
"to",
"the",
"session",
"factory",
"to",
"look",
"it",
"up",
")",
"which",
"is",
"really",
"needed",
"to",
"do",
"the",
"right",
"thing",
"here"
] |
[
"if",
"(",
"returned",
"class",
"=",
"=",
"null",
")",
"{",
"returned",
"class",
"=",
"determine",
"associated",
"entity",
"class",
"(",
")",
";",
"}",
"return",
"returned",
"class",
";"
] |
[
"two",
"entities",
"are",
"considered",
"the",
"same",
"when",
"their",
"instances",
"are",
"the",
"same"
] |
[
"return",
"x",
"=",
"=",
"y",
";"
] |
[
"is",
"the",
"association",
"modeled",
"here",
"defined",
"as",
"a",
"1",
"-",
"1",
"in",
"the",
"database",
"(",
"physical",
"model",
")",
"?"
] |
[
"public",
"abstract",
"boolean",
"is",
"one",
"to",
"one",
"(",
")",
";"
] |
[
"is",
"the",
"association",
"modeled",
"here",
"a",
"1",
"-",
"1",
"according",
"to",
"the",
"logical",
"moidel",
"?"
] |
[
"return",
"is",
"one",
"to",
"one",
"(",
")",
";"
] |
[
"convenience",
"method",
"to",
"locate",
"the",
"identifier",
"type",
"of",
"the",
"associated",
"entity"
] |
[
"final",
"type",
"type",
"=",
"associated",
"identifier",
"type",
";",
"if",
"(",
"type",
"=",
"=",
"null",
")",
"{",
"associated",
"identifier",
"type",
"=",
"get",
"identifier",
"type",
"(",
"session",
"get",
"factory",
"(",
")",
")",
";",
"return",
"associated",
"identifier",
"type",
";",
"}",
"else",
"{",
"return",
"type",
";",
"}"
] |
[
"determine",
"the",
"type",
"of",
"either",
"(",
"1",
")",
"the",
"identifier",
"if",
"we",
"reference",
"the",
"associated",
"entity",
"s",
"pk",
"or",
"(",
"2",
")",
"the",
"unique",
"key",
"to",
"which",
"we",
"refer",
"(",
"i",
"e",
"the",
"property",
"-",
"ref",
")"
] |
[
"if",
"(",
"is",
"reference",
"to",
"primary",
"key",
"(",
")",
"|",
"|",
"unique",
"key",
"property",
"name",
"=",
"=",
"null",
")",
"{",
"return",
"get",
"identifier",
"type",
"(",
"factory",
")",
";",
"}",
"else",
"{",
"type",
"type",
"=",
"factory",
"get",
"referenced",
"property",
"type",
"(",
"get",
"associated",
"entity",
"name",
"(",
")",
",",
"unique",
"key",
"property",
"name",
")",
";",
"if",
"(",
"type",
"is",
"entity",
"type",
"(",
")",
")",
"{",
"type",
"=",
"(",
"(",
"entity",
"type",
")",
"type",
")",
"get",
"identifier",
"or",
"unique",
"key",
"type",
"(",
"factory",
")",
";",
"}",
"return",
"type",
";",
"}"
] |
[
"the",
"name",
"of",
"the",
"property",
"on",
"the",
"associated",
"entity",
"to",
"which",
"our",
"fk",
"refers"
] |
[
"if",
"(",
"is",
"reference",
"to",
"primary",
"key",
"(",
")",
"|",
"|",
"unique",
"key",
"property",
"name",
"=",
"=",
"null",
")",
"{",
"return",
"factory",
"get",
"identifier",
"property",
"name",
"(",
"get",
"associated",
"entity",
"name",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"unique",
"key",
"property",
"name",
";",
"}"
] |
[
"the",
"nullability",
"of",
"the",
"property"
] |
[
"public",
"abstract",
"boolean",
"is",
"nullable",
"(",
")",
";"
] |
[
"resolve",
"an",
"identifier",
"via",
"a",
"load"
] |
[
"boolean",
"is",
"proxy",
"unwrap",
"enabled",
"=",
"unwrap",
"proxy",
"&",
"&",
"get",
"associated",
"entity",
"persister",
"(",
"session",
"get",
"factory",
"(",
")",
")",
"is",
"instrumented",
"(",
")",
";",
"boolean",
"eager",
"=",
"overriding",
"eager",
"!",
"=",
"null",
"?",
"overriding",
"eager",
":",
"this",
"eager",
";",
"object",
"proxy",
"or",
"entity",
"=",
"session",
"internal",
"load",
"(",
"get",
"associated",
"entity",
"name",
"(",
")",
",",
"id",
",",
"eager",
",",
"is",
"nullable",
"(",
")",
")",
";",
"if",
"(",
"proxy",
"or",
"entity",
"instanceof",
"hibernate",
"proxy",
")",
"{",
"(",
"(",
"hibernate",
"proxy",
")",
"proxy",
"or",
"entity",
")",
"get",
"hibernate",
"lazy",
"initializer",
"(",
")",
"set",
"unwrap",
"(",
"is",
"proxy",
"unwrap",
"enabled",
")",
";",
"}",
"return",
"proxy",
"or",
"entity",
";"
] |
[
"{"
] |
[
"return",
"null",
";"
] |
[
"maps",
"future",
"on",
"ready",
"topology"
] |
[
"protected",
"abstract",
"void",
"map",
"on",
"topology",
"(",
")",
";"
] |
[
"{"
] |
[
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"response",
"callback"
] |
[
"public",
"abstract",
"void",
"on",
"primary",
"response",
"(",
"uuid",
"node",
"id",
",",
"grid",
"near",
"atomic",
"update",
"response",
"res",
",",
"boolean",
"node",
"err",
")",
";"
] |
[
"{"
] |
[
"return",
"s",
"to",
"string",
"(",
"grid",
"near",
"atomic",
"abstract",
"update",
"future",
"class",
",",
"this",
",",
"super",
"to",
"string",
"(",
")",
")",
";"
] |
[
"gets",
"immutable",
"version",
"of",
"this",
"configuration"
] |
[
"if",
"(",
"read",
"only",
"=",
"=",
"null",
")",
"{",
"read",
"only",
"=",
"new",
"map",
"config",
"read",
"only",
"(",
"this",
")",
";",
"}",
"return",
"read",
"only",
";"
] |
[
"sets",
"the",
"name",
"of",
"the",
"{",
"@",
"link",
"com",
"hazelcast",
"core",
"i",
"map",
"}"
] |
[
"this",
"name",
"=",
"name",
";",
"return",
"this",
";"
] |
[
"number",
"of",
"synchronous",
"backups",
"for",
"example",
"if",
"1",
"is",
"set",
"as",
"the",
"backup",
"count",
"then",
"all",
"entries",
"of",
"the",
"map",
"will",
"be",
"copied",
"to",
"another",
"jvm",
"for",
"fail",
"-",
"safety",
"0",
"means",
"no",
"sync",
"backup"
] |
[
"this",
"backup",
"count",
"=",
"check",
"backup",
"count",
"(",
"backup",
"count",
",",
"async",
"backup",
"count",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"number",
"of",
"asynchronous",
"backups",
"0",
"means",
"no",
"backups"
] |
[
"this",
"async",
"backup",
"count",
"=",
"check",
"async",
"backup",
"count",
"(",
"backup",
"count",
",",
"async",
"backup",
"count",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"eviction",
"percentage",
":",
"specified",
"percentage",
"of",
"the",
"map",
"to",
"be",
"evicted"
] |
[
"return",
"eviction",
"percentage",
";"
] |
[
"returns",
"the",
"minimum",
"milliseconds",
"which",
"should",
"pass",
"before",
"asking",
"if",
"a",
"partition",
"of",
"this",
"map",
"is",
"evictable",
"or",
"not",
"<",
"p",
">",
"default",
"value",
"is",
"{",
"@",
"value",
"#",
"default",
"min",
"eviction",
"check",
"millis",
"}",
"milliseconds"
] |
[
"return",
"min",
"eviction",
"check",
"millis",
";"
] |
[
"the",
"maximum",
"number",
"of",
"seconds",
"for",
"each",
"entry",
"to",
"stay",
"in",
"the",
"map",
"entries",
"that",
"are",
"older",
"than",
"time",
"to",
"live",
"seconds",
"will",
"be",
"automatically",
"evicted",
"from",
"the",
"map",
"updates",
"on",
"the",
"entry",
"will",
"change",
"the",
"eviction",
"time",
"any",
"integer",
"between",
"0",
"and",
"integer",
"max",
"value",
"0",
"means",
"infinite",
"default",
"is",
"0"
] |
[
"this",
"time",
"to",
"live",
"seconds",
"=",
"time",
"to",
"live",
"seconds",
";",
"return",
"this",
";"
] |
[
"maximum",
"number",
"of",
"seconds",
"for",
"each",
"entry",
"to",
"stay",
"idle",
"in",
"the",
"map",
"entries",
"that",
"are",
"idle",
"(",
"not",
"touched",
")",
"for",
"more",
"than",
"{",
"@",
"code",
"max",
"idle",
"seconds",
"}",
"will",
"get",
"automatically",
"evicted",
"from",
"the",
"map",
"entry",
"is",
"touched",
"if",
"{",
"@",
"code",
"get",
"(",
")",
"}",
"{",
"@",
"code",
"get",
"all",
"(",
")",
"}",
"{",
"@",
"code",
"put",
"(",
")",
"}",
"or",
"{",
"@",
"code",
"contains",
"key",
"(",
")",
"}",
"is",
"called",
"any",
"integer",
"between",
"{",
"@",
"code",
"0",
"}",
"and",
"{",
"@",
"code",
"integer",
"max",
"value",
"}",
"{",
"@",
"code",
"0",
"}",
"means",
"infinite",
"default",
"is",
"{",
"@",
"code",
"0",
"}"
] |
[
"this",
"max",
"idle",
"seconds",
"=",
"max",
"idle",
"seconds",
";",
"return",
"this",
";"
] |
[
"returns",
"custom",
"eviction",
"policy",
"if",
"it",
"is",
"set",
"otherwise",
"returns",
"{",
"@",
"code",
"null",
"}"
] |
[
"return",
"map",
"eviction",
"policy",
";"
] |
[
"returns",
"the",
"map",
"store",
"configuration"
] |
[
"return",
"map",
"store",
"config",
";"
] |
[
"sets",
"the",
"map",
"store",
"configuration"
] |
[
"this",
"map",
"store",
"config",
"=",
"map",
"store",
"config",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"near",
"cache",
"configuration"
] |
[
"return",
"near",
"cache",
"config",
";"
] |
[
"sets",
"the",
"near",
"cache",
"configuration"
] |
[
"this",
"near",
"cache",
"config",
"=",
"near",
"cache",
"config",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"merge",
"policy",
"<",
"p",
">",
"accepts",
"a",
"classname",
"of",
"{",
"@",
"link",
"split",
"brain",
"merge",
"policy",
"}",
"or",
"the",
"deprecated",
"{",
"@",
"link",
"com",
"hazelcast",
"map",
"merge",
"map",
"merge",
"policy",
"}"
] |
[
"this",
"merge",
"policy",
"config",
"set",
"policy",
"(",
"merge",
"policy",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"statistics",
"to",
"enabled",
"or",
"disabled",
"for",
"this",
"map"
] |
[
"this",
"statistics",
"enabled",
"=",
"statistics",
"enabled",
";",
"return",
"this",
";"
] |
[
"checks",
"if",
"read",
"-",
"backup",
"-",
"data",
"(",
"reading",
"local",
"backup",
"entries",
")",
"is",
"enabled",
"for",
"this",
"map"
] |
[
"return",
"read",
"backup",
"data",
";"
] |
[
"sets",
"read",
"-",
"backup",
"-",
"data",
"(",
"reading",
"local",
"backup",
"entries",
")",
"for",
"this",
"map"
] |
[
"this",
"read",
"backup",
"data",
"=",
"read",
"backup",
"data",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"wan",
"target",
"replication",
"reference"
] |
[
"this",
"wan",
"replication",
"ref",
"=",
"wan",
"replication",
"ref",
";",
"return",
"this",
";"
] |
[
"returns",
"all",
"{",
"@",
"link",
"query",
"cache",
"config",
"}",
"instances",
"defined",
"on",
"this",
"{",
"@",
"code",
"map",
"config",
"}"
] |
[
"if",
"(",
"query",
"cache",
"configs",
"=",
"=",
"null",
")",
"{",
"query",
"cache",
"configs",
"=",
"new",
"array",
"list",
"<",
"query",
"cache",
"config",
">",
"(",
")",
";",
"}",
"return",
"query",
"cache",
"configs",
";"
] |
[
"sets",
"{"
] |
[
"this",
"query",
"cache",
"configs",
"=",
"query",
"cache",
"configs",
";"
] |
[
"checks",
"if",
"near",
"cache",
"is",
"enabled"
] |
[
"return",
"near",
"cache",
"config",
"!",
"=",
"null",
";"
] |
[
"checks",
"if",
"queries",
"are",
"optimized"
] |
[
"return",
"cache",
"deserialized",
"values",
"=",
"=",
"cache",
"deserialized",
"values",
"always",
";"
] |
[
"configure",
"de",
"-",
"serialized",
"value",
"caching",
"default",
":",
"{",
"@",
"link",
"cache",
"deserialized",
"values",
"#",
"index",
"only",
"}"
] |
[
"validate",
"cache",
"deserialized",
"values",
"option",
"(",
"cache",
"deserialized",
"values",
")",
";",
"this",
"cache",
"deserialized",
"values",
"=",
"cache",
"deserialized",
"values",
";",
"this",
"set",
"cache",
"deserialized",
"values",
"explicitly",
"invoked",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"{",
"@",
"code",
"hot",
"restart",
"config",
"}",
"for",
"this",
"{",
"@",
"code",
"map",
"config",
"}"
] |
[
"this",
"hot",
"restart",
"config",
"=",
"hot",
"restart",
"config",
";",
"return",
"this",
";"
] |
[
"get",
"current",
"value",
"cache",
"settings"
] |
[
"return",
"cache",
"deserialized",
"values",
";"
] |
[
"set",
"cache",
"flags",
"bit",
"map"
] |
[
"this",
"cache",
"flags",
"on",
"=",
"cache",
"flags",
"on",
";"
] |
[
"get",
"cache",
"flags",
"bit",
"map"
] |
[
"return",
"cache",
"flags",
"on",
";"
] |
[
"add",
"to",
"the",
"file",
"info",
"all",
"added",
"key",
"/",
"value",
"pairs",
"can",
"be",
"obtained",
"using",
"{",
"@",
"link",
"h",
"file",
"reader",
"#",
"load",
"file",
"info",
"(",
")",
"}"
] |
[
"file",
"info",
"append",
"(",
"k",
",",
"v",
",",
"true",
")",
";"
] |
[
"sets",
"the",
"file",
"info",
"offset",
"in",
"the",
"trailer",
"finishes",
"up",
"populating",
"fields",
"in",
"the",
"file",
"info",
"and",
"writes",
"the",
"file",
"info",
"into",
"the",
"given",
"data",
"output",
"the",
"reason",
"the",
"data",
"output",
"is",
"not",
"always",
"{",
"@",
"link",
"#",
"output",
"stream",
"}",
"is",
"that",
"we",
"store",
"file",
"info",
"as",
"a",
"block",
"in",
"version",
"2"
] |
[
"trailer",
"set",
"file",
"info",
"offset",
"(",
"output",
"stream",
"get",
"pos",
"(",
")",
")",
";",
"finish",
"file",
"info",
"(",
")",
";",
"long",
"start",
"time",
"=",
"system",
"current",
"time",
"millis",
"(",
")",
";",
"file",
"info",
"write",
"(",
"out",
")",
";",
"h",
"file",
"update",
"write",
"latency",
"(",
"system",
"current",
"time",
"millis",
"(",
")",
"-",
"start",
"time",
")",
";"
] |
[
"a",
"helper",
"method",
"to",
"create",
"h",
"file",
"output",
"streams",
"in",
"constructors"
] |
[
"fs",
"permission",
"perms",
"=",
"f",
"s",
"utils",
"get",
"file",
"permissions",
"(",
"fs",
",",
"conf",
",",
"h",
"constants",
"data",
"file",
"umask",
"key",
")",
";",
"return",
"f",
"s",
"utils",
"create",
"(",
"conf",
",",
"fs",
",",
"path",
",",
"perms",
",",
"favored",
"nodes",
")",
";"
] |
[
"gives",
"inline",
"block",
"writers",
"an",
"opportunity",
"to",
"contribute",
"blocks"
] |
[
"for",
"(",
"inline",
"block",
"writer",
"ibw",
":",
"inline",
"block",
"writers",
")",
"{",
"while",
"(",
"ibw",
"should",
"write",
"block",
"(",
"closing",
")",
")",
"{",
"long",
"offset",
"=",
"output",
"stream",
"get",
"pos",
"(",
")",
";",
"boolean",
"cache",
"this",
"block",
"=",
"ibw",
"get",
"cache",
"on",
"write",
"(",
")",
";",
"ibw",
"write",
"inline",
"block",
"(",
"block",
"writer",
"start",
"writing",
"(",
"ibw",
"get",
"inline",
"block",
"type",
"(",
")",
")",
")",
";",
"block",
"writer",
"write",
"header",
"and",
"data",
"(",
"output",
"stream",
")",
";",
"ibw",
"block",
"written",
"(",
"offset",
",",
"block",
"writer",
"get",
"on",
"disk",
"size",
"with",
"header",
"(",
")",
",",
"block",
"writer",
"get",
"uncompressed",
"size",
"without",
"header",
"(",
")",
")",
";",
"total",
"uncompressed",
"bytes",
"+",
"=",
"block",
"writer",
"get",
"uncompressed",
"size",
"with",
"header",
"(",
")",
";",
"if",
"(",
"cache",
"this",
"block",
")",
"{",
"do",
"cache",
"on",
"write",
"(",
"offset",
")",
";",
"}",
"}",
"}"
] |
[
"caches",
"the",
"last",
"written",
"h",
"file",
"block"
] |
[
"h",
"file",
"block",
"cache",
"format",
"block",
"=",
"block",
"writer",
"get",
"block",
"for",
"caching",
"(",
"cache",
"conf",
")",
";",
"cache",
"conf",
"get",
"block",
"cache",
"(",
")",
"cache",
"block",
"(",
"new",
"block",
"cache",
"key",
"(",
"name",
",",
"offset",
",",
"true",
",",
"cache",
"format",
"block",
"get",
"block",
"type",
"(",
")",
")",
",",
"cache",
"format",
"block",
")",
";"
] |
[
"{"
] |
[
"return",
"collections",
"singleton",
"map",
"(",
"new",
"get",
"cache",
"plugins",
"job",
"(",
"arg",
")",
",",
"f",
"first",
"(",
"subgrid",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"results",
"get",
"(",
"0",
")",
"get",
"data",
"(",
")",
";"
] |
[
"{"
] |
[
"cache",
"plugin",
"configuration",
"[",
"]",
"cfg",
"=",
"ignite",
"cache",
"(",
"cache",
"name",
")",
"get",
"configuration",
"(",
"cache",
"configuration",
"class",
")",
"get",
"plugin",
"configurations",
"(",
")",
";",
"if",
"(",
"cfg",
"=",
"=",
"null",
")",
"return",
"null",
";",
"string",
"[",
"]",
"res",
"=",
"new",
"string",
"[",
"cfg",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"cfg",
"length",
";",
"i",
"+",
"+",
")",
"res",
"[",
"i",
"]",
"=",
"cfg",
"[",
"i",
"]",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
";",
"return",
"res",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"return",
"s",
"enabled",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"scheduled",
"audits",
"<",
"/",
"p",
">"
] |
[
"return",
"scheduled",
"audits",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"scheduled",
"audits",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"scheduled",
"audits",
"=",
"=",
"null",
")",
"{",
"this",
"scheduled",
"audits",
"=",
"null",
";",
"return",
";",
"}",
"this",
"scheduled",
"audits",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"scheduled",
"audit",
"metadata",
">",
"(",
"scheduled",
"audits",
")",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"scheduled",
"audits",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"scheduled",
"audits",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"scheduled",
"audits",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"scheduled",
"audits",
"=",
"=",
"null",
")",
"{",
"set",
"scheduled",
"audits",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"scheduled",
"audit",
"metadata",
">",
"(",
"scheduled",
"audits",
"length",
")",
")",
";",
"}",
"for",
"(",
"scheduled",
"audit",
"metadata",
"ele",
":",
"scheduled",
"audits",
")",
"{",
"this",
"scheduled",
"audits",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.