Package org.apache.avro.perf.test
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected OutputStream
protected Random
protected Decoder
newDecoder
(byte[] buf) protected Encoder
newEncoder
(boolean direct, OutputStream out) protected Encoder
newEncoder
(int blockSize, OutputStream out)
-
Field Details
-
BATCH_SIZE
public static final int BATCH_SIZE- See Also:
-
-
Constructor Details
-
BasicState
public BasicState()
-
-
Method Details
-
getRandom
-
newDecoder
-
newEncoder
- Throws:
IOException
-
newEncoder
- Throws:
IOException
-
getBatchSize
public int getBatchSize() -
getNullOutputStream
-