Package com.wavefront.ingester
Class AbstractIngesterFormatter<T extends org.apache.avro.specific.SpecificRecordBase>
- java.lang.Object
-
- com.wavefront.ingester.AbstractIngesterFormatter<T>
-
- Direct Known Subclasses:
EventIngesterFormatter,ReportHistogramIngesterFormatter,ReportMetricIngesterFormatter,ReportPointIngesterFormatter,ReportSourceTagIngesterFormatter,SpanIngesterFormatter
public abstract class AbstractIngesterFormatter<T extends org.apache.avro.specific.SpecificRecordBase> extends Object
This is the base class for parsing data from plaintext.- Author:
- Suranjan Pramanik (suranjan@wavefront.com), vasily@wavefront.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractIngesterFormatter.AnnotationList<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.Centroids<T extends org.apache.avro.specific.SpecificRecordBase>protected static interfaceAbstractIngesterFormatter.FormatterElement<T>static classAbstractIngesterFormatter.IngesterFormatBuilder<T extends org.apache.avro.specific.SpecificRecordBase>This class can be used to create a parser for content that proxy receives.static classAbstractIngesterFormatter.StringList<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.StringMap<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.StringMultiMap<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.Text<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.Timestamp<T extends org.apache.avro.specific.SpecificRecordBase>static classAbstractIngesterFormatter.Value<T extends org.apache.avro.specific.SpecificRecordBase>
-
Field Summary
Fields Modifier and Type Field Description protected List<AbstractIngesterFormatter.FormatterElement<T>>elementsstatic StringEVENT_LITERALstatic StringSOURCE_DESCRIPTION_LITERALstatic StringSOURCE_TAG_LITERAL
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIngesterFormatter(List<AbstractIngesterFormatter.FormatterElement<T>> elements)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tdrive(String input, Supplier<String> defaultHostNameSupplier, String customerId)abstract Tdrive(String input, Supplier<String> defaultHostNameSupplier, String customerId, List<String> customSourceTags, IngesterContext ingesterContext)static StringgetHost(List<Annotation> annotations, List<String> customSourceTags)static Stringunquote(String text)
-
-
-
Field Detail
-
SOURCE_TAG_LITERAL
public static final String SOURCE_TAG_LITERAL
- See Also:
- Constant Field Values
-
SOURCE_DESCRIPTION_LITERAL
public static final String SOURCE_DESCRIPTION_LITERAL
- See Also:
- Constant Field Values
-
EVENT_LITERAL
public static final String EVENT_LITERAL
- See Also:
- Constant Field Values
-
elements
protected final List<AbstractIngesterFormatter.FormatterElement<T extends org.apache.avro.specific.SpecificRecordBase>> elements
-
-
Constructor Detail
-
AbstractIngesterFormatter
protected AbstractIngesterFormatter(List<AbstractIngesterFormatter.FormatterElement<T>> elements)
-
-
Method Detail
-
unquote
public static String unquote(String text)
- Parameters:
text- Text to unquote.- Returns:
- Extracted value from inside a quoted string.
-
getHost
@Nullable public static String getHost(@Nullable List<Annotation> annotations, @Nullable List<String> customSourceTags)
-
drive
public T drive(String input, @Nullable Supplier<String> defaultHostNameSupplier, String customerId)
-
-