Tabnine Logo
DictionaryCompressionOptimizer.reset
Code IndexAdd Tabnine to your IDE (free)

How to use
reset
method
in
io.prestosql.orc.DictionaryCompressionOptimizer

Best Java code snippets using io.prestosql.orc.DictionaryCompressionOptimizer.reset (Showing top 4 results out of 315)

origin: prestosql/presto

public void reset()
{
  rowCount = 0;
  optimizer.reset();
  for (TestDictionaryColumn dictionaryColumn : dictionaryColumns) {
    dictionaryColumn.reset();
  }
}
origin: io.prestosql/presto-orc

private void flushStripe(FlushReason flushReason)
    throws IOException
{
  List<OrcDataOutput> outputData = new ArrayList<>();
  long stripeStartOffset = orcDataSink.size();
  // add header to first stripe (this is not required but nice to have)
  if (closedStripes.isEmpty()) {
    outputData.add(createDataOutput(MAGIC));
    stripeStartOffset += MAGIC.length();
  }
  // add stripe data
  outputData.addAll(bufferStripeData(stripeStartOffset, flushReason));
  // if the file is being closed, add the file footer
  if (flushReason == CLOSED) {
    outputData.addAll(bufferFileFooter());
  }
  // write all data
  orcDataSink.write(outputData);
  // open next stripe
  columnWriters.forEach(ColumnWriter::reset);
  dictionaryCompressionOptimizer.reset();
  rowGroupRowCount = 0;
  stripeRowCount = 0;
  bufferedBytes = toIntExact(columnWriters.stream().mapToLong(ColumnWriter::getBufferedBytes).sum());
}
origin: prestosql/presto

private void flushStripe(FlushReason flushReason)
    throws IOException
{
  List<OrcDataOutput> outputData = new ArrayList<>();
  long stripeStartOffset = orcDataSink.size();
  // add header to first stripe (this is not required but nice to have)
  if (closedStripes.isEmpty()) {
    outputData.add(createDataOutput(MAGIC));
    stripeStartOffset += MAGIC.length();
  }
  // add stripe data
  outputData.addAll(bufferStripeData(stripeStartOffset, flushReason));
  // if the file is being closed, add the file footer
  if (flushReason == CLOSED) {
    outputData.addAll(bufferFileFooter());
  }
  // write all data
  orcDataSink.write(outputData);
  // open next stripe
  columnWriters.forEach(ColumnWriter::reset);
  dictionaryCompressionOptimizer.reset();
  rowGroupRowCount = 0;
  stripeRowCount = 0;
  bufferedBytes = toIntExact(columnWriters.stream().mapToLong(ColumnWriter::getBufferedBytes).sum());
}
origin: io.prestosql/presto-orc

public void reset()
{
  rowCount = 0;
  optimizer.reset();
  for (TestDictionaryColumn dictionaryColumn : dictionaryColumns) {
    dictionaryColumn.reset();
  }
}
io.prestosql.orcDictionaryCompressionOptimizerreset

Popular methods of DictionaryCompressionOptimizer

  • <init>
  • estimateIndexBytesPerValue
  • finalOptimize
  • isFull
  • optimize
  • convertLowCompressionStreams
  • currentCompressionRatio
  • getDictionaryMemoryBytes
  • getMaxDirectBytes
  • selectDictionaryColumnToConvert
    Choose a dictionary column to convert to direct encoding. We do this by predicting the compression r
  • tryConvertToDirect
  • tryConvertToDirect

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Table (org.hibernate.mapping)
    A relational table
  • Best IntelliJ plugins
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