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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
56,300 | ModeShape/modeshape | sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/StandardDdlParser.java | StandardDdlParser.parseUntilTerminator | protected String parseUntilTerminator( DdlTokenStream tokens ) throws ParsingException {
final StringBuilder sb = new StringBuilder();
boolean lastTokenWasPeriod = false;
Position prevPosition = (tokens.hasNext() ? tokens.nextPosition() : Position.EMPTY_CONTENT_POSITION);
String prevToke... | java | protected String parseUntilTerminator( DdlTokenStream tokens ) throws ParsingException {
final StringBuilder sb = new StringBuilder();
boolean lastTokenWasPeriod = false;
Position prevPosition = (tokens.hasNext() ? tokens.nextPosition() : Position.EMPTY_CONTENT_POSITION);
String prevToke... | [
"protected",
"String",
"parseUntilTerminator",
"(",
"DdlTokenStream",
"tokens",
")",
"throws",
"ParsingException",
"{",
"final",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"boolean",
"lastTokenWasPeriod",
"=",
"false",
";",
"Position",
"prevP... | Utility method which parses tokens until a terminator is found, another statement is identified or there are no more
tokens.
@param tokens the {@link DdlTokenStream} representing the tokenized DDL content; may not be null
@return the parsed string
@throws ParsingException | [
"Utility",
"method",
"which",
"parses",
"tokens",
"until",
"a",
"terminator",
"is",
"found",
"another",
"statement",
"is",
"identified",
"or",
"there",
"are",
"no",
"more",
"tokens",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/StandardDdlParser.java#L2568-L2600 |
56,301 | ModeShape/modeshape | sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/StandardDdlParser.java | StandardDdlParser.parseUntilSemiColon | protected String parseUntilSemiColon( DdlTokenStream tokens ) throws ParsingException {
StringBuilder sb = new StringBuilder();
boolean lastTokenWasPeriod = false;
while (tokens.hasNext() && !tokens.matches(SEMICOLON)) {
String thisToken = tokens.consume();
boolean thisT... | java | protected String parseUntilSemiColon( DdlTokenStream tokens ) throws ParsingException {
StringBuilder sb = new StringBuilder();
boolean lastTokenWasPeriod = false;
while (tokens.hasNext() && !tokens.matches(SEMICOLON)) {
String thisToken = tokens.consume();
boolean thisT... | [
"protected",
"String",
"parseUntilSemiColon",
"(",
"DdlTokenStream",
"tokens",
")",
"throws",
"ParsingException",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"boolean",
"lastTokenWasPeriod",
"=",
"false",
";",
"while",
"(",
"tokens",
".... | Utility method which parses tokens until a semicolon is found or there are no more tokens.
@param tokens the {@link DdlTokenStream} representing the tokenized DDL content; may not be null
@return the parsed string
@throws ParsingException | [
"Utility",
"method",
"which",
"parses",
"tokens",
"until",
"a",
"semicolon",
"is",
"found",
"or",
"there",
"are",
"no",
"more",
"tokens",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/StandardDdlParser.java#L2651-L2672 |
56,302 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryNodeTypeManager.java | RepositoryNodeTypeManager.registerListener | final boolean registerListener( NodeTypes.Listener listener ) {
return listener != null ? this.listeners.addIfAbsent(listener) : false;
} | java | final boolean registerListener( NodeTypes.Listener listener ) {
return listener != null ? this.listeners.addIfAbsent(listener) : false;
} | [
"final",
"boolean",
"registerListener",
"(",
"NodeTypes",
".",
"Listener",
"listener",
")",
"{",
"return",
"listener",
"!=",
"null",
"?",
"this",
".",
"listeners",
".",
"addIfAbsent",
"(",
"listener",
")",
":",
"false",
";",
"}"
] | Add a listener that will be notified when the NodeTypes changes. Listeners will be called in a single thread, and should do
almost no work.
@param listener the new listener
@return true if the listener was registered, or false if {@code listener} is null or if it is already registered | [
"Add",
"a",
"listener",
"that",
"will",
"be",
"notified",
"when",
"the",
"NodeTypes",
"changes",
".",
"Listeners",
"will",
"be",
"called",
"in",
"a",
"single",
"thread",
"and",
"should",
"do",
"almost",
"no",
"work",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryNodeTypeManager.java#L152-L154 |
56,303 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryNodeTypeManager.java | RepositoryNodeTypeManager.isNodeTypeInUse | boolean isNodeTypeInUse( Name nodeTypeName ) throws InvalidQueryException {
String nodeTypeString = nodeTypeName.getString(context.getNamespaceRegistry());
String expression = "SELECT * from [" + nodeTypeString + "] LIMIT 1";
TypeSystem typeSystem = context.getValueFactories().getTypeSystem();
... | java | boolean isNodeTypeInUse( Name nodeTypeName ) throws InvalidQueryException {
String nodeTypeString = nodeTypeName.getString(context.getNamespaceRegistry());
String expression = "SELECT * from [" + nodeTypeString + "] LIMIT 1";
TypeSystem typeSystem = context.getValueFactories().getTypeSystem();
... | [
"boolean",
"isNodeTypeInUse",
"(",
"Name",
"nodeTypeName",
")",
"throws",
"InvalidQueryException",
"{",
"String",
"nodeTypeString",
"=",
"nodeTypeName",
".",
"getString",
"(",
"context",
".",
"getNamespaceRegistry",
"(",
")",
")",
";",
"String",
"expression",
"=",
... | Check if the named node type is in use in any workspace in the repository
@param nodeTypeName the name of the node type to check
@return true if at least one node is using that type; false otherwise
@throws InvalidQueryException if there is an error searching for uses of the named node type | [
"Check",
"if",
"the",
"named",
"node",
"type",
"is",
"in",
"use",
"in",
"any",
"workspace",
"in",
"the",
"repository"
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryNodeTypeManager.java#L305-L344 |
56,304 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryIndexManager.java | RepositoryIndexManager.doInitialize | protected void doInitialize( IndexProvider provider ) throws RepositoryException {
// Set the execution context instance ...
Reflection.setValue(provider, "context", repository.context());
// Set the environment
Reflection.setValue(provider, "environment", repository.environmen... | java | protected void doInitialize( IndexProvider provider ) throws RepositoryException {
// Set the execution context instance ...
Reflection.setValue(provider, "context", repository.context());
// Set the environment
Reflection.setValue(provider, "environment", repository.environmen... | [
"protected",
"void",
"doInitialize",
"(",
"IndexProvider",
"provider",
")",
"throws",
"RepositoryException",
"{",
"// Set the execution context instance ...",
"Reflection",
".",
"setValue",
"(",
"provider",
",",
"\"context\"",
",",
"repository",
".",
"context",
"(",
")"... | Initialize the supplied provider.
@param provider the provider; may not be null
@throws RepositoryException if there is a problem initializing the provider | [
"Initialize",
"the",
"supplied",
"provider",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryIndexManager.java#L234-L252 |
56,305 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryIndexManager.java | RepositoryIndexManager.getIndexWriterForProviders | IndexWriter getIndexWriterForProviders( Set<String> providerNames ) {
List<IndexProvider> reindexProviders = new LinkedList<>();
for (IndexProvider provider : providers.values()) {
if (providerNames.contains(provider.getName())) {
reindexProviders.add(provider);
}... | java | IndexWriter getIndexWriterForProviders( Set<String> providerNames ) {
List<IndexProvider> reindexProviders = new LinkedList<>();
for (IndexProvider provider : providers.values()) {
if (providerNames.contains(provider.getName())) {
reindexProviders.add(provider);
}... | [
"IndexWriter",
"getIndexWriterForProviders",
"(",
"Set",
"<",
"String",
">",
"providerNames",
")",
"{",
"List",
"<",
"IndexProvider",
">",
"reindexProviders",
"=",
"new",
"LinkedList",
"<>",
"(",
")",
";",
"for",
"(",
"IndexProvider",
"provider",
":",
"providers... | Get the query index writer that will delegate to only those registered providers with the given names.
@param providerNames the names of the providers that require indexing
@return a query index writer instance; never null | [
"Get",
"the",
"query",
"index",
"writer",
"that",
"will",
"delegate",
"to",
"only",
"those",
"registered",
"providers",
"with",
"the",
"given",
"names",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryIndexManager.java#L280-L288 |
56,306 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jmx/RepositoryStatisticsBean.java | RepositoryStatisticsBean.start | public void start() {
ObjectName beanName = null;
try {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
beanName = getObjectName();
server.registerMBean(this, beanName);
} catch (InstanceAlreadyExistsException e) {
LOGGER.warn(JcrI... | java | public void start() {
ObjectName beanName = null;
try {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
beanName = getObjectName();
server.registerMBean(this, beanName);
} catch (InstanceAlreadyExistsException e) {
LOGGER.warn(JcrI... | [
"public",
"void",
"start",
"(",
")",
"{",
"ObjectName",
"beanName",
"=",
"null",
";",
"try",
"{",
"MBeanServer",
"server",
"=",
"ManagementFactory",
".",
"getPlatformMBeanServer",
"(",
")",
";",
"beanName",
"=",
"getObjectName",
"(",
")",
";",
"server",
".",... | Initializes & registers this MBean with the local MBean server. | [
"Initializes",
"&",
"registers",
"this",
"MBean",
"with",
"the",
"local",
"MBean",
"server",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jmx/RepositoryStatisticsBean.java#L65-L76 |
56,307 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jmx/RepositoryStatisticsBean.java | RepositoryStatisticsBean.stop | public void stop() {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
ObjectName beanName = null;
try {
beanName = getObjectName();
server.unregisterMBean(beanName);
} catch (InstanceNotFoundException e) {
LOGGER.debug("JMX bean {0} not... | java | public void stop() {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
ObjectName beanName = null;
try {
beanName = getObjectName();
server.unregisterMBean(beanName);
} catch (InstanceNotFoundException e) {
LOGGER.debug("JMX bean {0} not... | [
"public",
"void",
"stop",
"(",
")",
"{",
"MBeanServer",
"server",
"=",
"ManagementFactory",
".",
"getPlatformMBeanServer",
"(",
")",
";",
"ObjectName",
"beanName",
"=",
"null",
";",
"try",
"{",
"beanName",
"=",
"getObjectName",
"(",
")",
";",
"server",
".",
... | Un-registers the bean from the JMX server. | [
"Un",
"-",
"registers",
"the",
"bean",
"from",
"the",
"JMX",
"server",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jmx/RepositoryStatisticsBean.java#L81-L92 |
56,308 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.show | public void show(String repository, final boolean changeHistory) {
this.repository = repository;
refreshWorkspacesAndReloadNode(null, ROOT_PATH, changeHistory);
} | java | public void show(String repository, final boolean changeHistory) {
this.repository = repository;
refreshWorkspacesAndReloadNode(null, ROOT_PATH, changeHistory);
} | [
"public",
"void",
"show",
"(",
"String",
"repository",
",",
"final",
"boolean",
"changeHistory",
")",
"{",
"this",
".",
"repository",
"=",
"repository",
";",
"refreshWorkspacesAndReloadNode",
"(",
"null",
",",
"ROOT_PATH",
",",
"changeHistory",
")",
";",
"}"
] | Shows content of the root node of the first reachable workspace of the
given repository.
@param repository the name of the given repository.
@param changeHistory if true then this action of navigation will be
reflected in the browser URL and will don't touch URL in case of false
value. | [
"Shows",
"content",
"of",
"the",
"root",
"node",
"of",
"the",
"first",
"reachable",
"workspace",
"of",
"the",
"given",
"repository",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L160-L163 |
56,309 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.show | public void show(final String repository, final String workspace,
final String path, final boolean changeHistory) {
this.repository = repository;
this.refreshWorkspacesAndReloadNode(null, path, changeHistory);
} | java | public void show(final String repository, final String workspace,
final String path, final boolean changeHistory) {
this.repository = repository;
this.refreshWorkspacesAndReloadNode(null, path, changeHistory);
} | [
"public",
"void",
"show",
"(",
"final",
"String",
"repository",
",",
"final",
"String",
"workspace",
",",
"final",
"String",
"path",
",",
"final",
"boolean",
"changeHistory",
")",
"{",
"this",
".",
"repository",
"=",
"repository",
";",
"this",
".",
"refreshW... | Shows nodes identified by repository, workspace and path to node.
@param repository the name of the repository
@param workspace the name of the workspace
@param path the path to node
@param changeHistory true if this action should be reflected in browser
history. | [
"Shows",
"nodes",
"identified",
"by",
"repository",
"workspace",
"and",
"path",
"to",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L174-L178 |
56,310 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.refreshWorkspacesAndReloadNode | private void refreshWorkspacesAndReloadNode(final String name, final String path,
final boolean changeHistory) {
showLoadIcon();
console.jcrService().getWorkspaces(repository, new AsyncCallback<String[]>() {
@Override
public void onFailure(Throwable caught) {
... | java | private void refreshWorkspacesAndReloadNode(final String name, final String path,
final boolean changeHistory) {
showLoadIcon();
console.jcrService().getWorkspaces(repository, new AsyncCallback<String[]>() {
@Override
public void onFailure(Throwable caught) {
... | [
"private",
"void",
"refreshWorkspacesAndReloadNode",
"(",
"final",
"String",
"name",
",",
"final",
"String",
"path",
",",
"final",
"boolean",
"changeHistory",
")",
"{",
"showLoadIcon",
"(",
")",
";",
"console",
".",
"jcrService",
"(",
")",
".",
"getWorkspaces",
... | Reloads values of the combo box with workspace names.
Gets values from server side, assigns to combo box and select given name.
@param name the name to be selected.
@param path the path
@param changeHistory true if the history is to | [
"Reloads",
"values",
"of",
"the",
"combo",
"box",
"with",
"workspace",
"names",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L189-L210 |
56,311 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.getAndDisplayNode | public void getAndDisplayNode(final String path, final boolean changeHistory) {
showLoadIcon();
console.jcrService().node(repository(), workspace(), path, new AsyncCallback<JcrNode>() {
@Override
public void onFailure(Throwable caught) {
hideLoadIcon();
... | java | public void getAndDisplayNode(final String path, final boolean changeHistory) {
showLoadIcon();
console.jcrService().node(repository(), workspace(), path, new AsyncCallback<JcrNode>() {
@Override
public void onFailure(Throwable caught) {
hideLoadIcon();
... | [
"public",
"void",
"getAndDisplayNode",
"(",
"final",
"String",
"path",
",",
"final",
"boolean",
"changeHistory",
")",
"{",
"showLoadIcon",
"(",
")",
";",
"console",
".",
"jcrService",
"(",
")",
".",
"node",
"(",
"repository",
"(",
")",
",",
"workspace",
"(... | Reads node with given path and selected repository and workspace.
@param path the path to the node.
@param changeHistory if true then path will be reflected in browser
history. | [
"Reads",
"node",
"with",
"given",
"path",
"and",
"selected",
"repository",
"and",
"workspace",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L219-L236 |
56,312 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.displayNode | private void displayNode(JcrNode node) {
this.node = node;
this.path = node.getPath();
pathLabel.display(node.getPath());
//display childs, properties and ACLs
childrenEditor.show(node);
propertiesEditor.show(node);
permissionsEditor.show(node);
display... | java | private void displayNode(JcrNode node) {
this.node = node;
this.path = node.getPath();
pathLabel.display(node.getPath());
//display childs, properties and ACLs
childrenEditor.show(node);
propertiesEditor.show(node);
permissionsEditor.show(node);
display... | [
"private",
"void",
"displayNode",
"(",
"JcrNode",
"node",
")",
"{",
"this",
".",
"node",
"=",
"node",
";",
"this",
".",
"path",
"=",
"node",
".",
"getPath",
"(",
")",
";",
"pathLabel",
".",
"display",
"(",
"node",
".",
"getPath",
"(",
")",
")",
";"... | Displays specified node.
@param node the node being displayed. | [
"Displays",
"specified",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L243-L258 |
56,313 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.save | public void save() {
SC.ask("Do you want to save changes", new BooleanCallback() {
@Override
public void execute(Boolean yesSelected) {
if (yesSelected) {
jcrService().save(repository(), workspace(), new BaseCallback<Object>() {
... | java | public void save() {
SC.ask("Do you want to save changes", new BooleanCallback() {
@Override
public void execute(Boolean yesSelected) {
if (yesSelected) {
jcrService().save(repository(), workspace(), new BaseCallback<Object>() {
... | [
"public",
"void",
"save",
"(",
")",
"{",
"SC",
".",
"ask",
"(",
"\"Do you want to save changes\"",
",",
"new",
"BooleanCallback",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"execute",
"(",
"Boolean",
"yesSelected",
")",
"{",
"if",
"(",
"yesSelected",
... | Save session's changes. | [
"Save",
"session",
"s",
"changes",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L274-L289 |
56,314 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.showAddNodeDialog | public void showAddNodeDialog() {
jcrService().getPrimaryTypes(node.getRepository(),
node.getWorkspace(),
null,
false, new AsyncCallback<String[]>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMess... | java | public void showAddNodeDialog() {
jcrService().getPrimaryTypes(node.getRepository(),
node.getWorkspace(),
null,
false, new AsyncCallback<String[]>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMess... | [
"public",
"void",
"showAddNodeDialog",
"(",
")",
"{",
"jcrService",
"(",
")",
".",
"getPrimaryTypes",
"(",
"node",
".",
"getRepository",
"(",
")",
",",
"node",
".",
"getWorkspace",
"(",
")",
",",
"null",
",",
"false",
",",
"new",
"AsyncCallback",
"<",
"S... | Prepares dialog for creating new node. | [
"Prepares",
"dialog",
"for",
"creating",
"new",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L310-L326 |
56,315 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.exportXML | public void exportXML(String name, boolean skipBinary, boolean noRecurse) {
console.jcrService().export(repository, workspace(), path(), name, true, true, new AsyncCallback<Object>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMessage());
... | java | public void exportXML(String name, boolean skipBinary, boolean noRecurse) {
console.jcrService().export(repository, workspace(), path(), name, true, true, new AsyncCallback<Object>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMessage());
... | [
"public",
"void",
"exportXML",
"(",
"String",
"name",
",",
"boolean",
"skipBinary",
",",
"boolean",
"noRecurse",
")",
"{",
"console",
".",
"jcrService",
"(",
")",
".",
"export",
"(",
"repository",
",",
"workspace",
"(",
")",
",",
"path",
"(",
")",
",",
... | Exports contents to the given file.
@param name the name of the file.
@param skipBinary
@param noRecurse | [
"Exports",
"contents",
"to",
"the",
"given",
"file",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L349-L361 |
56,316 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java | Contents.importXML | public void importXML(String name, int option) {
console.jcrService().importXML(repository, workspace(), path(), name,
option, new AsyncCallback<Object>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMessage());
}
... | java | public void importXML(String name, int option) {
console.jcrService().importXML(repository, workspace(), path(), name,
option, new AsyncCallback<Object>() {
@Override
public void onFailure(Throwable caught) {
SC.say(caught.getMessage());
}
... | [
"public",
"void",
"importXML",
"(",
"String",
"name",
",",
"int",
"option",
")",
"{",
"console",
".",
"jcrService",
"(",
")",
".",
"importXML",
"(",
"repository",
",",
"workspace",
"(",
")",
",",
"path",
"(",
")",
",",
"name",
",",
"option",
",",
"ne... | Imports contents from the given file.
@param name
@param option | [
"Imports",
"contents",
"from",
"the",
"given",
"file",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/Contents.java#L369-L382 |
56,317 | ModeShape/modeshape | connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java | GitFunction.branchRefForName | protected String branchRefForName( String branchName ) {
String remoteName = connector.remoteName();
return remoteName != null ? remoteBranchPrefix(remoteName) + branchName : LOCAL_BRANCH_PREFIX + branchName;
} | java | protected String branchRefForName( String branchName ) {
String remoteName = connector.remoteName();
return remoteName != null ? remoteBranchPrefix(remoteName) + branchName : LOCAL_BRANCH_PREFIX + branchName;
} | [
"protected",
"String",
"branchRefForName",
"(",
"String",
"branchName",
")",
"{",
"String",
"remoteName",
"=",
"connector",
".",
"remoteName",
"(",
")",
";",
"return",
"remoteName",
"!=",
"null",
"?",
"remoteBranchPrefix",
"(",
"remoteName",
")",
"+",
"branchNam... | Obtain the name of the branch reference
@param branchName
@return the branch ref name | [
"Obtain",
"the",
"name",
"of",
"the",
"branch",
"reference"
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java#L108-L111 |
56,318 | ModeShape/modeshape | connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java | GitFunction.addBranchesAsChildren | protected void addBranchesAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer ) throws GitAPIException {
Set<String> remoteBranchPrefixes = remoteBranchPrefixes();
if (remoteBranchPrefixes.isEmpty()) {
... | java | protected void addBranchesAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer ) throws GitAPIException {
Set<String> remoteBranchPrefixes = remoteBranchPrefixes();
if (remoteBranchPrefixes.isEmpty()) {
... | [
"protected",
"void",
"addBranchesAsChildren",
"(",
"Git",
"git",
",",
"CallSpecification",
"spec",
",",
"DocumentWriter",
"writer",
")",
"throws",
"GitAPIException",
"{",
"Set",
"<",
"String",
">",
"remoteBranchPrefixes",
"=",
"remoteBranchPrefixes",
"(",
")",
";",
... | Add the names of the branches as children of the current node.
@param git the Git object; may not be null
@param spec the call specification; may not be null
@param writer the document writer for the current node; may not be null
@throws GitAPIException if there is a problem accessing the Git repository | [
"Add",
"the",
"names",
"of",
"the",
"branches",
"as",
"children",
"of",
"the",
"current",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java#L155-L197 |
56,319 | ModeShape/modeshape | connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java | GitFunction.addTagsAsChildren | protected void addTagsAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer ) throws GitAPIException {
// Generate the child references to the branches, which will be sorted by name (by the command).
ListTagCommand ... | java | protected void addTagsAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer ) throws GitAPIException {
// Generate the child references to the branches, which will be sorted by name (by the command).
ListTagCommand ... | [
"protected",
"void",
"addTagsAsChildren",
"(",
"Git",
"git",
",",
"CallSpecification",
"spec",
",",
"DocumentWriter",
"writer",
")",
"throws",
"GitAPIException",
"{",
"// Generate the child references to the branches, which will be sorted by name (by the command).",
"ListTagCommand... | Add the names of the tags as children of the current node.
@param git the Git object; may not be null
@param spec the call specification; may not be null
@param writer the document writer for the current node; may not be null
@throws GitAPIException if there is a problem accessing the Git repository | [
"Add",
"the",
"names",
"of",
"the",
"tags",
"as",
"children",
"of",
"the",
"current",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java#L207-L220 |
56,320 | ModeShape/modeshape | connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java | GitFunction.addCommitsAsChildren | protected void addCommitsAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer,
int pageSize ) throws GitAPIException {
// Add commits in the log ...
LogCommand command... | java | protected void addCommitsAsChildren( Git git,
CallSpecification spec,
DocumentWriter writer,
int pageSize ) throws GitAPIException {
// Add commits in the log ...
LogCommand command... | [
"protected",
"void",
"addCommitsAsChildren",
"(",
"Git",
"git",
",",
"CallSpecification",
"spec",
",",
"DocumentWriter",
"writer",
",",
"int",
"pageSize",
")",
"throws",
"GitAPIException",
"{",
"// Add commits in the log ...",
"LogCommand",
"command",
"=",
"git",
".",... | Add the first page of commits in the history names of the tags as children of the current node.
@param git the Git object; may not be null
@param spec the call specification; may not be null
@param writer the document writer for the current node; may not be null
@param pageSize the number of commits to include, and th... | [
"Add",
"the",
"first",
"page",
"of",
"commits",
"in",
"the",
"history",
"names",
"of",
"the",
"tags",
"as",
"children",
"of",
"the",
"current",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java#L232-L253 |
56,321 | ModeShape/modeshape | connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java | GitFunction.addCommitsAsPageOfChildren | protected void addCommitsAsPageOfChildren( Git git,
Repository repository,
CallSpecification spec,
PageWriter writer,
PageKey pageKe... | java | protected void addCommitsAsPageOfChildren( Git git,
Repository repository,
CallSpecification spec,
PageWriter writer,
PageKey pageKe... | [
"protected",
"void",
"addCommitsAsPageOfChildren",
"(",
"Git",
"git",
",",
"Repository",
"repository",
",",
"CallSpecification",
"spec",
",",
"PageWriter",
"writer",
",",
"PageKey",
"pageKey",
")",
"throws",
"GitAPIException",
",",
"IOException",
"{",
"RevWalk",
"wa... | Add an additional page of commits in the history names of the tags as children of the current node.
@param git the Git object; may not be null
@param repository the Repository object; may not be null
@param spec the call specification; may not be null
@param writer the page writer for the current node; may not be null... | [
"Add",
"an",
"additional",
"page",
"of",
"commits",
"in",
"the",
"history",
"names",
"of",
"the",
"tags",
"as",
"children",
"of",
"the",
"current",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/connectors/modeshape-connector-git/src/main/java/org/modeshape/connector/git/GitFunction.java#L266-L298 |
56,322 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/JcrPropertyDefinition.java | JcrPropertyDefinition.isAsOrMoreConstrainedThan | boolean isAsOrMoreConstrainedThan( PropertyDefinition other,
ExecutionContext context ) {
String[] otherConstraints = other.getValueConstraints();
if (otherConstraints == null || otherConstraints.length == 0) {
// The ancestor's definition is less const... | java | boolean isAsOrMoreConstrainedThan( PropertyDefinition other,
ExecutionContext context ) {
String[] otherConstraints = other.getValueConstraints();
if (otherConstraints == null || otherConstraints.length == 0) {
// The ancestor's definition is less const... | [
"boolean",
"isAsOrMoreConstrainedThan",
"(",
"PropertyDefinition",
"other",
",",
"ExecutionContext",
"context",
")",
"{",
"String",
"[",
"]",
"otherConstraints",
"=",
"other",
".",
"getValueConstraints",
"(",
")",
";",
"if",
"(",
"otherConstraints",
"==",
"null",
... | Determine if the constraints on this definition are as-constrained or more-constrained than those on the supplied
definition.
@param other the property definition to compare; may not be null
@param context the execution context used to parse any values within the constraints
@return true if this property definition is... | [
"Determine",
"if",
"the",
"constraints",
"on",
"this",
"definition",
"are",
"as",
"-",
"constrained",
"or",
"more",
"-",
"constrained",
"than",
"those",
"on",
"the",
"supplied",
"definition",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrPropertyDefinition.java#L496-L526 |
56,323 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/TransientBinaryStore.java | TransientBinaryStore.initializeStorage | @Override
protected void initializeStorage( File directory ) throws BinaryStoreException {
// make sure the directory doesn't exist
FileUtil.delete(directory);
if (!directory.exists()) {
logger.debug("Creating temporary directory for transient binary store: {0}", directory.getAbs... | java | @Override
protected void initializeStorage( File directory ) throws BinaryStoreException {
// make sure the directory doesn't exist
FileUtil.delete(directory);
if (!directory.exists()) {
logger.debug("Creating temporary directory for transient binary store: {0}", directory.getAbs... | [
"@",
"Override",
"protected",
"void",
"initializeStorage",
"(",
"File",
"directory",
")",
"throws",
"BinaryStoreException",
"{",
"// make sure the directory doesn't exist",
"FileUtil",
".",
"delete",
"(",
"directory",
")",
";",
"if",
"(",
"!",
"directory",
".",
"exi... | Ensures that the directory used by this binary store exists and can be both read and written to.
@throws BinaryStoreException if the directory cannot be written to, read, or (if needed) created | [
"Ensures",
"that",
"the",
"directory",
"used",
"by",
"this",
"binary",
"store",
"exists",
"and",
"can",
"be",
"both",
"read",
"and",
"written",
"to",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/TransientBinaryStore.java#L88-L104 |
56,324 | ModeShape/modeshape | web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/model/RestWorkspaces.java | RestWorkspaces.addWorkspace | public Workspace addWorkspace( String name,
String repositoryUrl ) {
Workspace workspace = new Workspace(name, repositoryUrl);
workspaces.add(workspace);
return workspace;
} | java | public Workspace addWorkspace( String name,
String repositoryUrl ) {
Workspace workspace = new Workspace(name, repositoryUrl);
workspaces.add(workspace);
return workspace;
} | [
"public",
"Workspace",
"addWorkspace",
"(",
"String",
"name",
",",
"String",
"repositoryUrl",
")",
"{",
"Workspace",
"workspace",
"=",
"new",
"Workspace",
"(",
"name",
",",
"repositoryUrl",
")",
";",
"workspaces",
".",
"add",
"(",
"workspace",
")",
";",
"ret... | Adds a new workspace to the list of workspaces.
@param name a {@code non-null} string, the name of a workspace.
@param repositoryUrl a {@code non-null} string, the absolute url to the repository to which the workspace belongs.
@return a {@link Workspace} instance | [
"Adds",
"a",
"new",
"workspace",
"to",
"the",
"list",
"of",
"workspaces",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-jcr-rest/src/main/java/org/modeshape/web/jcr/rest/model/RestWorkspaces.java#L49-L54 |
56,325 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.modifyProperties | protected void modifyProperties( NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
Map<Name, AbstractPropertyChange> propChanges ) {
} | java | protected void modifyProperties( NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
Map<Name, AbstractPropertyChange> propChanges ) {
} | [
"protected",
"void",
"modifyProperties",
"(",
"NodeKey",
"key",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
",",
"Map",
"<",
"Name",
",",
"AbstractPropertyChange",
">",
"propChanges",
")",
"{",
"}"
] | Handle the addition, change, and removal of one or more properties of a single node. This method is called once for each
existing node whose properties are modified.
@param key the unique key for the node; may not be null
@param primaryType the primary type of the node for which the modifications occurred; never null
... | [
"Handle",
"the",
"addition",
"change",
"and",
"removal",
"of",
"one",
"or",
"more",
"properties",
"of",
"a",
"single",
"node",
".",
"This",
"method",
"is",
"called",
"once",
"for",
"each",
"existing",
"node",
"whose",
"properties",
"are",
"modified",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L248-L252 |
56,326 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.addNode | protected void addNode( String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Properties properties ) {
} | java | protected void addNode( String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Properties properties ) {
} | [
"protected",
"void",
"addNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"Path",
"path",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
",",
"Properties",
"properties",
")",
"{",
"}"
] | Handle the addition of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param path the path of the node; may not be null
@param primaryType the primary type of the node; may not be null
@param mixinTyp... | [
"Handle",
"the",
"addition",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L289-L295 |
56,327 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.removeNode | protected void removeNode( String workspaceName,
NodeKey key,
NodeKey parentKey,
Path path,
Name primaryType,
Set<Name> mixinTypes ) {
} | java | protected void removeNode( String workspaceName,
NodeKey key,
NodeKey parentKey,
Path path,
Name primaryType,
Set<Name> mixinTypes ) {
} | [
"protected",
"void",
"removeNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"NodeKey",
"parentKey",
",",
"Path",
"path",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
")",
"{",
"}"
] | Handle the removal of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param parentKey the unique key for the parent of the node; may not be null
@param path the path of the node; may not be null
@para... | [
"Handle",
"the",
"removal",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L327-L334 |
56,328 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.changeNode | protected void changeNode( String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes ) {
} | java | protected void changeNode( String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes ) {
} | [
"protected",
"void",
"changeNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"Path",
"path",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
")",
"{",
"}"
] | Handle the change of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param path the path of the node; may not be null
@param primaryType the primary type of the node; may not be null
@param mixinTypes... | [
"Handle",
"the",
"change",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L345-L350 |
56,329 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.moveNode | protected void moveNode( String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey oldParent,
NodeKey newParent,
Path new... | java | protected void moveNode( String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey oldParent,
NodeKey newParent,
Path new... | [
"protected",
"void",
"moveNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
",",
"NodeKey",
"oldParent",
",",
"NodeKey",
"newParent",
",",
"Path",
"newPath",
",",
"Path",
"ol... | Handle the move of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param primaryType the primary type of the node; may not be null
@param mixinTypes the mixin types for the node; may not be null but m... | [
"Handle",
"the",
"move",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L364-L373 |
56,330 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.renameNode | protected void renameNode( String workspaceName,
NodeKey key,
Path newPath,
Segment oldSegment,
Name primaryType,
Set<Name> mixinTypes ) {
} | java | protected void renameNode( String workspaceName,
NodeKey key,
Path newPath,
Segment oldSegment,
Name primaryType,
Set<Name> mixinTypes ) {
} | [
"protected",
"void",
"renameNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"Path",
"newPath",
",",
"Segment",
"oldSegment",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
")",
"{",
"}"
] | Handle the renaming of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param newPath the new path of the node after it was moved; may not be null
@param oldSegment the old segment of the node before i... | [
"Handle",
"the",
"renaming",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L385-L392 |
56,331 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java | ChangeSetAdapter.reorderNode | protected void reorderNode( String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey parent,
Path newPath,
... | java | protected void reorderNode( String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey parent,
Path newPath,
... | [
"protected",
"void",
"reorderNode",
"(",
"String",
"workspaceName",
",",
"NodeKey",
"key",
",",
"Name",
"primaryType",
",",
"Set",
"<",
"Name",
">",
"mixinTypes",
",",
"NodeKey",
"parent",
",",
"Path",
"newPath",
",",
"Path",
"oldPath",
",",
"Path",
"reorder... | Handle the reordering of a node.
@param workspaceName the workspace in which the node information should be available; may not be null
@param key the unique key for the node; may not be null
@param primaryType the primary type of the node; may not be null
@param mixinTypes the mixin types for the node; may not be null... | [
"Handle",
"the",
"reordering",
"of",
"a",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/change/ChangeSetAdapter.java#L407-L417 |
56,332 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java | Tuples.typeFactory | public static <T1, T2> TypeFactory<Tuple2<T1, T2>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2 ) {
return new Tuple2TypeFactory<>(type1, type2);
} | java | public static <T1, T2> TypeFactory<Tuple2<T1, T2>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2 ) {
return new Tuple2TypeFactory<>(type1, type2);
} | [
"public",
"static",
"<",
"T1",
",",
"T2",
">",
"TypeFactory",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
">",
"typeFactory",
"(",
"TypeFactory",
"<",
"T1",
">",
"type1",
",",
"TypeFactory",
"<",
"T2",
">",
"type2",
")",
"{",
"return",
"new",
"Tuple2Ty... | Create a type factory for tuples of size 2.
@param type1 the first type; may not be null
@param type2 the second type; may not be null
@return the type factory; never null | [
"Create",
"a",
"type",
"factory",
"for",
"tuples",
"of",
"size",
"2",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java#L103-L106 |
56,333 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java | Tuples.typeFactory | public static <T1, T2, T3> TypeFactory<Tuple3<T1, T2, T3>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2,
TypeFactory<T3> type3 ) {
return new Tuple... | java | public static <T1, T2, T3> TypeFactory<Tuple3<T1, T2, T3>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2,
TypeFactory<T3> type3 ) {
return new Tuple... | [
"public",
"static",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
"TypeFactory",
"<",
"Tuple3",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
">",
"typeFactory",
"(",
"TypeFactory",
"<",
"T1",
">",
"type1",
",",
"TypeFactory",
"<",
"T2",
">",
"type2",
",",
"TypeFa... | Create a type factory for tuples of size 3.
@param type1 the first type; may not be null
@param type2 the second type; may not be null
@param type3 the third type; may not be null
@return the type factory; never null | [
"Create",
"a",
"type",
"factory",
"for",
"tuples",
"of",
"size",
"3",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java#L116-L120 |
56,334 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java | Tuples.typeFactory | public static <T1, T2, T3, T4> TypeFactory<Tuple4<T1, T2, T3, T4>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2,
TypeFactory<T3> type3,
... | java | public static <T1, T2, T3, T4> TypeFactory<Tuple4<T1, T2, T3, T4>> typeFactory( TypeFactory<T1> type1,
TypeFactory<T2> type2,
TypeFactory<T3> type3,
... | [
"public",
"static",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
">",
"TypeFactory",
"<",
"Tuple4",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
">",
">",
"typeFactory",
"(",
"TypeFactory",
"<",
"T1",
">",
"type1",
",",
"TypeFactory",
"<",
"T2",
">... | Create a type factory for tuples of size 4.
@param type1 the first type; may not be null
@param type2 the second type; may not be null
@param type3 the third type; may not be null
@param type4 the fourth type; may not be null
@return the type factory; never null | [
"Create",
"a",
"type",
"factory",
"for",
"tuples",
"of",
"size",
"4",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java#L131-L136 |
56,335 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java | Tuples.typeFactory | public static TypeFactory<?> typeFactory( TypeFactory<?> type,
int tupleSize ) {
if (tupleSize <= 1) return type;
if (tupleSize == 2) return typeFactory(type, type);
if (tupleSize == 3) return typeFactory(type, type, type);
if (tupleSize == 4... | java | public static TypeFactory<?> typeFactory( TypeFactory<?> type,
int tupleSize ) {
if (tupleSize <= 1) return type;
if (tupleSize == 2) return typeFactory(type, type);
if (tupleSize == 3) return typeFactory(type, type, type);
if (tupleSize == 4... | [
"public",
"static",
"TypeFactory",
"<",
"?",
">",
"typeFactory",
"(",
"TypeFactory",
"<",
"?",
">",
"type",
",",
"int",
"tupleSize",
")",
"{",
"if",
"(",
"tupleSize",
"<=",
"1",
")",
"return",
"type",
";",
"if",
"(",
"tupleSize",
"==",
"2",
")",
"ret... | Create a type factory for uniform tuples.
@param type the type of each/every slot in the tuples
@param tupleSize the size of the tuples
@return the type factory; never null | [
"Create",
"a",
"type",
"factory",
"for",
"uniform",
"tuples",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/Tuples.java#L155-L166 |
56,336 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/AccessControlManagerImpl.java | AccessControlManagerImpl.privileges | private Privilege[] privileges( Set<String> names ) throws ValueFormatException, AccessControlException, RepositoryException {
Privilege[] privileges = new Privilege[names.size()];
int i = 0;
for (String name : names) {
privileges[i++] = privilegeFromName(name);
}
ret... | java | private Privilege[] privileges( Set<String> names ) throws ValueFormatException, AccessControlException, RepositoryException {
Privilege[] privileges = new Privilege[names.size()];
int i = 0;
for (String name : names) {
privileges[i++] = privilegeFromName(name);
}
ret... | [
"private",
"Privilege",
"[",
"]",
"privileges",
"(",
"Set",
"<",
"String",
">",
"names",
")",
"throws",
"ValueFormatException",
",",
"AccessControlException",
",",
"RepositoryException",
"{",
"Privilege",
"[",
"]",
"privileges",
"=",
"new",
"Privilege",
"[",
"na... | Constructs list of Privilege objects using privilege's name.
@param names names of privileges
@return Privilege objects.
@throws ValueFormatException
@throws AccessControlException
@throws RepositoryException | [
"Constructs",
"list",
"of",
"Privilege",
"objects",
"using",
"privilege",
"s",
"name",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/AccessControlManagerImpl.java#L303-L310 |
56,337 | ModeShape/modeshape | web/modeshape-webdav/src/main/java/org/modeshape/webdav/methods/DeterminableMethod.java | DeterminableMethod.determineMethodsAllowed | protected static String determineMethodsAllowed( StoredObject so ) {
try {
if (so != null) {
if (so.isNullResource()) {
return NULL_RESOURCE_METHODS_ALLOWED;
} else if (so.isFolder()) {
return RESOURCE_METHODS_ALLOWED + FOLDE... | java | protected static String determineMethodsAllowed( StoredObject so ) {
try {
if (so != null) {
if (so.isNullResource()) {
return NULL_RESOURCE_METHODS_ALLOWED;
} else if (so.isFolder()) {
return RESOURCE_METHODS_ALLOWED + FOLDE... | [
"protected",
"static",
"String",
"determineMethodsAllowed",
"(",
"StoredObject",
"so",
")",
"{",
"try",
"{",
"if",
"(",
"so",
"!=",
"null",
")",
"{",
"if",
"(",
"so",
".",
"isNullResource",
"(",
")",
")",
"{",
"return",
"NULL_RESOURCE_METHODS_ALLOWED",
";",
... | Determines the methods normally allowed for the resource.
@param so StoredObject representing the resource
@return all allowed methods, separated by commas | [
"Determines",
"the",
"methods",
"normally",
"allowed",
"for",
"the",
"resource",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-webdav/src/main/java/org/modeshape/webdav/methods/DeterminableMethod.java#L37-L56 |
56,338 | ModeShape/modeshape | sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java | DerbyDdlParser.parseCreateIndex | protected AstNode parseCreateIndex( DdlTokenStream tokens,
AstNode parentNode ) throws ParsingException {
assert tokens != null;
assert parentNode != null;
markStartOfStatement(tokens);
// CREATE [UNIQUE] INDEX index-Name
// ON table-Name ... | java | protected AstNode parseCreateIndex( DdlTokenStream tokens,
AstNode parentNode ) throws ParsingException {
assert tokens != null;
assert parentNode != null;
markStartOfStatement(tokens);
// CREATE [UNIQUE] INDEX index-Name
// ON table-Name ... | [
"protected",
"AstNode",
"parseCreateIndex",
"(",
"DdlTokenStream",
"tokens",
",",
"AstNode",
"parentNode",
")",
"throws",
"ParsingException",
"{",
"assert",
"tokens",
"!=",
"null",
";",
"assert",
"parentNode",
"!=",
"null",
";",
"markStartOfStatement",
"(",
"tokens"... | Parses DDL CREATE INDEX
@param tokens the tokenized {@link DdlTokenStream} of the DDL input content; may not be null
@param parentNode the parent {@link AstNode} node; may not be null
@return the parsed CREATE INDEX
@throws ParsingException | [
"Parses",
"DDL",
"CREATE",
"INDEX"
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java#L205-L234 |
56,339 | ModeShape/modeshape | sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java | DerbyDdlParser.parseCreateRole | protected AstNode parseCreateRole( DdlTokenStream tokens,
AstNode parentNode ) throws ParsingException {
assert tokens != null;
assert parentNode != null;
markStartOfStatement(tokens);
tokens.consume(CREATE, "ROLE");
String functionName =... | java | protected AstNode parseCreateRole( DdlTokenStream tokens,
AstNode parentNode ) throws ParsingException {
assert tokens != null;
assert parentNode != null;
markStartOfStatement(tokens);
tokens.consume(CREATE, "ROLE");
String functionName =... | [
"protected",
"AstNode",
"parseCreateRole",
"(",
"DdlTokenStream",
"tokens",
",",
"AstNode",
"parentNode",
")",
"throws",
"ParsingException",
"{",
"assert",
"tokens",
"!=",
"null",
";",
"assert",
"parentNode",
"!=",
"null",
";",
"markStartOfStatement",
"(",
"tokens",... | Parses DDL CREATE ROLE statement
@param tokens the tokenized {@link DdlTokenStream} of the DDL input content; may not be null
@param parentNode the parent {@link AstNode} node; may not be null
@return the parsed CREATE ROLE statement node
@throws ParsingException | [
"Parses",
"DDL",
"CREATE",
"ROLE",
"statement"
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java#L433-L449 |
56,340 | ModeShape/modeshape | sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java | DerbyDdlParser.parseColumns | protected void parseColumns( DdlTokenStream tokens,
AstNode tableNode,
boolean isAlterTable ) throws ParsingException {
String tableElementString = getTableElementsString(tokens, false);
DdlTokenStream localTokens = new DdlTokenStream(ta... | java | protected void parseColumns( DdlTokenStream tokens,
AstNode tableNode,
boolean isAlterTable ) throws ParsingException {
String tableElementString = getTableElementsString(tokens, false);
DdlTokenStream localTokens = new DdlTokenStream(ta... | [
"protected",
"void",
"parseColumns",
"(",
"DdlTokenStream",
"tokens",
",",
"AstNode",
"tableNode",
",",
"boolean",
"isAlterTable",
")",
"throws",
"ParsingException",
"{",
"String",
"tableElementString",
"=",
"getTableElementsString",
"(",
"tokens",
",",
"false",
")",
... | Utility method designed to parse columns within an ALTER TABLE ADD statement.
@param tokens the tokenized {@link DdlTokenStream} of the DDL input content; may not be null
@param tableNode
@param isAlterTable
@throws ParsingException | [
"Utility",
"method",
"designed",
"to",
"parse",
"columns",
"within",
"an",
"ALTER",
"TABLE",
"ADD",
"statement",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/dialect/derby/DerbyDdlParser.java#L887-L914 |
56,341 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/optimize/CopyCriteria.java | CopyCriteria.getColumnsReferencedBy | public static Set<Column> getColumnsReferencedBy( Visitable visitable ) {
if (visitable == null) return Collections.emptySet();
final Set<Column> symbols = new HashSet<Column>();
// Walk the entire structure, so only supply a StrategyVisitor (that does no navigation) ...
Visitors.visitAl... | java | public static Set<Column> getColumnsReferencedBy( Visitable visitable ) {
if (visitable == null) return Collections.emptySet();
final Set<Column> symbols = new HashSet<Column>();
// Walk the entire structure, so only supply a StrategyVisitor (that does no navigation) ...
Visitors.visitAl... | [
"public",
"static",
"Set",
"<",
"Column",
">",
"getColumnsReferencedBy",
"(",
"Visitable",
"visitable",
")",
"{",
"if",
"(",
"visitable",
"==",
"null",
")",
"return",
"Collections",
".",
"emptySet",
"(",
")",
";",
"final",
"Set",
"<",
"Column",
">",
"symbo... | Get the set of Column objects that represent those columns referenced by the visitable object.
@param visitable the object to be visited
@return the set of Column objects, with column names that always are the string-form of the {@link Column#getPropertyName()
property name}; never null | [
"Get",
"the",
"set",
"of",
"Column",
"objects",
"that",
"represent",
"those",
"columns",
"referenced",
"by",
"the",
"visitable",
"object",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/optimize/CopyCriteria.java#L173-L213 |
56,342 | ModeShape/modeshape | index-providers/modeshape-lucene-index-provider/src/main/java/org/modeshape/jcr/index/lucene/FieldUtil.java | FieldUtil.removeTralingZeros | protected static void removeTralingZeros( StringBuilder sb ) {
int endIndex = sb.length();
if (endIndex > 0) {
--endIndex;
int index = endIndex;
while (sb.charAt(index) == '0') {
--index;
}
if (index < endIndex) sb.delete(index ... | java | protected static void removeTralingZeros( StringBuilder sb ) {
int endIndex = sb.length();
if (endIndex > 0) {
--endIndex;
int index = endIndex;
while (sb.charAt(index) == '0') {
--index;
}
if (index < endIndex) sb.delete(index ... | [
"protected",
"static",
"void",
"removeTralingZeros",
"(",
"StringBuilder",
"sb",
")",
"{",
"int",
"endIndex",
"=",
"sb",
".",
"length",
"(",
")",
";",
"if",
"(",
"endIndex",
">",
"0",
")",
"{",
"--",
"endIndex",
";",
"int",
"index",
"=",
"endIndex",
";... | Utility to remove the trailing 0's.
@param sb the input string builder; may not be null | [
"Utility",
"to",
"remove",
"the",
"trailing",
"0",
"s",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/index-providers/modeshape-lucene-index-provider/src/main/java/org/modeshape/jcr/index/lucene/FieldUtil.java#L310-L320 |
56,343 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/util/IoUtil.java | IoUtil.write | public static void write( String content,
File file ) throws IOException {
CheckArg.isNotNull(file, "destination file");
if (content != null) {
write(content, new FileOutputStream(file));
}
} | java | public static void write( String content,
File file ) throws IOException {
CheckArg.isNotNull(file, "destination file");
if (content != null) {
write(content, new FileOutputStream(file));
}
} | [
"public",
"static",
"void",
"write",
"(",
"String",
"content",
",",
"File",
"file",
")",
"throws",
"IOException",
"{",
"CheckArg",
".",
"isNotNull",
"(",
"file",
",",
"\"destination file\"",
")",
";",
"if",
"(",
"content",
"!=",
"null",
")",
"{",
"write",
... | Write the entire contents of the supplied string to the given file.
@param content the content to write to the stream; may be null
@param file the file to which the content is to be written
@throws IOException
@throws IllegalArgumentException if the stream is null | [
"Write",
"the",
"entire",
"contents",
"of",
"the",
"supplied",
"string",
"to",
"the",
"given",
"file",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/IoUtil.java#L211-L217 |
56,344 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/util/IoUtil.java | IoUtil.closeQuietly | public static void closeQuietly( Closeable closeable ) {
if (closeable == null) {
return;
}
try {
closeable.close();
} catch (Throwable t) {
LOGGER.debug(t, "Ignored error at closing stream");
}
} | java | public static void closeQuietly( Closeable closeable ) {
if (closeable == null) {
return;
}
try {
closeable.close();
} catch (Throwable t) {
LOGGER.debug(t, "Ignored error at closing stream");
}
} | [
"public",
"static",
"void",
"closeQuietly",
"(",
"Closeable",
"closeable",
")",
"{",
"if",
"(",
"closeable",
"==",
"null",
")",
"{",
"return",
";",
"}",
"try",
"{",
"closeable",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"Throwable",
"t",
")",
"... | Closes the closable silently. Any exceptions are ignored.
@param closeable the closeable instance; may be null | [
"Closes",
"the",
"closable",
"silently",
".",
"Any",
"exceptions",
"are",
"ignored",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/util/IoUtil.java#L521-L530 |
56,345 | ModeShape/modeshape | web/modeshape-webdav/src/main/java/org/modeshape/webdav/StoredObject.java | StoredObject.setNullResource | public void setNullResource( boolean f ) {
this.isNullRessource = f;
this.isFolder = false;
this.creationDate = null;
this.lastModified = null;
// this.content = null;
this.contentLength = 0;
this.mimeType = null;
} | java | public void setNullResource( boolean f ) {
this.isNullRessource = f;
this.isFolder = false;
this.creationDate = null;
this.lastModified = null;
// this.content = null;
this.contentLength = 0;
this.mimeType = null;
} | [
"public",
"void",
"setNullResource",
"(",
"boolean",
"f",
")",
"{",
"this",
".",
"isNullRessource",
"=",
"f",
";",
"this",
".",
"isFolder",
"=",
"false",
";",
"this",
".",
"creationDate",
"=",
"null",
";",
"this",
".",
"lastModified",
"=",
"null",
";",
... | Sets a StoredObject as a lock-null resource
@param f true to set the resource as lock-null resource | [
"Sets",
"a",
"StoredObject",
"as",
"a",
"lock",
"-",
"null",
"resource"
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-webdav/src/main/java/org/modeshape/webdav/StoredObject.java#L126-L134 |
56,346 | ModeShape/modeshape | sequencers/modeshape-sequencer-xml/src/main/java/org/modeshape/sequencer/xml/XmlSequencerHandler.java | XmlSequencerHandler.endContent | protected void endContent() throws RepositoryException {
// Process the content of the element ...
String content = StringUtil.normalize(contentBuilder.toString());
// Null-out builder to setup for subsequent content.
// Must be done before call to startElement below to prevent infinite ... | java | protected void endContent() throws RepositoryException {
// Process the content of the element ...
String content = StringUtil.normalize(contentBuilder.toString());
// Null-out builder to setup for subsequent content.
// Must be done before call to startElement below to prevent infinite ... | [
"protected",
"void",
"endContent",
"(",
")",
"throws",
"RepositoryException",
"{",
"// Process the content of the element ...",
"String",
"content",
"=",
"StringUtil",
".",
"normalize",
"(",
"contentBuilder",
".",
"toString",
"(",
")",
")",
";",
"// Null-out builder to ... | See if there is any element content that needs to be completed.
@throws RepositoryException if there is a problem writing the content to the repository session | [
"See",
"if",
"there",
"is",
"any",
"element",
"content",
"that",
"needs",
"to",
"be",
"completed",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-xml/src/main/java/org/modeshape/sequencer/xml/XmlSequencerHandler.java#L104-L117 |
56,347 | ModeShape/modeshape | web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/LoadingIcon.java | LoadingIcon.show | public void show(int x, int y) {
disabledHLayout.setSize("100%", "100%");
disabledHLayout.setStyleName("disabledBackgroundStyle");
disabledHLayout.show();
loadingImg.setSize("100px", "100px");
loadingImg.setTop(y); //loading image height is 50px
loadingImg.setLeft(x); //... | java | public void show(int x, int y) {
disabledHLayout.setSize("100%", "100%");
disabledHLayout.setStyleName("disabledBackgroundStyle");
disabledHLayout.show();
loadingImg.setSize("100px", "100px");
loadingImg.setTop(y); //loading image height is 50px
loadingImg.setLeft(x); //... | [
"public",
"void",
"show",
"(",
"int",
"x",
",",
"int",
"y",
")",
"{",
"disabledHLayout",
".",
"setSize",
"(",
"\"100%\"",
",",
"\"100%\"",
")",
";",
"disabledHLayout",
".",
"setStyleName",
"(",
"\"disabledBackgroundStyle\"",
")",
";",
"disabledHLayout",
".",
... | Shows loading indicator at the given place of screen.
@param x horizontal coordinate (from left corner).
@param y vertical coordinate (from right corner). | [
"Shows",
"loading",
"indicator",
"at",
"the",
"given",
"place",
"of",
"screen",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/LoadingIcon.java#L36-L46 |
56,348 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/JcrVersionManager.java | JcrVersionManager.checkout | void checkout( AbstractJcrNode node ) throws LockException, RepositoryException {
checkVersionable(node);
// Check this separately since it throws a different type of exception
if (node.isLocked() && !node.holdsLock()) {
throw new LockException(JcrI18n.lockTokenNotHeld.text(node.get... | java | void checkout( AbstractJcrNode node ) throws LockException, RepositoryException {
checkVersionable(node);
// Check this separately since it throws a different type of exception
if (node.isLocked() && !node.holdsLock()) {
throw new LockException(JcrI18n.lockTokenNotHeld.text(node.get... | [
"void",
"checkout",
"(",
"AbstractJcrNode",
"node",
")",
"throws",
"LockException",
",",
"RepositoryException",
"{",
"checkVersionable",
"(",
"node",
")",
";",
"// Check this separately since it throws a different type of exception",
"if",
"(",
"node",
".",
"isLocked",
"(... | Checks out the given node, updating version-related properties on the node as needed.
@param node the node to be checked out
@throws LockException if a lock prevents the node from being checked out
@throws RepositoryException if an error occurs during the checkout. See {@link javax.jcr.Node#checkout()} for a full
desc... | [
"Checks",
"out",
"the",
"given",
"node",
"updating",
"version",
"-",
"related",
"properties",
"on",
"the",
"node",
"as",
"needed",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrVersionManager.java#L535-L563 |
56,349 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java | ExecutionContext.with | public ExecutionContext with( Map<String, String> data ) {
Map<String, String> newData = data;
if (newData == null) {
if (this.data.isEmpty()) return this;
} else {
// Copy the data in the map ...
newData = Collections.unmodifiableMap(new HashMap<String, Strin... | java | public ExecutionContext with( Map<String, String> data ) {
Map<String, String> newData = data;
if (newData == null) {
if (this.data.isEmpty()) return this;
} else {
// Copy the data in the map ...
newData = Collections.unmodifiableMap(new HashMap<String, Strin... | [
"public",
"ExecutionContext",
"with",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"data",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"newData",
"=",
"data",
";",
"if",
"(",
"newData",
"==",
"null",
")",
"{",
"if",
"(",
"this",
".",
"dat... | Create a new execution context that mirrors this context but that contains the supplied data. Note that the supplied map is
always copied to ensure that it is immutable.
@param data the data that is to be affiliated with the resulting context or null if the resulting context should have no
data
@return the execution c... | [
"Create",
"a",
"new",
"execution",
"context",
"that",
"mirrors",
"this",
"context",
"but",
"that",
"contains",
"the",
"supplied",
"data",
".",
"Note",
"that",
"the",
"supplied",
"map",
"is",
"always",
"copied",
"to",
"ensure",
"that",
"it",
"is",
"immutable"... | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java#L537-L549 |
56,350 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java | ExecutionContext.with | public ExecutionContext with( String key,
String value ) {
Map<String, String> newData = data;
if (value == null) {
// Remove the value with the key ...
if (this.data.isEmpty() || !this.data.containsKey(key)) {
// nothing to remov... | java | public ExecutionContext with( String key,
String value ) {
Map<String, String> newData = data;
if (value == null) {
// Remove the value with the key ...
if (this.data.isEmpty() || !this.data.containsKey(key)) {
// nothing to remov... | [
"public",
"ExecutionContext",
"with",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"newData",
"=",
"data",
";",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"// Remove the value with the key ...",
"if",
"... | Create a new execution context that mirrors this context but that contains the supplied key-value pair in the new context's
data.
@param key the key for the new data that is to be affiliated with the resulting context
@param value the data value to be affiliated with the supplied key in the resulting context, or null ... | [
"Create",
"a",
"new",
"execution",
"context",
"that",
"mirrors",
"this",
"context",
"but",
"that",
"contains",
"the",
"supplied",
"key",
"-",
"value",
"pair",
"in",
"the",
"new",
"context",
"s",
"data",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java#L578-L600 |
56,351 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java | ExecutionContext.with | public ExecutionContext with(Locale locale) {
return new ExecutionContext(securityContext, namespaceRegistry, propertyFactory, threadPools, binaryStore, data,
processId, decoder, encoder, stringFactory, binaryFactory, booleanFactory, dateFactory,
... | java | public ExecutionContext with(Locale locale) {
return new ExecutionContext(securityContext, namespaceRegistry, propertyFactory, threadPools, binaryStore, data,
processId, decoder, encoder, stringFactory, binaryFactory, booleanFactory, dateFactory,
... | [
"public",
"ExecutionContext",
"with",
"(",
"Locale",
"locale",
")",
"{",
"return",
"new",
"ExecutionContext",
"(",
"securityContext",
",",
"namespaceRegistry",
",",
"propertyFactory",
",",
"threadPools",
",",
"binaryStore",
",",
"data",
",",
"processId",
",",
"dec... | Create a new execution context that mirrors this context but that contains the supplied locale.
@param locale a {@code Locale} instance
@return the execution context that is identical with this execution context, but which uses the supplied locale; never null
@since 4.5 | [
"Create",
"a",
"new",
"execution",
"context",
"that",
"mirrors",
"this",
"context",
"but",
"that",
"contains",
"the",
"supplied",
"locale",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java#L624-L629 |
56,352 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java | ExecutionContext.initializeDefaultNamespaces | protected void initializeDefaultNamespaces( NamespaceRegistry namespaceRegistry ) {
if (namespaceRegistry == null) return;
namespaceRegistry.register(JcrLexicon.Namespace.PREFIX, JcrLexicon.Namespace.URI);
namespaceRegistry.register(JcrMixLexicon.Namespace.PREFIX, JcrMixLexicon.Namespace.URI);
... | java | protected void initializeDefaultNamespaces( NamespaceRegistry namespaceRegistry ) {
if (namespaceRegistry == null) return;
namespaceRegistry.register(JcrLexicon.Namespace.PREFIX, JcrLexicon.Namespace.URI);
namespaceRegistry.register(JcrMixLexicon.Namespace.PREFIX, JcrMixLexicon.Namespace.URI);
... | [
"protected",
"void",
"initializeDefaultNamespaces",
"(",
"NamespaceRegistry",
"namespaceRegistry",
")",
"{",
"if",
"(",
"namespaceRegistry",
"==",
"null",
")",
"return",
";",
"namespaceRegistry",
".",
"register",
"(",
"JcrLexicon",
".",
"Namespace",
".",
"PREFIX",
"... | Method that initializes the default namespaces for namespace registries.
@param namespaceRegistry the namespace registry | [
"Method",
"that",
"initializes",
"the",
"default",
"namespaces",
"for",
"namespace",
"registries",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ExecutionContext.java#L650-L656 |
56,353 | ModeShape/modeshape | sequencers/modeshape-sequencer-xml/src/main/java/org/modeshape/sequencer/xml/XmlSequencer.java | XmlSequencer.setFeature | void setFeature( XMLReader reader,
String featureName,
boolean value ) {
try {
if (reader.getFeature(featureName) != value) {
reader.setFeature(featureName, value);
}
} catch (SAXException e) {
getLogger().warn... | java | void setFeature( XMLReader reader,
String featureName,
boolean value ) {
try {
if (reader.getFeature(featureName) != value) {
reader.setFeature(featureName, value);
}
} catch (SAXException e) {
getLogger().warn... | [
"void",
"setFeature",
"(",
"XMLReader",
"reader",
",",
"String",
"featureName",
",",
"boolean",
"value",
")",
"{",
"try",
"{",
"if",
"(",
"reader",
".",
"getFeature",
"(",
"featureName",
")",
"!=",
"value",
")",
"{",
"reader",
".",
"setFeature",
"(",
"fe... | Sets the reader's named feature to the supplied value, only if the feature is not already set to that value. This method
does nothing if the feature is not known to the reader.
@param reader the reader; may not be null
@param featureName the name of the feature; may not be null
@param value the value for the feature | [
"Sets",
"the",
"reader",
"s",
"named",
"feature",
"to",
"the",
"supplied",
"value",
"only",
"if",
"the",
"feature",
"is",
"not",
"already",
"set",
"to",
"that",
"value",
".",
"This",
"method",
"does",
"nothing",
"if",
"the",
"feature",
"is",
"not",
"know... | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-xml/src/main/java/org/modeshape/sequencer/xml/XmlSequencer.java#L137-L147 |
56,354 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java | TokenStream.consumeLong | public long consumeLong() throws ParsingException, IllegalStateException {
if (completed) throwNoMoreContent();
// Get the value from the current token ...
String value = currentToken().value();
try {
long result = Long.parseLong(value);
moveToNextToken();
... | java | public long consumeLong() throws ParsingException, IllegalStateException {
if (completed) throwNoMoreContent();
// Get the value from the current token ...
String value = currentToken().value();
try {
long result = Long.parseLong(value);
moveToNextToken();
... | [
"public",
"long",
"consumeLong",
"(",
")",
"throws",
"ParsingException",
",",
"IllegalStateException",
"{",
"if",
"(",
"completed",
")",
"throwNoMoreContent",
"(",
")",
";",
"// Get the value from the current token ...",
"String",
"value",
"=",
"currentToken",
"(",
")... | Convert the value of this token to a long, return it, and move to the next token.
@return the current token's value, converted to an integer
@throws ParsingException if there is no such token to consume, or if the token cannot be converted to a long
@throws IllegalStateException if this method was called before the st... | [
"Convert",
"the",
"value",
"of",
"this",
"token",
"to",
"a",
"long",
"return",
"it",
"and",
"move",
"to",
"the",
"next",
"token",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java#L502-L515 |
56,355 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java | TokenStream.consume | public String consume() throws ParsingException, IllegalStateException {
if (completed) throwNoMoreContent();
// Get the value from the current token ...
String result = currentToken().value();
moveToNextToken();
return result;
} | java | public String consume() throws ParsingException, IllegalStateException {
if (completed) throwNoMoreContent();
// Get the value from the current token ...
String result = currentToken().value();
moveToNextToken();
return result;
} | [
"public",
"String",
"consume",
"(",
")",
"throws",
"ParsingException",
",",
"IllegalStateException",
"{",
"if",
"(",
"completed",
")",
"throwNoMoreContent",
"(",
")",
";",
"// Get the value from the current token ...",
"String",
"result",
"=",
"currentToken",
"(",
")"... | Return the value of this token and move to the next token.
@return the value of the current token
@throws ParsingException if there is no such token to consume
@throws IllegalStateException if this method was called before the stream was {@link #start() started} | [
"Return",
"the",
"value",
"of",
"this",
"token",
"and",
"move",
"to",
"the",
"next",
"token",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java#L546-L552 |
56,356 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java | TokenStream.currentToken | final Token currentToken() throws IllegalStateException, NoSuchElementException {
if (currentToken == null) {
if (completed) {
throw new NoSuchElementException(CommonI18n.noMoreContent.text());
}
throw new IllegalStateException(CommonI18n.startMethodMustBeCall... | java | final Token currentToken() throws IllegalStateException, NoSuchElementException {
if (currentToken == null) {
if (completed) {
throw new NoSuchElementException(CommonI18n.noMoreContent.text());
}
throw new IllegalStateException(CommonI18n.startMethodMustBeCall... | [
"final",
"Token",
"currentToken",
"(",
")",
"throws",
"IllegalStateException",
",",
"NoSuchElementException",
"{",
"if",
"(",
"currentToken",
"==",
"null",
")",
"{",
"if",
"(",
"completed",
")",
"{",
"throw",
"new",
"NoSuchElementException",
"(",
"CommonI18n",
"... | Get the current token.
@return the current token; never null
@throws IllegalStateException if this method was called before the stream was {@link #start() started}
@throws NoSuchElementException if there are no more tokens | [
"Get",
"the",
"current",
"token",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java#L1255-L1264 |
56,357 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java | TokenStream.previousToken | final Token previousToken() throws IllegalStateException, NoSuchElementException {
if (currentToken == null) {
if (completed) {
if (tokens.isEmpty()) {
throw new NoSuchElementException(CommonI18n.noMoreContent.text());
}
return toke... | java | final Token previousToken() throws IllegalStateException, NoSuchElementException {
if (currentToken == null) {
if (completed) {
if (tokens.isEmpty()) {
throw new NoSuchElementException(CommonI18n.noMoreContent.text());
}
return toke... | [
"final",
"Token",
"previousToken",
"(",
")",
"throws",
"IllegalStateException",
",",
"NoSuchElementException",
"{",
"if",
"(",
"currentToken",
"==",
"null",
")",
"{",
"if",
"(",
"completed",
")",
"{",
"if",
"(",
"tokens",
".",
"isEmpty",
"(",
")",
")",
"{"... | Get the previous token. This does not modify the state.
@return the previous token; never null
@throws IllegalStateException if this method was called before the stream was {@link #start() started}
@throws NoSuchElementException if there is no previous token | [
"Get",
"the",
"previous",
"token",
".",
"This",
"does",
"not",
"modify",
"the",
"state",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java#L1297-L1311 |
56,358 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java | TokenStream.generateFragment | static String generateFragment( String content,
int indexOfProblem,
int charactersToIncludeBeforeAndAfter,
String highlightText ) {
assert content != null;
assert indexOfProblem < content.length()... | java | static String generateFragment( String content,
int indexOfProblem,
int charactersToIncludeBeforeAndAfter,
String highlightText ) {
assert content != null;
assert indexOfProblem < content.length()... | [
"static",
"String",
"generateFragment",
"(",
"String",
"content",
",",
"int",
"indexOfProblem",
",",
"int",
"charactersToIncludeBeforeAndAfter",
",",
"String",
"highlightText",
")",
"{",
"assert",
"content",
"!=",
"null",
";",
"assert",
"indexOfProblem",
"<",
"conte... | Utility method to generate a highlighted fragment of a particular point in the stream.
@param content the content from which the fragment should be taken; may not be null
@param indexOfProblem the index of the problem point that should be highlighted; must be a valid index in the content
@param charactersToIncludeBefo... | [
"Utility",
"method",
"to",
"generate",
"a",
"highlighted",
"fragment",
"of",
"a",
"particular",
"point",
"in",
"the",
"stream",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/text/TokenStream.java#L1331-L1346 |
56,359 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.createCanonicalPlan | protected PlanNode createCanonicalPlan( QueryContext context,
Query query ) {
PlanNode plan = null;
// Process the source of the query ...
Map<SelectorName, Table> usedSources = new HashMap<SelectorName, Table>();
plan = createPlanNode(context... | java | protected PlanNode createCanonicalPlan( QueryContext context,
Query query ) {
PlanNode plan = null;
// Process the source of the query ...
Map<SelectorName, Table> usedSources = new HashMap<SelectorName, Table>();
plan = createPlanNode(context... | [
"protected",
"PlanNode",
"createCanonicalPlan",
"(",
"QueryContext",
"context",
",",
"Query",
"query",
")",
"{",
"PlanNode",
"plan",
"=",
"null",
";",
"// Process the source of the query ...",
"Map",
"<",
"SelectorName",
",",
"Table",
">",
"usedSources",
"=",
"new",... | Create a canonical query plan for the given query.
@param context the context in which the query is being planned
@param query the query to be planned
@return the root node of the plan tree representing the canonical plan | [
"Create",
"a",
"canonical",
"query",
"plan",
"for",
"the",
"given",
"query",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L114-L159 |
56,360 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.validate | protected void validate( QueryContext context,
QueryCommand query,
Map<SelectorName, Table> usedSelectors ) {
// // Resolve everything ...
// Visitors.visitAll(query, new Validator(context, usedSelectors));
// Resolve everything (except s... | java | protected void validate( QueryContext context,
QueryCommand query,
Map<SelectorName, Table> usedSelectors ) {
// // Resolve everything ...
// Visitors.visitAll(query, new Validator(context, usedSelectors));
// Resolve everything (except s... | [
"protected",
"void",
"validate",
"(",
"QueryContext",
"context",
",",
"QueryCommand",
"query",
",",
"Map",
"<",
"SelectorName",
",",
"Table",
">",
"usedSelectors",
")",
"{",
"// // Resolve everything ...",
"// Visitors.visitAll(query, new Validator(context, usedSelectors));",... | Validate the supplied query.
@param context the context in which the query is being planned
@param query the set query to be planned
@param usedSelectors the map of {@link SelectorName}s (aliases or names) used in the query. | [
"Validate",
"the",
"supplied",
"query",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L168-L182 |
56,361 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.createCanonicalPlan | protected PlanNode createCanonicalPlan( QueryContext context,
SetQuery query ) {
// Process the left and right parts of the query ...
PlanNode left = createPlan(context, query.getLeft());
PlanNode right = createPlan(context, query.getRight());
... | java | protected PlanNode createCanonicalPlan( QueryContext context,
SetQuery query ) {
// Process the left and right parts of the query ...
PlanNode left = createPlan(context, query.getLeft());
PlanNode right = createPlan(context, query.getRight());
... | [
"protected",
"PlanNode",
"createCanonicalPlan",
"(",
"QueryContext",
"context",
",",
"SetQuery",
"query",
")",
"{",
"// Process the left and right parts of the query ...",
"PlanNode",
"left",
"=",
"createPlan",
"(",
"context",
",",
"query",
".",
"getLeft",
"(",
")",
"... | Create a canonical query plan for the given set query.
@param context the context in which the query is being planned
@param query the set query to be planned
@return the root node of the plan tree representing the canonical plan | [
"Create",
"a",
"canonical",
"query",
"plan",
"for",
"the",
"given",
"set",
"query",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L191-L212 |
56,362 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.createPlanNode | protected PlanNode createPlanNode( QueryContext context,
Source source,
Map<SelectorName, Table> usedSelectors ) {
if (source instanceof Selector) {
// No join required ...
assert source instanceof AllNodes || ... | java | protected PlanNode createPlanNode( QueryContext context,
Source source,
Map<SelectorName, Table> usedSelectors ) {
if (source instanceof Selector) {
// No join required ...
assert source instanceof AllNodes || ... | [
"protected",
"PlanNode",
"createPlanNode",
"(",
"QueryContext",
"context",
",",
"Source",
"source",
",",
"Map",
"<",
"SelectorName",
",",
"Table",
">",
"usedSelectors",
")",
"{",
"if",
"(",
"source",
"instanceof",
"Selector",
")",
"{",
"// No join required ...",
... | Create a JOIN or SOURCE node that contain the source information.
@param context the execution context
@param source the source to be processed; may not be null
@param usedSelectors the map of {@link SelectorName}s (aliases or names) used in the query.
@return the new plan; never null | [
"Create",
"a",
"JOIN",
"or",
"SOURCE",
"node",
"that",
"contain",
"the",
"source",
"information",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L222-L285 |
56,363 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.attachCriteria | protected PlanNode attachCriteria( final QueryContext context,
PlanNode plan,
Constraint constraint,
List<? extends Column> columns,
Map<String, Subquery> subquerie... | java | protected PlanNode attachCriteria( final QueryContext context,
PlanNode plan,
Constraint constraint,
List<? extends Column> columns,
Map<String, Subquery> subquerie... | [
"protected",
"PlanNode",
"attachCriteria",
"(",
"final",
"QueryContext",
"context",
",",
"PlanNode",
"plan",
",",
"Constraint",
"constraint",
",",
"List",
"<",
"?",
"extends",
"Column",
">",
"columns",
",",
"Map",
"<",
"String",
",",
"Subquery",
">",
"subqueri... | Attach all criteria above the join nodes. The optimizer will push these criteria down to the appropriate source.
@param context the context in which the query is being planned
@param plan the existing plan, which joins all source groups
@param constraint the criteria or constraint from the query
@param columns the col... | [
"Attach",
"all",
"criteria",
"above",
"the",
"join",
"nodes",
".",
"The",
"optimizer",
"will",
"push",
"these",
"criteria",
"down",
"to",
"the",
"appropriate",
"source",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L297-L353 |
56,364 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.attachLimits | protected PlanNode attachLimits( QueryContext context,
PlanNode plan,
Limit limit ) {
if (limit.isUnlimited()) return plan;
context.getHints().hasLimit = true;
PlanNode limitNode = new PlanNode(Type.LIMIT);
boolea... | java | protected PlanNode attachLimits( QueryContext context,
PlanNode plan,
Limit limit ) {
if (limit.isUnlimited()) return plan;
context.getHints().hasLimit = true;
PlanNode limitNode = new PlanNode(Type.LIMIT);
boolea... | [
"protected",
"PlanNode",
"attachLimits",
"(",
"QueryContext",
"context",
",",
"PlanNode",
"plan",
",",
"Limit",
"limit",
")",
"{",
"if",
"(",
"limit",
".",
"isUnlimited",
"(",
")",
")",
"return",
"plan",
";",
"context",
".",
"getHints",
"(",
")",
".",
"h... | Attach a LIMIT node at the top of the plan tree.
@param context the context in which the query is being planned
@param plan the existing plan
@param limit the limit definition; may be null
@return the updated plan, or the existing plan if there were no limits | [
"Attach",
"a",
"LIMIT",
"node",
"at",
"the",
"top",
"of",
"the",
"plan",
"tree",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L410-L431 |
56,365 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.attachProject | protected PlanNode attachProject( QueryContext context,
PlanNode plan,
List<? extends Column> columns,
Map<SelectorName, Table> selectors ) {
PlanNode projectNode = new PlanNode(Type.PROJECT);
... | java | protected PlanNode attachProject( QueryContext context,
PlanNode plan,
List<? extends Column> columns,
Map<SelectorName, Table> selectors ) {
PlanNode projectNode = new PlanNode(Type.PROJECT);
... | [
"protected",
"PlanNode",
"attachProject",
"(",
"QueryContext",
"context",
",",
"PlanNode",
"plan",
",",
"List",
"<",
"?",
"extends",
"Column",
">",
"columns",
",",
"Map",
"<",
"SelectorName",
",",
"Table",
">",
"selectors",
")",
"{",
"PlanNode",
"projectNode",... | Attach a PROJECT node at the top of the plan tree.
@param context the context in which the query is being planned
@param plan the existing plan
@param columns the columns being projected; may be null
@param selectors the selectors keyed by their alias or name
@return the updated plan | [
"Attach",
"a",
"PROJECT",
"node",
"at",
"the",
"top",
"of",
"the",
"plan",
"tree",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L442-L507 |
56,366 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java | CanonicalPlanner.attachSubqueries | protected PlanNode attachSubqueries( QueryContext context,
PlanNode plan,
Map<String, Subquery> subqueriesByVariableName ) {
// Order the variable names in reverse order ...
List<String> varNames = new ArrayList<String>(su... | java | protected PlanNode attachSubqueries( QueryContext context,
PlanNode plan,
Map<String, Subquery> subqueriesByVariableName ) {
// Order the variable names in reverse order ...
List<String> varNames = new ArrayList<String>(su... | [
"protected",
"PlanNode",
"attachSubqueries",
"(",
"QueryContext",
"context",
",",
"PlanNode",
"plan",
",",
"Map",
"<",
"String",
",",
"Subquery",
">",
"subqueriesByVariableName",
")",
"{",
"// Order the variable names in reverse order ...",
"List",
"<",
"String",
">",
... | Attach plan nodes for each subquery, resulting with the first subquery at the top of the plan tree.
@param context the context in which the query is being planned
@param plan the existing plan
@param subqueriesByVariableName the queries by the variable name used in substitution
@return the updated plan, or the existin... | [
"Attach",
"plan",
"nodes",
"for",
"each",
"subquery",
"resulting",
"with",
"the",
"first",
"subquery",
"at",
"the",
"top",
"of",
"the",
"plan",
"tree",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/plan/CanonicalPlanner.java#L552-L574 |
56,367 | ModeShape/modeshape | modeshape-jca/src/main/java/org/modeshape/jca/JcrManagedConnectionFactory.java | JcrManagedConnectionFactory.getRepository | public synchronized Repository getRepository() throws ResourceException {
if (this.repository == null) {
LOGGER.debug("Deploying repository URL [{0}]", repositoryURL);
this.repository = deployRepository(repositoryURL);
}
return this.repository;
} | java | public synchronized Repository getRepository() throws ResourceException {
if (this.repository == null) {
LOGGER.debug("Deploying repository URL [{0}]", repositoryURL);
this.repository = deployRepository(repositoryURL);
}
return this.repository;
} | [
"public",
"synchronized",
"Repository",
"getRepository",
"(",
")",
"throws",
"ResourceException",
"{",
"if",
"(",
"this",
".",
"repository",
"==",
"null",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Deploying repository URL [{0}]\"",
",",
"repositoryURL",
")",
";",
... | Provides access to the configured repository.
@return repository specified by resource adapter configuration.
@throws ResourceException if there is an error getting the repository | [
"Provides",
"access",
"to",
"the",
"configured",
"repository",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jca/src/main/java/org/modeshape/jca/JcrManagedConnectionFactory.java#L138-L144 |
56,368 | ModeShape/modeshape | modeshape-jca/src/main/java/org/modeshape/jca/JcrManagedConnectionFactory.java | JcrManagedConnectionFactory.createConnectionFactory | @Override
public Object createConnectionFactory( ConnectionManager cxManager ) throws ResourceException {
JcrRepositoryHandle handle = new JcrRepositoryHandle(this, cxManager);
return handle;
} | java | @Override
public Object createConnectionFactory( ConnectionManager cxManager ) throws ResourceException {
JcrRepositoryHandle handle = new JcrRepositoryHandle(this, cxManager);
return handle;
} | [
"@",
"Override",
"public",
"Object",
"createConnectionFactory",
"(",
"ConnectionManager",
"cxManager",
")",
"throws",
"ResourceException",
"{",
"JcrRepositoryHandle",
"handle",
"=",
"new",
"JcrRepositoryHandle",
"(",
"this",
",",
"cxManager",
")",
";",
"return",
"hand... | Creates a Connection Factory instance.
@param cxManager ConnectionManager to be associated with created EIS connection factory instance
@return EIS-specific Connection Factory instance or javax.resource.cci.ConnectionFactory instance
@throws ResourceException Generic exception | [
"Creates",
"a",
"Connection",
"Factory",
"instance",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jca/src/main/java/org/modeshape/jca/JcrManagedConnectionFactory.java#L153-L157 |
56,369 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/index/local/LocalIndexBuilder.java | LocalIndexBuilder.validate | protected static void validate( IndexDefinition defn, Problems problems ) {
if (!defn.hasSingleColumn()) {
problems.addError(JcrI18n.localIndexProviderDoesNotSupportMultiColumnIndexes, defn.getName(), defn.getProviderName());
}
switch (defn.getKind()) {
case TEXT:
... | java | protected static void validate( IndexDefinition defn, Problems problems ) {
if (!defn.hasSingleColumn()) {
problems.addError(JcrI18n.localIndexProviderDoesNotSupportMultiColumnIndexes, defn.getName(), defn.getProviderName());
}
switch (defn.getKind()) {
case TEXT:
... | [
"protected",
"static",
"void",
"validate",
"(",
"IndexDefinition",
"defn",
",",
"Problems",
"problems",
")",
"{",
"if",
"(",
"!",
"defn",
".",
"hasSingleColumn",
"(",
")",
")",
"{",
"problems",
".",
"addError",
"(",
"JcrI18n",
".",
"localIndexProviderDoesNotSu... | Validate whether the index definition is acceptable for this provider.
@param defn the definition to validate; may not be {@code null}
@param problems the component to record any problems, errors, or warnings; may not be null | [
"Validate",
"whether",
"the",
"index",
"definition",
"is",
"acceptable",
"for",
"this",
"provider",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/index/local/LocalIndexBuilder.java#L91-L100 |
56,370 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java | RingBuffer.add | public boolean add( T entry ) {
assert entry != null;
if (!addEntries.get()) return false;
try {
producerLock.lock();
long position = cursor.claim(); // blocks; if this fails, we will not have successfully claimed and nothing to do ...
int index = (int)(positi... | java | public boolean add( T entry ) {
assert entry != null;
if (!addEntries.get()) return false;
try {
producerLock.lock();
long position = cursor.claim(); // blocks; if this fails, we will not have successfully claimed and nothing to do ...
int index = (int)(positi... | [
"public",
"boolean",
"add",
"(",
"T",
"entry",
")",
"{",
"assert",
"entry",
"!=",
"null",
";",
"if",
"(",
"!",
"addEntries",
".",
"get",
"(",
")",
")",
"return",
"false",
";",
"try",
"{",
"producerLock",
".",
"lock",
"(",
")",
";",
"long",
"positio... | Add to this buffer a single entry. This method blocks if there is no room in the ring buffer, providing back pressure on
the caller in such cases. Note that if this method blocks for any length of time, that means at least one consumer has yet
to process all of the entries that are currently in the ring buffer. In such... | [
"Add",
"to",
"this",
"buffer",
"a",
"single",
"entry",
".",
"This",
"method",
"blocks",
"if",
"there",
"is",
"no",
"room",
"in",
"the",
"ring",
"buffer",
"providing",
"back",
"pressure",
"on",
"the",
"caller",
"in",
"such",
"cases",
".",
"Note",
"that",
... | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java#L149-L161 |
56,371 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java | RingBuffer.add | public boolean add( T[] entries ) {
assert entries != null;
if (entries.length == 0 || !addEntries.get()) return false;
try {
producerLock.lock();
long position = cursor.claim(entries.length); // blocks
for (int i = 0; i != entries.length; ++i) {
... | java | public boolean add( T[] entries ) {
assert entries != null;
if (entries.length == 0 || !addEntries.get()) return false;
try {
producerLock.lock();
long position = cursor.claim(entries.length); // blocks
for (int i = 0; i != entries.length; ++i) {
... | [
"public",
"boolean",
"add",
"(",
"T",
"[",
"]",
"entries",
")",
"{",
"assert",
"entries",
"!=",
"null",
";",
"if",
"(",
"entries",
".",
"length",
"==",
"0",
"||",
"!",
"addEntries",
".",
"get",
"(",
")",
")",
"return",
"false",
";",
"try",
"{",
"... | Add to this buffer multiple entries. This method blocks until it is added.
@param entries the entries that are to be added; may not be null
@return true if all of the entries were added, or false if the buffer has been {@link #shutdown()} and none of the entries
were added | [
"Add",
"to",
"this",
"buffer",
"multiple",
"entries",
".",
"This",
"method",
"blocks",
"until",
"it",
"is",
"added",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java#L170-L184 |
56,372 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java | RingBuffer.remove | public boolean remove( C consumer ) {
if (consumer != null) {
// Iterate through the map to find the runner that owns this consumer ...
ConsumerRunner match = null;
for (ConsumerRunner runner : consumers) {
if (runner.getConsumer().equals(consumer)) {
... | java | public boolean remove( C consumer ) {
if (consumer != null) {
// Iterate through the map to find the runner that owns this consumer ...
ConsumerRunner match = null;
for (ConsumerRunner runner : consumers) {
if (runner.getConsumer().equals(consumer)) {
... | [
"public",
"boolean",
"remove",
"(",
"C",
"consumer",
")",
"{",
"if",
"(",
"consumer",
"!=",
"null",
")",
"{",
"// Iterate through the map to find the runner that owns this consumer ...",
"ConsumerRunner",
"match",
"=",
"null",
";",
"for",
"(",
"ConsumerRunner",
"runne... | Remove the supplied consumer, and block until it stops running and is closed and removed from this buffer. The consumer is
removed at the earliest conevenient point, and will stop seeing entries as soon as it is removed.
@param consumer the consumer component to be removed entry; retries will not be attempted if the v... | [
"Remove",
"the",
"supplied",
"consumer",
"and",
"block",
"until",
"it",
"stops",
"running",
"and",
"is",
"closed",
"and",
"removed",
"from",
"this",
"buffer",
".",
"The",
"consumer",
"is",
"removed",
"at",
"the",
"earliest",
"conevenient",
"point",
"and",
"w... | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java#L261-L280 |
56,373 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java | RingBuffer.shutdown | public void shutdown() {
// Prevent new entries from being added ...
this.addEntries.set(false);
// Mark the cursor as being finished; this will stop all consumers from waiting for a batch ...
this.cursor.complete();
// Each of the consumer threads will complete the batch they'... | java | public void shutdown() {
// Prevent new entries from being added ...
this.addEntries.set(false);
// Mark the cursor as being finished; this will stop all consumers from waiting for a batch ...
this.cursor.complete();
// Each of the consumer threads will complete the batch they'... | [
"public",
"void",
"shutdown",
"(",
")",
"{",
"// Prevent new entries from being added ...",
"this",
".",
"addEntries",
".",
"set",
"(",
"false",
")",
";",
"// Mark the cursor as being finished; this will stop all consumers from waiting for a batch ...",
"this",
".",
"cursor",
... | Shutdown this ring buffer by preventing any further entries, but allowing all existing entries to be processed by all
consumers. | [
"Shutdown",
"this",
"ring",
"buffer",
"by",
"preventing",
"any",
"further",
"entries",
"but",
"allowing",
"all",
"existing",
"entries",
"to",
"be",
"processed",
"by",
"all",
"consumers",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/collection/ring/RingBuffer.java#L310-L327 |
56,374 | ModeShape/modeshape | index-providers/modeshape-elasticsearch-index-provider/src/main/java/org/modeshape/jcr/index/elasticsearch/client/EsRequest.java | EsRequest.put | public void put(String name, Object value) {
if (value instanceof EsRequest) {
document.setDocument(name, ((EsRequest)value).document);
} else {
document.set(name, value);
}
} | java | public void put(String name, Object value) {
if (value instanceof EsRequest) {
document.setDocument(name, ((EsRequest)value).document);
} else {
document.set(name, value);
}
} | [
"public",
"void",
"put",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"instanceof",
"EsRequest",
")",
"{",
"document",
".",
"setDocument",
"(",
"name",
",",
"(",
"(",
"EsRequest",
")",
"value",
")",
".",
"document",
")",... | Adds single property value.
@param name property name.
@param value property value. | [
"Adds",
"single",
"property",
"value",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/index-providers/modeshape-elasticsearch-index-provider/src/main/java/org/modeshape/jcr/index/elasticsearch/client/EsRequest.java#L56-L62 |
56,375 | ModeShape/modeshape | index-providers/modeshape-elasticsearch-index-provider/src/main/java/org/modeshape/jcr/index/elasticsearch/client/EsRequest.java | EsRequest.put | public void put(String name, Object[] values) {
if (values instanceof EsRequest[]) {
Object[] docs = new Object[values.length];
for (int i = 0; i < docs.length; i++) {
docs[i] = ((EsRequest)values[i]).document;
}
document.setArray(name, docs);
... | java | public void put(String name, Object[] values) {
if (values instanceof EsRequest[]) {
Object[] docs = new Object[values.length];
for (int i = 0; i < docs.length; i++) {
docs[i] = ((EsRequest)values[i]).document;
}
document.setArray(name, docs);
... | [
"public",
"void",
"put",
"(",
"String",
"name",
",",
"Object",
"[",
"]",
"values",
")",
"{",
"if",
"(",
"values",
"instanceof",
"EsRequest",
"[",
"]",
")",
"{",
"Object",
"[",
"]",
"docs",
"=",
"new",
"Object",
"[",
"values",
".",
"length",
"]",
";... | Adds multivalued property value.
@param name property name.
@param value property values. | [
"Adds",
"multivalued",
"property",
"value",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/index-providers/modeshape-elasticsearch-index-provider/src/main/java/org/modeshape/jcr/index/elasticsearch/client/EsRequest.java#L70-L80 |
56,376 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/xml/XmlCharacters.java | XmlCharacters.isValidName | public static boolean isValidName( String name ) {
if (name == null || name.length() == 0) return false;
CharacterIterator iter = new StringCharacterIterator(name);
char c = iter.first();
if (!isValidNameStart(c)) return false;
while (c != CharacterIterator.DONE) {
if... | java | public static boolean isValidName( String name ) {
if (name == null || name.length() == 0) return false;
CharacterIterator iter = new StringCharacterIterator(name);
char c = iter.first();
if (!isValidNameStart(c)) return false;
while (c != CharacterIterator.DONE) {
if... | [
"public",
"static",
"boolean",
"isValidName",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"name",
"==",
"null",
"||",
"name",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"false",
";",
"CharacterIterator",
"iter",
"=",
"new",
"StringCharacterIterator... | Determine if the supplied name is a valid XML Name.
@param name the string being checked
@return true if the supplied name is indeed a valid XML Name, or false otherwise | [
"Determine",
"if",
"the",
"supplied",
"name",
"is",
"a",
"valid",
"XML",
"Name",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/xml/XmlCharacters.java#L278-L288 |
56,377 | ModeShape/modeshape | modeshape-common/src/main/java/org/modeshape/common/xml/XmlCharacters.java | XmlCharacters.isValidNcName | public static boolean isValidNcName( String name ) {
if (name == null || name.length() == 0) return false;
CharacterIterator iter = new StringCharacterIterator(name);
char c = iter.first();
if (!isValidNcNameStart(c)) return false;
while (c != CharacterIterator.DONE) {
... | java | public static boolean isValidNcName( String name ) {
if (name == null || name.length() == 0) return false;
CharacterIterator iter = new StringCharacterIterator(name);
char c = iter.first();
if (!isValidNcNameStart(c)) return false;
while (c != CharacterIterator.DONE) {
... | [
"public",
"static",
"boolean",
"isValidNcName",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"name",
"==",
"null",
"||",
"name",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"false",
";",
"CharacterIterator",
"iter",
"=",
"new",
"StringCharacterIterat... | Determine if the supplied name is a valid XML NCName.
@param name the string being checked
@return true if the supplied name is indeed a valid XML NCName, or false otherwise | [
"Determine",
"if",
"the",
"supplied",
"name",
"is",
"a",
"valid",
"XML",
"NCName",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-common/src/main/java/org/modeshape/common/xml/XmlCharacters.java#L296-L306 |
56,378 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.queryEngine | protected final QueryEngine queryEngine() {
if (queryEngine == null) {
try {
engineInitLock.lock();
if (queryEngine == null) {
QueryEngineBuilder builder = null;
if (!repoConfig.getIndexProviders().isEmpty()) {
... | java | protected final QueryEngine queryEngine() {
if (queryEngine == null) {
try {
engineInitLock.lock();
if (queryEngine == null) {
QueryEngineBuilder builder = null;
if (!repoConfig.getIndexProviders().isEmpty()) {
... | [
"protected",
"final",
"QueryEngine",
"queryEngine",
"(",
")",
"{",
"if",
"(",
"queryEngine",
"==",
"null",
")",
"{",
"try",
"{",
"engineInitLock",
".",
"lock",
"(",
")",
";",
"if",
"(",
"queryEngine",
"==",
"null",
")",
"{",
"QueryEngineBuilder",
"builder"... | Obtain the query engine, which is created lazily and in a thread-safe manner.
@return the query engine; never null | [
"Obtain",
"the",
"query",
"engine",
"which",
"is",
"created",
"lazily",
"and",
"in",
"a",
"thread",
"-",
"safe",
"manner",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L238-L262 |
56,379 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.reindexIfNeeded | protected void reindexIfNeeded( boolean async, final boolean includeSystemContent ) {
final ScanningRequest request = toBeScanned.drain();
if (!request.isEmpty()) {
final RepositoryCache repoCache = runningState.repositoryCache();
scan(async, () -> {
// Scan each ... | java | protected void reindexIfNeeded( boolean async, final boolean includeSystemContent ) {
final ScanningRequest request = toBeScanned.drain();
if (!request.isEmpty()) {
final RepositoryCache repoCache = runningState.repositoryCache();
scan(async, () -> {
// Scan each ... | [
"protected",
"void",
"reindexIfNeeded",
"(",
"boolean",
"async",
",",
"final",
"boolean",
"includeSystemContent",
")",
"{",
"final",
"ScanningRequest",
"request",
"=",
"toBeScanned",
".",
"drain",
"(",
")",
";",
"if",
"(",
"!",
"request",
".",
"isEmpty",
"(",
... | Reindex the repository only if there is at least one provider that required scanning and reindexing.
@param async whether the reindexing should be performed asynchronously or not
@param includeSystemContent whether the /jcr:system area should be indexed or not | [
"Reindex",
"the",
"repository",
"only",
"if",
"there",
"is",
"at",
"least",
"one",
"provider",
"that",
"required",
"scanning",
"and",
"reindexing",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L343-L390 |
56,380 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.cleanAndReindex | protected void cleanAndReindex( boolean async ) {
final IndexWriter writer = getIndexWriter();
scan(async, getIndexWriter(), new Callable<Void>() {
@SuppressWarnings( "synthetic-access" )
@Override
public Void call() throws Exception {
writer.clearAllI... | java | protected void cleanAndReindex( boolean async ) {
final IndexWriter writer = getIndexWriter();
scan(async, getIndexWriter(), new Callable<Void>() {
@SuppressWarnings( "synthetic-access" )
@Override
public Void call() throws Exception {
writer.clearAllI... | [
"protected",
"void",
"cleanAndReindex",
"(",
"boolean",
"async",
")",
"{",
"final",
"IndexWriter",
"writer",
"=",
"getIndexWriter",
"(",
")",
";",
"scan",
"(",
"async",
",",
"getIndexWriter",
"(",
")",
",",
"new",
"Callable",
"<",
"Void",
">",
"(",
")",
... | Clean all indexes and reindex all content.
@param async true if the reindexing should be done in the background, or false if it should be done using this thread | [
"Clean",
"all",
"indexes",
"and",
"reindex",
"all",
"content",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L397-L408 |
56,381 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.reindexContent | private void reindexContent( boolean includeSystemContent,
IndexWriter indexes ) {
if (indexes.canBeSkipped()) return;
// The node type schemata changes every time a node type is (un)registered, so get the snapshot that we'll use throughout
RepositoryCache repoCa... | java | private void reindexContent( boolean includeSystemContent,
IndexWriter indexes ) {
if (indexes.canBeSkipped()) return;
// The node type schemata changes every time a node type is (un)registered, so get the snapshot that we'll use throughout
RepositoryCache repoCa... | [
"private",
"void",
"reindexContent",
"(",
"boolean",
"includeSystemContent",
",",
"IndexWriter",
"indexes",
")",
"{",
"if",
"(",
"indexes",
".",
"canBeSkipped",
"(",
")",
")",
"return",
";",
"// The node type schemata changes every time a node type is (un)registered, so get... | Crawl and index all of the repository content.
@param includeSystemContent true if the system content should also be indexed
@param indexes the index writer that should be use; may not be null | [
"Crawl",
"and",
"index",
"all",
"of",
"the",
"repository",
"content",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L449-L484 |
56,382 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.reindexContent | public void reindexContent( JcrWorkspace workspace,
Path path,
int depth ) {
if (getIndexWriter().canBeSkipped()) {
// There's no indexes that require updating ...
return;
}
CheckArg.isPositive(depth, "depth"... | java | public void reindexContent( JcrWorkspace workspace,
Path path,
int depth ) {
if (getIndexWriter().canBeSkipped()) {
// There's no indexes that require updating ...
return;
}
CheckArg.isPositive(depth, "depth"... | [
"public",
"void",
"reindexContent",
"(",
"JcrWorkspace",
"workspace",
",",
"Path",
"path",
",",
"int",
"depth",
")",
"{",
"if",
"(",
"getIndexWriter",
"(",
")",
".",
"canBeSkipped",
"(",
")",
")",
"{",
"// There's no indexes that require updating ...",
"return",
... | Crawl and index the content starting at the supplied path in the named workspace, to the designated depth.
@param workspace the workspace
@param path the path of the content to be indexed
@param depth the depth of the content to be indexed
@throws IllegalArgumentException if the workspace or path are null, or if the d... | [
"Crawl",
"and",
"index",
"the",
"content",
"starting",
"at",
"the",
"supplied",
"path",
"in",
"the",
"named",
"workspace",
"to",
"the",
"designated",
"depth",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L504-L540 |
56,383 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.reindexContentAsync | public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace ) {
return indexingExecutorService.submit(() -> {
reindexContent(workspace);
return Boolean.TRUE;
});
} | java | public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace ) {
return indexingExecutorService.submit(() -> {
reindexContent(workspace);
return Boolean.TRUE;
});
} | [
"public",
"Future",
"<",
"Boolean",
">",
"reindexContentAsync",
"(",
"final",
"JcrWorkspace",
"workspace",
")",
"{",
"return",
"indexingExecutorService",
".",
"submit",
"(",
"(",
")",
"->",
"{",
"reindexContent",
"(",
"workspace",
")",
";",
"return",
"Boolean",
... | Asynchronously crawl and index the content in the named workspace.
@param workspace the workspace
@return the future for the asynchronous operation; never null
@throws IllegalArgumentException if the workspace is null | [
"Asynchronously",
"crawl",
"and",
"index",
"the",
"content",
"in",
"the",
"named",
"workspace",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L750-L755 |
56,384 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java | RepositoryQueryManager.reindexContentAsync | public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace,
final Path path,
final int depth ) {
return indexingExecutorService.submit(() -> {
reindexContent(workspace, path, depth);
... | java | public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace,
final Path path,
final int depth ) {
return indexingExecutorService.submit(() -> {
reindexContent(workspace, path, depth);
... | [
"public",
"Future",
"<",
"Boolean",
">",
"reindexContentAsync",
"(",
"final",
"JcrWorkspace",
"workspace",
",",
"final",
"Path",
"path",
",",
"final",
"int",
"depth",
")",
"{",
"return",
"indexingExecutorService",
".",
"submit",
"(",
"(",
")",
"->",
"{",
"re... | Asynchronously crawl and index the content starting at the supplied path in the named workspace, to the designated depth.
@param workspace the workspace
@param path the path of the content to be indexed
@param depth the depth of the content to be indexed
@return the future for the asynchronous operation; never null
@t... | [
"Asynchronously",
"crawl",
"and",
"index",
"the",
"content",
"starting",
"at",
"the",
"supplied",
"path",
"in",
"the",
"named",
"workspace",
"to",
"the",
"designated",
"depth",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryQueryManager.java#L766-L773 |
56,385 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/SystemNamespaceRegistry.java | SystemNamespaceRegistry.register | public void register( Map<String, String> namespaceUrisByPrefix ) {
if (namespaceUrisByPrefix == null || namespaceUrisByPrefix.isEmpty()) return;
final Lock lock = this.namespacesLock.writeLock();
try {
lock.lock();
SystemContent systemContent = systemContent(false);
... | java | public void register( Map<String, String> namespaceUrisByPrefix ) {
if (namespaceUrisByPrefix == null || namespaceUrisByPrefix.isEmpty()) return;
final Lock lock = this.namespacesLock.writeLock();
try {
lock.lock();
SystemContent systemContent = systemContent(false);
... | [
"public",
"void",
"register",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"namespaceUrisByPrefix",
")",
"{",
"if",
"(",
"namespaceUrisByPrefix",
"==",
"null",
"||",
"namespaceUrisByPrefix",
".",
"isEmpty",
"(",
")",
")",
"return",
";",
"final",
"Lock",
"l... | Register a set of namespaces.
@param namespaceUrisByPrefix the map of new namespace URIs by their prefix | [
"Register",
"a",
"set",
"of",
"namespaces",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/SystemNamespaceRegistry.java#L164-L181 |
56,386 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/cache/ReferrerCounts.java | ReferrerCounts.create | public static ReferrerCounts create( Map<NodeKey, Integer> strongCountsByReferrerKey,
Map<NodeKey, Integer> weakCountsByReferrerKey ) {
if (strongCountsByReferrerKey == null) strongCountsByReferrerKey = EMPTY_COUNTS;
if (weakCountsByReferrerKey == null) weakCount... | java | public static ReferrerCounts create( Map<NodeKey, Integer> strongCountsByReferrerKey,
Map<NodeKey, Integer> weakCountsByReferrerKey ) {
if (strongCountsByReferrerKey == null) strongCountsByReferrerKey = EMPTY_COUNTS;
if (weakCountsByReferrerKey == null) weakCount... | [
"public",
"static",
"ReferrerCounts",
"create",
"(",
"Map",
"<",
"NodeKey",
",",
"Integer",
">",
"strongCountsByReferrerKey",
",",
"Map",
"<",
"NodeKey",
",",
"Integer",
">",
"weakCountsByReferrerKey",
")",
"{",
"if",
"(",
"strongCountsByReferrerKey",
"==",
"null"... | Create a new instance of the snapshot.
@param strongCountsByReferrerKey the map of weak reference counts keyed by referrer's node keys; may be null or empty
@param weakCountsByReferrerKey the map of weak reference counts keyed by referrer's node keys; may be null or empty
@return the counts snapshot; null if there are... | [
"Create",
"a",
"new",
"instance",
"of",
"the",
"snapshot",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/cache/ReferrerCounts.java#L42-L48 |
56,387 | ModeShape/modeshape | sequencers/modeshape-sequencer-xsd/src/main/java/org/modeshape/sequencer/xsd/XsdReader.java | XsdReader.process | protected void process( XSDSchema schema,
String encoding,
long contentSize,
Node rootNode ) throws Exception {
assert schema != null;
logger.debug("Target namespace: '{0}'", schema.getTargetNamespace());
rootNo... | java | protected void process( XSDSchema schema,
String encoding,
long contentSize,
Node rootNode ) throws Exception {
assert schema != null;
logger.debug("Target namespace: '{0}'", schema.getTargetNamespace());
rootNo... | [
"protected",
"void",
"process",
"(",
"XSDSchema",
"schema",
",",
"String",
"encoding",
",",
"long",
"contentSize",
",",
"Node",
"rootNode",
")",
"throws",
"Exception",
"{",
"assert",
"schema",
"!=",
"null",
";",
"logger",
".",
"debug",
"(",
"\"Target namespace... | Read an XSDSchema instance and create the node hierarchy under the given root node.
@param schema the schema object; may not be null
@param encoding the encoding for the XSD; may be null if the encoding is not specified
@param contentSize the size of the XML Schema Document content; may not be negative
@param rootNode... | [
"Read",
"an",
"XSDSchema",
"instance",
"and",
"create",
"the",
"node",
"hierarchy",
"under",
"the",
"given",
"root",
"node",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-xsd/src/main/java/org/modeshape/sequencer/xsd/XsdReader.java#L180-L224 |
56,388 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java | Connectors.externalNodeRemoved | public void externalNodeRemoved( String externalNodeKey ) {
if (this.snapshot.get().containsProjectionForExternalNode(externalNodeKey)) {
// the external node was the root of a projection, so we need to remove that projection
synchronized (this) {
Snapshot current = this.... | java | public void externalNodeRemoved( String externalNodeKey ) {
if (this.snapshot.get().containsProjectionForExternalNode(externalNodeKey)) {
// the external node was the root of a projection, so we need to remove that projection
synchronized (this) {
Snapshot current = this.... | [
"public",
"void",
"externalNodeRemoved",
"(",
"String",
"externalNodeKey",
")",
"{",
"if",
"(",
"this",
".",
"snapshot",
".",
"get",
"(",
")",
".",
"containsProjectionForExternalNode",
"(",
"externalNodeKey",
")",
")",
"{",
"// the external node was the root of a proj... | Signals that an external node with the given key has been removed.
@param externalNodeKey a {@code non-null} String | [
"Signals",
"that",
"an",
"external",
"node",
"with",
"the",
"given",
"key",
"has",
"been",
"removed",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java#L395-L406 |
56,389 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java | Connectors.internalNodeRemoved | public void internalNodeRemoved( String internalNodeKey ) {
if (this.snapshot.get().containsProjectionForInternalNode(internalNodeKey)) {
// identify all the projections which from this internal (aka. federated node) and remove them
synchronized (this) {
Snapshot current ... | java | public void internalNodeRemoved( String internalNodeKey ) {
if (this.snapshot.get().containsProjectionForInternalNode(internalNodeKey)) {
// identify all the projections which from this internal (aka. federated node) and remove them
synchronized (this) {
Snapshot current ... | [
"public",
"void",
"internalNodeRemoved",
"(",
"String",
"internalNodeKey",
")",
"{",
"if",
"(",
"this",
".",
"snapshot",
".",
"get",
"(",
")",
".",
"containsProjectionForInternalNode",
"(",
"internalNodeKey",
")",
")",
"{",
"// identify all the projections which from ... | Signals that an internal node with the given key has been removed.
@param internalNodeKey a {@code non-null} String | [
"Signals",
"that",
"an",
"internal",
"node",
"with",
"the",
"given",
"key",
"has",
"been",
"removed",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java#L413-L431 |
56,390 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java | Connectors.getConnectorForSourceName | public Connector getConnectorForSourceName( String sourceName ) {
assert sourceName != null;
return this.snapshot.get().getConnectorWithSourceKey(NodeKey.keyForSourceName(sourceName));
} | java | public Connector getConnectorForSourceName( String sourceName ) {
assert sourceName != null;
return this.snapshot.get().getConnectorWithSourceKey(NodeKey.keyForSourceName(sourceName));
} | [
"public",
"Connector",
"getConnectorForSourceName",
"(",
"String",
"sourceName",
")",
"{",
"assert",
"sourceName",
"!=",
"null",
";",
"return",
"this",
".",
"snapshot",
".",
"get",
"(",
")",
".",
"getConnectorWithSourceKey",
"(",
"NodeKey",
".",
"keyForSourceName"... | Returns a connector which was registered for the given source name.
@param sourceName a {@code non-null} String; the name of a source
@return either a {@link Connector} instance or {@code null} | [
"Returns",
"a",
"connector",
"which",
"was",
"registered",
"for",
"the",
"given",
"source",
"name",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java#L613-L616 |
56,391 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java | Connectors.getDocumentTranslator | public DocumentTranslator getDocumentTranslator() {
if (translator == null) {
// We don't want the connectors to use a translator that converts large strings to binary values that are
// managed within ModeShape's binary store. Instead, all of the connector-created string property values... | java | public DocumentTranslator getDocumentTranslator() {
if (translator == null) {
// We don't want the connectors to use a translator that converts large strings to binary values that are
// managed within ModeShape's binary store. Instead, all of the connector-created string property values... | [
"public",
"DocumentTranslator",
"getDocumentTranslator",
"(",
")",
"{",
"if",
"(",
"translator",
"==",
"null",
")",
"{",
"// We don't want the connectors to use a translator that converts large strings to binary values that are",
"// managed within ModeShape's binary store. Instead, all ... | Returns the repository's document translator.
@return a {@link DocumentTranslator} instance. | [
"Returns",
"the",
"repository",
"s",
"document",
"translator",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/Connectors.java#L632-L640 |
56,392 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.start | void start( ScheduledExecutorService service ) {
if (rollupFuture.get() != null) {
// already started ...
return;
}
// Pre-populate the metrics (overwriting any existing history object) ...
durations.put(DurationMetric.QUERY_EXECUTION_TIME, new DurationHistory(Ti... | java | void start( ScheduledExecutorService service ) {
if (rollupFuture.get() != null) {
// already started ...
return;
}
// Pre-populate the metrics (overwriting any existing history object) ...
durations.put(DurationMetric.QUERY_EXECUTION_TIME, new DurationHistory(Ti... | [
"void",
"start",
"(",
"ScheduledExecutorService",
"service",
")",
"{",
"if",
"(",
"rollupFuture",
".",
"get",
"(",
")",
"!=",
"null",
")",
"{",
"// already started ...",
"return",
";",
"}",
"// Pre-populate the metrics (overwriting any existing history object) ...",
"du... | Start recording statistics.
@param service the executor service that should be used to capture the statistics; may not be null | [
"Start",
"recording",
"statistics",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L155-L191 |
56,393 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.stop | void stop() {
ScheduledFuture<?> future = this.rollupFuture.getAndSet(null);
if (future != null && !future.isDone() && !future.isCancelled()) {
// Stop running the scheduled job, letting any currently running rollup finish ...
future.cancel(false);
}
} | java | void stop() {
ScheduledFuture<?> future = this.rollupFuture.getAndSet(null);
if (future != null && !future.isDone() && !future.isCancelled()) {
// Stop running the scheduled job, letting any currently running rollup finish ...
future.cancel(false);
}
} | [
"void",
"stop",
"(",
")",
"{",
"ScheduledFuture",
"<",
"?",
">",
"future",
"=",
"this",
".",
"rollupFuture",
".",
"getAndSet",
"(",
"null",
")",
";",
"if",
"(",
"future",
"!=",
"null",
"&&",
"!",
"future",
".",
"isDone",
"(",
")",
"&&",
"!",
"futur... | Stop recording statistics. | [
"Stop",
"recording",
"statistics",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L196-L202 |
56,394 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.rollup | @SuppressWarnings( "fallthrough" )
private void rollup() {
DateTime now = timeFactory.create();
Window largest = null;
for (DurationHistory history : durations.values()) {
largest = history.rollup();
}
for (ValueHistory history : values.values()) {
lar... | java | @SuppressWarnings( "fallthrough" )
private void rollup() {
DateTime now = timeFactory.create();
Window largest = null;
for (DurationHistory history : durations.values()) {
largest = history.rollup();
}
for (ValueHistory history : values.values()) {
lar... | [
"@",
"SuppressWarnings",
"(",
"\"fallthrough\"",
")",
"private",
"void",
"rollup",
"(",
")",
"{",
"DateTime",
"now",
"=",
"timeFactory",
".",
"create",
"(",
")",
";",
"Window",
"largest",
"=",
"null",
";",
"for",
"(",
"DurationHistory",
"history",
":",
"du... | Method called once every second by the scheduled job.
@see #start(ScheduledExecutorService) | [
"Method",
"called",
"once",
"every",
"second",
"by",
"the",
"scheduled",
"job",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L209-L238 |
56,395 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.increment | public void increment( ValueMetric metric,
long incrementalValue ) {
assert metric != null;
ValueHistory history = values.get(metric);
if (history != null) history.recordIncrement(incrementalValue);
} | java | public void increment( ValueMetric metric,
long incrementalValue ) {
assert metric != null;
ValueHistory history = values.get(metric);
if (history != null) history.recordIncrement(incrementalValue);
} | [
"public",
"void",
"increment",
"(",
"ValueMetric",
"metric",
",",
"long",
"incrementalValue",
")",
"{",
"assert",
"metric",
"!=",
"null",
";",
"ValueHistory",
"history",
"=",
"values",
".",
"get",
"(",
"metric",
")",
";",
"if",
"(",
"history",
"!=",
"null"... | Record an incremental change to a value, called by the code that knows when and how the metric changes.
@param metric the metric; may not be null
@param incrementalValue the positive or negative increment
@see #increment(ValueMetric)
@see #decrement(ValueMetric)
@see #recordDuration(DurationMetric, long, TimeUnit, Map... | [
"Record",
"an",
"incremental",
"change",
"to",
"a",
"value",
"called",
"by",
"the",
"code",
"that",
"knows",
"when",
"and",
"how",
"the",
"metric",
"changes",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L307-L312 |
56,396 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.set | public void set( ValueMetric metric,
long value ) {
assert metric != null;
ValueHistory history = values.get(metric);
if (history != null) history.recordNewValue(value);
} | java | public void set( ValueMetric metric,
long value ) {
assert metric != null;
ValueHistory history = values.get(metric);
if (history != null) history.recordNewValue(value);
} | [
"public",
"void",
"set",
"(",
"ValueMetric",
"metric",
",",
"long",
"value",
")",
"{",
"assert",
"metric",
"!=",
"null",
";",
"ValueHistory",
"history",
"=",
"values",
".",
"get",
"(",
"metric",
")",
";",
"if",
"(",
"history",
"!=",
"null",
")",
"histo... | Record a specific value for a metric, called by the code that knows when and how the metric changes.
@param metric the metric; may not be null
@param value the value for the metric
@see #increment(ValueMetric, long)
@see #decrement(ValueMetric)
@see #recordDuration(DurationMetric, long, TimeUnit, Map) | [
"Record",
"a",
"specific",
"value",
"for",
"a",
"metric",
"called",
"by",
"the",
"code",
"that",
"knows",
"when",
"and",
"how",
"the",
"metric",
"changes",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L337-L342 |
56,397 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.recordDuration | void recordDuration( DurationMetric metric,
long duration,
TimeUnit timeUnit,
Map<String, String> payload ) {
assert metric != null;
DurationHistory history = durations.get(metric);
if (history != null) history.recordDura... | java | void recordDuration( DurationMetric metric,
long duration,
TimeUnit timeUnit,
Map<String, String> payload ) {
assert metric != null;
DurationHistory history = durations.get(metric);
if (history != null) history.recordDura... | [
"void",
"recordDuration",
"(",
"DurationMetric",
"metric",
",",
"long",
"duration",
",",
"TimeUnit",
"timeUnit",
",",
"Map",
"<",
"String",
",",
"String",
">",
"payload",
")",
"{",
"assert",
"metric",
"!=",
"null",
";",
"DurationHistory",
"history",
"=",
"du... | Record a new duration for the given metric, called by the code that knows about the duration.
@param metric the metric; may not be null
@param duration the duration
@param timeUnit the time unit of the duration
@param payload the payload; may be null or a lightweight representation of the activity described by the dur... | [
"Record",
"a",
"new",
"duration",
"for",
"the",
"given",
"metric",
"called",
"by",
"the",
"code",
"that",
"knows",
"about",
"the",
"duration",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L369-L376 |
56,398 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.statisticsFor | public static Statistics statisticsFor( long[] values ) {
int length = values.length;
if (length == 0) return EMPTY_STATISTICS;
if (length == 1) return statisticsFor(values[0]);
long total = 0L;
long max = Long.MIN_VALUE;
long min = Long.MAX_VALUE;
for (long value... | java | public static Statistics statisticsFor( long[] values ) {
int length = values.length;
if (length == 0) return EMPTY_STATISTICS;
if (length == 1) return statisticsFor(values[0]);
long total = 0L;
long max = Long.MIN_VALUE;
long min = Long.MAX_VALUE;
for (long value... | [
"public",
"static",
"Statistics",
"statisticsFor",
"(",
"long",
"[",
"]",
"values",
")",
"{",
"int",
"length",
"=",
"values",
".",
"length",
";",
"if",
"(",
"length",
"==",
"0",
")",
"return",
"EMPTY_STATISTICS",
";",
"if",
"(",
"length",
"==",
"1",
")... | Utility method to construct the statistics for a series of values.
@param values the values; the array reference may not be null but the array may be empty
@return the core statistics; never null | [
"Utility",
"method",
"to",
"construct",
"the",
"statistics",
"for",
"a",
"series",
"of",
"values",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L693-L713 |
56,399 | ModeShape/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java | RepositoryStatistics.statisticsFor | public static Statistics statisticsFor( Statistics[] statistics ) {
int length = statistics.length;
if (length == 0) return EMPTY_STATISTICS;
if (length == 1) return statistics[0] != null ? statistics[0] : EMPTY_STATISTICS;
int count = 0;
long max = Long.MIN_VALUE;
long m... | java | public static Statistics statisticsFor( Statistics[] statistics ) {
int length = statistics.length;
if (length == 0) return EMPTY_STATISTICS;
if (length == 1) return statistics[0] != null ? statistics[0] : EMPTY_STATISTICS;
int count = 0;
long max = Long.MIN_VALUE;
long m... | [
"public",
"static",
"Statistics",
"statisticsFor",
"(",
"Statistics",
"[",
"]",
"statistics",
")",
"{",
"int",
"length",
"=",
"statistics",
".",
"length",
";",
"if",
"(",
"length",
"==",
"0",
")",
"return",
"EMPTY_STATISTICS",
";",
"if",
"(",
"length",
"==... | Utility method to construct the composite statistics for a series of sampled statistics.
@param statistics the sample statistics that are to be combined; the array reference may not be null but the array may be
empty
@return the composite statistics; never null | [
"Utility",
"method",
"to",
"construct",
"the",
"composite",
"statistics",
"for",
"a",
"series",
"of",
"sampled",
"statistics",
"."
] | 794cfdabb67a90f24629c4fff0424a6125f8f95b | https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryStatistics.java#L722-L749 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.