This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.management.ManagementFactory | |
import javax.management.* | |
MBeanServer mbeanServer = ManagementFactory.platformMBeanServer | |
def mbeans = mbeanServer.queryMBeans(null,ObjectName.WILDCARD) | |
mbeans.each { | |
def name = it.objectName.getKeyProperty 'name' | |
println name ?: it.toString(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commonLibs = [:] | |
leftLibs = [] | |
rightLibs = [] | |
if(args?.length > 1) { | |
new File(args[0]).eachFileRecurse { | |
fileName = (it.name - '.jar') | |
fileNameNoVersion = fileName[0..fileName.lastIndexOf('-')-1] | |
leftLibs += fileNameNoVersion | |
commonLibs.putAt(fileNameNoVersion, commonLibs[fileNameNoVersion] ? (commonLibs[fileNameNoVersion] + [1:fileName]) : [1:fileName]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group="org.twitter4j", module="twitter4j-core", version="4.0.2") | |
import twitter4j.* | |
import twitter4j.api.* | |
import twitter4j.conf.* | |
import org.pentaho.reporting.engine.classic.core.util.TypedTableModel; | |
colNames = ['Screen Name', 'Tweet Date', 'Text'] as String[] | |
colTypes = [String, Date, String] as Class[] | |
model = new TypedTableModel(colNames, colTypes); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build up a usage map | |
stringList = _object_.transMeta.getStringList( true, true, false, true ); | |
varMap = [:] | |
// Look around in the strings, see what we find... | |
stringList.each { result -> | |
def varList = [] | |
parent = result.parentObject | |
org.pentaho.di.core.util.StringUtil.getUsedVariables( result.string, varList, false ); | |
varList.each { var -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>Spearman_sort_test</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>split_field_num_records</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>rolling_distinct</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>pdi-pig</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='com.fasterxml.jackson.core', module='jackson-databind', version='2.3.3') | |
import com.fasterxml.jackson.databind.JsonNode | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.databind.node.ArrayNode | |
import com.fasterxml.jackson.databind.node.ObjectNode | |
import com.fasterxml.jackson.databind.node.ValueNode | |
import org.pentaho.di.core.row.* | |
import org.pentaho.di.core.row.value.* |
OlderNewer