org.apache.beam.sdk.io.FileBasedSource Java Examples

The following examples show how to use org.apache.beam.sdk.io.FileBasedSource. 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: RecordFileSource.java    From dataflow-opinion-analysis with Apache License 2.0 5 votes vote down vote up
@Override
protected FileBasedSource<T> createForSubrangeOfFile(
    MatchResult.Metadata metadata,
    long start,
    long end) {
  return new RecordFileSource<>(metadata, start, end, coder, separator);
}
 
Example #2
Source File: TextSource.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Override
protected FileBasedSource<String> createForSubrangeOfFile(
    MatchResult.Metadata metadata, long start, long end) {
  return new TextSource(metadata, start, end, delimiter);
}
 
Example #3
Source File: XmlSource.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
protected FileBasedSource<T> createForSubrangeOfFile(Metadata metadata, long start, long end) {
  return new XmlSource<>(configuration, getMinBundleSize(), metadata, start, end);
}