Refine search
/** * Gets the default value of the given field, if any. * @param field the field whose default value should be retrieved. * @return the default value associated with the given field, * or null if none is specified in the schema. * @throws IOException */ @SuppressWarnings({ "rawtypes", "unchecked" }) protected Object defaultValue(Field field) throws IOException { return data.deepCopy(field.schema(), data.getDefaultValue(field)); }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.flink.streaming.tests.avro.InnerPayLoadAvro.Builder other) { super(other); if (isValidValue(fields()[0], other.sequenceNumber)) { this.sequenceNumber = data().deepCopy(fields()[0].schema(), other.sequenceNumber); fieldSetFlags()[0] = true; } }
/** * Creates a Builder by copying an existing InnerPayLoadAvro instance * @param other The existing instance to copy. */ private Builder(org.apache.flink.streaming.tests.avro.InnerPayLoadAvro other) { super(SCHEMA$); if (isValidValue(fields()[0], other.sequenceNumber)) { this.sequenceNumber = data().deepCopy(fields()[0].schema(), other.sequenceNumber); fieldSetFlags()[0] = true; } }
/** Creates a Builder by copying an existing TransferStateFileMeta instance */ private Builder(org.apache.flume.serialization.TransferStateFileMeta other) { super(org.apache.flume.serialization.TransferStateFileMeta.SCHEMA$); if (isValidValue(fields()[0], other.offset)) { this.offset = data().deepCopy(fields()[0].schema(), other.offset); fieldSetFlags()[0] = true; } }
/** Creates a Builder by copying an existing AvroFlumeEvent instance */ private Builder(org.apache.flume.source.avro.AvroFlumeEvent other) { super(org.apache.flume.source.avro.AvroFlumeEvent.SCHEMA$); if (isValidValue(fields()[0], other.headers)) { this.headers = data().deepCopy(fields()[0].schema(), other.headers); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.body)) { this.body = data().deepCopy(fields()[1].schema(), other.body); fieldSetFlags()[1] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(example.avro.User.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favoriteNumber)) { this.favoriteNumber = data().deepCopy(fields()[1].schema(), other.favoriteNumber); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favoriteColor)) { this.favoriteColor = data().deepCopy(fields()[2].schema(), other.favoriteColor); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.eventType)) { this.eventType = data().deepCopy(fields()[3].schema(), other.eventType); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing User instance * @param other The existing instance to copy. */ private Builder(example.avro.User other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favoriteNumber)) { this.favoriteNumber = data().deepCopy(fields()[1].schema(), other.favoriteNumber); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favoriteColor)) { this.favoriteColor = data().deepCopy(fields()[2].schema(), other.favoriteColor); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.eventType)) { this.eventType = data().deepCopy(fields()[3].schema(), other.eventType); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing ComplexPayloadAvro instance * @param other The existing instance to copy. */ private Builder(org.apache.flink.streaming.tests.avro.ComplexPayloadAvro other) { super(SCHEMA$); if (isValidValue(fields()[0], other.eventTime)) { this.eventTime = data().deepCopy(fields()[0].schema(), other.eventTime); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.stringList)) { this.stringList = data().deepCopy(fields()[1].schema(), other.stringList); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.strPayload)) { this.strPayload = data().deepCopy(fields()[2].schema(), other.strPayload); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.innerPayLoad)) { this.innerPayLoad = data().deepCopy(fields()[3].schema(), other.innerPayLoad); fieldSetFlags()[3] = true; } this.innerPayLoadBuilder = null; }
/** * Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.server.appenders.flume.config.gen.PrioritizedFlumeNodes.Builder other) { super(other); if (isValidValue(fields()[0], other.flumeNodes)) { this.flumeNodes = data().deepCopy(fields()[0].schema(), other.flumeNodes); fieldSetFlags()[0] = true; } }
/** Creates a Builder by copying an existing BasicUserNotification instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.BasicUserNotification other) { super(org.kaaproject.kaa.common.endpoint.gen.BasicUserNotification.SCHEMA$); if (isValidValue(fields()[0], other.notificationBody)) { this.notificationBody = data().deepCopy(fields()[0].schema(), other.notificationBody); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.userNotificationParam)) { this.userNotificationParam = data().deepCopy(fields()[1].schema(), other.userNotificationParam); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.common.endpoint.gen.EndpointDetachResponse.Builder other) { super(other); if (isValidValue(fields()[0], other.requestId)) { this.requestId = data().deepCopy(fields()[0].schema(), other.requestId); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.result)) { this.result = data().deepCopy(fields()[1].schema(), other.result); fieldSetFlags()[1] = true; } }
/** * Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.server.appenders.flume.config.gen.FlumeNodes.Builder other) { super(other); if (isValidValue(fields()[0], other.flumeNodes)) { this.flumeNodes = data().deepCopy(fields()[0].schema(), other.flumeNodes); fieldSetFlags()[0] = true; } }
/** * Creates a Builder by copying an existing FlumeNodes instance */ private Builder(org.kaaproject.kaa.server.appenders.flume.config.gen.FlumeNodes other) { super(org.kaaproject.kaa.server.appenders.flume.config.gen.FlumeNodes.SCHEMA$); if (isValidValue(fields()[0], other.flumeNodes)) { this.flumeNodes = data().deepCopy(fields()[0].schema(), other.flumeNodes); fieldSetFlags()[0] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.common.endpoint.gen.ConfigurationSyncRequest.Builder other) { super(other); if (isValidValue(fields()[0], other.configurationHash)) { this.configurationHash = data().deepCopy(fields()[0].schema(), other.configurationHash); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.resyncOnly)) { this.resyncOnly = data().deepCopy(fields()[1].schema(), other.resyncOnly); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing ConfigurationSyncRequest instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.ConfigurationSyncRequest other) { super(org.kaaproject.kaa.common.endpoint.gen.ConfigurationSyncRequest.SCHEMA$); if (isValidValue(fields()[0], other.configurationHash)) { this.configurationHash = data().deepCopy(fields()[0].schema(), other.configurationHash); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.resyncOnly)) { this.resyncOnly = data().deepCopy(fields()[1].schema(), other.resyncOnly); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.common.endpoint.gen.EndpointDetachRequest.Builder other) { super(other); if (isValidValue(fields()[0], other.requestId)) { this.requestId = data().deepCopy(fields()[0].schema(), other.requestId); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.endpointKeyHash)) { this.endpointKeyHash = data().deepCopy(fields()[1].schema(), other.endpointKeyHash); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing TopicState instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.TopicState other) { super(org.kaaproject.kaa.common.endpoint.gen.TopicState.SCHEMA$); if (isValidValue(fields()[0], other.topicId)) { this.topicId = data().deepCopy(fields()[0].schema(), other.topicId); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.seqNumber)) { this.seqNumber = data().deepCopy(fields()[1].schema(), other.seqNumber); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing SubscriptionCommand instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.SubscriptionCommand other) { super(org.kaaproject.kaa.common.endpoint.gen.SubscriptionCommand.SCHEMA$); if (isValidValue(fields()[0], other.topicId)) { this.topicId = data().deepCopy(fields()[0].schema(), other.topicId); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.command)) { this.command = data().deepCopy(fields()[1].schema(), other.command); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing ProfileSyncResponse instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.ProfileSyncResponse other) { super(org.kaaproject.kaa.common.endpoint.gen.ProfileSyncResponse.SCHEMA$); if (isValidValue(fields()[0], other.responseStatus)) { this.responseStatus = data().deepCopy(fields()[0].schema(), other.responseStatus); fieldSetFlags()[0] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.common.endpoint.gen.BasicEndpointProfile.Builder other) { super(other); if (isValidValue(fields()[0], other.profileBody)) { this.profileBody = data().deepCopy(fields()[0].schema(), other.profileBody); fieldSetFlags()[0] = true; } }