Package org.apache.avro.specific
Class SpecificFixed
java.lang.Object
org.apache.avro.specific.SpecificFixed
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<SpecificFixed>
,GenericContainer
,GenericFixed
- Direct Known Subclasses:
MD5
public abstract class SpecificFixed
extends Object
implements GenericFixed, Comparable<SpecificFixed>, Externalizable
Base class for generated fixed-sized data classes.
- See Also:
-
Constructor Details
-
SpecificFixed
public SpecificFixed() -
SpecificFixed
public SpecificFixed(byte[] bytes)
-
-
Method Details
-
bytes
public void bytes(byte[] bytes) -
bytes
public byte[] bytes()Description copied from interface:GenericFixed
Return the data.- Specified by:
bytes
in interfaceGenericFixed
-
getSchema
Description copied from interface:GenericContainer
The schema of this instance.- Specified by:
getSchema
in interfaceGenericContainer
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SpecificFixed>
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-