Table of Contents

Class DefaultRecordBatch

Namespace
Org.Apache.Kafka.Common.Record
Assembly
MASES.KNet.dll
public class DefaultRecordBatch : MutableRecordBatch, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<Record>, IEnumerable, IAsyncEnumerable<Record>, IIterable<Record>, IMutableRecordBatch, IRecordBatch
Inheritance
JVMBridgeBase
JVMBridgeBase<Iterable<Record>>
JVMBridgeBaseEnumerable<Iterable<Record>>
JVMBridgeBaseEnumerable<Iterable<Record>, Record>
DefaultRecordBatch
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
IEnumerableExtension
Inherited Members
JVMBridgeBaseEnumerable<Iterable<Record>, Record>.GetEnumerator()
JVMBridgeBaseEnumerable<Iterable<Record>>.GetEnumerator()
JVMBridgeBase<Iterable<Record>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Iterable<Record>>.IsAssignableFrom<T>()
JVMBridgeBase<Iterable<Record>>.Execute<T>(params T[])
JVMBridgeBase<Iterable<Record>>.DynBridgeClazz
JVMBridgeBase<Iterable<Record>>.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.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

DefaultRecordBatch()

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

public DefaultRecordBatch()

DefaultRecordBatch(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 DefaultRecordBatch(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CRC_OFFSET

public static int CRC_OFFSET { get; }

Property Value

int

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

LAST_OFFSET_DELTA_OFFSET

public static int LAST_OFFSET_DELTA_OFFSET { get; }

Property Value

int

RECORDS_COUNT_OFFSET

public static int RECORDS_COUNT_OFFSET { get; }

Property Value

int

RECORD_BATCH_OVERHEAD

public static int RECORD_BATCH_OVERHEAD { get; }

Property Value

int

Methods

BaseTimestamp()

public long BaseTimestamp()

Returns

long

long

DecrementSequence(int, int)

public static int DecrementSequence(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

IncrementSequence(int, int)

public static int IncrementSequence(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

RecordInputStream(BufferSupplier)

public InputStream RecordInputStream(BufferSupplier arg0)

Parameters

arg0 BufferSupplier

BufferSupplier

Returns

InputStream

InputStream

SetLastOffset(long)

public void SetLastOffset(long arg0)

Parameters

arg0 long

long

SetMaxTimestamp(TimestampType, long)

public void SetMaxTimestamp(TimestampType arg0, long arg1)

Parameters

arg0 TimestampType

TimestampType

arg1 long

long

SetPartitionLeaderEpoch(int)

public void SetPartitionLeaderEpoch(int arg0)

Parameters

arg0 int

int

SizeInBytes(Iterable<SimpleRecord>)

public static int SizeInBytes(Iterable<SimpleRecord> arg0)

Parameters

arg0 Iterable<SimpleRecord>

Iterable

Returns

int

int

SizeInBytes(long, Iterable<Record>)

public static int SizeInBytes(long arg0, Iterable<Record> arg1)

Parameters

arg0 long

long

arg1 Iterable<Record>

Iterable

Returns

int

int

SkipKeyValueIterator(BufferSupplier)

public CloseableIterator<Record> SkipKeyValueIterator(BufferSupplier arg0)

Parameters

arg0 BufferSupplier

BufferSupplier

Returns

CloseableIterator<Record>

CloseableIterator

WriteEmptyHeader(ByteBuffer, byte, long, short, int, long, long, int, TimestampType, long, bool, bool)

public static void WriteEmptyHeader(ByteBuffer arg0, byte arg1, long arg2, short arg3, int arg4, long arg5, long arg6, int arg7, TimestampType arg8, long arg9, bool arg10, bool arg11)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 byte

byte

arg2 long

long

arg3 short

short

arg4 int

int

arg5 long

long

arg6 long

long

arg7 int

int

arg8 TimestampType

TimestampType

arg9 long

long

arg10 bool

bool

arg11 bool

bool

WriteHeader(ByteBuffer, long, int, int, byte, CompressionType, TimestampType, long, long, long, short, int, bool, bool, bool, int, int)

public static void WriteHeader(ByteBuffer arg0, long arg1, int arg2, int arg3, byte arg4, CompressionType arg5, TimestampType arg6, long arg7, long arg8, long arg9, short arg10, int arg11, bool arg12, bool arg13, bool arg14, int arg15, int arg16)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

arg2 int

int

arg3 int

int

arg4 byte

byte

arg5 CompressionType

CompressionType

arg6 TimestampType

TimestampType

arg7 long

long

arg8 long

long

arg9 long

long

arg10 short

short

arg11 int

int

arg12 bool

bool

arg13 bool

bool

arg14 bool

bool

arg15 int

int

arg16 int

int

WriteTo(ByteBufferOutputStream)

public void WriteTo(ByteBufferOutputStream arg0)

Parameters

arg0 ByteBufferOutputStream

ByteBufferOutputStream