public static class Resolver.RecordAdjust extends Resolver.Action
Resolver.Action.Type
Modifier and Type | Field and Description |
---|---|
Object[] |
defaults
Contains the default values to be used for the last
readerOrder.length-firstDefault fields in rearderOrder.
|
Resolver.Action[] |
fieldActions
An action for each field of the writer.
|
int |
firstDefault
Pointer into
readerOrder of the first reader field whose
value comes from a default value. |
GenericData.InstanceSupplier |
instanceSupplier
Supplier that offers an optimized alternative to data.newRecord()
|
Schema.Field[] |
readerOrder
Contains (all of) the reader's fields.
|
conversion, logicalType, reader, type, writer
Modifier and Type | Method and Description |
---|---|
boolean |
noReorder()
Returns true iff
i == readerOrder[i].pos() for all
indices i . |
public final Resolver.Action[] fieldActions
Resolver.Skip
. For fields to
be read into the reading datum, will contain a regular action for resolving
the writer/reader schemas of the matching fields.public final Schema.Field[] readerOrder
defaults
.public final int firstDefault
readerOrder
of the first reader field whose
value comes from a default value. Set to length of
readerOrder
if there are none.public final Object[] defaults
public final GenericData.InstanceSupplier instanceSupplier
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.