本文整理汇总了Java中org.pentaho.di.core.Counter类的典型用法代码示例。如果您正苦于以下问题:Java Counter类的具体用法?Java Counter怎么用?Java Counter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Counter类属于org.pentaho.di.core包,在下文中一共展示了Counter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadXML
import org.pentaho.di.core.Counter; //导入依赖的package包/类
/**
* Load the values for this step from an XML Node
*
* @param stepnode the Node to get the info from
* @param databases The available list of databases to reference to
* @param counters Counters to reference.
* @throws KettleXMLException When an unexpected XML error occurred. (malformed etc.)
*/
@Override public void loadXML(Node stepnode, List<DatabaseMeta> databases,
Map<String, Counter> counters) throws KettleXMLException {
try {
databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
tabelName = XMLHandler.getTagValue(stepnode, "TableName");
mdkeySize = XMLHandler.getTagValue(stepnode, "MDKeySize");
measureCount = XMLHandler.getTagValue(stepnode, "Measurecount");
heirAndKeySize = XMLHandler.getTagValue(stepnode, "HeirAndKeySize");
tableName = XMLHandler.getTagValue(stepnode, "tableName");
groupByEnabled = XMLHandler.getTagValue(stepnode, "isGroupByEnabled");
aggregatorClassString = XMLHandler.getTagValue(stepnode, "aggregatorClassString");
aggregatorString = XMLHandler.getTagValue(stepnode, "aggregatorString");
factDimLensString = XMLHandler.getTagValue(stepnode, "factDimLensString");
levelAnddataTypeString = XMLHandler.getTagValue(stepnode, "levelAnddataTypeString");
partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
} catch (Exception e) {
throw new KettleXMLException("Unable to read step info from XML node", e);
}
}
示例2: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
/**
* Read the steps information from a Kettle repository
*
* @param rep The repository to read from
* @param idStep The step ID
* @param databases The databases to reference
* @param counters The counters to reference
* @throws KettleException When an unexpected error occurred (database, network, etc)
*/
@Override public void readRep(Repository rep, ObjectId idStep, List<DatabaseMeta> databases,
Map<String, Counter> counters) throws KettleException {
try {
tabelName = rep.getStepAttributeString(idStep, "TableName");
mdkeySize = rep.getStepAttributeString(idStep, "MDKeySize");
measureCount = rep.getStepAttributeString(idStep, "Measurecount");
heirAndKeySize = rep.getStepAttributeString(idStep, "HeirAndKeySize");
databaseName = rep.getStepAttributeString(idStep, "databaseName");
tableName = rep.getStepAttributeString(idStep, "tableName");
groupByEnabled = rep.getStepAttributeString(idStep, "isGroupByEnabled");
aggregatorClassString = rep.getStepAttributeString(idStep, "aggregatorClassString");
aggregatorString = rep.getStepAttributeString(idStep, "aggregatorString");
factDimLensString = rep.getStepAttributeString(idStep, "factDimLensString");
levelAnddataTypeString = rep.getStepAttributeString(idStep, "levelAnddataTypeString");
partitionID = rep.getStepAttributeString(idStep, "partitionID");
segmentId = rep.getStepAttributeString(idStep, "segmentId");
taskNo = rep.getStepAttributeString(idStep, "taskNo");
} catch (Exception exception) {
throw new KettleException(BaseMessages
.getString(PKG, "CarbonDataWriterStepMeta.Exception.UnexpectedErrorInReadingStepInfo"),
exception);
}
}
示例3: loadXML
import org.pentaho.di.core.Counter; //导入依赖的package包/类
/**
* Load the values for this step from an XML Node
*
* @param stepnode the Node to get the info from
* @param databases The available list of databases to reference to
* @param counters Counters to reference.
* @throws KettleXMLException When an unexpected XML error occurred. (malformed etc.)
*/
public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleXMLException {
try {
this.tabelName = XMLHandler.getTagValue(stepnode, "TableName");
this.outputRowSize = XMLHandler.getTagValue(stepnode, "outputRowSize");
this.factDimLensString = XMLHandler.getTagValue(stepnode, "factDimLensString");
this.tableName = XMLHandler.getTagValue(stepnode, "tableName");
this.databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
this.dimensionCount = XMLHandler.getTagValue(stepnode, "dimensionCount");
this.noDictionaryDims = XMLHandler.getTagValue(stepnode, "noDictionaryDims");
this.noDictionaryDimsMapping = XMLHandler.getTagValue(stepnode, "noDictionaryDimsMapping");
this.complexDimensionCount = XMLHandler.getTagValue(stepnode, "complexDimensionCount");
this.measureCount = XMLHandler.getTagValue(stepnode, "measureCount");
this.updateMemberRequest = XMLHandler.getTagValue(stepnode, "isUpdateMemberRequest");
this.measureDataType = XMLHandler.getTagValue(stepnode, "measureDataType");
this.partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
this.segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
this.taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
} catch (Exception e) {
throw new KettleXMLException("Unable to read step info from XML node", e);
}
}
示例4: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
/**
* Read the steps information from a Kettle repository
*
* @param rep The repository to read from
* @param idStep The step ID
* @param databases The databases to reference
* @param counters The counters to reference
* @throws KettleException When an unexpected error occurred (database, network, etc)
*/
public void readRep(Repository rep, ObjectId idStep, List<DatabaseMeta> databases,
Map<String, Counter> counters) throws KettleException {
try {
this.tabelName = rep.getStepAttributeString(idStep, "TableName");
this.outputRowSize = rep.getStepAttributeString(idStep, "outputRowSize");
this.databaseName = rep.getStepAttributeString(idStep, "databaseName");
this.tableName = rep.getStepAttributeString(idStep, "tableName");
this.dimensionCount = rep.getStepAttributeString(idStep, "dimensionCount");
this.noDictionaryDims = rep.getStepAttributeString(idStep, "noDictionaryDims");
this.noDictionaryDims = rep.getStepAttributeString(idStep, "noDictionaryDimsMapping");
this.complexDimensionCount = rep.getStepAttributeString(idStep, "complexDimensionCount");
this.measureCount = rep.getStepAttributeString(idStep, "measureCount");
this.updateMemberRequest = rep.getStepAttributeString(idStep, "isUpdateMemberRequest");
this.measureDataType = rep.getStepAttributeString(idStep, "measureDataType");
this.partitionID = rep.getStepAttributeString(idStep, "partitionID");
this.segmentId = rep.getStepAttributeString(idStep, "segmentId");
this.taskNo = rep.getStepAttributeString(idStep, "taskNo");
} catch (Exception ex) {
throw new KettleException(BaseMessages
.getString(PKG, "CarbonDataWriterStepMeta.Exception.UnexpectedErrorInReadingStepInfo",
new String[0]), ex);
}
}
示例5: loadXML
import org.pentaho.di.core.Counter; //导入依赖的package包/类
@Override
public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleXMLException {
try {
tableName = XMLHandler.getTagValue(stepnode, "TableName");
aggregateLevels = XMLHandler.getTagValue(stepnode, "AggregateLevels");
numberOfCores = XMLHandler.getTagValue(stepnode, "NumberOfCores");
databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
tableName = XMLHandler.getTagValue(stepnode, "tableName");
noDictionaryDims = XMLHandler.getTagValue(stepnode, "noDictionaryDims");
measureCount = XMLHandler.getTagValue(stepnode, "measureCount");
columnGroupsString = XMLHandler.getTagValue(stepnode, "dimensionsStoreType");
dimensionCount = XMLHandler.getTagValue(stepnode, "dimensionCount");
complexDimsCount = XMLHandler.getTagValue(stepnode, "complexDimsCount");
complexTypeString = XMLHandler.getTagValue(stepnode, "complexTypeString");
measureDataType = XMLHandler.getTagValue(stepnode, "measureDataType");
taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
factTimeStamp = XMLHandler.getTagValue(stepnode, "factTimeStamp");
partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
isUseInvertedIndex = XMLHandler.getTagValue(stepnode, "isUseInvertedIndex");
segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
noDictionaryDimsMapping = XMLHandler.getTagValue(stepnode, "noDictionaryDimsMapping");
} catch (Exception e) {
throw new KettleXMLException("Unable to read step info from XML node", e);
}
}
示例6: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
@Override public void readRep(Repository rep, ObjectId idStep, List<DatabaseMeta> databases,
Map<String, Counter> counters) throws KettleException {
try {
tableName = rep.getStepAttributeString(idStep, "TableName");
aggregateLevels = rep.getStepAttributeString(idStep, "AggregateLevels");
numberOfCores = rep.getStepAttributeString(idStep, "NumberOfCores");
databaseName = rep.getStepAttributeString(idStep, "databaseName");
tableName = rep.getStepAttributeString(idStep, "tableName");
noDictionaryDims = rep.getStepAttributeString(idStep, "noDictionaryDims");
measureCount = rep.getStepAttributeString(idStep, "measureCount");
columnGroupsString = rep.getStepAttributeString(idStep, "dimensionsStoreType");
dimensionCount = rep.getStepAttributeString(idStep, "dimensionCount");
complexDimsCount = rep.getStepAttributeString(idStep, "complexDimsCount");
complexTypeString = rep.getStepAttributeString(idStep, "complexTypeString");
measureDataType = rep.getStepAttributeString(idStep, "measureDataType");
taskNo = rep.getStepAttributeString(idStep, "taskNo");
factTimeStamp = rep.getStepAttributeString(idStep, "factTimeStamp");
partitionID = rep.getStepAttributeString(idStep, "partitionID");
isUseInvertedIndex = rep.getStepAttributeString(idStep, "isUseInvertedIndex");
segmentId = rep.getStepAttributeString(idStep, "segmentId");
noDictionaryDimsMapping = rep.getStepAttributeString(idStep, "noDictionaryDimsMapping");
} catch (Exception e) {
throw new KettleException(BaseMessages
.getString(pkg, "CarbonMDKeyStepMeta.Exception.UnexpectedErrorInReadingStepInfo"), e);
}
}
示例7: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
try {
int nrfiles = rep.countNrStepAttributes(id_step, "directory");
String objectTypeString = rep.getStepAttributeString(id_step, "object_type");
if (objectTypeSelection!=null) {
objectTypeSelection = ObjectTypeSelection.valueOf(objectTypeString);
}
if (objectTypeSelection==null) objectTypeSelection=ObjectTypeSelection.All;
includeRowNumber = rep.getStepAttributeBoolean(id_step, "rownum");
rowNumberField = rep.getStepAttributeString(id_step, "rownum_field");
allocate(nrfiles);
for (int i = 0; i < nrfiles; i++) {
directory[i] = rep.getStepAttributeString(id_step, i, "directory");
nameMask[i] = rep.getStepAttributeString(id_step, i, "name_mask");
excludeNameMask[i] = rep.getStepAttributeString(id_step, i, "exclude_name_mask");
includeSubFolders[i] = rep.getStepAttributeBoolean(id_step, i, "include_subfolders");
}
} catch (Exception e) {
throw new KettleException("Unexpected error reading step information from the repository", e);
}
}
示例8: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, long id_step,
List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException {
try {
int nrfields = rep.countNrStepAttributes(id_step, "field_name");
allocate(nrfields);
for (int i = 0; i < nrfields; i++) {
fieldName[i] = rep.getStepAttributeString(id_step, i,
"field_name");
fieldType[i] = getType(rep.getStepAttributeString(id_step, i,
"field_type"));
}
} catch (Exception e) {
throw new KettleException(
"Unexpected error reading step information from the repository",
e);
}
}
示例9: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId stepId,
List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException {
try {
broker = rep.getStepAttributeString(stepId, "BROKER");
topic = rep.getStepAttributeString(stepId, "TOPIC");
field = rep.getStepAttributeString(stepId, "FIELD");
clientId = rep.getStepAttributeString(stepId, "CLIENT_ID");
timeout = rep.getStepAttributeString(stepId, "TIMEOUT");
qos = rep.getStepAttributeString(stepId, "QOS");
requiresAuth = Boolean.parseBoolean(rep.getStepAttributeString(
stepId, "REQUIRES_AUTH"));
if (requiresAuth) {
username = rep.getStepAttributeString(stepId, "USERNAME");
password = rep.getStepAttributeString(stepId, "PASSWORD");
}
sslCaFile = rep.getStepAttributeString(stepId, "SSL_CA_FILE");
sslCertFile = rep.getStepAttributeString(stepId, "SSL_CERT_FILE");
sslKeyFile = rep.getStepAttributeString(stepId, "SSL_KEY_FILE");
sslKeyFilePass = rep.getStepAttributeString(stepId,
"SSL_KEY_FILE_PASS");
} catch (Exception e) {
throw new KettleException("MQTTClientMeta.Exception.loadRep", e);
}
}
示例10: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
try
{
filenamefield = rep.getStepAttributeString(id_step, "filenamefield"); //$NON-NLS-1$
resultfieldname = rep.getStepAttributeString(id_step, "resultfieldname"); //$NON-NLS-1$
includefiletype = rep.getStepAttributeBoolean(id_step, "includefiletype");
filetypefieldname = rep.getStepAttributeString(id_step, "filetypefieldname"); //$NON-NLS-1$
addresultfilenames = rep.getStepAttributeBoolean(id_step, "addresultfilenames");
}
catch (Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "FileExistsMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
}
}
示例11: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
try
{
fieldName = rep.getStepAttributeString(id_step, "field_name"); //$NON-NLS-1$
int nrvalues = rep.countNrStepAttributes(id_step, "target_field"); //$NON-NLS-1$
allocate(nrvalues);
for (int i = 0; i < nrvalues; i++)
{
targetField[i] = rep.getStepAttributeString(id_step, i, "target_field"); //$NON-NLS-1$
}
}
catch (Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "FlattenerMeta.Exception.UnexpectedErrorInReadingStepInfoFromRepository"), e); //$NON-NLS-1$
}
}
示例12: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
try
{
targetXMLstep = rep.getStepAttributeString (id_step, "targetXMLstep");
targetXMLfield = rep.getStepAttributeString (id_step, "targetXMLfield");
sourceXMLstep = rep.getStepAttributeString (id_step, "sourceXMLstep");
sourceXMLfield = rep.getStepAttributeString (id_step, "sourceXMLfield");
targetXPath = rep.getStepAttributeString (id_step, "targetXPath");
complexJoin = rep.getStepAttributeBoolean(id_step, "complexJoin");
joinCompareField = rep.getStepAttributeString (id_step, "joinCompareField");
valueXMLfield = rep.getStepAttributeString (id_step, "valueXMLfield");
encoding = rep.getStepAttributeString (id_step, "encoding");
omitXMLHeader = rep.getStepAttributeBoolean(id_step, "omitXMLHeader ");
}
catch(Exception e)
{
throw new KettleException("Unexpected error reading step information from the repository", e);
}
}
示例13: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException {
try
{
dbfFileName = rep.getStepAttributeString (id_step, "file_dbf"); //$NON-NLS-1$
rowLimit = (int)rep.getStepAttributeInteger(id_step, "limit"); //$NON-NLS-1$
rowNrAdded = rep.getStepAttributeBoolean(id_step, "add_rownr"); //$NON-NLS-1$
rowNrField = rep.getStepAttributeString (id_step, "field_rownr"); //$NON-NLS-1$
includeFilename = rep.getStepAttributeBoolean(id_step, "include");
filenameField = rep.getStepAttributeString(id_step, "include_field");
charactersetName = rep.getStepAttributeString(id_step, "charset_name");
acceptingFilenames = rep.getStepAttributeBoolean(id_step, "accept_filenames");
acceptingField = rep.getStepAttributeString (id_step, "accept_field");
acceptingStepName = rep.getStepAttributeString (id_step, "accept_stepname");
}
catch(Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "XBaseInputMeta.Exception.UnexpectedErrorReadingMetaDataFromRepository"), e); //$NON-NLS-1$
}
}
示例14: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
@Override
public void readRep(Repository rep, ObjectId id_step,
List<DatabaseMeta> databases, Map<String, Counter> arg3)
throws KettleException {
// Call Super
super.readRep(rep, id_step, databases, arg3);
//Set Sharepoint's attributes
this.setSite(rep.getStepAttributeString(id_step, "site"));
this.setPassword(Encr.decryptPasswordOptionallyEncrypted(rep.getStepAttributeString(id_step, "password")));
this.setUsername(rep.getStepAttributeString(id_step, "username"));
this.setPassword(rep.getStepAttributeString(id_step, "list"));
this.setDomain(rep.getStepAttributeString(id_step, "domain"));
}
示例15: readRep
import org.pentaho.di.core.Counter; //导入依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
try
{
typeField = rep.getStepAttributeString(id_step, "typefield"); //$NON-NLS-1$
int nrfields = rep.countNrStepAttributes(id_step, "field_name"); //$NON-NLS-1$
allocate(nrfields);
for (int i=0;i<nrfields;i++)
{
fieldName[i] = rep.getStepAttributeString (id_step, i, "field_name"); //$NON-NLS-1$
fieldValue[i] = rep.getStepAttributeString (id_step, i, "field_value"); //$NON-NLS-1$
fieldNorm[i] = rep.getStepAttributeString (id_step, i, "field_norm"); //$NON-NLS-1$
}
}
catch(Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "NormaliserMeta.Exception.UnexpectedErrorReadingStepInfoFromRepository"), e); //$NON-NLS-1$
}
}