Definition in docs:
org.apache.spark.streaming.kafka
Class KafkaUtils
static JavaPairReceiverInputDStream<String,String> createStream(JavaStreamingContext jssc, String zkQuorum, String groupId, java.util.Map<String,Integer> topics)
Create an input stream that pulls messages from Kafka Brokers.
Why is topics a Map (rather than a string array)?
I understand that the string key is the topic name. But what about the integer value? What should I fill in?