@@ -0,0 +1,1255 @@
+/*%0A * Copyright (c) 2017 Strapdata (http://www.strapdata.com)%0A * Contains some code from Elasticsearch (http://www.elastic.co)%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except in compliance with%0A * the License. You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.elassandra.index;%0A%0Aimport org.apache.cassandra.utils.UUIDGen;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Date;%0Aimport java.util.Locale;%0Aimport java.util.UUID;%0A%0Apublic class TimeUUIDPartitionFunction implements PartitionFunction %7B%0A    @Override%0A    public String format(String pattern, Object... args) %7B%0A        return String.format(Locale.ROOT, pattern,  %0A                Arrays.stream(args)%0A                    .map(x -%3E %7B return (x instanceof UUID) ? new Date(UUIDGen.unixTimestamp((UUID)x)) : x; %7D)%0A                    .toArray(Object%5B%5D::new));%0A    %7D%0A%7D%0A

Add TimeUUID partition function