0 votes
in HGrid247 DE by (220 points)
Dear Pak Arifin and All,

Mohon penjelasan dan sample workflow dari penggunaan function ReferenceReplacement.

Di help HGrid247 DE belum ada penjelasan dan sample nya.

Terimakasih.

1 Answer

0 votes
by (4.2k points)
<?xml version="1.0"?>
    <HGrid247 version="3.2">
        <Each>
            <name> Transformator_1623473991979</name>
            <ID> 1623473991979</ID>
            <label> Transformator_1</label>
            <prevPipe> </prevPipe>
           <type> EACH</type>
            <pipeName> Transformator_1623473991979</pipeName>
            <maxPrevNode> 0</maxPrevNode>
            <flowName> </flowName>
            <inFields> line</inFields>
            <outFields> line</outFields>
            <inFieldsType> String</inFieldsType>
            <outFieldsType> String</outFieldsType>
            <posx> 553.0</posx>
            <posy> 206.0</posy>
            <tinggi> 62</tinggi>
            <lebar> 90</lebar>
            <enabled> true</enabled>
            <enabledCounter> true</enabledCounter>
            <description> </description>
            <argumentSelector> </argumentSelector>
            <outputSelector> </outputSelector>
            <fieldDeclaration> </fieldDeclaration>
            <posxIR> 22</posxIR>
            <posyIR> 22</posyIR>
            <posxOR> 500</posxOR>
            <posyOR> 20</posyOR>
            <widhtIR> 200</widhtIR>
            <heightIR> 37</heightIR>
            <widthOR> 200</widthOR>
            <heightOR> 37</heightOR>
            <filterInstance> </filterInstance>
            <chaining> false</chaining>
        </Each>
        <Transform>
            <parentID> 1623473991979</parentID>
            <prevIDS> </prevIDS>
            <nextIDS> </nextIDS>
            <ID> 1623474012431</ID>
            <name> ReferenceReplacement</name>
            <package> cascading.solusi247.transform.special</package>
            <label> ReferenceReplacement(data/ref/ref_nama_depan.txt,0,1,|,,2,0)</label>
            <input> line</input>
            <output> line</output>
            <parameter> data/ref/ref_nama_depan.txt,0,1,pip_sign,,2,0</parameter>
            <posx> 283</posx>
            <posy> 202</posy>
            <inputCount> 3</inputCount>
            <outputCount> 2</outputCount>
            <codeString> </codeString>
            <expressionString> </expressionString>
            <defaultString> </defaultString>
            <extraInfo> </extraInfo>
            <udf> false</udf>
            <edited> false</edited>
            <freeCode> </freeCode>
        </Transform>
        <Pipe2Hfs>
            <fromID> 1623473991979</fromID>
            <toID> 1623476255830</toID>
        </Pipe2Hfs>
        <StdoutSink>
            <fields> </fields>
            <path> </path>
            <sinkMode> </sinkMode>
            <label> StdOtutput_1</label>
             <hfsName> StdOtutput_1623476255830</hfsName>
            <ID> 1623476255830</ID>
            <type> STDOUTPUTTAP</type>
            <posx> 785.0</posx>
            <posy> 225.0</posy>
            <inputdir> tmp</inputdir>
            <outputdir> tmp</outputdir>
            <testdir> </testdir>
            <tableHeader> </tableHeader>
            <outputWithDate>false</outputWithDate>
            <headerDelimited>    </headerDelimited>
            <outputFormat>hgrid247-#####</outputFormat>
            <fileType> Hfs</fileType>
            <fieldNames> </fieldNames>
            <enabled> true</enabled>
            <enabledCounter> true</enabledCounter>
            <argumentOrder> </argumentOrder>
            <description> </description>
            <schemeClass> </schemeClass>
            <delimiter> </delimiter>
            <fieldGroupPartition> </fieldGroupPartition>
            <incomingFields> line</incomingFields>
            <partDelimiter> </partDelimiter>
            <partIndex> </partIndex>
            <rejectedHfs> false</rejectedHfs>
            <beamrw> </beamrw>
            <compress> </compress>
            <sourceFields> </sourceFields>
            <sinkFields> </sinkFields>
            <numSinkPart> </numSinkPart>
        </StdoutSink>
        <MemorySource>
            <fields> line</fields>
            <path> </path>
            <sinkMode> </sinkMode>
            <label> DataFeeder_1</label>
             <hfsName> DataFeeder_1623473932274</hfsName>
            <ID> 1623473932274</ID>
            <type> MEMORYSOURCETAP</type>
            <posx> 208.0</posx>
            <posy> 194.0</posy>
            <inputdir> tmp</inputdir>
            <outputdir> </outputdir>
            <testdir> </testdir>
            <tableHeader> </tableHeader>
            <outputWithDate>false</outputWithDate>
            <headerDelimited>    </headerDelimited>
            <outputFormat>hgrid247-#####</outputFormat>
            <fileType> Hfs</fileType>
            <fieldNames> line</fieldNames>
            <enabled> true</enabled>
            <enabledCounter> true</enabledCounter>
            <argumentOrder> </argumentOrder>
            <description> </description>
            <schemeClass> </schemeClass>
            <delimiter> \\|</delimiter>
            <fieldGroupPartition> </fieldGroupPartition>
            <incomingFields> </incomingFields>
            <partDelimiter> </partDelimiter>
            <partIndex> </partIndex>
            <rejectedHfs> false</rejectedHfs>
            <beamrw> </beamrw>
            <compress> </compress>
            <sourceFields> </sourceFields>
            <sinkFields> </sinkFields>
            <numSinkPart> </numSinkPart>
            <tupleValue>A A HANIF A A
A. A. GD. AFIF
</tupleValue>
            <forever>true</forever>
        </MemorySource>
        <Hfs2Pipe>
            <fromID> 1623473932274</fromID>
            <toID> 1623473991979</toID>
        </Hfs2Pipe>
        <FlowProperty>
            <ReducerNumber> Default</ReducerNumber>
            <MapNumber> Default</MapNumber>
            <actionInputDir> L</actionInputDir>
            <compresstype> DefaultCodec</compresstype>
            <jobTrackerUrl> localhost:50030</jobTrackerUrl>
            <graphDisplay> false</graphDisplay>
            <mapOutputCompressed> false</mapOutputCompressed>
            <description> </description>
            <logPath> </logPath>
            <speculativeExecution> </speculativeExecution>
            <ingoreUnexistsPath> No</ingoreUnexistsPath>
            <combinedInput> false</combinedInput>
            <maxSplitSize> 128</maxSplitSize>
            <fileNdelimiter> No,|</fileNdelimiter>
            <reuseJVM> false</reuseJVM>
            <zoom> 1.0</zoom>
            <jobConf> </jobConf>
            <logLoc> Local</logLoc>
            <timeChar> EventTime</timeChar>
            <wmInterval> </wmInterval>
            <cpInterval> </cpInterval>
        </FlowProperty>
    </HGrid247>
by (4.2k points)
Content File reference
A A |ANAK AGUNG
A A B |ANAK AGUNG BAGUS
A A NGR |ANAK AGUNG NGURAH
A A SG |ANAK AGUNG SAGUNG
A, A, |ANAK AGUNG
A. A |ANAK AGUNG
A. A .GDE |ANAK AGUNG GEDE
A. A. |ANAK AGUNG
A. A. B |ANAK AGUNG BAGUS
A. A. B. |ANAK AGUNG BAGUS
A. A. GD. |ANAK AGUNG GEDE
by (4.2k points)
input

A A HANIF A A
A. A. GD. AFIF
by (4.2k points)
output

ANAK AGUNG HANIF A A
ANAK AGUNG GEDE AFIF
by (220 points)
Terimakasih Pak Arifin, sudah bisa
Welcome to Labs247 Community, where you can ask questions and receive answers from other members of the community.
...