Ejemplo n.º 1
0
 def properties(self, options=None):
     """
     Grab properties and values that can be generated.
     :param options:
     :type options:
     :return:
     :rtype:
     """
     unordered = introspect(self.rebulk, options).properties
     ordered = OrderedDict()
     for k in sorted(unordered.keys(), key=six.text_type):
         ordered[k] = list(sorted(unordered[k], key=six.text_type))
     return ordered
Ejemplo n.º 2
0
 def properties(self, options=None):
     """
     Grab properties and values that can be generated.
     :param options:
     :type options:
     :return:
     :rtype:
     """
     unordered = introspect(self.rebulk, options).properties
     ordered = OrderedDict()
     for k in sorted(unordered.keys(), key=six.text_type):
         ordered[k] = list(sorted(unordered[k], key=six.text_type))
     return ordered
Ejemplo n.º 3
0
 def properties(self, options=None):
     """
     Grab properties and values that can be generated.
     :param options:
     :type options:
     :return:
     :rtype:
     """
     options = self.configure(options)
     unordered = introspect(self.rebulk, options).properties
     ordered = OrderedDict()
     for k in sorted(unordered.keys(), key=six.text_type):
         ordered[k] = list(sorted(unordered[k], key=six.text_type))
     if hasattr(self.rebulk, 'customize_properties'):
         ordered = self.rebulk.customize_properties(ordered)
     return ordered
Ejemplo n.º 4
0
 def properties(self, options=None):
     """
     Grab properties and values that can be generated.
     :param options:
     :type options:
     :return:
     :rtype:
     """
     options = parse_options(options, True)
     options = self._fix_encoding(options)
     config = self.configure(options, sanitize_options=False)
     options = merge_options(config, options)
     unordered = introspect(self.rebulk, options).properties
     ordered = OrderedDict()
     for k in sorted(unordered.keys(), key=str):
         ordered[k] = list(sorted(unordered[k], key=str))
     if hasattr(self.rebulk, 'customize_properties'):
         ordered = self.rebulk.customize_properties(ordered)
     return ordered
Ejemplo n.º 5
0
 def properties(self, options=None):
     """
     Grab properties and values that can be generated.
     :param options:
     :type options:
     :return:
     :rtype:
     """
     options = parse_options(options, True)
     options = self._fix_encoding(options)
     config = self.configure(options, sanitize_options=False)
     options = merge_options(config, options)
     unordered = introspect(self.rebulk, options).properties
     ordered = OrderedDict()
     for k in sorted(unordered.keys(), key=six.text_type):
         ordered[k] = list(sorted(unordered[k], key=six.text_type))
     if hasattr(self.rebulk, 'customize_properties'):
         ordered = self.rebulk.customize_properties(ordered)
     return ordered