Skip to content

Commit

Permalink
Added generated test classes temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojieliu committed Oct 25, 2023
1 parent c0b2387 commit ecb02fb
Show file tree
Hide file tree
Showing 941 changed files with 331,100 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
.gradle/

**/build/*
<<<<<<< HEAD
!**/avro-fastserde-tests111/build/codegen
=======
!**/build/codegen
>>>>>>> 6f03f254 (Added generated test classes temporarily)

#temp artifacts
avro_tools/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;

import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveBooleanList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.customized.DatumReaderCustomization;
import com.linkedin.avro.fastserde.primitive.PrimitiveBooleanArrayList;
import org.apache.avro.Schema;
import org.apache.avro.io.Decoder;

public class Array_of_BOOLEAN_GenericDeserializer_869749973_869749973
implements FastDeserializer<List<Boolean>>
{

private final Schema readerSchema;

public Array_of_BOOLEAN_GenericDeserializer_869749973_869749973(Schema readerSchema) {
this.readerSchema = readerSchema;
}

public List<Boolean> deserialize(List<Boolean> reuse, Decoder decoder, DatumReaderCustomization customization)
throws IOException
{
PrimitiveBooleanList array0 = null;
long chunkLen0 = (decoder.readArrayStart());
if ((reuse) instanceof PrimitiveBooleanList) {
array0 = ((PrimitiveBooleanList)(reuse));
array0 .clear();
} else {
array0 = new PrimitiveBooleanArrayList(((int) chunkLen0));
}
while (chunkLen0 > 0) {
for (int counter0 = 0; (counter0 <chunkLen0); counter0 ++) {
array0 .addPrimitive((decoder.readBoolean()));
}
chunkLen0 = (decoder.arrayNext());
}
return array0;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;

import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveDoubleList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.customized.DatumReaderCustomization;
import com.linkedin.avro.fastserde.primitive.PrimitiveDoubleArrayList;
import org.apache.avro.Schema;
import org.apache.avro.io.Decoder;

public class Array_of_DOUBLE_GenericDeserializer_18760307_18760307
implements FastDeserializer<List<Double>>
{

private final Schema readerSchema;

public Array_of_DOUBLE_GenericDeserializer_18760307_18760307(Schema readerSchema) {
this.readerSchema = readerSchema;
}

public List<Double> deserialize(List<Double> reuse, Decoder decoder, DatumReaderCustomization customization)
throws IOException
{
PrimitiveDoubleList array0 = null;
long chunkLen0 = (decoder.readArrayStart());
if ((reuse) instanceof PrimitiveDoubleList) {
array0 = ((PrimitiveDoubleList)(reuse));
array0 .clear();
} else {
array0 = new PrimitiveDoubleArrayList(((int) chunkLen0));
}
while (chunkLen0 > 0) {
for (int counter0 = 0; (counter0 <chunkLen0); counter0 ++) {
array0 .addPrimitive((decoder.readDouble()));
}
chunkLen0 = (decoder.arrayNext());
}
return array0;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;

import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveFloatList;
import com.linkedin.avro.fastserde.BufferBackedPrimitiveFloatList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.customized.DatumReaderCustomization;
import org.apache.avro.Schema;
import org.apache.avro.io.Decoder;

public class Array_of_FLOAT_GenericDeserializer_1012670397_1012670397
implements FastDeserializer<List<Float>>
{

private final Schema readerSchema;

public Array_of_FLOAT_GenericDeserializer_1012670397_1012670397(Schema readerSchema) {
this.readerSchema = readerSchema;
}

public List<Float> deserialize(List<Float> reuse, Decoder decoder, DatumReaderCustomization customization)
throws IOException
{
PrimitiveFloatList array0 = null;
array0 = ((PrimitiveFloatList) BufferBackedPrimitiveFloatList.readPrimitiveFloatArray((reuse), (decoder)));
return array0;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;

import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveIntList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.customized.DatumReaderCustomization;
import com.linkedin.avro.fastserde.primitive.PrimitiveIntArrayList;
import org.apache.avro.Schema;
import org.apache.avro.io.Decoder;

public class Array_of_INT_GenericDeserializer_1012089072_1012089072
implements FastDeserializer<List<Integer>>
{

private final Schema readerSchema;

public Array_of_INT_GenericDeserializer_1012089072_1012089072(Schema readerSchema) {
this.readerSchema = readerSchema;
}

public List<Integer> deserialize(List<Integer> reuse, Decoder decoder, DatumReaderCustomization customization)
throws IOException
{
PrimitiveIntList array0 = null;
long chunkLen0 = (decoder.readArrayStart());
if ((reuse) instanceof PrimitiveIntList) {
array0 = ((PrimitiveIntList)(reuse));
array0 .clear();
} else {
array0 = new PrimitiveIntArrayList(((int) chunkLen0));
}
while (chunkLen0 > 0) {
for (int counter0 = 0; (counter0 <chunkLen0); counter0 ++) {
array0 .addPrimitive((decoder.readInt()));
}
chunkLen0 = (decoder.arrayNext());
}
return array0;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;

import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveLongList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.customized.DatumReaderCustomization;
import com.linkedin.avro.fastserde.primitive.PrimitiveLongArrayList;
import org.apache.avro.Schema;
import org.apache.avro.io.Decoder;

public class Array_of_LONG_GenericDeserializer_325099267_325099267
implements FastDeserializer<List<Long>>
{

private final Schema readerSchema;

public Array_of_LONG_GenericDeserializer_325099267_325099267(Schema readerSchema) {
this.readerSchema = readerSchema;
}

public List<Long> deserialize(List<Long> reuse, Decoder decoder, DatumReaderCustomization customization)
throws IOException
{
PrimitiveLongList array0 = null;
long chunkLen0 = (decoder.readArrayStart());
if ((reuse) instanceof PrimitiveLongList) {
array0 = ((PrimitiveLongList)(reuse));
array0 .clear();
} else {
array0 = new PrimitiveLongArrayList(((int) chunkLen0));
}
while (chunkLen0 > 0) {
for (int counter0 = 0; (counter0 <chunkLen0); counter0 ++) {
array0 .addPrimitive((decoder.readLong()));
}
chunkLen0 = (decoder.arrayNext());
}
return array0;
}

}
Loading

0 comments on commit ecb02fb

Please sign in to comment.