Tabnine Logo
ColumnCapabilitiesImpl.setHasMultipleValues
Code IndexAdd Tabnine to your IDE (free)

How to use
setHasMultipleValues
method
in
org.apache.druid.segment.column.ColumnCapabilitiesImpl

Best Java code snippets using org.apache.druid.segment.column.ColumnCapabilitiesImpl.setHasMultipleValues (Showing top 8 results out of 315)

origin: apache/incubator-druid

 public ColumnHolder build()
 {
  Preconditions.checkState(type != null, "Type must be set.");

  return new SimpleColumnHolder(
    new ColumnCapabilitiesImpl()
      .setType(type)
      .setDictionaryEncoded(dictionaryEncoded)
      .setHasBitmapIndexes(bitmapIndex != null)
      .setHasSpatialIndexes(spatialIndex != null)
      .setHasMultipleValues(hasMultipleValues)
      .setFilterable(filterable),
    columnSupplier,
    bitmapIndex,
    spatialIndex
  );
 }
}
origin: apache/incubator-druid

 dimsKey != null &&
 handler.getLengthOfEncodedKeyComponent(dimsKey) > 1) {
capabilities.setHasMultipleValues(true);
origin: apache/incubator-druid

TestColumn(ValueType type)
{
 columnCapabilities = new ColumnCapabilitiesImpl()
   .setType(type)
   .setDictionaryEncoded(type == ValueType.STRING) // set a fake value to make string columns
   .setHasBitmapIndexes(type == ValueType.STRING)
   .setHasSpatialIndexes(false)
   .setHasMultipleValues(false);
}
origin: apache/incubator-druid

timeCapabilities = new ColumnCapabilitiesImpl().setType(ValueType.LONG).setHasMultipleValues(false);
origin: apache/incubator-druid

@Test
public void testSerde() throws Exception
{
 String json = mapper.writeValueAsString(new ColumnCapabilitiesImpl()
                       .setDictionaryEncoded(true)
                       .setHasBitmapIndexes(true)
                       .setHasMultipleValues(true)
                       .setHasSpatialIndexes(true)
                       .setType(ValueType.COMPLEX)
                       .setFilterable(true));
 Assert.assertFalse(json.contains("filterable"));
 
 ColumnCapabilities cc = mapper.readValue(json, ColumnCapabilitiesImpl.class);
 Assert.assertEquals(ValueType.COMPLEX, cc.getType());
 Assert.assertTrue(cc.isDictionaryEncoded());
 Assert.assertFalse(cc.isRunLengthEncoded());
 Assert.assertTrue(cc.hasSpatialIndexes());
 Assert.assertTrue(cc.hasMultipleValues());
 Assert.assertTrue(cc.hasBitmapIndexes());
 Assert.assertFalse(cc.isFilterable());
}
origin: org.apache.druid/druid-processing

 public ColumnHolder build()
 {
  Preconditions.checkState(type != null, "Type must be set.");

  return new SimpleColumnHolder(
    new ColumnCapabilitiesImpl()
      .setType(type)
      .setDictionaryEncoded(dictionaryEncoded)
      .setHasBitmapIndexes(bitmapIndex != null)
      .setHasSpatialIndexes(spatialIndex != null)
      .setHasMultipleValues(hasMultipleValues)
      .setFilterable(filterable),
    columnSupplier,
    bitmapIndex,
    spatialIndex
  );
 }
}
origin: org.apache.druid/druid-processing

 dimsKey != null &&
 handler.getLengthOfEncodedKeyComponent(dimsKey) > 1) {
capabilities.setHasMultipleValues(true);
origin: org.apache.druid/druid-processing

timeCapabilities = new ColumnCapabilitiesImpl().setType(ValueType.LONG).setHasMultipleValues(false);
org.apache.druid.segment.columnColumnCapabilitiesImplsetHasMultipleValues

Popular methods of ColumnCapabilitiesImpl

  • <init>
  • setType
  • setDictionaryEncoded
  • setHasBitmapIndexes
  • setHasSpatialIndexes
  • setFilterable
  • getType
  • hasBitmapIndexes
  • hasMultipleValues
  • merge

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Path (java.nio.file)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now