public Selection lessThan(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> head = index.headMap(value); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; } }
public Selection greaterThan(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap((byte) (value + 1)); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atLeast(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap(value); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atMost(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> head = index.headMap((byte) (value + 1)); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atMost(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> head = index.headMap((byte) (value + 1)); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection greaterThan(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap((byte) (value + 1)); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atLeast(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap(value); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection lessThan(byte value) { Selection selection = new BitmapBackedSelection(); Byte2ObjectSortedMap<IntArrayList> head = index.headMap(value); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; } }