@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class Schema extends Fingerprintable
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Schema(FieldVector fields) |
Schema(FieldVector fields,
KeyValueMetadata metadata) |
Schema(Pointer p)
Pointer cast constructor.
|
Schema(Schema arg0) |
| Modifier and Type | Method and Description |
|---|---|
SchemaResult |
AddField(int i,
Field field) |
Status |
CanReferenceFieldsByNames(StringVector names)
Indicate if fields named
names can be found unambiguously in the schema. |
boolean |
Equals(Schema other) |
boolean |
Equals(Schema other,
boolean check_metadata)
Returns true if all of the schema fields are equal
|
StringVector |
field_names() |
Field |
field(int i)
Return the ith schema element.
|
FieldVector |
fields() |
IntBuffer |
GetAllFieldIndices(BytePointer name) |
IntPointer |
GetAllFieldIndices(String name)
Return the indices of all fields having this name
|
FieldVector |
GetAllFieldsByName(BytePointer name) |
FieldVector |
GetAllFieldsByName(String name)
\brief Return the indices of all fields having this name in sorted order
|
Field |
GetFieldByName(BytePointer name) |
Field |
GetFieldByName(String name)
Returns null if name not found
|
int |
GetFieldIndex(BytePointer name) |
int |
GetFieldIndex(String name)
Returns -1 if name not found
|
boolean |
HasDistinctFieldNames()
\brief Indicate that the Schema has distinct field names.
|
boolean |
HasMetadata()
\brief Indicate that the Schema has non-empty KevValueMetadata
|
KeyValueMetadata |
metadata()
\brief The custom key-value metadata, if any
|
int |
num_fields()
\brief Return the number of fields (columns) in the schema
|
SchemaResult |
RemoveField(int i) |
Schema |
RemoveMetadata()
\brief Return copy of Schema without the KeyValueMetadata
|
SchemaResult |
SetField(int i,
Field field) |
String |
ToString() |
String |
ToString(boolean show_metadata)
\brief Render a string representation of the schema suitable for debugging
|
Schema |
WithMetadata(KeyValueMetadata metadata)
\brief Replace key-value metadata with new metadata
|
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 Schema(Pointer p)
Pointer(Pointer).public Schema(@ByVal FieldVector fields, @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByVal(nullValue="std::shared_ptr<const arrow::KeyValueMetadata>(nullptr)") KeyValueMetadata metadata)
public Schema(@ByVal FieldVector fields)
@Cast(value="bool") public boolean Equals(@Const @ByRef Schema other, @Cast(value="bool") boolean check_metadata)
public int num_fields()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field field(int i)
@Const @ByRef public FieldVector fields()
@ByVal public StringVector field_names()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field GetFieldByName(@StdString String name)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field GetFieldByName(@StdString BytePointer name)
@ByVal public FieldVector GetAllFieldsByName(@StdString String name)
@ByVal public FieldVector GetAllFieldsByName(@StdString BytePointer name)
public int GetFieldIndex(@StdString String name)
public int GetFieldIndex(@StdString BytePointer name)
@StdVector public IntPointer GetAllFieldIndices(@StdString String name)
@StdVector public IntBuffer GetAllFieldIndices(@StdString BytePointer name)
@ByVal public Status CanReferenceFieldsByNames(@Const @ByRef StringVector names)
names can be found unambiguously in the schema.@Const @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByRef public KeyValueMetadata metadata()
@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()
@ByVal public SchemaResult AddField(int i, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) Field field)
@ByVal public SchemaResult RemoveField(int i)
@ByVal public SchemaResult SetField(int i, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) Field field)
@SharedPtr @ByVal public Schema WithMetadata(@Const @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByRef KeyValueMetadata metadata)
metadata - [in] new KeyValueMetadata@SharedPtr @ByVal public Schema RemoveMetadata()
@Cast(value="bool") public boolean HasMetadata()
Copyright © 2021. All rights reserved.