org.neo4j.procedure.Procedure.<init>()方法的使用及代码示例

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

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

Procedure.<init>介绍

暂无

代码示例

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Change the current user's password. Deprecated by dbms.security.changePassword." )
@Procedure( name = "dbms.changePassword", mode = DBMS, deprecatedBy = "dbms.security.changePassword" )
public void changePasswordDeprecated( @Name( "password" ) String password ) throws InvalidArgumentsException, IOException
{
  // TODO: Deprecate this and create a new procedure that takes password as a byte[]
  changePassword( password );
}

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Show the current user. Deprecated by dbms.showCurrentUser." )
@Procedure( name = "dbms.security.showCurrentUser", mode = DBMS, deprecatedBy = "dbms.showCurrentUser" )
public Stream<UserResult> showCurrentUserDeprecated()
{
  return showCurrentUser();
}

代码示例来源:origin: neo4j/neo4j

@Description( "Visualize the schema of the data. Replaces db.schema." )
@Procedure( name = "db.schema.visualization", mode = READ )
public Stream<SchemaProcedure.GraphResult> schemaVisualization()
{
  return Stream.of( new SchemaProcedure( graphDatabaseAPI, tx ).buildSchemaGraph() );
}

代码示例来源:origin: neo4j/neo4j

@Procedure
  public Stream<MyOutputRecord> echoWithInvalidType( @Name( "name" ) UnmappableRecord in )
  {
    return Stream.of( new MyOutputRecord( "echo" ));
  }
}

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Check if a relationship explicit index exists" )
@Procedure( name = "db.index.explicit.existsForRelationships", mode = READ, deprecatedBy = EXPLICIT_INDEX_DEPRECATION )
public Stream<BooleanResult> relationshipManualIndexExists( @Name( "indexName" ) String explicitIndexName )
{
  return Stream.of( new BooleanResult( graphDatabaseAPI.index().existsForRelationships( explicitIndexName ) ) );
}

代码示例来源:origin: neo4j/neo4j

@Procedure
  public Stream<Output> myProcedure()
  {
    return Stream.of( new Output() );
  }
}

代码示例来源:origin: neo4j/neo4j

@Procedure
  public Stream<MyOutputRecord> defaultValues( @Name( "a" ) String a,
      @Name( value = "b", defaultValue = "42" ) long b, @Name( "c" ) Object c )
  {
    return Stream.empty();
  }
}

代码示例来源:origin: neo4j/neo4j

@Procedure
public Stream<Records.SimpleTypesWrapper> simpleInput18( @Name( "foo" ) Node input )
{
  return Stream.of( new Records.SimpleTypesWrapper() );
}

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Check if a node explicit index exists" )
@Procedure( name = "db.index.explicit.existsForNodes", mode = READ, deprecatedBy = EXPLICIT_INDEX_DEPRECATION )
public Stream<BooleanResult> nodeManualIndexExists( @Name( "indexName" ) String explicitIndexName )
{
  return Stream.of( new BooleanResult( graphDatabaseAPI.index().existsForNodes( explicitIndexName ) ) );
}

代码示例来源:origin: neo4j/neo4j

@Procedure
  public Stream rawStreamProc()
  {
    return Stream.of( new Output() );
  }
}

代码示例来源:origin: neo4j/neo4j

@Admin
@Description( "Retrieve the status of all available collector daemons, for this database." )
@Procedure( name = "db.stats.status", mode = Mode.READ )
public Stream<StatusResult> status()
{
  CollectorStateMachine.Status status = dataCollector.queryCollector.status();
  return Stream.of( new StatusResult( Sections.QUERIES, status.message, Collections.emptyMap() ) );
}

代码示例来源:origin: neo4j/neo4j

@Description( "Wait for an index to come online (for example: CALL db.awaitIndex(\":Person(name)\"))." )
@Procedure( name = "db.awaitIndex", mode = READ )
public void awaitIndex( @Name( "index" ) String index,
    @Name( value = "timeOutSeconds", defaultValue = "300" ) long timeout )
    throws ProcedureException
{
  try ( IndexProcedures indexProcedures = indexProcedures() )
  {
    indexProcedures.awaitIndexByPattern( index, timeout, TimeUnit.SECONDS );
  }
}

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Show the schema of the data." )
@Procedure( name = "db.schema", mode = READ, deprecatedBy = DB_SCHEMA_DEPRECATION )
public Stream<SchemaProcedure.GraphResult> schema()
{
  return schemaVisualization();
}

代码示例来源:origin: neo4j/neo4j

@Procedure
  public Stream<MyOutputRecord> defaultValues( @Name( value = "a", defaultValue = "a" ) String a,
      @Name( value = "b", defaultValue = "42" ) long b, @Name( value = "c", defaultValue = "3.14" ) double c )
  {
    return Stream.empty();
  }
}

代码示例来源:origin: neo4j/neo4j

@Procedure
public Stream<Records.SimpleTypesWrapper> simpleInput20( @Name( "foo" ) Relationship input )
{
  return Stream.of( new Records.SimpleTypesWrapper() );
}

代码示例来源:origin: neo4j/neo4j

@Deprecated
@Description( "Add a node to an explicit index based on a specified key and value" )
@Procedure( name = "db.index.explicit.addNode", mode = WRITE, deprecatedBy = EXPLICIT_INDEX_DEPRECATION )
public Stream<BooleanResult> nodeManualIndexAdd( @Name( "indexName" ) String explicitIndexName,
    @Name( "node" ) Node node, @Name( "key" ) String key,
    @Name( "value" ) Object value )
{
  graphDatabaseAPI.index().forNodes( explicitIndexName ).add( node, key, value );
  // Failures will be expressed as exceptions before the return
  return Stream.of( new BooleanResult( Boolean.TRUE ) );
}

代码示例来源:origin: neo4j/neo4j

@Procedure
public Stream<Records.SimpleTypesWrapper> simpleInput21()
{
  return Stream.of( new Records.SimpleTypesWrapper() );
}

代码示例来源:origin: neo4j/neo4j

@Description( "Show the current user." )
@Procedure( name = "dbms.showCurrentUser", mode = DBMS )
public Stream<UserResult> showCurrentUser()
{
  return Stream.of( userResultForName( securityContext.subject().username() ) );
}

代码示例来源:origin: neo4j/neo4j

@Description( "Similar to db.awaitIndex(index, timeout), except instead of an index pattern, the index is specified by name. " +
    "The name can be quoted by backticks, if necessary." )
@Procedure( name = "db.index.fulltext.awaitIndex", mode = READ )
public void awaitIndex( @Name( "index" ) String index, @Name( value = "timeOutSeconds", defaultValue = "300" ) long timeout ) throws ProcedureException
{
  try ( IndexProcedures indexProcedures = indexProcedures() )
  {
    indexProcedures.awaitIndexByName( index, timeout, TimeUnit.SECONDS );
  }
}

代码示例来源:origin: neo4j/neo4j

@Description( "Wait for the updates from recently committed transactions to be applied to any eventually-consistent fulltext indexes." )
@Procedure( name = "db.index.fulltext.awaitEventuallyConsistentIndexRefresh", mode = READ )
public void awaitRefresh()
{
  accessor.awaitRefresh();
}

相关文章