|
15 | 15 | use Flow\ETL\Function\{AggregatingFunction, |
16 | 16 | ExecutionMode, |
17 | 17 | ScalarFunction, |
18 | | - StyleConverter\StringStyles as OldStringStyles, |
19 | 18 | WindowFunction}; |
20 | 19 | use Flow\ETL\Join\{Expression, Join}; |
21 | 20 | use Flow\ETL\Loader\SchemaValidationLoader; |
|
35 | 34 | use Flow\ETL\Row\{EntryReference, Formatter\ASCIISchemaFormatter, Reference, References}; |
36 | 35 | use Flow\ETL\Schema\{Definition, SchemaFormatter}; |
37 | 36 | use Flow\ETL\Schema\Validator\StrictValidator; |
38 | | -use Flow\ETL\String\StringStyles; |
39 | 37 | use Flow\ETL\Transformer\{AutoCastTransformer, |
40 | 38 | CallbackRowTransformer, |
41 | 39 | CrossJoinRowsTransformer, |
|
50 | 48 | OrderEntries\TypeComparator, |
51 | 49 | RenameEachEntryTransformer, |
52 | 50 | RenameEntryTransformer, |
53 | | - Rename\RenameCaseEntryStrategy, |
54 | 51 | Rename\RenameEntryStrategy, |
55 | | - Rename\RenameReplaceEntryStrategy, |
56 | 52 | ScalarFunctionFilterTransformer, |
57 | 53 | ScalarFunctionTransformer, |
58 | 54 | SelectEntriesTransformer, |
@@ -724,85 +720,6 @@ public function rename(string $from, string $to) : self |
724 | 720 | return $this; |
725 | 721 | } |
726 | 722 |
|
727 | | - /** |
728 | | - * @lazy |
729 | | - * Iterate over all entry names and replace the given search string with replace string. |
730 | | - * |
731 | | - * @deprecated use DataFrame::renameEach() with a RenameReplaceStrategy |
732 | | - */ |
733 | | - public function renameAll(string $search, string $replace) : self |
734 | | - { |
735 | | - $this->renameEach(new RenameReplaceEntryStrategy($search, $replace)); |
736 | | - |
737 | | - return $this; |
738 | | - } |
739 | | - |
740 | | - /** |
741 | | - * @lazy |
742 | | - * |
743 | | - * @deprecated use DataFrame::renameEach() with a selected StringStyles |
744 | | - */ |
745 | | - public function renameAllLowerCase() : self |
746 | | - { |
747 | | - $this->renameEach(new RenameCaseEntryStrategy(StringStyles::LOWER)); |
748 | | - |
749 | | - return $this; |
750 | | - } |
751 | | - |
752 | | - /** |
753 | | - * @lazy |
754 | | - * Rename all entries to a given style. |
755 | | - * Please look into \Flow\ETL\Function\StyleConverter\StringStyles class for all available styles. |
756 | | - * |
757 | | - * @deprecated use DataFrame::renameEach() with a selected Style |
758 | | - */ |
759 | | - public function renameAllStyle(OldStringStyles|StringStyles|string $style) : self |
760 | | - { |
761 | | - if ($style instanceof OldStringStyles) { |
762 | | - $style = StringStyles::fromString($style->value); |
763 | | - } |
764 | | - |
765 | | - $this->renameEach(new RenameCaseEntryStrategy(\is_string($style) ? StringStyles::fromString($style) : $style)); |
766 | | - |
767 | | - return $this; |
768 | | - } |
769 | | - |
770 | | - /** |
771 | | - * @lazy |
772 | | - * |
773 | | - * @deprecated use DataFrame::renameEach() with a selected Style |
774 | | - */ |
775 | | - public function renameAllUpperCase() : self |
776 | | - { |
777 | | - $this->renameEach(new RenameCaseEntryStrategy(StringStyles::UPPER)); |
778 | | - |
779 | | - return $this; |
780 | | - } |
781 | | - |
782 | | - /** |
783 | | - * @lazy |
784 | | - * |
785 | | - * @deprecated use DataFrame::renameEach() with a selected Style |
786 | | - */ |
787 | | - public function renameAllUpperCaseFirst() : self |
788 | | - { |
789 | | - $this->renameEach(new RenameCaseEntryStrategy(StringStyles::UCFIRST)); |
790 | | - |
791 | | - return $this; |
792 | | - } |
793 | | - |
794 | | - /** |
795 | | - * @lazy |
796 | | - * |
797 | | - * @deprecated use DataFrame::renameEach() with a selected Style |
798 | | - */ |
799 | | - public function renameAllUpperCaseWord() : self |
800 | | - { |
801 | | - $this->renameEach(new RenameCaseEntryStrategy(StringStyles::UCWORDS)); |
802 | | - |
803 | | - return $this; |
804 | | - } |
805 | | - |
806 | 723 | public function renameEach(RenameEntryStrategy ...$strategies) : self |
807 | 724 | { |
808 | 725 | $this->pipeline->add(new RenameEachEntryTransformer(...$strategies)); |
|
0 commit comments