Codota Logo
Compressor.unCompressedLength
Code IndexAdd Codota to your IDE (free)

How to use
unCompressedLength
method
in
org.apache.carbondata.core.datastore.compression.Compressor

Best Java code snippets using org.apache.carbondata.core.datastore.compression.Compressor.unCompressedLength (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.apache.carbondata/carbondata-core

int uncompressedSize = compressor.unCompressedLength(rawData.array(), copySourcePoint,
  dimensionColumnChunk.data_page_length);
if (null != reusableDataBuffer) {
origin: org.apache.carbondata/carbondata-core

@Override public void decodeAndFillVector(byte[] input, int offset, int length,
  ColumnVectorInfo vectorInfo, BitSet nullBits, boolean isLVEncoded, int pageSize,
  ReusableDataBuffer reusableDataBuffer)
  throws MemoryException, IOException {
 Compressor compressor =
   CompressorFactory.getInstance().getCompressor(meta.getCompressorName());
 byte[] unCompressData;
 if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
  int uncompressedLength = compressor.unCompressedLength(input, offset, length);
  unCompressData = reusableDataBuffer.getDataBuffer(uncompressedLength);
  compressor.rawUncompress(input, offset, length, unCompressData);
 } else {
  unCompressData = compressor.unCompressByte(input, offset, length);
 }
 converter.decodeAndFillVector(unCompressData, vectorInfo, nullBits, meta.getStoreDataType(),
   pageSize);
}
origin: org.apache.carbondata/carbondata-core

@Override public void decodeAndFillVector(byte[] input, int offset, int length,
  ColumnVectorInfo vectorInfo, BitSet nullBits, boolean isLVEncoded, int pageSize,
  ReusableDataBuffer reusableDataBuffer)
  throws MemoryException, IOException {
 Compressor compressor =
   CompressorFactory.getInstance().getCompressor(meta.getCompressorName());
 byte[] unCompressData;
 if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
  int uncompressedLength = compressor.unCompressedLength(input, offset, length);
  unCompressData = reusableDataBuffer.getDataBuffer(uncompressedLength);
  compressor.rawUncompress(input, offset, length, unCompressData);
 } else {
  unCompressData = compressor.unCompressByte(input, offset, length);
 }
 converter.decodeAndFillVector(unCompressData, vectorInfo, nullBits, meta.getStoreDataType(),
   pageSize);
}
origin: org.apache.carbondata/carbondata-core

if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
 uncompressedSize =
   compressor.unCompressedLength(pageData.array(), offset, pageMetadata.data_page_length);
 dataPage = reusableDataBuffer.getDataBuffer(uncompressedSize);
 compressor.rawUncompress(pageData.array(), offset, pageMetadata.data_page_length, dataPage);
origin: org.apache.carbondata/carbondata-core

@Override public void decodeAndFillVector(byte[] input, int offset, int length,
  ColumnVectorInfo vectorInfo, BitSet nullBits, boolean isLVEncoded, int pageSize,
  ReusableDataBuffer reusableDataBuffer) throws MemoryException, IOException {
 Compressor compressor =
   CompressorFactory.getInstance().getCompressor(meta.getCompressorName());
 byte[] unCompressData;
 if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
  int uncompressedLength = compressor.unCompressedLength(input, offset, length);
  unCompressData = reusableDataBuffer.getDataBuffer(uncompressedLength);
  compressor.rawUncompress(input, offset, length, unCompressData);
 } else {
  unCompressData = compressor.unCompressByte(input, offset, length);
 }
 if (DataTypes.isDecimal(meta.getSchemaDataType())) {
  TableSpec.ColumnSpec columnSpec = meta.getColumnSpec();
  DecimalConverterFactory.DecimalConverter decimalConverter =
    DecimalConverterFactory.INSTANCE
      .getDecimalConverter(columnSpec.getPrecision(), columnSpec.getScale());
  vectorInfo.decimalConverter = decimalConverter;
 }
 converter.decodeAndFillVector(unCompressData, vectorInfo, nullBits, meta.getStoreDataType(),
   pageSize);
}
origin: org.apache.carbondata/carbondata-core

@Override public void decodeAndFillVector(byte[] input, int offset, int length,
  ColumnVectorInfo vectorInfo, BitSet nullBits, boolean isLVEncoded, int pageSize,
  ReusableDataBuffer reusableDataBuffer)
  throws MemoryException, IOException {
 Compressor compressor =
   CompressorFactory.getInstance().getCompressor(meta.getCompressorName());
 byte[] unCompressData;
 if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
  int uncompressedLength = compressor.unCompressedLength(input, offset, length);
  unCompressData = reusableDataBuffer.getDataBuffer(uncompressedLength);
  compressor.rawUncompress(input, offset, length, unCompressData);
 } else {
  unCompressData = compressor.unCompressByte(input, offset, length);
 }
 if (DataTypes.isDecimal(meta.getSchemaDataType())) {
  TableSpec.ColumnSpec columnSpec = meta.getColumnSpec();
  DecimalConverterFactory.DecimalConverter decimalConverter =
    DecimalConverterFactory.INSTANCE
      .getDecimalConverter(columnSpec.getPrecision(), columnSpec.getScale());
  vectorInfo.decimalConverter = decimalConverter;
 }
 converter.decodeAndFillVector(unCompressData, vectorInfo, nullBits, meta.getStoreDataType(),
   pageSize);
}
origin: org.apache.carbondata/carbondata-core

ByteBuffer rawData = dimensionRawColumnChunk.getRawData();
int uncompressedSize = compressor
  .unCompressedLength(rawData.array(), (int) dimensionRawColumnChunk.getOffSet(),
    dimensionRawColumnChunk.getLength());
if (null != reusableDataBuffer) {
origin: org.apache.carbondata/carbondata-core

byte[] unCompressData;
if (null != reusableDataBuffer && compressor.supportReusableBuffer()) {
 uncompressedLength = compressor.unCompressedLength(input, offset, length);
 unCompressData = reusableDataBuffer.getDataBuffer(uncompressedLength);
 compressor.rawUncompress(input, offset, length, unCompressData);
org.apache.carbondata.core.datastore.compressionCompressorunCompressedLength

Popular methods of Compressor

  • getName
  • compressByte
  • rawUncompress
  • compressDouble
  • compressFloat
  • compressInt
  • compressLong
  • compressShort
  • maxCompressedLength
  • rawCompress
  • supportReusableBuffer
  • supportUnsafe
    Whether this compressor support zero-copy during compression. Zero-copy means that the compressor su
  • supportReusableBuffer,
  • supportUnsafe,
  • unCompressByte,
  • unCompressDouble,
  • unCompressFloat,
  • unCompressInt,
  • unCompressLong,
  • unCompressShort

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • onRequestPermissionsResult (Fragment)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now