I think you're overselling optional a little bit.
The unfortunate fact is that any Optional /can still be null itself/.
As such, if there a method accepts an Optional it still has to check
whether it is null, /and in addition whether it contains a null.
/i.e.
public void myMethod(Optional
I agree with Chesnay, that Optional is not so perfect especially in places
other than return value.
Some other problems I could see:
1. Optional is a generic type, and generic types not always behave well with
the TypeInformation due to type erasure.
2. Optionals due not work well with Reflecti
Hai Zhou created FLINK-7510:
---
Summary: Move "flink-connector-twitter &
flink-connector-wikiedits" to bahir-flink
Key: FLINK-7510
URL: https://issues.apache.org/jira/browse/FLINK-7510
Project: Flink
Chesney you are looking at this in wrong way. With Optionals, your proposed
myMethod wouldn’t be allowed by our code style/convention. It should look like
this:
public void myMethod(Optional parameter) {
checkNotNull(parameter, “parameter is null”);
if (parameter.isPresent()) {
Dawid Wysakowicz created FLINK-7511:
---
Summary: Remove dead code after dropping backward compatibility
with <=1.2
Key: FLINK-7511
URL: https://issues.apache.org/jira/browse/FLINK-7511
Project: Flink
Nico Kruber created FLINK-7512:
--
Summary: avoid unnecessary buffer copies during network
serialization
Key: FLINK-7512
URL: https://issues.apache.org/jira/browse/FLINK-7512
Project: Flink
Issue
Nico Kruber created FLINK-7513:
--
Summary: remove TestBufferFactory#MOCK_BUFFER
Key: FLINK-7513
URL: https://issues.apache.org/jira/browse/FLINK-7513
Project: Flink
Issue Type: Sub-task
Nico Kruber created FLINK-7514:
--
Summary: fix BackPressureStatsTrackerITCase releasing buffers twice
Key: FLINK-7514
URL: https://issues.apache.org/jira/browse/FLINK-7514
Project: Flink
Issue Ty
Nico Kruber created FLINK-7515:
--
Summary: allow actual 0-length content in
NettyMessage#allocateBuffer()
Key: FLINK-7515
URL: https://issues.apache.org/jira/browse/FLINK-7515
Project: Flink
Iss
Nico Kruber created FLINK-7516:
--
Summary: MemorySegment: do not allow copies into a read-only
ByteBuffer
Key: FLINK-7516
URL: https://issues.apache.org/jira/browse/FLINK-7516
Project: Flink
Iss
Nico Kruber created FLINK-7517:
--
Summary: let NettyBufferPool extend PooledByteBufAllocator
Key: FLINK-7517
URL: https://issues.apache.org/jira/browse/FLINK-7517
Project: Flink
Issue Type: Sub-t
Nico Kruber created FLINK-7518:
--
Summary: pass our own buffer instances to netty
Key: FLINK-7518
URL: https://issues.apache.org/jira/browse/FLINK-7518
Project: Flink
Issue Type: Sub-task
Till Rohrmann created FLINK-7519:
Summary: Enrich ClientRestException with HttpResponseStatus
Key: FLINK-7519
URL: https://issues.apache.org/jira/browse/FLINK-7519
Project: Flink
Issue Type:
Nico Kruber created FLINK-7520:
--
Summary: let our Buffer class extend from netty's buffer class
Key: FLINK-7520
URL: https://issues.apache.org/jira/browse/FLINK-7520
Project: Flink
Issue Type: S
Kostas Kloudas created FLINK-7521:
-
Summary: Remove the 10MB limit from the current REST
implementation.
Key: FLINK-7521
URL: https://issues.apache.org/jira/browse/FLINK-7521
Project: Flink
Till Rohrmann created FLINK-7522:
Summary: Add termination future to ClusterEntrypoint
Key: FLINK-7522
URL: https://issues.apache.org/jira/browse/FLINK-7522
Project: Flink
Issue Type: Improve
Nico Kruber created FLINK-7523:
--
Summary: test instability in
LocalStreamEnvironmentITCase#testRunIsolatedJob
Key: FLINK-7523
URL: https://issues.apache.org/jira/browse/FLINK-7523
Project: Flink
Bowen Li created FLINK-7524:
---
Summary: Task "xxx" did not react to cancelling signal, but is
stuck in method
Key: FLINK-7524
URL: https://issues.apache.org/jira/browse/FLINK-7524
Project: Flink
Is
Ted Yu created FLINK-7525:
-
Summary: Add config option to disable Cancel functionality on UI
Key: FLINK-7525
URL: https://issues.apache.org/jira/browse/FLINK-7525
Project: Flink
Issue Type: Improveme
19 matches
Mail list logo