Tabnine Logo
ValueVector.getBufferSizeFor
Code IndexAdd Tabnine to your IDE (free)

How to use
getBufferSizeFor
method
in
org.apache.arrow.vector.ValueVector

Best Java code snippets using org.apache.arrow.vector.ValueVector.getBufferSizeFor (Showing top 3 results out of 315)

origin: dremio/dremio-oss

 @Override
 public int getBufferSizeFor(int recordCount) {
  int bufferSize = 0;
  for(final ValueVector vv : allocationVectors) {
   bufferSize += vv.getBufferSizeFor(recordCount);
  }
  return bufferSize;
 }
};
origin: org.apache.arrow/arrow-vector

@Override
public int getBufferSizeFor(final int valueCount) {
 if (valueCount == 0) {
  return 0;
 }
 long bufferSize = 0;
 for (final ValueVector v : (Iterable<ValueVector>) this) {
  bufferSize += v.getBufferSizeFor(valueCount);
 }
 return (int) bufferSize + (valueCount * TYPE_WIDTH);
}
origin: org.apache.arrow/arrow-vector

@Override
public int getBufferSizeFor(final int valueCount) {
 if (valueCount == 0) {
  return 0;
 }
 long bufferSize = 0;
 for (final ValueVector v : (Iterable<ValueVector>) this) {
  bufferSize += v.getBufferSizeFor(valueCount);
 }
 return (int) bufferSize;
}
org.apache.arrow.vectorValueVectorgetBufferSizeFor

Javadoc

Returns the number of bytes that is used by this vector if it holds the given number of values. The result will be the same as if setValueCount() were called, followed by calling getBufferSize(), but without any of the closing side-effects that setValueCount() implies wrt finishing off the population of a vector. Some operations might wish to use this to determine how much memory has been used by a vector so far, even though it is not finished being populated.

Popular methods of ValueVector

  • getField
    Get information about how this field is materialized.
  • getObject
    Get friendly type object from the vector.
  • isNull
    Check whether an element in the vector is null.
  • setValueCount
    Set number of values in the vector.
  • allocateNew
    Allocate new buffers. ValueVector implements logic to determine how much to allocate.
  • clear
    Release any owned ArrowBuf and reset the ValueVector to the initial state. If the vector has any chi
  • close
    Alternative to clear(). Allows use as an AutoCloseable in try-with-resources.
  • getValueCount
    Gets the number of values.
  • allocateNewSafe
    Allocates new buffers. ValueVector implements logic to determine how much to allocate.
  • getBufferSize
    Get the number of bytes used by this vector.
  • getBuffers
    Return the underlying buffers associated with this vector. Note that this doesn't impact the referen
  • getMinorType
  • getBuffers,
  • getMinorType,
  • getNullCount,
  • getReader,
  • getTransferPair,
  • setInitialCapacity,
  • getAllocator,
  • getDataBuffer,
  • getValidityBuffer

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JFrame (javax.swing)
  • Option (scala)
  • 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