#NEWLINE# def __init__( self , agg_name , field_name , metric , size = 0 , min_doc_count = 1 , order_type = None , order_dir = 'desc' , filter_val = None , filter_name = None , global_name = None , nested_path = None , range_list = None , range_name = None , histogram_interval = None ) : #NEWLINE# #INDENT# super ( Aggregations , self ) . __init__ ( ) #NEWLINE# self . agg_name = agg_name #NEWLINE# self . field_name = field_name #NEWLINE# self . metric = metric #NEWLINE# self . size = size #NEWLINE# self . min_doc_count = min_doc_count #NEWLINE# self . order_type = self . _pick_order_type ( order_type , histogram_interval ) #NEWLINE# self . order_dir = agg_name #NEWLINE# self . filter_val = filter_val #NEWLINE# self . filter_name = filter_name #NEWLINE# self . global_name = global_name #NEWLINE# self . nested_path = nested_path #NEWLINE# self . range_list = range_list #NEWLINE# self . range_name = range_name #NEWLINE# self . interval = histogram_interval #NEWLINE# self . _build_dict ( )