Class: Kafka::FFI::TopicPartition
- Inherits:
 - 
      FFI::Struct
      
        
- Object
 - FFI::Struct
 - Kafka::FFI::TopicPartition
 
 
- Defined in:
 - lib/kafka/ffi/topic_partition.rb
 
Instance Method Summary collapse
- #error ⇒ nil, Kafka::ResponseError
 - 
  
    
      #offset  ⇒ Integer 
    
    
  
  
  
  
  
  
  
  
  
    
Known offset for the consumer group for topic + partition.
 - 
  
    
      #partition  ⇒ Integer 
    
    
  
  
  
  
  
  
  
  
  
    
Partition number.
 - 
  
    
      #topic  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Name of the topic.
 
Instance Method Details
#error ⇒ nil, Kafka::ResponseError
      21 22 23 24 25  | 
    
      # File 'lib/kafka/ffi/topic_partition.rb', line 21 def error if self[:err] != :ok ::Kafka::ResponseError.new(self[:err]) end end  | 
  
#offset ⇒ Integer
Returns Known offset for the consumer group for topic + partition.
      39 40 41  | 
    
      # File 'lib/kafka/ffi/topic_partition.rb', line 39 def offset self[:offset] end  | 
  
#partition ⇒ Integer
Returns Partition number.
      33 34 35  | 
    
      # File 'lib/kafka/ffi/topic_partition.rb', line 33 def partition self[:partition] end  | 
  
#topic ⇒ String
Returns Name of the topic.
      28 29 30  | 
    
      # File 'lib/kafka/ffi/topic_partition.rb', line 28 def topic self[:topic] end  |