Class AvroUtils.FixedBytesField
java.lang.Object
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.FixedBytesField
- Enclosing class:
AvroUtils
Wrapper for fixed byte fields.
-
Method Summary
Modifier and TypeMethodDescriptionfromAvroType
(Schema type) Create aAvroUtils.FixedBytesField
from an AVRO type.fromBeamFieldType
(Schema.FieldType fieldType) Create aAvroUtils.FixedBytesField
from a BeamSchema.FieldType
.int
getSize()
Get the size.toAvroType
(String name, String namespace) Convert to an AVRO type.Convert to a Beam type.static AvroUtils.FixedBytesField
withSize
(int size) Create aAvroUtils.FixedBytesField
with the specified size.
-
Method Details
-
withSize
Create aAvroUtils.FixedBytesField
with the specified size. -
fromBeamFieldType
Create aAvroUtils.FixedBytesField
from a BeamSchema.FieldType
. -
fromAvroType
Create aAvroUtils.FixedBytesField
from an AVRO type. -
getSize
public int getSize()Get the size. -
toBeamType
Convert to a Beam type. -
toAvroType
Convert to an AVRO type.
-