Package org.kitesdk.morphline.stdlib

Class Summary
AbstractFieldTransformCommand Base class for convenient implementation of commands that do in-place updates on a field.
AddCurrentTimeBuilder A command that adds the result of System.currentTimeMillis() to a given output field.
AddLocalHostBuilder A command that adds the name or IP of the local host to a given output field.
AddValuesBuilder For each input field value, add the value to the given record output field.
AddValuesIfAbsentBuilder For each input field value, add the value to the given record output field if the value isn't already contained in that field.
CallParentPipeBuilder Command that routes records to the enclosing pipe morphline object.
ContainsBuilder Command that succeeds if one of the field values of the given named field is equal to one of the the given values, and fails otherwise; Multiple fields can be named, in which case the results are ANDed.
ConvertTimestampBuilder Command that converts the timestamps in a given field from one of a set of input date formats (in an input timezone) to an output date format (in an output timezone), while respecting daylight savings time rules.
DecodeBase64Builder Command that converts a Base64 encoded String to a byte[] per Section 6.8.
DropRecordBuilder Command that silently consumes records without ever emitting any record - think /dev/null.
EqualsBuilder Command that succeeds if all field values of the given named fields are equal to the the given values, and fails otherwise.
ExtractURIComponentBuilder A command that extracts a subcomponent from the URIs contained in the given input field and appends it to the given output fields.
ExtractURIComponentsBuilder A command that extracts subcomponents from the URIs contained in the given input field and appends them to output fields with the given prefix, namely scheme, authority, host, port, path, query, fragment, schemeSpecificPart, userInfo.
ExtractURIQueryParametersBuilder A command that extracts the query parameters with a given name from the URIs contained in the given input field and appends them to the given output field.
FindReplaceBuilder Command that examines each string value in a given field and replaces each substring of the string value that matches the given string literal or grok pattern with the given replacement.
GenerateUUIDBuilder A command that sets a universally unique identifier on all records that are intercepted.
GrokBuilder The Grok command uses regular expression pattern matching to extract structured fields from unstructured log data.
HeadBuilder Command that ignores all input records beyond the N-th record, thus emitting at most N records, akin to the Unix head command.
IfThenElseBuilder An If-Then-Else command consists of a chain of zero or more conditions commands, as well as a chain of zero or or more commands that are processed if all conditions succeed ("then commands"), as well as a chain of zero or more commands that are processed if one of the conditions fails ("else commands").
JavaBuilder The "java" command compiles the given Java code block, wrapped into a Java method with a boolean return type and several parameters, along with a Java class definition that contains the given import statements.
LogDebugBuilder Command that logs to slf4j at DEBUG level.
LogErrorBuilder Command that logs to slf4j at ERROR level.
LogInfoBuilder Command that logs to slf4j at INFO level.
LogTraceBuilder Command that logs to slf4j at TRACE level.
LogWarnBuilder Command that logs to slf4j at WARN level.
NotBuilder A Not command consists of one nested command, the boolean return value of which is inverted.
PipeBuilder Factory to create morphline pipe instances.
RemoveFieldsBuilder Removes all record fields for which the field name matches at least one of the given blacklist predicates but none of the given whitelist predicates.
SampleBuilder Command that forwards each input record with a given probability to its child command, and silently ignores all other input records.
SeparateAttachmentsBuilder Command that emits one output record for each attachment in the input record's list of attachments; The result is a list of records, each of which has at most one attachment.
SetValuesBuilder For each input field, set the given record output field to the same values.
SplitBuilder Command that divides strings into substrings, by recognizing a separator (a.k.a.
SplitKeyValueBuilder Command that iterates over the items in a given record input field, interprets each item as a key-value pair where the key and value are separated by the given separator character, and adds the pair's value to the record field named after the pair's key.
StartReportingMetricsToCSVBuilder Command that starts periodically appending the metrics of the com.codahale.metrics.MetricRegistry of the morphline context to a set of CSV files, configured via a com.codahale.metrics.CsvReporter.Builder.
StartReportingMetricsToJMXBuilder Command that starts publishing the metrics of the com.codahale.metrics.MetricRegistry of the morphline context to JMX, configured via a com.codahale.metrics.JmxReporter.Builder.
StartReportingMetricsToSLF4JBuilder Command that starts periodically logging the metrics of the com.codahale.metrics.MetricRegistry of the morphline context to SLF4j, configured via a com.codahale.metrics.Slf4jReporter.Builder.
ToByteArrayBuilder Command that converts the Java objects in a given field via Object.toString() to their string representation, and then via String.getBytes(Charset) to their byte array representation.
ToStringBuilder Command that converts the Java objects in a given field via Object.toString() to their string representation, and optionally also applies String.trim().
TranslateBuilder Command that examines each string value in a given field and replaces it with the replacement value defined in a given dictionary aka hash table.
TryRulesBuilder A tryRules command consists of zero or more rules.
 



Copyright © 2013–2014. All rights reserved.