@Namespace(value="arrow::util") @Properties(inherit=arrow.class) public class Codec extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description | 
|---|
| Codec(Pointer p)Pointer cast constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| LongResult | Compress(long input_len,
        byte[] input,
        long output_buffer_len,
        byte[] output_buffer) | 
| LongResult | Compress(long input_len,
        ByteBuffer input,
        long output_buffer_len,
        ByteBuffer output_buffer) | 
| LongResult | Compress(long input_len,
        BytePointer input,
        long output_buffer_len,
        BytePointer output_buffer)\brief One-shot compression function
 
  output_buffer_len must first have been computed using MaxCompressedLen(). | 
| int | compression_level()\brief This Codec's compression level, if applicable | 
| Compression.type | compression_type()\brief This Codec's compression type | 
| static CodecResult | Create(Compression.type codec) | 
| static CodecResult | Create(Compression.type codec,
      int compression_level)\brief Create a codec for the given compression algorithm | 
| static CodecResult | Create(int codec) | 
| static CodecResult | Create(int codec,
      int compression_level) | 
| LongResult | Decompress(long input_len,
          byte[] input,
          long output_buffer_len,
          byte[] output_buffer) | 
| LongResult | Decompress(long input_len,
          ByteBuffer input,
          long output_buffer_len,
          ByteBuffer output_buffer) | 
| LongResult | Decompress(long input_len,
          BytePointer input,
          long output_buffer_len,
          BytePointer output_buffer)\brief One-shot decompression function
 
  output_buffer_len must be correct and therefore be obtained in advance. | 
| int | default_compression_level()\brief Return the default compression level | 
| static IntResult | DefaultCompressionLevel(Compression.type codec)\brief Return the default compression level
  Note: This function creates a temporary Codec instance | 
| static IntResult | DefaultCompressionLevel(int codec) | 
| static String | GetCodecAsString(Compression.type t)\brief Return a string name for compression type | 
| static BytePointer | GetCodecAsString(int t) | 
| static CompressionTypeResult | GetCompressionType(BytePointer name) | 
| static CompressionTypeResult | GetCompressionType(String name)\brief Return compression type for name (all upper case) | 
| static boolean | IsAvailable(Compression.type codec)\brief Return true if support for indicated codec has been enabled | 
| static boolean | IsAvailable(int codec) | 
| CompressorResult | MakeCompressor()\brief Create a streaming compressor instance | 
| DecompressorResult | MakeDecompressor()\brief Create a streaming compressor instance | 
| long | MaxCompressedLen(long input_len,
                byte[] input) | 
| long | MaxCompressedLen(long input_len,
                ByteBuffer input) | 
| long | MaxCompressedLen(long input_len,
                BytePointer input) | 
| int | maximum_compression_level()\brief Return the largest supported compression level | 
| static IntResult | MaximumCompressionLevel(Compression.type codec)\brief Return the largest supported compression level for the codec
  Note: This function creates a temporary Codec instance | 
| static IntResult | MaximumCompressionLevel(int codec) | 
| int | minimum_compression_level()\brief Return the smallest supported compression level | 
| static IntResult | MinimumCompressionLevel(Compression.type codec)\brief Return the smallest supported compression level for the codec
  Note: This function creates a temporary Codec instance | 
| static IntResult | MinimumCompressionLevel(int codec) | 
| String | name()\brief The name of this Codec's compression type | 
| static boolean | SupportsCompressionLevel(Compression.type codec)\brief Return true if indicated codec supports setting a compression level | 
| static boolean | SupportsCompressionLevel(int codec) | 
| static int | UseDefaultCompressionLevel()\brief Return special value to indicate that a codec implementation
  should use its default compression level | 
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Codec(Pointer p)
Pointer(Pointer).public static int UseDefaultCompressionLevel()
@StdString public static String GetCodecAsString(Compression.type t)
@StdString public static BytePointer GetCodecAsString(@Cast(value="arrow::Compression::type") int t)
@ByVal public static CompressionTypeResult GetCompressionType(@StdString String name)
@ByVal public static CompressionTypeResult GetCompressionType(@StdString BytePointer name)
@ByVal public static CodecResult Create(Compression.type codec, int compression_level)
@ByVal public static CodecResult Create(Compression.type codec)
@ByVal public static CodecResult Create(@Cast(value="arrow::Compression::type") int codec, int compression_level)
@ByVal public static CodecResult Create(@Cast(value="arrow::Compression::type") int codec)
@Cast(value="bool") public static boolean IsAvailable(Compression.type codec)
@Cast(value="bool") public static boolean IsAvailable(@Cast(value="arrow::Compression::type") int codec)
@Cast(value="bool") public static boolean SupportsCompressionLevel(Compression.type codec)
@Cast(value="bool") public static boolean SupportsCompressionLevel(@Cast(value="arrow::Compression::type") int codec)
@ByVal public static IntResult MinimumCompressionLevel(Compression.type codec)
@ByVal public static IntResult MinimumCompressionLevel(@Cast(value="arrow::Compression::type") int codec)
@ByVal public static IntResult MaximumCompressionLevel(Compression.type codec)
@ByVal public static IntResult MaximumCompressionLevel(@Cast(value="arrow::Compression::type") int codec)
@ByVal public static IntResult DefaultCompressionLevel(Compression.type codec)
@ByVal public static IntResult DefaultCompressionLevel(@Cast(value="arrow::Compression::type") int codec)
public int minimum_compression_level()
public int maximum_compression_level()
public int default_compression_level()
@ByVal public LongResult Decompress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") BytePointer input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") BytePointer output_buffer)
@ByVal public LongResult Decompress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") ByteBuffer input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") ByteBuffer output_buffer)
@ByVal public LongResult Decompress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") byte[] input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") byte[] output_buffer)
@ByVal public LongResult Compress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") BytePointer input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") BytePointer output_buffer)
@ByVal public LongResult Compress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") ByteBuffer input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") ByteBuffer output_buffer)
@ByVal public LongResult Compress(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") byte[] input, @Cast(value="int64_t") long output_buffer_len, @Cast(value="uint8_t*") byte[] output_buffer)
@Cast(value="int64_t") public long MaxCompressedLen(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") BytePointer input)
@Cast(value="int64_t") public long MaxCompressedLen(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") ByteBuffer input)
@Cast(value="int64_t") public long MaxCompressedLen(@Cast(value="int64_t") long input_len, @Cast(value="const uint8_t*") byte[] input)
@ByVal public CompressorResult MakeCompressor()
@ByVal public DecompressorResult MakeDecompressor()
public Compression.type compression_type()
@StdString public String name()
public int compression_level()
Copyright © 2022. All rights reserved.