/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.pinterest.secor.message;

import org.apache.avro.Schema;

import java.lang.String;
import java.util.Arrays;

/**
 * Parsed message is a Kafka message that has been processed by the parser that extracted its
 * partitions.
 *
 * @author Pawel Garbacki (pawel@pinterest.com)
 */
public class ParsedMessage extends Message {
    private String[] mPartitions;
    private Schema schema;

    @Override
    public String toString() {
        return "ParsedMessage{" + fieldsToString() +  ", mPartitions=" +
               Arrays.toString(mPartitions) + '}';
    }

    public ParsedMessage(String topic, int kafkaPartition, long offset, byte[] kafkaKey, byte[] payload,
                         String[] mPartitions, long timestamp) {
        super(topic, kafkaPartition, offset, kafkaKey, payload, timestamp);
        this.mPartitions = mPartitions;
    }

    public Schema getSchema(){
        return schema;
    }

    public void setSchema(Schema schema){
        this.schema = schema;
    }

    public String[] getPartitions() {
        return mPartitions;
    }
}

@@ -1166,35 +1166,8 @@
 ons;
-%0A    private Schema schema;
 %0A%0A  
@@ -1637,148 +1637,8 @@
  %7D%0A%0A
-    public Schema getSchema()%7B%0A        return schema;%0A    %7D%0A%0A    public void setSchema(Schema schema)%7B%0A        this.schema = schema;%0A    %7D%0A%0A
     

remove schema field on parsed message