@Override public byte[] apply(@Nullable String input) { return StringUtils.toUtf8WithNullToEmpty(input); } },
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.FLOAT_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.LONG_SUM_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.FLOAT_MIN_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.LONG_MIN_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_MIN_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_SUM_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.FLOAT_SUM_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.LONG_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
public CacheKeyBuilder appendString(@Nullable String input) { appendItem(STRING_KEY, StringUtils.toUtf8WithNullToEmpty(input)); return this; }
@Override public byte[] apply(@Nullable String input) { return StringUtils.toUtf8WithNullToEmpty(input); } },
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_SUM_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.LONG_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.LONG_MIN_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.FLOAT_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_MAX_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.FLOAT_SUM_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
@Override public byte[] getCacheKey() { byte[] fieldNameBytes = StringUtils.toUtf8WithNullToEmpty(fieldName); byte[] expressionBytes = StringUtils.toUtf8WithNullToEmpty(expression); return ByteBuffer.allocate(2 + fieldNameBytes.length + expressionBytes.length) .put(AggregatorUtil.DOUBLE_MIN_CACHE_TYPE_ID) .put(fieldNameBytes) .put(AggregatorUtil.STRING_SEPARATOR) .put(expressionBytes) .array(); }
public CacheKeyBuilder appendString(@Nullable String input) { appendItem(STRING_KEY, StringUtils.toUtf8WithNullToEmpty(input)); return this; }