Class AvroUtils.FixedBytesField
- java.lang.Object
-
- org.apache.beam.sdk.schemas.utils.AvroUtils.FixedBytesField
-
- Enclosing class:
- AvroUtils
public static class AvroUtils.FixedBytesField extends java.lang.Object
Wrapper for fixed byte fields.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable AvroUtils.FixedBytesField
fromAvroType(org.apache.avro.Schema type)
Create aAvroUtils.FixedBytesField
from an AVRO type.static @Nullable AvroUtils.FixedBytesField
fromBeamFieldType(Schema.FieldType fieldType)
Create aAvroUtils.FixedBytesField
from a BeamSchema.FieldType
.int
getSize()
Get the size.org.apache.avro.Schema
toAvroType(java.lang.String name, java.lang.String namespace)
Convert to an AVRO type.Schema.FieldType
toBeamType()
Convert to a Beam type.static AvroUtils.FixedBytesField
withSize(int size)
Create aAvroUtils.FixedBytesField
with the specified size.
-
-
-
Method Detail
-
withSize
public static AvroUtils.FixedBytesField withSize(int size)
Create aAvroUtils.FixedBytesField
with the specified size.
-
fromBeamFieldType
public static @Nullable AvroUtils.FixedBytesField fromBeamFieldType(Schema.FieldType fieldType)
Create aAvroUtils.FixedBytesField
from a BeamSchema.FieldType
.
-
fromAvroType
public static @Nullable AvroUtils.FixedBytesField fromAvroType(org.apache.avro.Schema type)
Create aAvroUtils.FixedBytesField
from an AVRO type.
-
getSize
public int getSize()
Get the size.
-
toBeamType
public 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.
-
-