Table of Contents

Class ConsumerRecords<K, V>

Namespace
Org.Apache.Kafka.Clients.Consumer
Assembly
MASES.KNet.dll
public class ConsumerRecords<K, V> : Iterable<ConsumerRecord<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<ConsumerRecord<K, V>>, IEnumerable, IAsyncEnumerable<ConsumerRecord<K, V>>, IIterable<ConsumerRecord<K, V>>

Type Parameters

K
V
Inheritance
JVMBridgeBase
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>
JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>>
JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>, ConsumerRecord<K, V>>
ConsumerRecords<K, V>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
IEnumerableExtension
Inherited Members
JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>, ConsumerRecord<K, V>>.GetEnumerator()
JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>>.GetEnumerator()
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.IsAssignableFrom<T>()
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.Execute<T>(params T[])
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.DynBridgeClazz
JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Execute<T>(params T[])
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

ConsumerRecords()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public ConsumerRecords()

ConsumerRecords(Map<TopicPartition, List<ConsumerRecord<K, V>>>)

public ConsumerRecords(Map<TopicPartition, List<ConsumerRecord<K, V>>> arg0)

Parameters

arg0 Map<TopicPartition, List<ConsumerRecord<K, V>>>

Map

ConsumerRecords(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public ConsumerRecords(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

EMPTY

public static ConsumerRecords<object, object> EMPTY { get; }

Property Value

ConsumerRecords<object, object>

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Count()

public int Count()

Returns

int

int

Empty()

public static ConsumerRecords<K, V> Empty()

Returns

ConsumerRecords<K, V>

ConsumerRecords

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

Iterator()

public Iterator<ConsumerRecord<K, V>> Iterator()

Returns

Iterator<ConsumerRecord<K, V>>

Iterator

Partitions()

public Set<TopicPartition> Partitions()

Returns

Set<TopicPartition>

Set

Records(String)

public Iterable<ConsumerRecord<K, V>> Records(String arg0)

Parameters

arg0 String

String

Returns

Iterable<ConsumerRecord<K, V>>

Iterable

Records(TopicPartition)

public List<ConsumerRecord<K, V>> Records(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

List<ConsumerRecord<K, V>>

List

Operators

implicit operator ConsumerRecords(ConsumerRecords<K, V>)

public static implicit operator ConsumerRecords(ConsumerRecords<K, V> t)

Parameters

t ConsumerRecords<K, V>

Returns

ConsumerRecords