public void readFields(final DataInput in) throws IOException, InstantiationException, IllegalAccessException { final boolean nullRange = in.readBoolean(); if (nullRange) { range = null; } else { range = new GeoWaveRowRange(); range.readFields(in); } location = in.readUTF(); cardinality = in.readDouble(); }
return new GeoWaveRowRange(null, startRow, stopRow, true, false); } else { byte[] partitionKey; boolean partitionKeyDiffers = false; if ((startRow == null) && (stopRow == null)) { return new GeoWaveRowRange(null, null, null, true, true); } else if (startRow != null) { partitionKey = ArrayUtils.subarray(startRow, 0, partitionKeyLength); partitionKey = ArrayUtils.subarray(stopRow, 0, partitionKeyLength); return new GeoWaveRowRange( partitionKey, startRow == null ? null
for (final ByteArray partitionKey : partitionKeys) { final GeoWaveRowRange gwRange = new GeoWaveRowRange(partitionKey.getBytes(), null, null, true, true); final double cardinality = getCardinality( new RangeLocationPair(new GeoWaveRowRange(null, null, null, true, false), 0.0));
protected static GeoWaveRowRange rangeIntersection( final GeoWaveRowRange thisRange, final GeoWaveRowRange otherRange) { final ByteArrayRange thisByteArrayRange = new ByteArrayRange(thisRange.getStartSortKey(), thisRange.getEndSortKey()); final ByteArrayRange otherByteArrayRange = new ByteArrayRange(otherRange.getStartSortKey(), otherRange.getEndSortKey()); final ByteArrayRange overlappingRange = thisByteArrayRange.intersection(otherByteArrayRange); return new GeoWaveRowRange( null, overlappingRange.getStart(), overlappingRange.getEnd(), true, false); } }
rangeLocationPair = new RangeLocationPair( new GeoWaveRowRange( rangeLocationPair.getRange().getPartitionKey(), rangeLocationPair.getRange().getStartSortKey(), final RangeLocationPair newPair = new RangeLocationPair( new GeoWaveRowRange( rangeLocationPair.getRange().getPartitionKey(), rangeLocationPair.getRange().getStartSortKey(), new GeoWaveRowRange( rangeLocationPair.getRange().getPartitionKey(), splitKey,