Class MemoryRecordsBuilder
public class MemoryRecordsBuilder : AutoCloseable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAutoCloseable
- Inheritance
-
MemoryRecordsBuilder
- Implements
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.SExecuteWithSignatureArray<TArrayType>(string, string, params object[])
Constructors
MemoryRecordsBuilder()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public MemoryRecordsBuilder()
MemoryRecordsBuilder(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public MemoryRecordsBuilder(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
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
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
Abort()
public void Abort()
Append(LegacyRecord)
public void Append(LegacyRecord arg0)
Parameters
arg0LegacyRecord
Append(Record)
public void Append(Record arg0)
Parameters
Append(SimpleRecord)
public void Append(SimpleRecord arg0)
Parameters
arg0SimpleRecord
Append(long, ByteBuffer, ByteBuffer)
public void Append(long arg0, ByteBuffer arg1, ByteBuffer arg2)
Parameters
arg0longarg1ByteBufferarg2ByteBuffer
Append(long, ByteBuffer, ByteBuffer, Header[])
public void Append(long arg0, ByteBuffer arg1, ByteBuffer arg2, Header[] arg3)
Parameters
arg0longarg1ByteBufferarg2ByteBufferarg3Header[]
Append(long, byte[], byte[])
public void Append(long arg0, byte[] arg1, byte[] arg2)
Parameters
Append(long, byte[], byte[], Header[])
public void Append(long arg0, byte[] arg1, byte[] arg2, Header[] arg3)
Parameters
AppendControlRecord(long, ControlRecordType, ByteBuffer)
public void AppendControlRecord(long arg0, ControlRecordType arg1, ByteBuffer arg2)
Parameters
arg0longarg1ControlRecordTypearg2ByteBuffer
AppendControlRecordWithOffset(long, SimpleRecord)
public void AppendControlRecordWithOffset(long arg0, SimpleRecord arg1)
Parameters
arg0longarg1SimpleRecord
AppendUncheckedWithOffset(long, LegacyRecord)
public void AppendUncheckedWithOffset(long arg0, LegacyRecord arg1)
Parameters
arg0longarg1LegacyRecord
AppendUncheckedWithOffset(long, SimpleRecord)
public void AppendUncheckedWithOffset(long arg0, SimpleRecord arg1)
Parameters
arg0longarg1SimpleRecord
Exceptions
AppendWithOffset(long, LegacyRecord)
public void AppendWithOffset(long arg0, LegacyRecord arg1)
Parameters
arg0longarg1LegacyRecord
AppendWithOffset(long, Record)
public void AppendWithOffset(long arg0, Record arg1)
Parameters
AppendWithOffset(long, SimpleRecord)
public void AppendWithOffset(long arg0, SimpleRecord arg1)
Parameters
arg0longarg1SimpleRecord
AppendWithOffset(long, long, ByteBuffer, ByteBuffer)
public void AppendWithOffset(long arg0, long arg1, ByteBuffer arg2, ByteBuffer arg3)
Parameters
arg0longarg1longarg2ByteBufferarg3ByteBuffer
AppendWithOffset(long, long, ByteBuffer, ByteBuffer, Header[])
public void AppendWithOffset(long arg0, long arg1, ByteBuffer arg2, ByteBuffer arg3, Header[] arg4)
Parameters
arg0longarg1longarg2ByteBufferarg3ByteBufferarg4Header[]
AppendWithOffset(long, long, byte[], byte[])
public void AppendWithOffset(long arg0, long arg1, byte[] arg2, byte[] arg3)
Parameters
AppendWithOffset(long, long, byte[], byte[], Header[])
public void AppendWithOffset(long arg0, long arg1, byte[] arg2, byte[] arg3, Header[] arg4)
Parameters
BaseSequence()
public int BaseSequence()
Returns
Buffer()
public ByteBuffer Buffer()
Returns
Close()
public void Close()
CloseForRecordAppends()
public void CloseForRecordAppends()
CompressionRatio()
public double CompressionRatio()
Returns
EstimatedSizeInBytes()
public int EstimatedSizeInBytes()
Returns
HasDeleteHorizonMs()
public bool HasDeleteHorizonMs()
Returns
HasRoomFor(int)
public bool HasRoomFor(int arg0)
Parameters
Returns
HasRoomFor(long, ByteBuffer, ByteBuffer, Header[])
public bool HasRoomFor(long arg0, ByteBuffer arg1, ByteBuffer arg2, Header[] arg3)
Parameters
arg0longarg1ByteBufferarg2ByteBufferarg3Header[]
Returns
HasRoomFor(long, byte[], byte[], Header[])
public bool HasRoomFor(long arg0, byte[] arg1, byte[] arg2, Header[] arg3)
Parameters
Returns
Info()
public MemoryRecordsBuilder.RecordsInfo Info()
Returns
InitialCapacity()
public int InitialCapacity()
Returns
IsClosed()
public bool IsClosed()
Returns
IsControlBatch()
public bool IsControlBatch()
Returns
IsFull()
public bool IsFull()
Returns
IsTransactional()
public bool IsTransactional()
Returns
Magic()
public byte Magic()
Returns
MaxAllowedBytes()
public int MaxAllowedBytes()
Returns
NumRecords()
public int NumRecords()
Returns
OverrideLastOffset(long)
public void OverrideLastOffset(long arg0)
Parameters
ProducerEpoch()
public short ProducerEpoch()
Returns
ProducerId()
public long ProducerId()
Returns
ReopenAndRewriteProducerState(long, short, int, bool)
public void ReopenAndRewriteProducerState(long arg0, short arg1, int arg2, bool arg3)
Parameters
SetEstimatedCompressionRatio(float)
public void SetEstimatedCompressionRatio(float arg0)
Parameters
SetProducerState(long, short, int, bool)
public void SetProducerState(long arg0, short arg1, int arg2, bool arg3)
Parameters
UncompressedBytesWritten()
public int UncompressedBytesWritten()