Fletchgen
The Fletcher Design Generator
|
A named set of schemas. More...
#include <schema.h>
Public Member Functions | |
SchemaSet (std::string name) | |
SchemaSet constructor. | |
bool | RequiresReading () const |
Determine whether any schema in this set requires reading from memory. | |
bool | RequiresWriting () const |
Determine whether any schema in this set requires writing to memory. | |
bool | HasSchemaWithName (const std::string &name) const |
Return true if set contains schema with some name, false otherwise. | |
std::optional< std::shared_ptr< FletcherSchema > > | GetSchema (const std::string &name) const |
Optionally return a schema with name, if it exists. | |
void | AppendSchema (const std::shared_ptr< arrow::Schema > &schema) |
Append a schema. | |
std::vector< std::shared_ptr< FletcherSchema > > | schemas () const |
Return all schemas of this schemaset. | |
std::vector< std::shared_ptr< FletcherSchema > > | read_schemas () const |
Return all schemas with read mode. | |
std::vector< std::shared_ptr< FletcherSchema > > | write_schemas () const |
Return all schemas with write mode. | |
void | Sort () |
Sort the schemas by name, then by read/write mode. | |
Static Public Member Functions | |
static std::shared_ptr< SchemaSet > | Make (const std::string &name) |
Make a new, empty SchemaSet, and return a shared pointer to it. | |