Codota Logo
ValueReaders$StructReader.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
com.netflix.iceberg.avro.ValueReaders$StructReader

Best Java code snippets using com.netflix.iceberg.avro.ValueReaders$StructReader.get (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: Netflix/iceberg

 @Override
 public S read(Decoder decoder, Object reuse) throws IOException {
  S struct = reuseOrCreate(reuse);
  if (decoder instanceof ResolvingDecoder) {
   // this may not set all of the fields. nulls are set by default.
   for (org.apache.avro.Schema.Field field : ((ResolvingDecoder) decoder).readFieldOrder()) {
    Object reusedValue = get(struct, field.pos());
    set(struct, field.pos(), readers[field.pos()].read(decoder, reusedValue));
   }
  } else {
   for (int i = 0; i < readers.length; i += 1) {
    Object reusedValue = get(struct, i);
    set(struct, i, readers[i].read(decoder, reusedValue));
   }
  }
  return struct;
 }
}
com.netflix.iceberg.avroValueReaders$StructReaderget

Popular methods of ValueReaders$StructReader

  • reader
  • reuseOrCreate
  • set

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFrame (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