Class BasicState

java.lang.Object
org.apache.avro.perf.test.BasicState
Direct Known Subclasses:
ArrayTest.TestStateDecode, ArrayTest.TestStateEncode, BasicArrayState, BooleanTest.TestStateDecode, BooleanTest.TestStateEncode, BytesTest.TestStateDecode, BytesTest.TestStateEncode, DoubleTest.TestStateDecode, DoubleTest.TestStateEncode, ExtendedEnumTest.TestStateDecode, ExtendedEnumTest.TestStateEncode, FloatTest.TestStateDecode, FloatTest.TestStateEncode, GenericNestedFakeTest.TestStateDecode, GenericNestedFakeTest.TestStateEncode, GenericNestedTest.TestStateDecode, GenericNestedTest.TestStateEncode, GenericStringTest.TestStateDecode, GenericStringTest.TestStateEncode, GenericTest.TestStateDecode, GenericTest.TestStateEncode, GenericWithDefaultTest.TestStateDecode, GenericWithDefaultTest.TestStateEncode, GenericWithOutOfOrderTest.TestStateDecode, GenericWithPromotionTest.TestStateDecode, IntTest.TestStateDecode, IntTest.TestStateEncode, LongTest.TestStateDecode, LongTest.TestStateEncode, MapTest.TestStateDecode, MapTest.TestStateEncode, RecordTest.TestStateDecode, RecordWithDefaultTest.TestStateDecode, RecordWithOutOfOrderTest.TestStateDecode, RecordWithPromotionTest.TestStateDecode, ReflectBigRecordTest.TestStateDecode, ReflectBigRecordTest.TestStateEncode, ReflectRecordTest.TestStateDecode, ReflectRecordTest.TestStateEncode, ResolvingRecordTest.TestStateDecode, SmallLongTest.TestStateDecode, SmallLongTest.TestStateEncode, StringTest.TestStateDecode, StringTest.TestStateEncode, UnchangedUnionTest.TestStateDecode, UnchangedUnionTest.TestStateEncode, ValidatingRecordTest.TestStateDecode, ValidatingRecordTest.TestStateEncode

public abstract class BasicState extends Object
  • Field Details

  • Constructor Details

    • BasicState

      public BasicState()
  • Method Details

    • getRandom

      protected Random getRandom()
    • newDecoder

      protected org.apache.avro.io.Decoder newDecoder(byte[] buf)
    • newEncoder

      protected org.apache.avro.io.Encoder newEncoder(boolean direct, OutputStream out) throws IOException
      Throws:
      IOException
    • newEncoder

      protected org.apache.avro.io.Encoder newEncoder(int blockSize, OutputStream out) throws IOException
      Throws:
      IOException
    • getBatchSize

      public int getBatchSize()
    • getNullOutputStream

      protected OutputStream getNullOutputStream()