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

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

Best Java code snippets using org.apache.druid.segment.column.ColumnCapabilitiesImpl.setHasSpatialIndexes (Showing top 7 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

 capabilities.setHasSpatialIndexes(true);
} else {
 DimensionHandler handler = DimensionHandlerUtils.getHandlerFromCapabilities(
origin: apache/incubator-druid

@Test(expected = IllegalArgumentException.class)
public void testCloser() throws Exception
{
 final long timestamp = System.currentTimeMillis();
 IncrementalIndex toPersist = IncrementalIndexTest.createIndex(null);
 IncrementalIndexTest.populateIndex(timestamp, toPersist);
 ColumnCapabilitiesImpl capabilities = (ColumnCapabilitiesImpl) toPersist.getCapabilities("dim1");
 capabilities.setHasSpatialIndexes(true);
 final File tempDir = temporaryFolder.newFolder();
 final File v8TmpDir = new File(tempDir, "v8-tmp");
 final File v9TmpDir = new File(tempDir, "v9-tmp");
 try {
  indexMerger.persist(toPersist, tempDir, indexSpec, null);
 }
 finally {
  if (v8TmpDir.exists()) {
   Assert.fail("v8-tmp dir not clean.");
  }
  if (v9TmpDir.exists()) {
   Assert.fail("v9-tmp dir not clean.");
  }
 }
}
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

@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

 capabilities.setHasSpatialIndexes(true);
} else {
 DimensionHandler handler = DimensionHandlerUtils.getHandlerFromCapabilities(
org.apache.druid.segment.columnColumnCapabilitiesImplsetHasSpatialIndexes

Popular methods of ColumnCapabilitiesImpl

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 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