public RowFilter getPostIndexQueryFilter(RowFilter filter) { return getTargetExpression(filter.getExpressions()).map(filter::without) .orElse(filter); }
public RowFilter getPostIndexQueryFilter(RowFilter filter) { return getTargetExpression(filter.getExpressions()).map(filter::without) .orElse(filter); }
public RowFilter getPostIndexQueryFilter(RowFilter filter) { return getTargetExpression(filter.getExpressions()).map(filter::without) .orElse(filter); }
public Collection<RowFilter.Expression> getExpressions() { return command.rowFilter().getExpressions(); }
public Collection<RowFilter.Expression> getExpressions() { return command.rowFilter().getExpressions(); }
public Collection<RowFilter.Expression> getExpressions() { return command.rowFilter().getExpressions(); }
@Override public void validate(ReadCommand command) throws InvalidRequestException { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { ByteBuffer indexValue = target.get().getIndexValue(); checkFalse(indexValue.remaining() > FBUtilities.MAX_UNSIGNED_SHORT, "Index expression values may not be larger than 64K"); } }
@Override public void validate(ReadCommand command) throws InvalidRequestException { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { ByteBuffer indexValue = target.get().getIndexValue(); checkFalse(indexValue.remaining() > FBUtilities.MAX_UNSIGNED_SHORT, "Index expression values may not be larger than 64K"); } }
@Override public void validate(ReadCommand command) throws InvalidRequestException { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { ByteBuffer indexValue = target.get().getIndexValue(); checkFalse(indexValue.remaining() > FBUtilities.MAX_UNSIGNED_SHORT, "Index expression values may not be larger than 64K"); } }
public Index.Searcher searcherFor(ReadCommand command) { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { switch (getIndexMetadata().kind) { case COMPOSITES: return new CompositesSearcher(command, target.get(), this); case KEYS: return new KeysSearcher(command, target.get(), this); default: throw new IllegalStateException(String.format("Unsupported index type %s for index %s on %s", metadata.kind, metadata.name, indexedColumn.name.toString())); } } return null; }
public Index.Searcher searcherFor(ReadCommand command) { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { switch (getIndexMetadata().kind) { case COMPOSITES: return new CompositesSearcher(command, target.get(), this); case KEYS: return new KeysSearcher(command, target.get(), this); default: throw new IllegalStateException(String.format("Unsupported index type %s for index %s on %s", metadata.kind, metadata.name, indexedColumn.name.toString())); } } return null; }
public Index.Searcher searcherFor(ReadCommand command) { Optional<RowFilter.Expression> target = getTargetExpression(command.rowFilter().getExpressions()); if (target.isPresent()) { switch (getIndexMetadata().kind) { case COMPOSITES: return new CompositesSearcher(command, target.get(), this); case KEYS: return new KeysSearcher(command, target.get(), this); default: throw new IllegalStateException(String.format("Unsupported index type %s for index %s on %s", metadata.kind, metadata.name, indexedColumn.name.toString())); } } return null; }