@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class Field extends Fingerprintable
| Modifier and Type | Class and Description |
|---|---|
static class |
Field.MergeOptions
\brief Options that control the behavior of
MergeWith. |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Field(BytePointer name,
DataType type) |
Field(BytePointer name,
DataType type,
boolean nullable,
KeyValueMetadata metadata) |
Field(Pointer p)
Pointer cast constructor.
|
Field(String name,
DataType type) |
Field(String name,
DataType type,
boolean nullable,
KeyValueMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
Field |
Copy() |
boolean |
Equals(Field other) |
boolean |
Equals(Field other,
boolean check_metadata)
\brief Indicate if fields are equals.
|
FieldVector |
Flatten() |
boolean |
HasMetadata()
\brief Return whether the field has non-empty metadata
|
boolean |
IsCompatibleWith(Field other)
\brief Indicate if fields are compatibles.
|
FieldResult |
MergeWith(Field other) |
FieldResult |
MergeWith(Field other,
Field.MergeOptions options)
\brief Merge the current field with a field of the same name.
|
KeyValueMetadata |
metadata()
\brief Return the field's attached metadata
|
String |
name()
\brief Return the field name
|
boolean |
nullable()
\brief Return whether the field is nullable
|
Field |
RemoveMetadata()
\brief Return a copy of this field without any metadata attached to it
|
String |
ToString() |
String |
ToString(boolean show_metadata)
\brief Return a string representation ot the field
|
DataType |
type()
\brief Return the field data type
|
Field |
WithMergedMetadata(KeyValueMetadata metadata)
\brief EXPERIMENTAL: Return a copy of this field with the given metadata
merged with existing metadata (any colliding keys will be overridden by
the passed metadata)
|
Field |
WithMetadata(KeyValueMetadata metadata)
\brief Return a copy of this field with the given metadata attached to it
|
Field |
WithName(BytePointer name) |
Field |
WithName(String name)
\brief Return a copy of this field with the replaced name.
|
Field |
WithNullable(boolean nullable)
\brief Return a copy of this field with the replaced nullability.
|
Field |
WithType(DataType type)
\brief Return a copy of this field with the replaced type.
|
fingerprint, 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, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Field(Pointer p)
Pointer(Pointer).public Field(@StdString String name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @Cast(value="bool") boolean nullable, @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByVal(nullValue="std::shared_ptr<const arrow::KeyValueMetadata>(nullptr)") KeyValueMetadata metadata)
public Field(@StdString String name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
public Field(@StdString BytePointer name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type, @Cast(value="bool") boolean nullable, @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByVal(nullValue="std::shared_ptr<const arrow::KeyValueMetadata>(nullptr)") KeyValueMetadata metadata)
public Field(@StdString BytePointer name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByVal public KeyValueMetadata metadata()
@Cast(value="bool") public boolean HasMetadata()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithMetadata(@Const @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByRef KeyValueMetadata metadata)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithMergedMetadata(@Const @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByRef KeyValueMetadata metadata)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field RemoveMetadata()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithType(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType type)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithName(@StdString String name)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithName(@StdString BytePointer name)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field WithNullable(@Cast(value="bool") boolean nullable)
@ByVal public FieldResult MergeWith(@Const @ByRef Field other, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions options)
options.
The metadata of the current field is preserved; the metadata of the other
field is discarded.@ByVal public FieldResult MergeWith(@Const @ByRef Field other)
@ByVal public FieldVector Flatten()
@Cast(value="bool") public boolean Equals(@Const @ByRef Field other, @Cast(value="bool") boolean check_metadata)
other - [in] field to check equality with.check_metadata - [in] controls if it should check for metadata
equality.@Cast(value="bool") public boolean IsCompatibleWith(@Const @ByRef Field other)
@StdString public String ToString(@Cast(value="bool") boolean show_metadata)
show_metadata - [in] when true, if KeyValueMetadata is non-empty,
print keys and values in the output@StdString public String ToString()
@StdString public String name()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType type()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field Copy()
Copyright © 2021. All rights reserved.