use of org.apache.druid.segment.column.ColumnCapabilities in project druid by apache.
the class RowBasedColumnSelectorFactoryTest method testCapabilitiesFloat.
@Test
public void testCapabilitiesFloat() {
ColumnCapabilities caps = RowBasedColumnSelectorFactory.getColumnCapabilities(ROW_SIGNATURE, FLOAT_COLUMN_NAME);
Assert.assertEquals(ValueType.FLOAT, caps.getType());
Assert.assertFalse(caps.hasBitmapIndexes());
Assert.assertFalse(caps.isDictionaryEncoded().isTrue());
Assert.assertFalse(caps.areDictionaryValuesSorted().isTrue());
Assert.assertFalse(caps.areDictionaryValuesUnique().isTrue());
Assert.assertFalse(caps.hasMultipleValues().isMaybeTrue());
Assert.assertFalse(caps.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by apache.
the class RowBasedColumnSelectorFactoryTest method testCapabilitiesLongArray.
@Test
public void testCapabilitiesLongArray() {
ColumnCapabilities caps = RowBasedColumnSelectorFactory.getColumnCapabilities(ROW_SIGNATURE, LONG_ARRAY_COLUMN_NAME);
Assert.assertEquals(ColumnType.LONG_ARRAY, caps.toColumnType());
Assert.assertFalse(caps.hasBitmapIndexes());
Assert.assertFalse(caps.isDictionaryEncoded().isTrue());
Assert.assertFalse(caps.areDictionaryValuesSorted().isTrue());
Assert.assertFalse(caps.areDictionaryValuesUnique().isTrue());
Assert.assertTrue(caps.hasMultipleValues().isFalse());
Assert.assertFalse(caps.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by apache.
the class RowBasedColumnSelectorFactoryTest method testCapabilitiesLong.
@Test
public void testCapabilitiesLong() {
ColumnCapabilities caps = RowBasedColumnSelectorFactory.getColumnCapabilities(ROW_SIGNATURE, LONG_COLUMN_NAME);
Assert.assertEquals(ValueType.LONG, caps.getType());
Assert.assertFalse(caps.hasBitmapIndexes());
Assert.assertFalse(caps.isDictionaryEncoded().isTrue());
Assert.assertFalse(caps.areDictionaryValuesSorted().isTrue());
Assert.assertFalse(caps.areDictionaryValuesUnique().isTrue());
Assert.assertFalse(caps.hasMultipleValues().isMaybeTrue());
Assert.assertFalse(caps.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by apache.
the class RowBasedColumnSelectorFactoryTest method testCapabilitiesDoubleArray.
@Test
public void testCapabilitiesDoubleArray() {
ColumnCapabilities caps = RowBasedColumnSelectorFactory.getColumnCapabilities(ROW_SIGNATURE, DOUBLE_ARRAY_COLUMN_NAME);
Assert.assertEquals(ColumnType.DOUBLE_ARRAY, caps.toColumnType());
Assert.assertFalse(caps.hasBitmapIndexes());
Assert.assertFalse(caps.isDictionaryEncoded().isTrue());
Assert.assertFalse(caps.areDictionaryValuesSorted().isTrue());
Assert.assertFalse(caps.areDictionaryValuesUnique().isTrue());
Assert.assertTrue(caps.hasMultipleValues().isFalse());
Assert.assertFalse(caps.hasSpatialIndexes());
}
use of org.apache.druid.segment.column.ColumnCapabilities in project druid by apache.
the class RowBasedStorageAdapterTest method test_getColumnCapabilities_long.
@Test
public void test_getColumnCapabilities_long() {
final RowBasedStorageAdapter<Integer> adapter = createIntAdapter(0, 1, 2);
final ColumnCapabilities capabilities = adapter.getColumnCapabilities(ValueType.LONG.name());
Assert.assertEquals(ValueType.LONG, capabilities.getType());
Assert.assertFalse(capabilities.hasMultipleValues().isMaybeTrue());
}
Aggregations