@Override public int getPartitionKeyLength() { return indexStrategy.getPartitionKeyLength(); }
public static int getBitPositionFromSubsamplingArray( final NumericIndexStrategy indexStrategy, final double[] maxResolutionSubsamplingPerDimension) { return getBitPositionOnSortKeyFromSubsamplingArray( indexStrategy, maxResolutionSubsamplingPerDimension) + (8 * indexStrategy.getPartitionKeyLength()); }
@Override public int getPartitionKeyLength() { return subStrategy1.getPartitionKeyLength() + subStrategy2.getPartitionKeyLength(); }
public Pair<byte[], byte[]> getPartitionAndSortKey(final Index index) { final int partitionKeyLength = index.getIndexStrategy().getPartitionKeyLength(); final int indexIdLength = StringUtils.stringToBinary(index.getName()).length; if (dataId.getBytes().length < (indexIdLength + partitionKeyLength)) { return null; } else { final byte[] partitionKey = Arrays.copyOfRange(dataId.getBytes(), indexIdLength, indexIdLength + partitionKeyLength); final byte[] sortKey = Arrays.copyOfRange( dataId.getBytes(), indexIdLength + partitionKeyLength, dataId.getBytes().length); return ImmutablePair.of(partitionKey, sortKey); } }
public HBaseReader( final RecordReaderParams recordReaderParams, final HBaseOperations operations) { this.readerParams = null; this.recordReaderParams = recordReaderParams; this.operations = operations; this.partitionKeyLength = recordReaderParams.getIndex().getIndexStrategy().getPartitionKeyLength(); this.wholeRowEncoding = recordReaderParams.isMixedVisibility(); this.clientSideRowMerging = recordReaderParams.isClientsideRowMerging(); this.rowTransformer = (GeoWaveRowIteratorTransformer<T>) GeoWaveRowIteratorTransformer.NO_OP_TRANSFORMER; this.scanProvider = createScanProvider( (RangeReaderParams<T>) recordReaderParams, operations, this.clientSideRowMerging); initRecordScanner(); }
final int partitionKeyLength = indexStrategy.getPartitionKeyLength();
private boolean inBounds(final Cell cell) { final GeoWaveKeyImpl cellKey = new GeoWaveKeyImpl( cell.getRowArray(), indexStrategy.getPartitionKeyLength(), cell.getRowOffset(), cell.getRowLength()); final byte[] sortKey = cellKey.getSortKey(); final byte[] partitionKey = cellKey.getPartitionKey(); final MultiDimensionalCoordinates coordinates = indexStrategy.getCoordinatesPerDimension(partitionKey, sortKey); return rangeCache.inBounds(coordinates); } }
scanner = getScannedResults(scan, indexName); for (final Result result : scanner) { deleter.delete(new HBaseRow(result, index.getIndexStrategy().getPartitionKeyLength()));
public HBaseReader(final ReaderParams<T> readerParams, final HBaseOperations operations) { this.readerParams = readerParams; this.recordReaderParams = null; this.operations = operations; this.partitionKeyLength = readerParams.getIndex().getIndexStrategy().getPartitionKeyLength(); this.wholeRowEncoding = readerParams.isMixedVisibility() && !readerParams.isServersideAggregation(); this.clientSideRowMerging = readerParams.isClientsideRowMerging(); this.rowTransformer = readerParams.getRowTransformer(); this.scanProvider = createScanProvider(readerParams, operations, this.clientSideRowMerging); if (readerParams.isServersideAggregation()) { this.scanner = null; scanIt = (Iterator) operations.aggregateServerSide(readerParams); } else { initScanner(); } }
final int partitionKeyLength = indexStrategy.getPartitionKeyLength();
readerParams.getIndex().getIndexStrategy().getPartitionKeyLength());