Table of Contents

Class MemoryRecordsBuilder

Namespace
Org.Apache.Kafka.Common.Record
Assembly
MASES.KNet.dll
public class MemoryRecordsBuilder : AutoCloseable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
MemoryRecordsBuilder
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.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

MemoryRecordsBuilder()

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

public MemoryRecordsBuilder()

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

Abort()

public void Abort()

Append(LegacyRecord)

public void Append(LegacyRecord arg0)

Parameters

arg0 LegacyRecord

LegacyRecord

Append(Record)

public void Append(Record arg0)

Parameters

arg0 Record

Record

Append(SimpleRecord)

public void Append(SimpleRecord arg0)

Parameters

arg0 SimpleRecord

SimpleRecord

Append(long, ByteBuffer, ByteBuffer)

public void Append(long arg0, ByteBuffer arg1, ByteBuffer arg2)

Parameters

arg0 long

long

arg1 ByteBuffer

ByteBuffer

arg2 ByteBuffer

ByteBuffer

Append(long, ByteBuffer, ByteBuffer, Header[])

public void Append(long arg0, ByteBuffer arg1, ByteBuffer arg2, Header[] arg3)

Parameters

arg0 long

long

arg1 ByteBuffer

ByteBuffer

arg2 ByteBuffer

ByteBuffer

arg3 Header[]

Header

Append(long, byte[], byte[])

public void Append(long arg0, byte[] arg1, byte[] arg2)

Parameters

arg0 long

long

arg1 byte[]

byte

arg2 byte[]

byte

Append(long, byte[], byte[], Header[])

public void Append(long arg0, byte[] arg1, byte[] arg2, Header[] arg3)

Parameters

arg0 long

long

arg1 byte[]

byte

arg2 byte[]

byte

arg3 Header[]

Header

AppendControlRecord(long, ControlRecordType, ByteBuffer)

public void AppendControlRecord(long arg0, ControlRecordType arg1, ByteBuffer arg2)

Parameters

arg0 long

long

arg1 ControlRecordType

ControlRecordType

arg2 ByteBuffer

ByteBuffer

AppendControlRecordWithOffset(long, SimpleRecord)

public void AppendControlRecordWithOffset(long arg0, SimpleRecord arg1)

Parameters

arg0 long

long

arg1 SimpleRecord

SimpleRecord

AppendUncheckedWithOffset(long, LegacyRecord)

public void AppendUncheckedWithOffset(long arg0, LegacyRecord arg1)

Parameters

arg0 long

long

arg1 LegacyRecord

LegacyRecord

AppendUncheckedWithOffset(long, SimpleRecord)

public void AppendUncheckedWithOffset(long arg0, SimpleRecord arg1)

Parameters

arg0 long

long

arg1 SimpleRecord

SimpleRecord

Exceptions

IOException

AppendWithOffset(long, LegacyRecord)

public void AppendWithOffset(long arg0, LegacyRecord arg1)

Parameters

arg0 long

long

arg1 LegacyRecord

LegacyRecord

AppendWithOffset(long, Record)

public void AppendWithOffset(long arg0, Record arg1)

Parameters

arg0 long

long

arg1 Record

Record

AppendWithOffset(long, SimpleRecord)

public void AppendWithOffset(long arg0, SimpleRecord arg1)

Parameters

arg0 long

long

arg1 SimpleRecord

SimpleRecord

AppendWithOffset(long, long, ByteBuffer, ByteBuffer)

public void AppendWithOffset(long arg0, long arg1, ByteBuffer arg2, ByteBuffer arg3)

Parameters

arg0 long

long

arg1 long

long

arg2 ByteBuffer

ByteBuffer

arg3 ByteBuffer

ByteBuffer

AppendWithOffset(long, long, ByteBuffer, ByteBuffer, Header[])

public void AppendWithOffset(long arg0, long arg1, ByteBuffer arg2, ByteBuffer arg3, Header[] arg4)

Parameters

arg0 long

long

arg1 long

long

arg2 ByteBuffer

ByteBuffer

arg3 ByteBuffer

ByteBuffer

arg4 Header[]

Header

AppendWithOffset(long, long, byte[], byte[])

public void AppendWithOffset(long arg0, long arg1, byte[] arg2, byte[] arg3)

Parameters

arg0 long

long

arg1 long

long

arg2 byte[]

byte

arg3 byte[]

byte

AppendWithOffset(long, long, byte[], byte[], Header[])

public void AppendWithOffset(long arg0, long arg1, byte[] arg2, byte[] arg3, Header[] arg4)

Parameters

arg0 long

long

arg1 long

long

arg2 byte[]

byte

arg3 byte[]

byte

arg4 Header[]

Header

BaseSequence()

public int BaseSequence()

Returns

int

int

Buffer()

public ByteBuffer Buffer()

Returns

ByteBuffer

ByteBuffer

Close()

public void Close()

CloseForRecordAppends()

public void CloseForRecordAppends()

CompressionRatio()

public double CompressionRatio()

Returns

double

double

EstimatedSizeInBytes()

public int EstimatedSizeInBytes()

Returns

int

int

HasDeleteHorizonMs()

public bool HasDeleteHorizonMs()

Returns

bool

bool

HasRoomFor(int)

public bool HasRoomFor(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

HasRoomFor(long, ByteBuffer, ByteBuffer, Header[])

public bool HasRoomFor(long arg0, ByteBuffer arg1, ByteBuffer arg2, Header[] arg3)

Parameters

arg0 long

long

arg1 ByteBuffer

ByteBuffer

arg2 ByteBuffer

ByteBuffer

arg3 Header[]

Header

Returns

bool

bool

HasRoomFor(long, byte[], byte[], Header[])

public bool HasRoomFor(long arg0, byte[] arg1, byte[] arg2, Header[] arg3)

Parameters

arg0 long

long

arg1 byte[]

byte

arg2 byte[]

byte

arg3 Header[]

Header

Returns

bool

bool

Info()

public MemoryRecordsBuilder.RecordsInfo Info()

Returns

MemoryRecordsBuilder.RecordsInfo

MemoryRecordsBuilder.RecordsInfo

InitialCapacity()

public int InitialCapacity()

Returns

int

int

IsClosed()

public bool IsClosed()

Returns

bool

bool

IsControlBatch()

public bool IsControlBatch()

Returns

bool

bool

IsFull()

public bool IsFull()

Returns

bool

bool

IsTransactional()

public bool IsTransactional()

Returns

bool

bool

Magic()

public byte Magic()

Returns

byte

byte

MaxAllowedBytes()

public int MaxAllowedBytes()

Returns

int

int

NumRecords()

public int NumRecords()

Returns

int

int

OverrideLastOffset(long)

public void OverrideLastOffset(long arg0)

Parameters

arg0 long

long

ProducerEpoch()

public short ProducerEpoch()

Returns

short

short

ProducerId()

public long ProducerId()

Returns

long

long

ReopenAndRewriteProducerState(long, short, int, bool)

public void ReopenAndRewriteProducerState(long arg0, short arg1, int arg2, bool arg3)

Parameters

arg0 long

long

arg1 short

short

arg2 int

int

arg3 bool

bool

SetEstimatedCompressionRatio(float)

public void SetEstimatedCompressionRatio(float arg0)

Parameters

arg0 float

float

SetProducerState(long, short, int, bool)

public void SetProducerState(long arg0, short arg1, int arg2, bool arg3)

Parameters

arg0 long

long

arg1 short

short

arg2 int

int

arg3 bool

bool

UncompressedBytesWritten()

public int UncompressedBytesWritten()

Returns

int

int