public interface CommonFactory
Modifier and Type | Method and Description |
---|---|
CommonArray |
createCommonArray(org.apache.avro.Schema schema,
List<CommonValue> list)
Creates CommonArray with the given schema and list of values.
|
CommonEnum |
createCommonEnum(org.apache.avro.Schema schema,
String symbol)
Creates CommonEnum with the given schema and symbol.
|
CommonFixed |
createCommonFixed(org.apache.avro.Schema schema,
byte[] bytes)
Creates CommonFixed with the given schema and byte array.
|
CommonRecord |
createCommonRecord(CommonRecord record)
Creates CommonRecord from the existing record.
|
CommonRecord |
createCommonRecord(org.apache.avro.Schema schema)
Creates CommonRecord with the given schema.
|
CommonRecord |
createCommonRecord(UUID uuid,
org.apache.avro.Schema schema)
Creates CommonRecord with the given avro schema and uuid .
|
CommonValue |
createCommonValue(Object value)
Creates CommonValue from the given value.
|
CommonValue createCommonValue(Object value)
value
- value which will be stored in CommonValue.CommonRecord createCommonRecord(org.apache.avro.Schema schema)
schema
- avro schema object for the new CommonRecord object.CommonRecord createCommonRecord(CommonRecord record)
record
- record object which is going to be copied.CommonRecord createCommonRecord(UUID uuid, org.apache.avro.Schema schema)
uuid
- uuid for the new record.schema
- avro schema object for the new record.CommonArray createCommonArray(org.apache.avro.Schema schema, List<CommonValue> list)
schema
- avro schema for the new array.list
- list of values.CommonFixed createCommonFixed(org.apache.avro.Schema schema, byte[] bytes)
schema
- avro schema for the new fixed object.bytes
- byte array for the new CommonFixed.CommonEnum createCommonEnum(org.apache.avro.Schema schema, String symbol)
schema
- avro schema for the new enum object.symbol
- enum symbol.Copyright © 2014. All rights reserved.