Class StreamAvroIntoKafkaCommand
- java.lang.Object
-
- org.apache.pinot.tools.AbstractBaseCommand
-
- org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
-
- org.apache.pinot.tools.admin.command.StreamAvroIntoKafkaCommand
-
public class StreamAvroIntoKafkaCommand extends AbstractBaseAdminCommand implements Command
Class for command to stream Avro data into Kafka.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.AbstractBaseCommand
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description StreamAvroIntoKafkaCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()booleanexecute()booleangetHelp()StringgetName()StreamAvroIntoKafkaCommandsetAvroFile(String avroFile)StreamAvroIntoKafkaCommandsetKafkaBrokerList(String kafkaBrokerList)StreamAvroIntoKafkaCommandsetKafkaTopic(String kafkaTopic)StreamAvroIntoKafkaCommandsetOutputFormat(String outputFormat)StreamAvroIntoKafkaCommandsetZkAddress(String zkAddress)StringtoString()-
Methods inherited from class org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
getPID, savePID, sendDeleteRequest, sendPostRequest, sendRequest, sendRequest
-
Methods inherited from class org.apache.pinot.tools.AbstractBaseCommand
cleanup, printExamples, printUsage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.tools.Command
call, printUsage
-
-
-
-
Method Detail
-
getName
public String getName()
- Overrides:
getNamein classAbstractBaseCommand
-
description
public String description()
- Specified by:
descriptionin interfaceCommand
-
execute
public boolean execute() throws IOException- Specified by:
executein interfaceCommand- Throws:
IOException
-
setAvroFile
public StreamAvroIntoKafkaCommand setAvroFile(String avroFile)
-
setKafkaBrokerList
public StreamAvroIntoKafkaCommand setKafkaBrokerList(String kafkaBrokerList)
-
setKafkaTopic
public StreamAvroIntoKafkaCommand setKafkaTopic(String kafkaTopic)
-
setZkAddress
public StreamAvroIntoKafkaCommand setZkAddress(String zkAddress)
-
setOutputFormat
public StreamAvroIntoKafkaCommand setOutputFormat(String outputFormat)
-
-