-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathInterface.py
More file actions
executable file
·20 lines (15 loc) · 829 Bytes
/
Interface.py
File metadata and controls
executable file
·20 lines (15 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Interface(object):
"""Dummy Class that serves as a interface that all Sketches and Bloom Filters must implement
"""
def __init__(self):
super(Interface,self).__init__()
def add(self,item):
raise NotImplementedError("Method is not implemented for class "+str(type(self))[17:-2])
def getNumberEstimate(self):
raise NotImplementedError("Method is not implemented for class "+str(type(self))[17:-2])
def join(self,*args):
raise NotImplementedError("Method is not implemented for class "+str(type(self))[17:-2])
def getName(self):
raise NotImplementedError("Method is not implemented for class "+str(type(self))[17:-2])
def __sizeof__(self):
raise NotImplementedError("Method is not implemented for class "+str(type(self))[17:-2])