Package io.archivesunleashed.data
Class ArchiveRecordWritable
- java.lang.Object
-
- io.archivesunleashed.data.ArchiveRecordWritable
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class ArchiveRecordWritable extends Object implements org.apache.hadoop.io.Writable
Implements Hadoop Writable for Archive Records.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArchiveRecordWritable.ArchiveFormatArchive Formats that can be used.
-
Constructor Summary
Constructors Constructor Description ArchiveRecordWritable()Utility function.ArchiveRecordWritable(org.archive.io.ArchiveRecord r)Initialize Archive Record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetectFormat()Detect format of Archive Record.ArchiveRecordWritable.ArchiveFormatgetFormat()Get format of Archive Record.org.archive.io.ArchiveRecordgetRecord()Get Archive Record.voidreadFields(DataInput in)voidsetFormat(ArchiveRecordWritable.ArchiveFormat f)Set format of Archive Record.voidsetRecord(org.archive.io.ArchiveRecord r)Set Archive Record.voidwrite(DataOutput out)
-
-
-
Constructor Detail
-
ArchiveRecordWritable
public ArchiveRecordWritable()
Utility function.
-
ArchiveRecordWritable
public ArchiveRecordWritable(org.archive.io.ArchiveRecord r)
Initialize Archive Record.- Parameters:
r- Archive Record
-
-
Method Detail
-
setRecord
public final void setRecord(org.archive.io.ArchiveRecord r)
Set Archive Record.- Parameters:
r- Archive Record
-
getRecord
public final org.archive.io.ArchiveRecord getRecord()
Get Archive Record.- Returns:
- record Archive Record
-
detectFormat
public final void detectFormat()
Detect format of Archive Record.
-
getFormat
public final ArchiveRecordWritable.ArchiveFormat getFormat()
Get format of Archive Record.- Returns:
- format of Archive Record
-
setFormat
public final void setFormat(ArchiveRecordWritable.ArchiveFormat f)
Set format of Archive Record.- Parameters:
f- format of Archive Record
-
readFields
public final void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public final void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-