<reponame>eig-2017/dedupe
from .base import FieldType
from dedupe import predicates

class ExactType(FieldType) :
    _predicate_functions = [predicates.wholeFieldPredicate]
    type = "Exact"

    @staticmethod
    def comparator(field_1, field_2) :
        if field_1 == field_2 :
            return 1
        else :
            return 0

from .base import FieldType
from dedupe import predicates

class ExactType(FieldType) :
    _predicate_functions = [predicates.wholeFieldPredicate]
    type = "Exact"

    @staticmethod
    def comparator(field_1, field_2) :
        if field_1 == field_2 :
            return 1
        else :
            return 0