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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected OutputStream
protected Random
protected org.apache.avro.io.Decoder
newDecoder
(byte[] buf) protected org.apache.avro.io.Encoder
newEncoder
(boolean direct, OutputStream out) protected org.apache.avro.io.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
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
- Throws:
IOException
-
getBatchSize
public int getBatchSize() -
getNullOutputStream
-