org.apache.flume.serialization.DecodeErrorPolicy Java Examples
The following examples show how to use
org.apache.flume.serialization.DecodeErrorPolicy.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TailFileEventReader.java From flume-plugin with Apache License 2.0 | 6 votes |
public TailFileEventReader(String pattern, File metaDirectory, String fileMatchPattern, String deserializerType, Context deserializerContext, DecodeErrorPolicy decodeErrorPolicy, String inputCharset, boolean scanAllOnBegin, FinishMarker finishMarker ) { this.deserializerContext = deserializerContext; this.metaDirectory = metaDirectory; this.deserializerType = deserializerType; this.inputCharset = Charset.forName(inputCharset); this.decodeErrorPolicy = Preconditions.checkNotNull(decodeErrorPolicy); this.pattern = pattern; this.fileMatchPattern = fileMatchPattern; this.scanAllOnBegin = scanAllOnBegin; this.finishMarker = finishMarker; isSingleRotate = !fileMatchPattern.contains("*"); metaFile = metaNameEncoding(pattern); cleanLockFile = cleanLockFileEncoding(pattern); }