#NEWLINE# def __init__( self , **kw ) : #NEWLINE# #INDENT# '\n        Constructor call creates a new data point. All fields must be present.\n\n        :note: Data points written when `bulk_size` is reached per Helper.\n        :warning: Data points are *immutable* (`namedtuples`).\n        ' #NEWLINE# cls = self . __class__ #NEWLINE# timestamp = kw . pop ( 'time' , self . _current_timestamp ( ) ) #NEWLINE# if ( sorted ( ( cls . _fields + cls . _tags ) ) != sorted ( kw . keys ( ) ) ) : #NEWLINE# #INDENT# raise NameError ( 'Expected {0}, got {1}.' . format ( sorted ( ( kw . _fields + cls . _tags ) ) , kw . keys ( ) ) ) #NEWLINE# #UNINDENT# cls . _datapoints [ cls . _series_name . format ( ** kw ) ] . append ( cls . _type ( time = timestamp , ** kw ) ) #NEWLINE# if ( cls . _autocommit and ( sum ( ( len ( series ) for series in cls . _datapoints . values ( ) ) ) >= cls . _bulk_size ) ) : #NEWLINE# #INDENT# cls . commit ( )