Codota Logo
MLDataFormats$PositionInfo.parseFrom
Code IndexAdd Codota to your IDE (free)

How to use
parseFrom
method
in
org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo

Best Java code snippets using org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo.parseFrom (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: apache/pulsar

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: apache/pulsar

  @Test
  public void hashes() throws Exception {
    PositionImpl p1 = new PositionImpl(5, 15);
    PositionImpl p2 = new PositionImpl(PositionInfo.parseFrom(p1.getPositionInfo().toByteArray()));
    assertEquals(p2.getLedgerId(), 5);
    assertEquals(p2.getEntryId(), 15);
    assertEquals(new PositionImpl(5, 15).hashCode(), p2.hashCode());
  }
}
origin: apache/pulsar

  LedgerEntry entry = seq.nextElement();
  PositionInfo positionInfo;
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
  individualDeletedMessagesCount.set(positionInfo.getIndividualDeletedMessagesCount());
} catch (Exception e) {
origin: apache/pulsar

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
origin: com.yahoo.pulsar/managed-ledger

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: org.apache.pulsar/managed-ledger-original

  log.debug(" Read entry {} from ledger {} for cursor {}", lastEntry, ledgerId, cursorName);
MLDataFormats.PositionInfo positionInfo = MLDataFormats.PositionInfo.parseFrom(ledgerEntry.getEntry());
lastAckedMessagePosition = new PositionImpl(positionInfo);
if (log.isDebugEnabled()) {
origin: com.yahoo.pulsar/managed-ledger

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
origin: org.apache.pulsar/managed-ledger-original

PositionInfo positionInfo;
try {
  positionInfo = PositionInfo.parseFrom(entry.getEntry());
} catch (InvalidProtocolBufferException e) {
  callback.operationFailed(new ManagedLedgerException(e));
org.apache.bookkeeper.mledger.protoMLDataFormats$PositionInfoparseFrom

Popular methods of MLDataFormats$PositionInfo

  • getIndividualDeletedMessagesCount
    repeated .MessageRange individualDeletedMessages = 3;
  • toByteArray
  • <init>
  • getDefaultInstance
  • getDescriptor
  • getEntryId
    required int64 entryId = 2;
  • getIndividualDeletedMessages
    repeated .MessageRange individualDeletedMessages = 3;
  • getIndividualDeletedMessagesList
    repeated .MessageRange individualDeletedMessages = 3;
  • getLedgerId
    required int64 ledgerId = 1;
  • hasEntryId
    required int64 entryId = 2;
  • hasLedgerId
    required int64 ledgerId = 1;
  • isInitialized
  • hasLedgerId,
  • isInitialized,
  • newBuilder,
  • getProperties,
  • getPropertiesCount,
  • getPropertiesList,
  • getSerializedSize,
  • getUnknownFields,
  • makeExtensionsImmutable

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now