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

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

Best Java code snippets using org.apache.parquet.column.statistics.FloatStatistics.genericGetMin (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.statisticsFloatStatisticsgenericGetMin

Popular methods of FloatStatistics

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

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JList (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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