@Namespace(value="arrow::dataset") @NoOffset @Properties(inherit=arrow_dataset.class) public class CsvFileFormat extends FileFormat
\brief A FileFormat implementation that reads from and writes to Csv files
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CsvFileFormat()
Default native constructor.
|
CsvFileFormat(long size)
Native array allocator.
|
CsvFileFormat(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
LongOptionalFuture |
CountRows(FileFragment file,
Expression predicate,
ScanOptions options) |
FileWriteOptions |
DefaultWriteOptions()
\brief Get default write options for this format.
|
boolean |
Equals(FileFormat other) |
CsvFileFormat |
getPointer(long i) |
SchemaResult |
Inspect(FileSource source)
\brief Return the schema of the file if possible.
|
BoolResult |
IsSupported(FileSource source)
\brief Indicate if the FileSource is supported/readable by this format.
|
FileWriterResult |
MakeWriter(OutputStream destination,
Schema schema,
FileWriteOptions options,
FileLocator destination_locator)
\brief Create a writer for this format.
|
CsvParseOptions |
parse_options()
Options affecting the parsing of CSV files
|
CsvFileFormat |
parse_options(CsvParseOptions setter) |
CsvFileFormat |
position(long position) |
RecordBatchGeneratorResult |
ScanBatchesAsync(ScanOptions scan_options,
FileFragment file) |
ScanTaskIteratorResult |
ScanFile(ScanOptions options,
FileFragment fragment)
\brief Open a file for scanning
|
String |
type_name()
\brief The name identifying the kind of file format
|
default_fragment_scan_options, default_fragment_scan_options, MakeFragment, MakeFragment, MakeFragment, MakeFragment
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public CsvFileFormat()
public CsvFileFormat(long size)
Pointer.position(long)
.public CsvFileFormat(Pointer p)
Pointer(Pointer)
.public CsvFileFormat position(long position)
public CsvFileFormat getPointer(long i)
getPointer
in class Pointer
@ByRef public CsvParseOptions parse_options()
public CsvFileFormat parse_options(CsvParseOptions setter)
@StdString public String type_name()
FileFormat
type_name
in class FileFormat
@Cast(value="bool") public boolean Equals(@Const @ByRef FileFormat other)
Equals
in class FileFormat
@ByVal public BoolResult IsSupported(@Const @ByRef FileSource source)
FileFormat
IsSupported
in class FileFormat
@ByVal public SchemaResult Inspect(@Const @ByRef FileSource source)
Inspect
in class FileFormat
@ByVal public ScanTaskIteratorResult ScanFile(@SharedPtr ScanOptions options, @Const @SharedPtr @ByRef FileFragment fragment)
ScanFile
in class FileFormat
@ByVal public RecordBatchGeneratorResult ScanBatchesAsync(@SharedPtr ScanOptions scan_options, @Const @SharedPtr @ByRef FileFragment file)
ScanBatchesAsync
in class FileFormat
@ByVal public LongOptionalFuture CountRows(@Const @SharedPtr @ByRef FileFragment file, @ByVal Expression predicate, @SharedPtr ScanOptions options)
CountRows
in class FileFormat
@ByVal public FileWriterResult MakeWriter(@SharedPtr OutputStream destination, @SharedPtr @ByVal Schema schema, @SharedPtr FileWriteOptions options, @ByVal FileLocator destination_locator)
FileFormat
MakeWriter
in class FileFormat
@SharedPtr public FileWriteOptions DefaultWriteOptions()
FileFormat
DefaultWriteOptions
in class FileFormat
Copyright © 2022. All rights reserved.