edu.harvard.syrah.pyxida.knn
Class HyperCubeZoneManager
java.lang.Object
edu.harvard.syrah.pyxida.knn.HyperCubeZoneManager
- All Implemented Interfaces:
- ZoneManager
public class HyperCubeZoneManager
- extends java.lang.Object
- implements ZoneManager
Field Summary |
protected static edu.harvard.syrah.prp.Log |
slog
|
Constructor Summary |
HyperCubeZoneManager(int _dimensions,
double _dimensionSideLength,
double _zoneEdgeLength,
boolean _useAdjacentZones)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
slog
protected static edu.harvard.syrah.prp.Log slog
HyperCubeZoneManager
public HyperCubeZoneManager(int _dimensions,
double _dimensionSideLength,
double _zoneEdgeLength,
boolean _useAdjacentZones)
add
public void add(long stamp,
NodeDesc node)
- Specified by:
add
in interface ZoneManager
query
public void query(NodeDesc probeSrc,
java.util.SortedMap<java.lang.Double,NodeDesc> distance2nearbyNodes,
int maxReturnSize)
- Specified by:
query
in interface ZoneManager
toString
public java.lang.String toString()
- Specified by:
toString
in interface ZoneManager
- Overrides:
toString
in class java.lang.Object