@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class Decimal128Type extends DecimalType
Decimal128Type(7, 3) can exactly represent the numbers
1234.567 and -1234.567 (encoded internally as the 128-bit integers
1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567.
Decimal128Type has a maximum precision of 38 significant digits
(also available as Decimal128Type::kMaxPrecision).
If higher precision is needed, consider using Decimal256Type.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
kByteWidth |
static int |
kMaxPrecision |
static int |
kMinPrecision |
static int |
type_id |
is_utf8| Constructor and Description |
|---|
Decimal128Type(int precision,
int scale)
Decimal128Type constructor that aborts on invalid input.
|
Decimal128Type(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
kByteWidth() |
static int |
kMaxPrecision() |
static int |
kMinPrecision() |
static DataTypeResult |
Make(int precision,
int scale)
Decimal128Type constructor that returns an error on invalid input.
|
String |
name()
\brief A string name of the type, omitting any child fields
\note Experimental API
|
String |
ToString()
\brief A string representation of the type, including any children
|
static int |
type_id() |
static String |
type_name() |
DecimalSize, precision, scaleasParametricType, asParametricType, bit_width, byte_width, is_utf8, layout, MakeAccept, child, children, Equals, Equals, field, fields, Hash, id, num_children, num_fieldsfingerprint, metadata_fingerprintaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic static final int type_id
public static final int kMinPrecision
public static final int kMaxPrecision
public static final int kByteWidth
public Decimal128Type(Pointer p)
Pointer(Pointer).public Decimal128Type(int precision,
int scale)
@MemberGetter @Cast(value="const arrow::Type::type") public static int type_id()
public static String type_name()
@ByVal public static DataTypeResult Make(int precision, int scale)
@StdString public String ToString()
DataTypeToString in class FixedSizeBinaryType@StdString public String name()
DataTypename in class FixedSizeBinaryType@MemberGetter public static int kMinPrecision()
@MemberGetter public static int kMaxPrecision()
@MemberGetter public static int kByteWidth()
Copyright © 2021. All rights reserved.