org.neo4j.kernel.impl.proc.Procedures.getAllProcedures()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.neo4j.kernel.impl.proc.Procedures.getAllProcedures()方法的一些代码示例,展示了Procedures.getAllProcedures()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedures.getAllProcedures()方法的具体详情如下:
包路径:org.neo4j.kernel.impl.proc.Procedures
类名称:Procedures
方法名:getAllProcedures

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 );
}

相关文章