Tabnine Logo
ValueReaders$StructReader.get
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFileChooser (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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