List of usage examples for org.apache.hadoop.mapreduce InputSplit InputSplit
InputSplit
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]; } }); }