You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by "LiangliangSui (via GitHub)" <gi...@apache.org> on 2024/02/19 02:38:08 UTC

[I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

LiangliangSui opened a new issue, #1374:
URL: https://github.com/apache/incubator-fury/issues/1374

   The current inheritance structure of `ThreadLocalFury / AbstractThreadSafeFury / ThreadSafeFury / Fury` is as follows
   
   ![image-20240219100956126](https://github.com/apache/incubator-fury/assets/116876207/31f3aa51-ad9e-443c-83e6-8bd49dcfda8f)
   
   `ThreadSafeFury` and `Fury` are independent of each other, but they also have the same methods. Therefore, is it possible to abstract an interface (named `AbstractFury`), make `Fury` and `ThreadSafeFury` implement` AbstractFury`, and then move the same methods in `Fury` and `ThreadSafeFury` to `AbstractFury`, thus making the entire Fury-related class inheritance system look more complete and clear. 
   
   The adjusted inheritance structure is as follows
   
   ![image-20240219101407316](https://github.com/apache/incubator-fury/assets/116876207/b4dfc83f-0189-4b08-a764-5b77fa14a2eb)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1951926102

   One concern is about how we name this interface to make it more intuitive for use. `AbstractFury` is used for abstract class instead fo interface. I don't find a better naming, naming is always hard.
   
   The naming should have `Fury` included and not introduce more confusion.
   
   FYI, In scala, we use `Trait` for such cases, like `FuryTrait`, but trait is not used requently in java. `FuryBase/BaseFury` has similar issue as `AbstractFury`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1953425353

   `BaseFury` looks good to me too


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1951758770

   I will submit a PR to do this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui closed issue #1374: [Java] Advice on Java Fury inheritance structure
URL: https://github.com/apache/incubator-fury/issues/1374


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1955988718

   https://github.com/apache/incubator-fury/pull/1382


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1951964149

   Thanks for the suggestion. I think it is reasonable to use `BaseFury` to name this interface. It can clearly express the role of this interface.
   
   So we can finally use `BaseFury`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [I] [Java] Advice on Java Fury inheritance structure [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on issue #1374:
URL: https://github.com/apache/incubator-fury/issues/1374#issuecomment-1951729787

   Good suggestion! The same methods should be abstracted into an interface.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org