@Namespace(value="arrow") @Properties(inherit=arrow.class) public class Decimal128 extends BasicDecimal128
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounterbit_width| Constructor and Description |
|---|
Decimal128() |
Decimal128(BasicDecimal128 value)
\endcond
|
Decimal128(byte[] bytes) |
Decimal128(ByteBuffer bytes) |
Decimal128(BytePointer bytes) |
Decimal128(long size)
Native array allocator.
|
Decimal128(long high,
long low) |
Decimal128(Pointer p)
Pointer cast constructor.
|
Decimal128(String value)
\brief Parse the number from a base 10 string representation.
|
| Modifier and Type | Method and Description |
|---|---|
long |
asLong()
\brief Cast this value to an int64_t.
|
Decimal128PairResult |
Divide(Decimal128 divisor)
Divide this number by right and return the result.
|
static Decimal128Result |
FromBigEndian(byte[] data,
int length) |
static Decimal128Result |
FromBigEndian(ByteBuffer data,
int length) |
static Decimal128Result |
FromBigEndian(BytePointer data,
int length)
\brief Convert from a big-endian byte representation.
|
static Decimal128Result |
FromReal(double real,
int precision,
int scale) |
static Decimal128Result |
FromReal(float real,
int precision,
int scale) |
static Decimal128Result |
FromString(BytePointer s) |
static Status |
FromString(BytePointer s,
Decimal128 out,
int[] precision) |
static Status |
FromString(BytePointer s,
Decimal128 out,
int[] precision,
int[] scale) |
static Status |
FromString(BytePointer s,
Decimal128 out,
IntBuffer precision) |
static Status |
FromString(BytePointer s,
Decimal128 out,
IntBuffer precision,
IntBuffer scale) |
static Status |
FromString(BytePointer s,
Decimal128 out,
IntPointer precision) |
static Status |
FromString(BytePointer s,
Decimal128 out,
IntPointer precision,
IntPointer scale) |
static Decimal128Result |
FromString(String s) |
static Status |
FromString(String s,
Decimal128 out,
int[] precision) |
static Status |
FromString(String s,
Decimal128 out,
int[] precision,
int[] scale) |
static Status |
FromString(String s,
Decimal128 out,
IntBuffer precision) |
static Status |
FromString(String s,
Decimal128 out,
IntBuffer precision,
IntBuffer scale) |
static Status |
FromString(String s,
Decimal128 out,
IntPointer precision) |
static Status |
FromString(String s,
Decimal128 out,
IntPointer precision,
IntPointer scale)
\brief Convert a decimal string to a Decimal128 value, optionally including
precision and scale if they're passed in and not null.
|
Decimal128 |
getPointer(long i) |
Decimal128 |
position(long position) |
Decimal128Result |
Rescale(int original_scale,
int new_scale)
\brief Convert Decimal128 from one scale to another
|
double |
ToDouble(int scale)
\brief Convert to a floating-point number (scaled)
|
float |
ToFloat(int scale)
\brief Convert to a floating-point number (scaled)
|
String |
ToIntegerString()
\brief Convert the value to an integer string
|
String |
ToString(int scale)
\brief Convert the Decimal128 value to a base 10 decimal string with the given
scale.
|
Abs, Abs, addPut, andPut, bit_width, CountLeadingBinaryZeros, Divide, dividePut, FitsInPrecision, GetMaxValue, GetScaleMultiplier, GetWholeAndFraction, high_bits, IncreaseScaleBy, low_bits, multiplyPut, Negate, orPut, ReduceScaleBy, ReduceScaleBy, Rescale, shiftLeftPut, shiftRightPut, Sign, subtractPut, ToBytes, ToBytes, ToBytes, ToBytesaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Decimal128()
public Decimal128(@Cast(value="const uint8_t*") BytePointer bytes)
public Decimal128(@Cast(value="const uint8_t*") ByteBuffer bytes)
public Decimal128(Pointer p)
Pointer(Pointer).public Decimal128(long size)
Pointer.position(long).public Decimal128(@Const @ByRef BasicDecimal128 value)
\brief constructor creates a Decimal128 from a BasicDecimal128.
public Decimal128(@StdString String value)
public Decimal128 position(long position)
position in class BasicDecimal128public Decimal128 getPointer(long i)
getPointer in class BasicDecimal128@ByVal public Decimal128PairResult Divide(@Const @ByRef Decimal128 divisor)
divisor - [in] the number to divide by@StdString public String ToString(int scale)
@StdString public String ToIntegerString()
@Cast(value="int64_t") @Name(value="operator int64_t") public long asLong()
@ByVal public static Status FromString(@StdString String s, Decimal128 out, IntPointer precision, IntPointer scale)
@ByVal public static Status FromString(@StdString String s, Decimal128 out, IntPointer precision)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, IntBuffer precision, IntBuffer scale)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, IntBuffer precision)
@ByVal public static Status FromString(@StdString String s, Decimal128 out, int[] precision, int[] scale)
@ByVal public static Status FromString(@StdString String s, Decimal128 out, int[] precision)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, IntPointer precision, IntPointer scale)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, IntPointer precision)
@ByVal public static Status FromString(@StdString String s, Decimal128 out, IntBuffer precision, IntBuffer scale)
@ByVal public static Status FromString(@StdString String s, Decimal128 out, IntBuffer precision)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, int[] precision, int[] scale)
@ByVal public static Status FromString(@StdString BytePointer s, Decimal128 out, int[] precision)
@ByVal public static Decimal128Result FromString(@StdString String s)
@ByVal public static Decimal128Result FromString(@StdString BytePointer s)
@ByVal public static Decimal128Result FromReal(double real, int precision, int scale)
@ByVal public static Decimal128Result FromReal(float real, int precision, int scale)
@ByVal public static Decimal128Result FromBigEndian(@Cast(value="const uint8_t*") BytePointer data, int length)
@ByVal public static Decimal128Result FromBigEndian(@Cast(value="const uint8_t*") ByteBuffer data, int length)
@ByVal public static Decimal128Result FromBigEndian(@Cast(value="const uint8_t*") byte[] data, int length)
@ByVal public Decimal128Result Rescale(int original_scale, int new_scale)
public float ToFloat(int scale)
public double ToDouble(int scale)
Copyright © 2021. All rights reserved.