Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Transform processors > TruncateIdentifiers


Table of contents
No headers

Truncates one or more identifiers. Identifier name comparisons are not case sensitive.

NOTE: You can also truncate using the InputIdentifier java bean in the CreateIdentifierFromIdentifier transform.


<bean class=”com.cloudcruiser.batch.transform.TruncateIdentifiers”>


<property name="identifiers" value="identifiers
" />

Sets one or more identifier names to be dropped from records processed.

<property name="identifierPattern" value="identifierPattern
" />

Sets a regular expression to remove matching identifiers.

<property name="maxLength" value="maxLength
" />

Sets the maximum length for identifiers in scope. If the value of a specified or matching identifier is longer then this maximum, then the value will be truncated to maxLength . The default value is 250.

Spring Batch XML Example

<batch:step id="transform" next="charge">
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
          <bean class="com.cloudcruiser.batch.transform.TruncateIdentifiers">
            <property name="active" value="true" />
            <property name="maxLength" value="100" />
            <property name="identifierPattern" value="*.Description" />
            <property name="identifiers" value="AccountName,AccountAlias" />
Last modified


This page has no custom tags.


This page has no classifications.

 (c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP