blob: 1ee1b314d9d32b024362095b72300a704e3982b4 [file] [log] [blame]
/*
* 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
*
* https://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 org.apache.avro.perf.test;
import java.util.Random;
public class BigRecord {
public double d1;
public double d11;
public float f2;
public float f22;
public int f3;
public int f33;
public long f4;
public long f44;
public byte f5;
public byte f55;
public short f6;
public short f66;
public BigRecord() {
}
public BigRecord(final Random r) {
this.d1 = r.nextDouble();
this.d11 = r.nextDouble();
this.f2 = r.nextFloat();
this.f22 = r.nextFloat();
this.f3 = r.nextInt();
this.f33 = r.nextInt();
this.f4 = r.nextLong();
this.f44 = r.nextLong();
this.f5 = (byte) r.nextInt();
this.f55 = (byte) r.nextInt();
this.f6 = (short) r.nextInt();
this.f66 = (short) r.nextInt();
}
}