Package com.linkedin.venice.utils
Class PushInputSchemaBuilder
- java.lang.Object
-
- com.linkedin.venice.utils.PushInputSchemaBuilder
-
public class PushInputSchemaBuilder extends java.lang.Object
This class is a simple schema builder to generate Venice Push Job input file schema. This builder allows user to set up key schema, value schema and additional unrelated fields. It will perform sanity check to make sure generated schema is good for push job in integration test.
-
-
Constructor Summary
Constructors Constructor Description PushInputSchemaBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.avro.Schema
build()
PushInputSchemaBuilder
setFieldSchema(java.lang.String fieldName, org.apache.avro.Schema fieldSchema)
PushInputSchemaBuilder
setKeySchema(org.apache.avro.Schema schema)
PushInputSchemaBuilder
setValueSchema(org.apache.avro.Schema schema)
-
-
-
Method Detail
-
setKeySchema
public PushInputSchemaBuilder setKeySchema(org.apache.avro.Schema schema)
-
setValueSchema
public PushInputSchemaBuilder setValueSchema(org.apache.avro.Schema schema)
-
setFieldSchema
public PushInputSchemaBuilder setFieldSchema(java.lang.String fieldName, org.apache.avro.Schema fieldSchema)
-
build
public org.apache.avro.Schema build()
-
-