Fletchgen
The Fletcher Design Generator
Public Member Functions | Static Public Member Functions | List of all members
fletchgen::SchemaSet Class Reference

A named set of schemas. More...

#include <schema.h>

Inheritance diagram for fletchgen::SchemaSet:
Inheritance graph
[legend]
Collaboration diagram for fletchgen::SchemaSet:
Collaboration graph
[legend]

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< SchemaSetMake (const std::string &name)
 Make a new, empty SchemaSet, and return a shared pointer to it.
 

Detailed Description

A named set of schemas.

Definition at line 71 of file schema.h.


The documentation for this class was generated from the following files: