org.apache.flume.serialization.ResettableFileInputStream Java Examples
The following examples show how to use
org.apache.flume.serialization.ResettableFileInputStream.
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 | 5 votes |
public FileReader(File file, EventDeserializer deserializer, ResettableFileInputStream in, DurablePositionTrack tracker, boolean isSingleRotate, FinishMarker finishMarker) { this.file = file; this.in = in; this.isSingleRotate = isSingleRotate; this.tracker = tracker; this.deserializer = deserializer; this.currentFileKey = getFileKey(file); this.finishMarker = finishMarker; }
Example #2
Source File: XmlXpathDeserializerTest.java From ingestion with Apache License 2.0 | 4 votes |
private ResettableInputStream getTestInputStream(final String path) throws IOException { return new ResettableFileInputStream(new File("src/test/resources/" + path), new TransientPositionTracker("dummy")); }