/** * Returns the requested clustering columns. * * @param options the query options * @return the requested clustering columns */ public NavigableSet<Clustering> getClusteringColumns(QueryOptions options) { // If this is a names command and the table is a static compact one, then as far as CQL is concerned we have // only a single row which internally correspond to the static parts. In which case we want to return an empty // set (since that's what ClusteringIndexNamesFilter expects). if (cfm.isStaticCompactTable()) return BTreeSet.empty(cfm.comparator); return clusteringColumnsRestrictions.valuesAsClustering(options); }
/** * Returns the requested clustering columns. * * @param options the query options * @return the requested clustering columns */ public NavigableSet<Clustering> getClusteringColumns(QueryOptions options) { // If this is a names command and the table is a static compact one, then as far as CQL is concerned we have // only a single row which internally correspond to the static parts. In which case we want to return an empty // set (since that's what ClusteringIndexNamesFilter expects). if (cfm.isStaticCompactTable()) return BTreeSet.empty(cfm.comparator); return clusteringColumnsRestrictions.valuesAsClustering(options); }
/** * Returns the requested clustering columns. * * @param options the query options * @return the requested clustering columns */ public NavigableSet<Clustering> getClusteringColumns(QueryOptions options) { // If this is a names command and the table is a static compact one, then as far as CQL is concerned we have // only a single row which internally correspond to the static parts. In which case we want to return an empty // set (since that's what ClusteringIndexNamesFilter expects). if (cfm.isStaticCompactTable()) return BTreeSet.empty(cfm.comparator); return clusteringColumnsRestrictions.valuesAsClustering(options); }