Class AvroUtils.FixedBytesField
- java.lang.Object
-
- org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.FixedBytesField
-
- Enclosing class:
- AvroUtils
public static class AvroUtils.FixedBytesField extends java.lang.ObjectWrapper for fixed byte fields.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable AvroUtils.FixedBytesFieldfromAvroType(org.apache.avro.Schema type)Create aAvroUtils.FixedBytesFieldfrom an AVRO type.static @Nullable AvroUtils.FixedBytesFieldfromBeamFieldType(org.apache.beam.sdk.schemas.Schema.FieldType fieldType)Create aAvroUtils.FixedBytesFieldfrom a BeamSchema.FieldType.intgetSize()Get the size.org.apache.avro.SchematoAvroType(java.lang.String name, java.lang.String namespace)Convert to an AVRO type.org.apache.beam.sdk.schemas.Schema.FieldTypetoBeamType()Convert to a Beam type.static AvroUtils.FixedBytesFieldwithSize(int size)Create aAvroUtils.FixedBytesFieldwith the specified size.
-
-
-
Method Detail
-
withSize
public static AvroUtils.FixedBytesField withSize(int size)
Create aAvroUtils.FixedBytesFieldwith the specified size.
-
fromBeamFieldType
public static @Nullable AvroUtils.FixedBytesField fromBeamFieldType(org.apache.beam.sdk.schemas.Schema.FieldType fieldType)
Create aAvroUtils.FixedBytesFieldfrom a BeamSchema.FieldType.
-
fromAvroType
public static @Nullable AvroUtils.FixedBytesField fromAvroType(org.apache.avro.Schema type)
Create aAvroUtils.FixedBytesFieldfrom an AVRO type.
-
getSize
public int getSize()
Get the size.
-
toBeamType
public org.apache.beam.sdk.schemas.Schema.FieldType toBeamType()
Convert to a Beam type.
-
toAvroType
public org.apache.avro.Schema toAvroType(java.lang.String name, java.lang.String namespace)Convert to an AVRO type.
-
-