Table of Contents

Class StreamPartitionerNoValue<K, TJVMK>

Namespace
MASES.KNet.Streams.Processor
Assembly
MASES.KNet.dll
public class StreamPartitionerNoValue<K, TJVMK> : StreamPartitioner<K, string, TJVMK, Void>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IStreamPartitioner<TJVMK, Void>, IJVMBridgeBase, IJVMBridgeDefinition, IGenericSerDesFactoryApplier

Type Parameters

K

The key type

TJVMK

The JVM type of K

Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
StreamPartitionerNoValue<K, TJVMK>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeListener.Dispose()
JVMBridgeListener.BridgeClassName
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.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.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeAbstract

Properties

Key

The K content

public override K Key { get; }

Property Value

K

NumPartitions

The total number of partitions

public override int NumPartitions { get; }

Property Value

int

OnPartitions

public Func<string, K, int, ICollection<int?>> OnPartitions { get; set; }

Property Value

Func<string, K, int, ICollection<int?>>

Remarks

If OnPartitions has a value it takes precedence over corresponding class method

Topic

The topic name this record is sent to

public override string Topic { get; }

Property Value

string

Value

The string content

public override string Value { get; }

Property Value

string

Methods

Partitions(String, TJVMK, Void, int)

public override Optional<Set<Integer>> Partitions(String arg0, TJVMK arg1, Void arg2, int arg3)

Parameters

arg0 String

String

arg1 TJVMK

K

arg2 Void

Void

arg3 int

int

Returns

Optional<Set<Integer>>

Optional

Remarks

The method invokes the default implementation in the JVM interface using PartitionsDefault(String, K, V, int); override the method to implement a different behavior

Partitions(string, K, int)

public virtual ICollection<int?> Partitions(string arg0, K arg1, int arg2)

Parameters

arg0 string

The topic name this record is sent to

arg1 K

The key of the record

arg2 int

The total number of partitions

Returns

ICollection<int?>

An Optional of Set of Integers between 0 and numPartitions-1, Empty optional means using default partitioner Optional of an empty set means the record won't be sent to any partitions i.e drop it. Optional of Set of integers means the partitions to which the record should be sent to.