Example usage for org.apache.hadoop.mapreduce InputSplit InputSplit

List of usage examples for org.apache.hadoop.mapreduce InputSplit InputSplit

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce InputSplit InputSplit.

Prototype

InputSplit

Source Link

Usage

From source file:org.apache.tinkerpop.gremlin.spark.structure.io.InputRDDFormat.java

License:Apache License

@Override
public List<InputSplit> getSplits(final JobContext jobContext) throws IOException, InterruptedException {
    return Collections.singletonList(new InputSplit() {
        @Override/*from w  w w  . j a  v a2s.c  om*/
        public long getLength() throws IOException, InterruptedException {
            return 0;
        }

        @Override
        public String[] getLocations() throws IOException, InterruptedException {
            return new String[0];
        }
    });
}