@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class DecimalType extends FixedSizeBinaryType
\addtogroup numeric-datatypes \{
\brief Base type class for (fixed-size) decimal data
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_utf8, type_id| Constructor and Description |
|---|
DecimalType(int type_id,
int byte_width,
int precision,
int scale) |
DecimalType(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
DecimalSize(int precision)
\brief Returns the number of bytes needed for precision.
|
static DataTypeResult |
Make(int type_id,
int precision,
int scale)
Constructs concrete decimal types
|
int |
precision() |
int |
scale() |
asParametricType, asParametricType, bit_width, byte_width, is_utf8, layout, Make, name, ToString, type_id, type_nameAccept, Equals, Equals, field, fields, Hash, id, num_fieldsfingerprint, metadata_fingerprintaddress, 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 DecimalType(Pointer p)
Pointer(Pointer).@ByVal public static DataTypeResult Make(@Cast(value="arrow::Type::type") int type_id, int precision, int scale)
public int precision()
public int scale()
public static int DecimalSize(int precision)
Copyright © 2022. All rights reserved.