Confluo  0.1.0
Public Member Functions | Public Attributes | List of all members
confluo.rpc.schema.SchemaBuilder Class Reference

Public Member Functions

def __init__ (self)
 
def add_column (self, data_type, name, min_value=None, max_value=None)
 
def build (self)
 

Public Attributes

 user_provided_ts_
 
 offset_
 
 columns_
 

Detailed Description

Builder of a schema for the atomic multilog.

Constructor & Destructor Documentation

◆ __init__()

def confluo.rpc.schema.SchemaBuilder.__init__ (   self)
Initializes a default schema builder.

Member Function Documentation

◆ add_column()

def confluo.rpc.schema.SchemaBuilder.add_column (   self,
  data_type,
  name,
  min_value = None,
  max_value = None 
)
Adds a column to the schema builder.

Args:
    data_type: The data type of the column.
    name: The name of the column.
    min_value: The minimum value of the column.
    max_value: The maximum value of the column.

◆ build()

def confluo.rpc.schema.SchemaBuilder.build (   self)
Builds a schema by returning the list of columns.

Returns:
    A list of columns that make up the schema.

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