private void InitializeInstanceFields() { _procedureSignature = _procedureSignature(GET_ROUTERS_FOR_DATABASE.fullyQualifiedProcedureName()).@in(DATABASE.parameterName(), Neo4jTypes.NTString).@out(TTL.parameterName(), Neo4jTypes.NTInteger).@out(ROUTERS.parameterName(), Neo4jTypes.NTList(Neo4jTypes.NTMap)).description(DESCRIPTION).build(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void superClusterRoutingProcedureShouldHaveCorrectSignature() public virtual void SuperClusterRoutingProcedureShouldHaveCorrectSignature() { GetRoutersForAllDatabasesProcedure proc = new GetRoutersForAllDatabasesProcedure(null, Config.defaults()); ProcedureSignature procSig = proc.Signature(); IList <FieldSignature> output = Arrays.asList(FieldSignature.outputField("ttl", Neo4jTypes.NTInteger), FieldSignature.outputField("routers", Neo4jTypes.NTList(Neo4jTypes.NTMap))); assertEquals("The output signature of the GetRoutersForAllDatabasesProcedure should not change.", procSig.OutputSignature(), output); }
public ClusterOverviewProcedure(TopologyService topologyService, LogProvider logProvider) : base(procedureSignature(new QualifiedName(_procedureNamespace, PROCEDURE_NAME)).@out("id", Neo4jTypes.NTString).@out("addresses", Neo4jTypes.NTList(Neo4jTypes.NTString)).@out("role", Neo4jTypes.NTString).@out("groups", Neo4jTypes.NTList(Neo4jTypes.NTString)).@out("database", Neo4jTypes.NTString).description("Overview of all currently accessible cluster members and their roles.").build()) { this._topologyService = topologyService; this._log = logProvider.getLog(this.GetType()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCompileFunction() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldCompileFunction() { // When IList <CallableUserFunction> function = Compile(typeof(SingleReadOnlyFunction)); // Then assertEquals(1, function.Count); assertThat(function[0].Signature(), Matchers.equalTo(functionSignature("org", "neo4j", "kernel", "impl", "proc", "listCoolPeople").@out(Neo4jTypes.NTList(Neo4jTypes.NTAny)).build())); }
private void InitializeInstanceFields() { _procedureSignature = ProcedureSignature.procedureSignature(GET_SERVERS_V1.fullyQualifiedProcedureName()).@out(TTL.parameterName(), Neo4jTypes.NTInteger).@out(SERVERS.parameterName(), Neo4jTypes.NTList(Neo4jTypes.NTMap)).description(_description).build(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCompileAggregationFunction() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldCompileAggregationFunction() { // When IList <CallableUserAggregationFunction> function = Compile(typeof(SingleAggregationFunction)); // Then assertEquals(1, function.Count); assertThat(function[0].Signature(), Matchers.equalTo(functionSignature("org", "neo4j", "kernel", "impl", "proc", "collectCool").@in("name", Neo4jTypes.NTString).@out(Neo4jTypes.NTList(Neo4jTypes.NTAny)).build())); }