Class NativeDataParser

  • Direct Known Subclasses:
    NativeDataParserV10

    public class NativeDataParser
    extends java.lang.Object
    This class is used to parse NativeData returned by jni layer. It is right now used in two ways - 1. To send back the list of subscriptions for this listener. 2. To send back all the messages during a poll.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.mapr.fs.jni.NativeData nativeData  
    • Field Detail

      • nativeData

        protected com.mapr.fs.jni.NativeData nativeData
    • Method Detail

      • HasData

        public boolean HasData()
      • getNextTopicPartition

        public org.apache.kafka.common.TopicPartition getNextTopicPartition()
      • parseListenerRecords

        public java.util.Map<org.apache.kafka.common.TopicPartition,​java.util.List<ListenerRecord>> parseListenerRecords​(boolean stripStreamPath)
                                                                                                                        throws org.apache.kafka.clients.consumer.NoOffsetForPartitionException,
                                                                                                                               org.apache.kafka.common.errors.RecordTooLargeException
        Throws:
        org.apache.kafka.clients.consumer.NoOffsetForPartitionException
        org.apache.kafka.common.errors.RecordTooLargeException
      • getListenerRecords

        protected java.util.List<ListenerRecord> getListenerRecords​(java.lang.String topicName,
                                                                    org.apache.kafka.common.TopicPartition p,
                                                                    long numMsgs)
      • getLongData

        protected long getLongData()