Tabnine Logo
FloatStatistics.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.parquet.column.statistics.FloatStatistics
constructor

Best Java code snippets using org.apache.parquet.column.statistics.FloatStatistics.<init> (Showing top 7 results out of 315)

origin: org.apache.parquet/parquet-column

 @Override
 public FloatStatistics copy() {
  return new FloatStatistics(this);
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

 @Override
 public FloatStatistics copy() {
  return new FloatStatistics(this);
 }
}
origin: prestosql/presto

private static FloatStatistics floatColumnStats(float minimum, float maximum)
{
  FloatStatistics statistics = new FloatStatistics();
  statistics.setMinMax(minimum, maximum);
  return statistics;
}
origin: org.apache.parquet/parquet-column

/**
 * Returns the typed statistics object based on the passed type parameter
 * @param type PrimitiveTypeName type of the column
 * @return instance of a typed statistics class
 * @deprecated Use {@link #createStats(Type)} instead
 */
@Deprecated
public static Statistics getStatsBasedOnType(PrimitiveTypeName type) {
 switch (type) {
  case INT32:
   return new IntStatistics();
  case INT64:
   return new LongStatistics();
  case FLOAT:
   return new FloatStatistics();
  case DOUBLE:
   return new DoubleStatistics();
  case BOOLEAN:
   return new BooleanStatistics();
  case BINARY:
   return new BinaryStatistics();
  case INT96:
   return new BinaryStatistics();
  case FIXED_LEN_BYTE_ARRAY:
   return new BinaryStatistics();
  default:
   throw new UnknownColumnTypeException(type);
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

/**
 * Returns the typed statistics object based on the passed type parameter
 * @param type PrimitiveTypeName type of the column
 * @return instance of a typed statistics class
 * @deprecated Use {@link #createStats(Type)} instead
 */
@Deprecated
public static Statistics getStatsBasedOnType(PrimitiveTypeName type) {
 switch (type) {
  case INT32:
   return new IntStatistics();
  case INT64:
   return new LongStatistics();
  case FLOAT:
   return new FloatStatistics();
  case DOUBLE:
   return new DoubleStatistics();
  case BOOLEAN:
   return new BooleanStatistics();
  case BINARY:
   return new BinaryStatistics();
  case INT96:
   return new BinaryStatistics();
  case FIXED_LEN_BYTE_ARRAY:
   return new BinaryStatistics();
  default:
   throw new UnknownColumnTypeException(type);
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

/**
 * Creates an empty {@code Statistics} instance for the specified type to be
 * used for reading/writing the new min/max statistics used in the V2 format.
 *
 * @param type
 *          type of the column
 * @return instance of a typed statistics class
 */
public static Statistics<?> createStats(Type type) {
 PrimitiveType primitive = type.asPrimitiveType();
 switch (primitive.getPrimitiveTypeName()) {
  case INT32:
   return new IntStatistics(primitive);
  case INT64:
   return new LongStatistics(primitive);
  case FLOAT:
   return new FloatStatistics(primitive);
  case DOUBLE:
   return new DoubleStatistics(primitive);
  case BOOLEAN:
   return new BooleanStatistics(primitive);
  case BINARY:
  case INT96:
  case FIXED_LEN_BYTE_ARRAY:
   return new BinaryStatistics(primitive);
  default:
   throw new UnknownColumnTypeException(primitive.getPrimitiveTypeName());
 }
}
origin: org.apache.parquet/parquet-column

/**
 * Creates an empty {@code Statistics} instance for the specified type to be
 * used for reading/writing the new min/max statistics used in the V2 format.
 *
 * @param type
 *          type of the column
 * @return instance of a typed statistics class
 */
public static Statistics<?> createStats(Type type) {
 PrimitiveType primitive = type.asPrimitiveType();
 switch (primitive.getPrimitiveTypeName()) {
  case INT32:
   return new IntStatistics(primitive);
  case INT64:
   return new LongStatistics(primitive);
  case FLOAT:
   return new FloatStatistics(primitive);
  case DOUBLE:
   return new DoubleStatistics(primitive);
  case BOOLEAN:
   return new BooleanStatistics(primitive);
  case BINARY:
  case INT96:
  case FIXED_LEN_BYTE_ARRAY:
   return new BinaryStatistics(primitive);
  default:
   throw new UnknownColumnTypeException(primitive.getPrimitiveTypeName());
 }
}
org.apache.parquet.column.statisticsFloatStatistics<init>

Popular methods of FloatStatistics

  • getMax
  • getMin
  • setMinMax
  • genericGetMax
  • genericGetMin
  • comparator
  • getNumNulls
  • hasNonNullValue
  • initializeStats
  • markAsNotEmpty
  • setNumNulls
  • type
  • setNumNulls,
  • type,
  • updateStats

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • JPanel (javax.swing)
  • 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