/** * Create a raw iterator from a regular iterator, assuming no exceptions are being thrown */ static <T, EX extends Exception> RawIterator<T, EX> wrap( final Iterator<T> iterator ) { return Iterators.asRawIterator( iterator ); } }
public static <T, EX extends Exception> RawIterator<T, EX> asRawIterator( Stream<T> stream ) { return asRawIterator( stream.iterator() ); }
@Override public RawIterator<Object[],ProcedureException> apply( Context ctx, Object[] input, ResourceTracker resourceTracker ) throws ProcedureException { return asRawIterator( singletonList( new Object[]{"Neo4j Kernel", singletonList( neo4jVersion ), neo4jEdition}).iterator() ); } }
return asRawIterator( emptyIterator() );
/** * Create a raw iterator from a regular iterator, assuming no exceptions are being thrown */ static <T, EX extends Exception> RawIterator<T, EX> wrap( final Iterator<T> iterator ) { return Iterators.asRawIterator( iterator ); } }
public static <T, EX extends Exception> RawIterator<T, EX> asRawIterator( Stream<T> stream ) { return asRawIterator( stream.iterator() ); }
@Override public RawIterator<Object[],ProcedureException> apply( Context ctx, Object[] input, ResourceTracker resourceTracker ) throws ProcedureException { return asRawIterator( singletonList( new Object[]{"Neo4j Kernel", singletonList( neo4jVersion ), neo4jEdition}).iterator() ); } }
@Override public RawIterator<Object[],ProcedureException> apply( Context ctx, Object[] input, ResourceTracker resourceTracker ) { Stream<Object[]> outbound = toOutputRows( clientInstalledProtocols, ProtocolInstaller.Orientation.Client.OUTBOUND ); Stream<Object[]> inbound = toOutputRows( serverInstalledProtocols, ProtocolInstaller.Orientation.Server.INBOUND ); return Iterators.asRawIterator( Stream.concat( outbound, inbound ) ); }
endpoint.dbName() }, asRawIterator( endpoints.iterator() ) );
return asRawIterator( emptyIterator() );
asRawIterator( endpoints.iterator() ) );