Stream

Development/Java 2018.12.28 08:59


Streams differ from collections in several ways:

  • No storage. A stream is not a data structure that stores elements; instead, it conveys elements from a source such as a data structure, an array, a generator function, or an I/O channel, through a pipeline of computational operations.
  • Functional in nature. An operation on a stream produces a result, but does not modify its source. For example, filtering a Stream obtained from a collection produces a new Streamwithout the filtered elements, rather than removing elements from the source collection.
  • Laziness-seeking. Many stream operations, such as filtering, mapping, or duplicate removal, can be implemented lazily, exposing opportunities for optimization. For example, "find the first String with three consecutive vowels" need not examine all the input strings. Stream operations are divided into intermediate (Stream-producing) operations and terminal (value- or side-effect-producing) operations. Intermediate operations are always lazy.
  • Possibly unbounded. While collections have a finite size, streams need not. Short-circuiting operations such as limit(n) or findFirst() can allow computations on infinite streams to complete in finite time.
  • Consumable. The elements of a stream are only visited once during the life of a stream. Like an Iterator, a new stream must be generated to revisit the same elements of the source.

In contrast, a Collection is a container of objects (elements). You can't get (retrieve) an object from a collection unless the object was previously added to the collection.



source - https://stackoverflow.com/questions/39432699/what-is-the-difference-between-streams-and-collections-in-java-8

'Development > Java' 카테고리의 다른 글

Stream  (0) 2018.12.28
JAVA - NIO.2  (0) 2018.09.29
Java 8 - Memory Management  (0) 2018.09.16
Java - version history  (0) 2018.09.16
Java - Underscores in Numeric Literals  (0) 2018.08.11
java - Xms Xmx  (0) 2018.07.23
Posted by linuxism


SL-C433W 컬러레이저프린터


무선이라서 스마트폰에서 바로 프린트할 수 있어서 너무 편합니다.



스마트폰으로 인터넷에서 아이들이 좋아하는 캐릭터를 컬러로 바로 출력할 수 있어서 너무 좋아요.


구매 사이트

http://www.11st.co.kr/product/SellerProductDetail.tmall?method=getSellerProductDetail&prdNo=1336949164&xfrom=&xzone=


'기타' 카테고리의 다른 글

SL-C433W 컬러레이저프린터 구매후기  (0) 2018.12.13
How to run Chromium with different UI language on Linux?  (0) 2014.07.12
저작권 표시  (0) 2012.08.29
zip code 란  (0) 2012.03.21
워드에서 티스토리 글 작성  (0) 2012.03.11
여의도맛집 본가참치  (0) 2012.03.08
Posted by linuxism


http://reactivex.io/

- https://en.wikipedia.org/wiki/Erik_Meijer_(computer_scientist)

- https://github.com/jhusain

- https://en.wikipedia.org/wiki/Reactive_extensions

- https://github.com/ReactiveX/RxJava



https://github.com/ReactiveX/RxJava

- https://github.com/benjchristensen

- https://www.linkedin.com/in/david-karnok-725b3189/?originalSubdomain=hu

  (https://github.com/akarnokd)



https://github.com/ReactiveX/RxJava/wiki/Reactive-Streams

Reactive Streams has been a collaborative effort to standardize the protocol for asynchronous streams on the JVM. The RxJava team was part of the effort from the beginning and supports the use of Reactive Streams APIs and eventually the Java 9 Flow APIs which are resulting from the success of the Reactive Stream effort.




https://stackoverflow.com/questions/34387153/whats-the-difference-between-reactive-and-reactive-streams

The design of Reactive Streams was a joint effort from several engineers to define a standard minimum set of components that support (potentially) asynchronous event delivery with backpressure (and synchronous cancellation). It was mainly influenced by RxJava in its design along with Akka.

However, the resulting design was significanlty different from RxJava so RxJava 1.x would require a lot of binary-incompatible changes to make itself compliant. Instead, we have an RxJavaReactiveStreams bridge and RxJava 2.0 was reimplemented by Reactive-Streams norms completely.

I have a four part blog series about Reactive-Streams in the light of RxJava.



https://www.reactivemanifesto.org/

- Jonas Bonér, Dave Farley, Roland Kuhn, and Martin Thompson

- https://rolandkuhn.com/

- http://www.reactive-streams.org/

https://en.wikipedia.org/wiki/Akka_(toolkit)



http://www.reactive-streams.org/

- https://github.com/reactive-streams/reactive-streams-jvm

- https://github.com/ReactiveX/RxJava/wiki/Reactive-Streams

- https://github.com/ReactiveX/RxJavaReactiveStreams

- https://github.com/reactor

- https://www.reddit.com/r/java/comments/6acxe3/spring_reactor_vs_rxjava/

- http://eyeahs.github.io/blog/2017/01/24/a-journey-into-reactive-streams/



https://github.com/reactor

- https://github.com/smaldini

https://hyojoy.blogspot.com/2018/08/spring-reactor-rxjava.html

- http://tech.kakao.com/2018/05/29/reactor-programming/




'Development > Common' 카테고리의 다른 글

Rx and Reactive Streams  (0) 2018.10.21
math  (0) 2018.05.27
Using the OpenSSL toolkit  (0) 2017.09.17
Date and Time Formats  (0) 2016.06.28
development - 개행문자  (0) 2016.03.02
매개변수(parameter)와 전달인자(argument)  (0) 2015.09.20
Posted by linuxism