@Namespace(value="arrow::csv") @Properties(inherit=arrow.class) public class ConvertOptions extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ConvertOptions()
Default native constructor.
|
ConvertOptions(long size)
Native array allocator.
|
ConvertOptions(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
auto_dict_encode()
Whether to try to automatically dict-encode string / binary data.
|
ConvertOptions |
auto_dict_encode(boolean setter) |
int |
auto_dict_max_cardinality() |
ConvertOptions |
auto_dict_max_cardinality(int setter) |
boolean |
check_utf8()
Whether to check UTF8 validity of string columns
|
ConvertOptions |
check_utf8(boolean setter) |
StringDataTypeMap |
column_types()
Optional per-column types (disabling type inference on those columns)
|
ConvertOptions |
column_types(StringDataTypeMap setter) |
static ConvertOptions |
Defaults()
Create conversion options with default values, including conventional
values for
null_values, true_values and false_values |
StringVector |
false_values()
Recognized spellings for boolean false values
|
ConvertOptions |
false_values(StringVector setter) |
ConvertOptions |
getPointer(long i) |
StringVector |
include_columns()
If non-empty, indicates the names of columns from the CSV file that should
be actually read and converted (in the vector's order).
|
ConvertOptions |
include_columns(StringVector setter) |
boolean |
include_missing_columns()
If false, columns in
include_columns but not in the CSV file will error out. |
ConvertOptions |
include_missing_columns(boolean setter) |
StringVector |
null_values()
Recognized spellings for null values
|
ConvertOptions |
null_values(StringVector setter) |
ConvertOptions |
position(long position) |
boolean |
strings_can_be_null()
Whether string / binary columns can have null values.
|
ConvertOptions |
strings_can_be_null(boolean setter) |
StringVector |
true_values()
Recognized spellings for boolean true values
|
ConvertOptions |
true_values(StringVector setter) |
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, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ConvertOptions()
public ConvertOptions(long size)
Pointer.position(long).public ConvertOptions(Pointer p)
Pointer(Pointer).public ConvertOptions position(long position)
public ConvertOptions getPointer(long i)
getPointer in class Pointer@Cast(value="bool") public boolean check_utf8()
public ConvertOptions check_utf8(boolean setter)
@ByRef public StringDataTypeMap column_types()
public ConvertOptions column_types(StringDataTypeMap setter)
@ByRef public StringVector null_values()
public ConvertOptions null_values(StringVector setter)
@ByRef public StringVector true_values()
public ConvertOptions true_values(StringVector setter)
@ByRef public StringVector false_values()
public ConvertOptions false_values(StringVector setter)
@Cast(value="bool") public boolean strings_can_be_null()
public ConvertOptions strings_can_be_null(boolean setter)
@Cast(value="bool") public boolean auto_dict_encode()
auto_dict_max_cardinality distinct values
(per chunk), after which it switches to regular encoding.
This setting is ignored for non-inferred columns (those in column_types).public ConvertOptions auto_dict_encode(boolean setter)
public int auto_dict_max_cardinality()
public ConvertOptions auto_dict_max_cardinality(int setter)
@ByRef public StringVector include_columns()
public ConvertOptions include_columns(StringVector setter)
@Cast(value="bool") public boolean include_missing_columns()
include_columns but not in the CSV file will error out.
If true, columns in include_columns but not in the CSV file will produce
a column of nulls (whose type is selected using column_types,
or null by default)
This option is ignored if include_columns is empty.public ConvertOptions include_missing_columns(boolean setter)
@ByVal public static ConvertOptions Defaults()
null_values, true_values and false_valuesCopyright © 2021. All rights reserved.