Package com.alibaba.graphscope.format
Class LongLongRecordReader
- java.lang.Object
-
- com.alibaba.graphscope.format.LongLongRecordReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
public class LongLongRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
-
-
Constructor Summary
Constructors Constructor Description LongLongRecordReader(org.apache.hadoop.conf.Configuration job, org.apache.hadoop.mapred.FileSplit split, byte[] recordDelimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.hadoop.io.LongWritable
createKey()
LongLong
createValue()
long
getPos()
float
getProgress()
boolean
next(org.apache.hadoop.io.LongWritable longWritable, LongLong longLong)
-
-
-
Constructor Detail
-
LongLongRecordReader
public LongLongRecordReader(org.apache.hadoop.conf.Configuration job, org.apache.hadoop.mapred.FileSplit split, byte[] recordDelimiter) throws IOException
- Throws:
IOException
-
-
Method Detail
-
next
public boolean next(org.apache.hadoop.io.LongWritable longWritable, LongLong longLong) throws IOException
- Specified by:
next
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
- Throws:
IOException
-
createKey
public org.apache.hadoop.io.LongWritable createKey()
- Specified by:
createKey
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
-
createValue
public LongLong createValue()
- Specified by:
createValue
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
-
getPos
public long getPos() throws IOException
- Specified by:
getPos
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
- Throws:
IOException
-
getProgress
public float getProgress() throws IOException
- Specified by:
getProgress
in interfaceorg.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,LongLong>
- Throws:
IOException
-
-