Tabnine Logo
KafkaConsumerRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
KafkaConsumerRecord
in
org.apache.gobblin.kafka.client

Best Java code snippets using org.apache.gobblin.kafka.client.KafkaConsumerRecord (Showing top 4 results out of 315)

origin: apache/incubator-gobblin

if (nextValidMessage.getOffset() < this.nextWatermark.get(this.currentPartitionIdx)) {
 continue;
this.nextWatermark.set(this.currentPartitionIdx, nextValidMessage.getNextOffset());
try {
 D record = null;
 this.currentPartitionTotalSize += nextValidMessage.getValueSizeInBytes();
 this.currentPartitionReadRecordTime += System.nanoTime() - readStartTime;
 this.currentPartitionLastSuccessfulRecord = record;
origin: apache/incubator-gobblin

if (nextValidMessage.getOffset() < _nextWatermark.get(this.currentPartitionIdx)) {
 continue;
_nextWatermark.set(this.currentPartitionIdx, nextValidMessage.getNextOffset());
try {
 final AvroJobSpec record;
} catch (Throwable t) {
 log.error("Could not decode record at partition " + this.currentPartitionIdx +
   " offset " + nextValidMessage.getOffset());
origin: org.apache.gobblin/gobblin-service-kafka

if (nextValidMessage.getOffset() < _nextWatermark.get(this.currentPartitionIdx)) {
 continue;
_nextWatermark.set(this.currentPartitionIdx, nextValidMessage.getNextOffset());
try {
 final AvroJobSpec record;
} catch (Throwable t) {
 log.error("Could not decode record at partition " + this.currentPartitionIdx +
   " offset " + nextValidMessage.getOffset());
origin: org.apache.gobblin/gobblin-kafka-common

if (nextValidMessage.getOffset() < this.nextWatermark.get(this.currentPartitionIdx)) {
 continue;
this.nextWatermark.set(this.currentPartitionIdx, nextValidMessage.getNextOffset());
try {
 D record = null;
 this.currentPartitionTotalSize += nextValidMessage.getValueSizeInBytes();
 this.currentPartitionReadRecordTime += System.nanoTime() - readStartTime;
 this.currentPartitionLastSuccessfulRecord = record;
org.apache.gobblin.kafka.clientKafkaConsumerRecord

Javadoc

A kafka message/record consumed from GobblinKafkaConsumerClient. This interface provides APIs to read message metadata. Extension interfaces like DecodeableKafkaRecord or ByteArrayBasedKafkaRecord provide APIs to read the actual message/record.

Most used methods

  • getNextOffset
    Next offset after this record
  • getOffset
    Offset of this record
  • getValueSizeInBytes
    Size of the message in bytes. BaseKafkaConsumerRecord#VALUE_SIZE_UNAVAILABLE if kafka-client version

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now