예제 #1
0
 def __init__(self, prefix, field):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, (field,))
     Rediston.__init__(self)
     self.field = field
예제 #2
0
 def __init__(self, prefix, fields):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, fields)
     Rediston.__init__(self)
     self.hasher = pyhash.fnv1a_64()
예제 #3
0
 def __init__(self, prefix, field):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, (field, ))
     Rediston.__init__(self)
     self.field = field
예제 #4
0
 def __init__(self, prefix, fields):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, fields)
     Rediston.__init__(self)
     self.hasher = pyhash.fnv1a_64()
예제 #5
0
 def __init__(self, prefix, fields, objectScoringCallback = None, delimiter = ' '):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, fields)
     Rediston.__init__(self)
     self.delimiter = delimiter
     self.scoringCallback = objectScoringCallback
예제 #6
0
 def __init__(self,
              prefix,
              fields,
              objectScoringCallback=None,
              delimiter=' '):
     '''
     Constructor
     '''
     AbstractKey.__init__(self, prefix, fields)
     Rediston.__init__(self)
     self.delimiter = delimiter
     self.scoringCallback = objectScoringCallback