1 package prefuse.data.util; 2 3 import java.util.Comparator ; 4 5 import prefuse.util.collections.IntIterator; 6 7 8 18 public interface Index { 19 20 21 public static final int TYPE_ASCENDING = 1<<5; 22 23 public static final int TYPE_DESCENDING = 1<<4; 24 25 public static final int TYPE_LEFT_INCLUSIVE = 1<<3; 26 27 public static final int TYPE_LEFT_EXCLUSIVE = 1<<2; 28 29 public static final int TYPE_RIGHT_INCLUSIVE = 1<<1; 30 31 public static final int TYPE_RIGHT_EXCLUSIVE = 1; 32 33 34 public static final int TYPE_AII = 35 TYPE_ASCENDING | TYPE_LEFT_INCLUSIVE | TYPE_RIGHT_INCLUSIVE; 36 37 public static final int TYPE_DII = 38 TYPE_DESCENDING | TYPE_LEFT_INCLUSIVE | TYPE_RIGHT_INCLUSIVE; 39 41 public static final int TYPE_AEI = 42 TYPE_ASCENDING | TYPE_LEFT_EXCLUSIVE | TYPE_RIGHT_INCLUSIVE; 43 45 public static final int TYPE_DEI = 46 TYPE_DESCENDING | TYPE_LEFT_EXCLUSIVE | TYPE_RIGHT_INCLUSIVE; 47 49 public static final int TYPE_AIE = 50 TYPE_ASCENDING | TYPE_LEFT_INCLUSIVE | TYPE_RIGHT_EXCLUSIVE; 51 53 public static final int TYPE_DIE = 54 TYPE_DESCENDING | TYPE_LEFT_INCLUSIVE | TYPE_RIGHT_EXCLUSIVE; 55 56 public static final int TYPE_AEE = 57 TYPE_ASCENDING | TYPE_LEFT_EXCLUSIVE | TYPE_RIGHT_EXCLUSIVE; 58 59 public static final int TYPE_DEE = 60 TYPE_DESCENDING | TYPE_LEFT_EXCLUSIVE | TYPE_RIGHT_EXCLUSIVE; 61 62 65 public void index(); 66 67 70 public void dispose(); 71 72 76 public Comparator getComparator(); 77 78 82 public int minimum(); 83 84 88 public int maximum(); 89 90 94 public int median(); 95 96 100 public int uniqueCount(); 101 102 107 public int size(); 108 109 115 public IntIterator allRows(int type); 116 117 126 public IntIterator rows(Object lo, Object hi, int type); 127 128 137 public IntIterator rows(int lo, int hi, int type); 138 139 148 public IntIterator rows(long lo, long hi, int type); 149 150 159 public IntIterator rows(float lo, float hi, int type); 160 161 170 public IntIterator rows(double lo, double hi, int type); 171 172 177 public IntIterator rows(Object val); 178 179 184 public IntIterator rows(int val); 185 186 191 public IntIterator rows(long val); 192 193 198 public IntIterator rows(float val); 199 200 205 public IntIterator rows(double val); 206 207 212 public IntIterator rows(boolean val); 213 214 219 public int get(Object x); 220 221 226 public int get(int x); 227 228 233 public int get(long x); 234 235 240 public int get(float x); 241 242 247 public int get(double x); 248 249 } | Popular Tags |