@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class SchemaBuilder extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaBuilder.ConflictPolicy |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
SchemaBuilder() |
SchemaBuilder(FieldVector fields) |
SchemaBuilder(FieldVector fields,
int conflict_policy,
Field.MergeOptions field_merge_options) |
SchemaBuilder(FieldVector fields,
SchemaBuilder.ConflictPolicy conflict_policy,
Field.MergeOptions field_merge_options)
\brief Construct a SchemaBuilder from a list of fields
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE. |
SchemaBuilder(int conflict_policy,
Field.MergeOptions field_merge_options) |
SchemaBuilder(long size)
Native array allocator.
|
SchemaBuilder(Pointer p)
Pointer cast constructor.
|
SchemaBuilder(Schema schema) |
SchemaBuilder(SchemaBuilder.ConflictPolicy conflict_policy,
Field.MergeOptions field_merge_options)
\brief Construct an empty SchemaBuilder
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE. |
SchemaBuilder(Schema schema,
int conflict_policy,
Field.MergeOptions field_merge_options) |
SchemaBuilder(Schema schema,
SchemaBuilder.ConflictPolicy conflict_policy,
Field.MergeOptions field_merge_options)
\brief Construct a SchemaBuilder from a schema, preserving the metadata
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE. |
| Modifier and Type | Method and Description |
|---|---|
Status |
AddField(Field field)
\brief Add a field to the constructed schema.
|
Status |
AddFields(FieldVector fields)
\brief Add multiple fields to the constructed schema.
|
Status |
AddMetadata(KeyValueMetadata metadata) |
Status |
AddSchema(Schema schema)
\brief Add fields of a Schema to the constructed Schema.
|
Status |
AddSchemas(SchemaVector schemas)
\brief Add fields of multiple Schemas to the constructed Schema.
|
static Status |
AreCompatible(SchemaVector schemas) |
static Status |
AreCompatible(SchemaVector schemas,
int policy) |
static Status |
AreCompatible(SchemaVector schemas,
SchemaBuilder.ConflictPolicy policy)
\brief Indicate if schemas are compatible to merge according to policy.
|
SchemaResult |
Finish()
\brief Return the constructed Schema.
|
SchemaBuilder |
getPointer(long i) |
static SchemaResult |
Merge(SchemaVector schemas) |
static SchemaResult |
Merge(SchemaVector schemas,
int policy) |
static SchemaResult |
Merge(SchemaVector schemas,
SchemaBuilder.ConflictPolicy policy)
\brief Merge schemas in a unified schema according to policy.
|
SchemaBuilder.ConflictPolicy |
policy()
\brief Return the conflict resolution method.
|
SchemaBuilder |
position(long position) |
void |
Reset()
\brief Reset internal state with an empty schema (and metadata).
|
void |
SetPolicy(int resolution) |
void |
SetPolicy(SchemaBuilder.ConflictPolicy resolution)
\brief Set the conflict resolution method.
|
address, 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, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic SchemaBuilder(Pointer p)
Pointer(Pointer).public SchemaBuilder(long size)
Pointer.position(long).public SchemaBuilder(SchemaBuilder.ConflictPolicy conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE.public SchemaBuilder()
public SchemaBuilder(@Cast(value="arrow::SchemaBuilder::ConflictPolicy") int conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
public SchemaBuilder(@ByVal FieldVector fields, SchemaBuilder.ConflictPolicy conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE.public SchemaBuilder(@ByVal FieldVector fields)
public SchemaBuilder(@ByVal FieldVector fields, @Cast(value="arrow::SchemaBuilder::ConflictPolicy") int conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
public SchemaBuilder(@Const @SharedPtr @ByRef Schema schema, SchemaBuilder.ConflictPolicy conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
field_merge_options is only effective when conflict_policy == CONFLICT_MERGE.public SchemaBuilder(@Const @SharedPtr @ByRef Schema schema)
public SchemaBuilder(@Const @SharedPtr @ByRef Schema schema, @Cast(value="arrow::SchemaBuilder::ConflictPolicy") int conflict_policy, @ByVal(nullValue="arrow::Field::MergeOptions::Defaults()") Field.MergeOptions field_merge_options)
public SchemaBuilder position(long position)
public SchemaBuilder getPointer(long i)
getPointer in class Pointerpublic SchemaBuilder.ConflictPolicy policy()
public void SetPolicy(SchemaBuilder.ConflictPolicy resolution)
@ByVal public Status AddField(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) Field field)
field - [in] to add to the constructed Schema.@ByVal public Status AddFields(@Const @ByRef FieldVector fields)
fields - [in] to add to the constructed Schema.@ByVal public Status AddSchema(@Const @SharedPtr @ByRef Schema schema)
schema - [in] to take fields to add to the constructed Schema.@ByVal public Status AddSchemas(@Const @ByRef SchemaVector schemas)
schemas - [in] to take fields to add to the constructed Schema.@ByVal public Status AddMetadata(@Const @ByRef KeyValueMetadata metadata)
@ByVal public SchemaResult Finish()
@ByVal public static SchemaResult Merge(@Const @ByRef SchemaVector schemas, SchemaBuilder.ConflictPolicy policy)
@ByVal public static SchemaResult Merge(@Const @ByRef SchemaVector schemas)
@ByVal public static SchemaResult Merge(@Const @ByRef SchemaVector schemas, @Cast(value="arrow::SchemaBuilder::ConflictPolicy") int policy)
@ByVal public static Status AreCompatible(@Const @ByRef SchemaVector schemas, SchemaBuilder.ConflictPolicy policy)
@ByVal public static Status AreCompatible(@Const @ByRef SchemaVector schemas)
@ByVal public static Status AreCompatible(@Const @ByRef SchemaVector schemas, @Cast(value="arrow::SchemaBuilder::ConflictPolicy") int policy)
public void Reset()
Copyright © 2021. All rights reserved.