本文整理了Java中org.neo4j.kernel.impl.proc.Procedures.getAllProcedures()
方法的一些代码示例,展示了Procedures.getAllProcedures()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedures.getAllProcedures()
方法的具体详情如下:
包路径:org.neo4j.kernel.impl.proc.Procedures
类名称:Procedures
方法名:getAllProcedures
暂无
代码示例来源:origin: neo4j/neo4j
@Override
public Set<ProcedureSignature> proceduresGetAll( )
{
ktx.assertOpen();
return procedures.getAllProcedures();
}
代码示例来源:origin: neo4j/neo4j
@Description( "List all procedures in the DBMS." )
@Procedure( name = "dbms.procedures", mode = DBMS )
public Stream<ProcedureResult> listProcedures()
{
securityContext.assertCredentialsNotExpired();
return graph.getDependencyResolver().resolveDependency( Procedures.class ).getAllProcedures().stream()
.sorted( Comparator.comparing( a -> a.name().toString() ) )
.map( ProcedureResult::new );
}
代码示例来源:origin: neo4j/neo4j
@Test
public void shouldGetAllRegisteredProcedures() throws Throwable
{
// When
procs.register( procedure( procedureSignature( "org", "myproc1" ).out( "age", NTInteger ).build() ) );
procs.register( procedure( procedureSignature( "org", "myproc2" ).out( "age", NTInteger ).build() ) );
procs.register( procedure( procedureSignature( "org", "myproc3" ).out( "age", NTInteger ).build() ) );
// Then
List<ProcedureSignature> signatures = Iterables.asList( procs.getAllProcedures() );
assertThat( signatures, containsInAnyOrder(
procedureSignature( "org", "myproc1" ).out( "age", NTInteger ).build(),
procedureSignature( "org", "myproc2" ).out( "age", NTInteger ).build(),
procedureSignature( "org", "myproc3" ).out( "age", NTInteger ).build() ) );
}
代码示例来源:origin: org.neo4j/neo4j-kernel
@Override
public Set<ProcedureSignature> proceduresGetAll( )
{
ktx.assertOpen();
return procedures.getAllProcedures();
}
代码示例来源:origin: org.neo4j/neo4j-enterprise-kernel
@Description( "List all procedures in the DBMS." )
@Procedure( name = "dbms.procedures", mode = DBMS )
public Stream<ProcedureResult> listProcedures()
{
securityContext.assertCredentialsNotExpired();
Procedures procedures = graph.getDependencyResolver().resolveDependency( Procedures.class );
return procedures.getAllProcedures().stream()
.sorted( Comparator.comparing( a -> a.name().toString() ) )
.map( ProcedureResult::new );
}
代码示例来源:origin: org.neo4j/neo4j-kernel
@Description( "List all procedures in the DBMS." )
@Procedure( name = "dbms.procedures", mode = DBMS )
public Stream<ProcedureResult> listProcedures()
{
securityContext.assertCredentialsNotExpired();
return graph.getDependencyResolver().resolveDependency( Procedures.class ).getAllProcedures().stream()
.sorted( Comparator.comparing( a -> a.name().toString() ) )
.map( ProcedureResult::new );
}
内容来源于网络,如有侵权,请联系作者删除!