Skip to content

Commit baa9bce

Browse files
committed
Changed maxmem argument from int32 to int64.
1 parent f75a893 commit baa9bce

File tree

6 files changed

+57
-8
lines changed

6 files changed

+57
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?><launchConfiguration type="com.ibm.etools.systems.launch.RemoteBuildConfigurationType">
2+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
3+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.jdt.core.javabuilder"/>
4+
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
5+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
6+
</launchConfiguration>

samples/RegexMatchNFSample/.project

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
</projects>
77
<buildSpec>
88
<buildCommand>
9-
<name>org.eclipse.jdt.core.javabuilder</name>
9+
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
10+
<triggers>full,incremental,</triggers>
1011
<arguments>
12+
<dictionary>
13+
<key>LaunchConfigHandle</key>
14+
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.jdt.core.javabuilder (10).launch</value>
15+
</dictionary>
1116
</arguments>
1217
</buildCommand>
1318
<buildCommand>

samples/RegexMatchNFSample/sample/RegexMatchNFSample.spl

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ composite RegexMatchNFSample {
1919
()as Custom_1 = Custom(){
2020
logic
2121
onProcess : {
22-
// Compile and index regex pattern, additionally increase max memory allocated
22+
// Compile and index regex pattern _1 for Custom_1, additionally increase max memory allocated
2323
regexCompile("^Hello", RegexPattern._1);
2424
regexCompile("Hello world$", RegexPattern._2);
25-
regexCompile(".*VERY_BIG_PATTERN.*", RegexPattern._3, 10000000);
25+
regexCompile(".*VERY_BIG_PATTERN.*", RegexPattern._3, 10000000l);
2626

2727
// Simple partial match (similar to SPL regex functions) - regex pattern is interpreted on each call
2828
printString("regexPartialMatch: 'Hello world' matches '^Hello': ");
@@ -32,18 +32,44 @@ composite RegexMatchNFSample {
3232
printString("regexFullMatch: 'Hello world' matches '^Hello world': ");
3333
println(regexFullMatch("Hello world", "^Hello world"));
3434

35-
// Fast partial match - compiled regex pattern 1 is used
35+
// Fast partial match - compiled regex pattern _1 is used
3636
printString("regexPartialMatch: 'Hello world' matches '^Hello': ");
3737
println(regexPartialMatch("Hello world", RegexPattern._1));
3838

39-
// Fast full match - compiled regex pattern 1 is used
39+
// Fast full match - compiled regex pattern _1 is used
4040
printString("regexFullMatch: 'Hello world' matches '^Hello': ");
4141
println(regexFullMatch("Hello world", RegexPattern._1));
4242

43-
// Fast full match - compiled regex pattern 2 is used
43+
// Fast full match - compiled regex pattern _2 is used
4444
printString("regexFullMatch: 'Hello world' matches 'Hello world$': ");
4545
println(regexFullMatch("Hello world", RegexPattern._2));
4646
}
4747

4848
}
49+
50+
()as Custom_2 = Custom(){
51+
logic
52+
onProcess : {
53+
// Compile and index regex pattern _1 for Custom_2
54+
regexCompile("Hello$", RegexPattern._1);
55+
56+
// Fast partial match - compiled regex pattern _1 is used
57+
printString("regexPartialMatch 2: 'Hello world' matches 'Hello$': ");
58+
println(regexPartialMatchStatic("Hello world", RegexPattern._1));
59+
}
60+
61+
}
62+
63+
()as Custom_3 = Custom(){
64+
logic
65+
onProcess : {
66+
// Compile and index regex pattern _1 for Custom_2
67+
regexCompile("Hello2$", RegexPattern._1);
68+
69+
// Fast partial match - compiled regex pattern _1 is used
70+
printString("regexPartialMatch 2: 'Hello world' matches 'Hello$': ");
71+
println(regexPartialMatchStatic("Hello world", RegexPattern._1));
72+
}
73+
74+
}
4975
}

samples/RegexMatchNFSample/toolkit.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2-
<toolkitModel xmlns="http://www.ibm.com/xmlns/prod/streams/spl/toolkit" productVersion="4.0.0.0" xmlns:common="http://www.ibm.com/xmlns/prod/streams/spl/common" xmlns:ti="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<toolkitModel xmlns="http://www.ibm.com/xmlns/prod/streams/spl/toolkit" productVersion="4.0.1.0" xmlns:common="http://www.ibm.com/xmlns/prod/streams/spl/common" xmlns:ti="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33

44
<toolkit name="com.ibm.streamsx.regex.RegexMatchNFSample" requiredProductVersion="4.0" version="1.1.1">
55
<description>Sample use of regex native functions.</description>
66
<uriTable>
7+
<uri index="2" value="sample/Main.spl"/>
78
<uri index="1" value="sample/RegexMatchNFSample.spl"/>
89
</uriTable>
910
<namespace name="sample">
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?><launchConfiguration type="com.ibm.etools.systems.launch.RemoteBuildConfigurationType">
2+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
3+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.jdt.core.javabuilder"/>
4+
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
5+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
6+
</launchConfiguration>

samples/RegexMatchSample/.project

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
</projects>
77
<buildSpec>
88
<buildCommand>
9-
<name>org.eclipse.jdt.core.javabuilder</name>
9+
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
10+
<triggers>full,incremental,</triggers>
1011
<arguments>
12+
<dictionary>
13+
<key>LaunchConfigHandle</key>
14+
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.jdt.core.javabuilder (12).launch</value>
15+
</dictionary>
1116
</arguments>
1217
</buildCommand>
1318
<buildCommand>

0 commit comments

Comments
 (0)