use of org.apache.druid.segment.column.ColumnCapabilities in project druid by druid-io.
the class ColumnSelectorBitmapIndexSelector method hasMultipleValues.
@Override
public ColumnCapabilities.Capable hasMultipleValues(final String dimension) {
if (isVirtualColumn(dimension)) {
VirtualColumn virtualColumn = virtualColumns.getVirtualColumn(dimension);
ColumnCapabilities virtualCapabilities = null;
if (virtualColumn != null) {
virtualCapabilities = virtualColumn.capabilities(QueryableIndexStorageAdapter.getColumnInspectorForIndex(index), dimension);
}
return virtualCapabilities != null ? virtualCapabilities.hasMultipleValues() : ColumnCapabilities.Capable.FALSE;
}
final ColumnHolder columnHolder = index.getColumnHolder(dimension);
// the empty bitmap will be used
return columnHolder != null ? columnHolder.getCapabilities().hasMultipleValues() : ColumnCapabilities.Capable.FALSE;
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by druid-io.
the class IndexedTableJoinableTest method getColumnCapabilitiesForLongColumn.
@Test
public void getColumnCapabilitiesForLongColumn() {
final ColumnCapabilities capabilities = target.getColumnCapabilities("long");
Assert.assertEquals(ValueType.LONG, capabilities.getType());
Assert.assertFalse(capabilities.isDictionaryEncoded().isTrue());
Assert.assertFalse(capabilities.hasBitmapIndexes());
Assert.assertFalse(capabilities.hasMultipleValues().isMaybeTrue());
Assert.assertFalse(capabilities.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by druid-io.
the class IndexedTableJoinableTest method getColumnCapabilitiesForStringColumn.
@Test
public void getColumnCapabilitiesForStringColumn() {
final ColumnCapabilities capabilities = target.getColumnCapabilities("str");
Assert.assertEquals(ValueType.STRING, capabilities.getType());
Assert.assertTrue(capabilities.isDictionaryEncoded().isTrue());
Assert.assertFalse(capabilities.hasBitmapIndexes());
Assert.assertFalse(capabilities.hasMultipleValues().isMaybeTrue());
Assert.assertFalse(capabilities.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by druid-io.
the class IndexedTableJoinableTest method getColumnCapabilitiesForNonexistentColumnShouldReturnNull.
@Test
public void getColumnCapabilitiesForNonexistentColumnShouldReturnNull() {
final ColumnCapabilities capabilities = target.getColumnCapabilities("nonexistent");
Assert.assertNull(capabilities);
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by druid-io.
the class HashJoinSegmentStorageAdapterTest method test_getColumnCapabilities_factToCountryNonexistentJoinColumn.
@Test
public void test_getColumnCapabilities_factToCountryNonexistentJoinColumn() {
final ColumnCapabilities capabilities = makeFactToCountrySegment().getColumnCapabilities(FACT_TO_COUNTRY_ON_ISO_CODE_PREFIX + "nonexistent");
Assert.assertNull(capabilities);
}
Aggregations