Skip to content
Permalink
Browse files
Merge pull request #836 from mattcasters/master
HOP-2907, HOP-2918, HOP-2919, HOP-2920
  • Loading branch information
hansva committed May 31, 2021
2 parents 787e4b5 + 3614c4e commit d0c48f2a91a2c5cba9a646a0412eff34e55b1e64
Showing 43 changed files with 4,553 additions and 2,919 deletions.
@@ -13,25 +13,23 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package org.apache.hop.core.search;

import org.apache.hop.core.search.BaseSearchableAnalyser;
import org.apache.hop.metadata.api.HopMetadata;
import org.apache.hop.metadata.api.IHopMetadata;

public abstract class BaseMetadataSearchableAnalyser<T extends IHopMetadata> extends BaseSearchableAnalyser<T> {
public abstract class BaseMetadataSearchableAnalyser<T extends IHopMetadata>
extends BaseSearchableAnalyser<T> {

public abstract Class<T> getSearchableClass();

protected String getMetadataComponent() {
HopMetadata annotation = getSearchableClass().getAnnotation( HopMetadata.class );
if (annotation!=null) {
HopMetadata annotation = getSearchableClass().getAnnotation(HopMetadata.class);
if (annotation != null) {
return annotation.name();
}
return null;
}

}
@@ -11,7 +11,7 @@
<parameters>
<parameter>
<name>PARENT_FOLDER</name>
<default_value>file:///home/matt/git/mattcasters/incubator-hop/integration-tests/neo4j/tests/neo4j-cypher/</default_value>
<default_value></default_value>
<description>The folder in which the parent workflow was executed.</description>
</parameter>
</parameters>
@@ -11,7 +11,7 @@
<parameters>
<parameter>
<name>PARENT_FOLDER</name>
<default_value>file:///home/matt/git/mattcasters/incubator-hop/integration-tests/neo4j/tests/neo4j-cypher/</default_value>
<default_value></default_value>
<description>The folder in which the parent workflow was executed.</description>
</parameter>
</parameters>
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8"?>
<pipeline>
<info>
<name>0019-split-field-to-rows-basic</name>
<name_sync_with_filename>Y</name_sync_with_filename>
<description/>
<extended_description/>
<pipeline_version/>
<pipeline_type>Normal</pipeline_type>
<parameters>
</parameters>
<capture_transform_performance>N</capture_transform_performance>
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
<created_user>-</created_user>
<created_date>2021/05/31 11:03:53.303</created_date>
<modified_user>-</modified_user>
<modified_date>2021/05/31 11:03:53.303</modified_date>
<key_for_session_key/>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<order>
<hop>
<from>Sample input</from>
<to>Split movie to movies</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Split movie to movies</from>
<to>Verify</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Split movie to movies</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>movies</splitfield>
<delimiter>,\s*</delimiter>
<newfield>movie</newfield>
<rownum>Y</rownum>
<rownum_field>movieNr</rownum_field>
<resetrownumber>Y</resetrownumber>
<delimiter_is_regex>Y</delimiter_is_regex>
<attributes/>
<GUI>
<xloc>320</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Sample input</name>
<type>DataGrid</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>id</name>
<type>Integer</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
</field>
<field>
<name>character</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
</field>
<field>
<name>movies</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
</field>
</fields>
<data>
<line>
<item>1</item>
<item>Thor</item>
<item>Thor, The Avengers, Thor: The Dark World, Age of Ultron, Doctor Strange, Thor Ragnarok, Avengers: Infinity war, Avengers: Endgame, Thor: Love and Thunder</item>
</line>
<line>
<item>2</item>
<item>Iron Man</item>
<item>Iron Man, Iron Man 2, The Avengers, Iron Man 3, Avengers: Age of Ultron, Captain America: Civil War, Spider-Man: Homecoming, Avengers: Infinity war, Avengers: Endgame</item>
</line>
<line>
<item>3</item>
<item>Captain America</item>
<item>Captain America: The First Avenger, The Avengers, Captain America: The Winter Soldier, Avengers: Age of Ultron, Captain America: Civil War, Spider-Man: Homecoming, Avengers: Infinity War, Captain Marvel, Avengers: Endgame</item>
</line>
</data>
<attributes/>
<GUI>
<xloc>128</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Verify</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>496</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>

0 comments on commit d0c48f2

Please sign in to comment.