rename put to putString to make it easier for ides to find references
This commit is contained in:
@@ -283,7 +283,7 @@ public class QueryCompletionIndex implements AutoCloseable {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
return VariableByteEncoder.encode(stringCompressor.put(field));
|
||||
return VariableByteEncoder.encode(stringCompressor.putString(field));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -387,7 +387,7 @@ public class QueryCompletionIndex implements AutoCloseable {
|
||||
public SortedSet<String> find(final DateTimeRange dateRange, final Tag tag, final String field) {
|
||||
|
||||
final SortedSet<String> result = new TreeSet<>();
|
||||
final int tagBKey = stringCompressor.put(field);
|
||||
final int tagBKey = stringCompressor.putString(field);
|
||||
final Tag tagB = new Tag(tagBKey, -1); // the value must be negative for the prefix search to work. See
|
||||
// EncoderTwoTags
|
||||
final TwoTags keyPrefix = new TwoTags(tag, tagB);
|
||||
@@ -410,7 +410,7 @@ public class QueryCompletionIndex implements AutoCloseable {
|
||||
public SortedSet<String> findAllValuesForField(final DateTimeRange dateRange, final String field) {
|
||||
|
||||
final SortedSet<String> result = new TreeSet<>();
|
||||
final int tagKey = stringCompressor.put(field);
|
||||
final int tagKey = stringCompressor.putString(field);
|
||||
final Tag keyPrefix = new Tag(tagKey, -1); // the value must be negative for the prefix search to work. See
|
||||
|
||||
final PartitionIdSource partitionIdSource = new DatePartitioner(dateRange);
|
||||
|
||||
@@ -21,12 +21,12 @@ class TagEncoderDecoder implements EncoderDecoder<Tag> {
|
||||
final String key = stringCompressor.getKeyAsString(tag);
|
||||
final byte[] result;
|
||||
if (!key.isEmpty()) {
|
||||
final Integer keyAsLong = stringCompressor.put(key);
|
||||
final Integer keyAsLong = stringCompressor.putString(key);
|
||||
keyAndValueCompressed.add(keyAsLong);
|
||||
|
||||
final String value = stringCompressor.getValueAsString(tag);
|
||||
if (!value.isEmpty()) {
|
||||
final Integer valueAsLong = stringCompressor.put(value);
|
||||
final Integer valueAsLong = stringCompressor.putString(value);
|
||||
keyAndValueCompressed.add(valueAsLong);
|
||||
}
|
||||
result = VariableByteEncoder.encode(keyAndValueCompressed);
|
||||
|
||||
Reference in New Issue
Block a user