Tabnine Logo
FloatStatistics.genericGetMax
Code IndexAdd Tabnine to your IDE (free)

How to use
genericGetMax
method
in
org.apache.parquet.column.statistics.FloatStatistics

Best Java code snippets using org.apache.parquet.column.statistics.FloatStatistics.genericGetMax (Showing top 4 results out of 315)

origin: org.apache.parquet/parquet-column

 @Override
 public Statistics<?> build() {
  FloatStatistics stats = (FloatStatistics) super.build();
  if (stats.hasNonNullValue()) {
   Float min = stats.genericGetMin();
   Float max = stats.genericGetMax();
   // Drop min/max values in case of NaN as the sorting order of values is undefined for this case
   if (min.isNaN() || max.isNaN()) {
    stats.setMinMax(0.0f, 0.0f);
    ((Statistics<?>) stats).hasNonNullValue = false;
   } else {
    // Updating min to -0.0 and max to +0.0 to ensure that no 0.0 values would be skipped
    if (Float.compare(min, 0.0f) == 0) {
     min = -0.0f;
     stats.setMinMax(min, max);
    }
    if (Float.compare(max, -0.0f) == 0) {
     max = 0.0f;
     stats.setMinMax(min, max);
    }
   }
  }
  return stats;
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

 @Override
 public Statistics<?> build() {
  FloatStatistics stats = (FloatStatistics) super.build();
  if (stats.hasNonNullValue()) {
   Float min = stats.genericGetMin();
   Float max = stats.genericGetMax();
   // Drop min/max values in case of NaN as the sorting order of values is undefined for this case
   if (min.isNaN() || max.isNaN()) {
    stats.setMinMax(0.0f, 0.0f);
    ((Statistics<?>) stats).hasNonNullValue = false;
   } else {
    // Updating min to -0.0 and max to +0.0 to ensure that no 0.0 values would be skipped
    if (Float.compare(min, 0.0f) == 0) {
     min = -0.0f;
     stats.setMinMax(min, max);
    }
    if (Float.compare(max, -0.0f) == 0) {
     max = 0.0f;
     stats.setMinMax(min, max);
    }
   }
  }
  return stats;
 }
}
origin: prestosql/presto

if (floatStatistics.genericGetMin() > floatStatistics.genericGetMax()) {
  failWithCorruptionException(failOnCorruptedParquetStatistics, column, id, floatStatistics);
  return Domain.create(ValueSet.all(type), hasNullValue);
origin: io.prestosql/presto-parquet

if (floatStatistics.genericGetMin() > floatStatistics.genericGetMax()) {
  failWithCorruptionException(failOnCorruptedParquetStatistics, column, id, floatStatistics);
  return Domain.create(ValueSet.all(type), hasNullValue);
org.apache.parquet.column.statisticsFloatStatisticsgenericGetMax

Popular methods of FloatStatistics

  • getMax
  • getMin
  • setMinMax
  • <init>
  • genericGetMin
  • comparator
  • getNumNulls
  • hasNonNullValue
  • initializeStats
  • markAsNotEmpty
  • setNumNulls
  • type
  • setNumNulls,
  • type,
  • updateStats

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for Android Studio
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