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 class
ArchiveRecordWritable.ArchiveFormat
Archive 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 void
detectFormat()
Detect format of Archive Record.ArchiveRecordWritable.ArchiveFormat
getFormat()
Get format of Archive Record.org.archive.io.ArchiveRecord
getRecord()
Get Archive Record.void
readFields(DataInput in)
void
setFormat(ArchiveRecordWritable.ArchiveFormat f)
Set format of Archive Record.void
setRecord(org.archive.io.ArchiveRecord r)
Set Archive Record.void
write(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:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
public final void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
-