Codota Logo
FromHostResult.getBytesProcessed
Code IndexAdd Codota to your IDE (free)

How to use
getBytesProcessed
method
in
com.legstar.base.converter.FromHostResult

Best Java code snippets using com.legstar.base.converter.FromHostResult.getBytesProcessed (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: com.legsem.legstar/legstar.avro.cob2avro

@SuppressWarnings("unchecked")
public D next() {
  try {
    ReadRecordStatus status = readRecord(hostBytes, lastProcessed);
    bytesRead += status.getBytesRead();
    int prefixLen = hostBytesPrefixLen();
    FromHostResult < GenericRecord > result = converter.convert(
        hostBytes,
        prefixLen,
        status.getRecordLen() == -1 ? hostBytes.length : status
            .getRecordLen() + prefixLen);
    bytesProcessed += lastProcessed = result.getBytesProcessed();
    D specific = (D) SpecificData.get().deepCopy(
        result.getValue().getSchema(), result.getValue());
    if (log.isDebugEnabled()) {
      log.debug("Avro record=" + specific.toString());
    }
    return specific;
  } catch (IOException e) {
    throw new AvroRuntimeException(e);
  }
}
origin: com.legsem.legstar/legstar.avro.cob2avro

public FromHostResult < SpecificRecord > convert(byte[] hostData,
    int start, int length) {
  FromHostResult < GenericRecord > result = converter.convert(hostData,
      start, length);
  if (result.getValue() == null) {
    return null;
  }
  this.specificRecord = (SpecificRecord) SpecificData.get().deepCopy(
      result.getValue().getSchema(), result.getValue());
  return new FromHostResult < SpecificRecord >(
      result.getBytesProcessed(), specificRecord);
}
com.legstar.base.converterFromHostResultgetBytesProcessed

Popular methods of FromHostResult

  • <init>
  • getValue

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • notifyDataSetChanged (ArrayAdapter)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JFileChooser (javax.swing)
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