Class OffsetsUtils
public class OffsetsUtils : JVMBridgeBase<OffsetsUtils>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
OffsetsUtils
- Implements
Constructors
OffsetsUtils(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public OffsetsUtils(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
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 java.lang.AutoCloseable
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
CheckAllTopicPartitionsValid(Collection<TopicPartition>)
public void CheckAllTopicPartitionsValid(Collection<TopicPartition> arg0)
Parameters
FilterNonExistentPartitions(Collection<TopicPartition>)
public List<TopicPartition> FilterNonExistentPartitions(Collection<TopicPartition> arg0)
Parameters
Returns
FilterNoneLeaderPartitions(Collection<TopicPartition>)
public List<TopicPartition> FilterNoneLeaderPartitions(Collection<TopicPartition> arg0)
Parameters
Returns
GetLogEndOffsets(Collection<TopicPartition>)
public Map<TopicPartition, OffsetsUtils.LogOffsetResult> GetLogEndOffsets(Collection<TopicPartition> arg0)
Parameters
Returns
GetLogOffsets(Collection<TopicPartition>, OffsetSpec)
public Map<TopicPartition, OffsetsUtils.LogOffsetResult> GetLogOffsets(Collection<TopicPartition> arg0, OffsetSpec arg1)
Parameters
arg0Collection<TopicPartition>arg1OffsetSpec
Returns
ParseTopicPartitionsToReset(List<String>)
public List<TopicPartition> ParseTopicPartitionsToReset(List<String> arg0)
Parameters
Returns
Exceptions
ParseTopicsWithPartitions(String)
public Stream<TopicPartition> ParseTopicsWithPartitions(String arg0)
Parameters
Returns
PrintOffsetsToReset(Map<String, Map<TopicPartition, OffsetAndMetadata>>)
public static void PrintOffsetsToReset(Map<String, Map<TopicPartition, OffsetAndMetadata>> arg0)
Parameters
arg0Map<String, Map<TopicPartition, OffsetAndMetadata>>
ResetByDuration(Collection<TopicPartition>)
public Map<TopicPartition, OffsetAndMetadata> ResetByDuration(Collection<TopicPartition> arg0)
Parameters
Returns
ResetByShiftBy(Collection<TopicPartition>, Map<TopicPartition, OffsetAndMetadata>)
public Map<TopicPartition, OffsetAndMetadata> ResetByShiftBy(Collection<TopicPartition> arg0, Map<TopicPartition, OffsetAndMetadata> arg1)
Parameters
arg0Collection<TopicPartition>arg1Map<TopicPartition, OffsetAndMetadata>
Returns
ResetFromFile(String)
public Map<TopicPartition, OffsetAndMetadata> ResetFromFile(String arg0)
Parameters
Returns
ResetPlanFromFile()
public Optional<Map<String, Map<TopicPartition, OffsetAndMetadata>>> ResetPlanFromFile()
Returns
ResetToCurrent(Collection<TopicPartition>, Map<TopicPartition, OffsetAndMetadata>)
public Map<TopicPartition, OffsetAndMetadata> ResetToCurrent(Collection<TopicPartition> arg0, Map<TopicPartition, OffsetAndMetadata> arg1)
Parameters
arg0Collection<TopicPartition>arg1Map<TopicPartition, OffsetAndMetadata>
Returns
ResetToDateTime(Collection<TopicPartition>)
public Map<TopicPartition, OffsetAndMetadata> ResetToDateTime(Collection<TopicPartition> arg0)
Parameters
Returns
ResetToEarliest(Collection<TopicPartition>)
public Map<TopicPartition, OffsetAndMetadata> ResetToEarliest(Collection<TopicPartition> arg0)
Parameters
Returns
ResetToLatest(Collection<TopicPartition>)
public Map<TopicPartition, OffsetAndMetadata> ResetToLatest(Collection<TopicPartition> arg0)
Parameters
Returns
ResetToOffset(Collection<TopicPartition>)
public Map<TopicPartition, OffsetAndMetadata> ResetToOffset(Collection<TopicPartition> arg0)