Tabnine Logo
RoaringBitmapSerdeFactory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.druid.segment.data.RoaringBitmapSerdeFactory
constructor

Best Java code snippets using org.apache.druid.segment.data.RoaringBitmapSerdeFactory.<init> (Showing top 16 results out of 315)

origin: apache/incubator-druid

 public RoaringBitmapIndexMergerV9Test(
   CompressionStrategy compressionStrategy,
   CompressionStrategy dimCompressionStrategy,
   LongEncodingStrategy longEncodingStrategy,
   SegmentWriteOutMediumFactory segmentWriteOutMediumFactory
 )
 {
  super(
    new RoaringBitmapSerdeFactory(null),
    compressionStrategy,
    dimCompressionStrategy,
    longEncodingStrategy
  );
  indexMerger = TestHelper.getTestIndexMergerV9(segmentWriteOutMediumFactory);
 }
}
origin: apache/incubator-druid

private static IndexTuningConfig createTuningConfig()
{
 return new IndexTuningConfig(
   null,
   null, // null to compute maxRowsPerSegment automatically
   500000,
   1000000L,
   null,
   null,
   null,
   null,
   new IndexSpec(
     new RoaringBitmapSerdeFactory(true),
     CompressionStrategy.LZ4,
     CompressionStrategy.LZF,
     LongEncodingStrategy.LONGS
   ),
   5000,
   true,
   false,
   true,
   false,
   null,
   100L,
   null,
   null,
   null,
   null
 );
}
origin: apache/incubator-druid

 bitmapSerdeFactory = new ConciseBitmapSerdeFactory();
} else if (bitmapFactory instanceof RoaringBitmapFactory) {
 bitmapSerdeFactory = new RoaringBitmapSerdeFactory(null);
} else {
 throw new ISE(
origin: apache/incubator-druid

null,
new IndexSpec(
  new RoaringBitmapSerdeFactory(true),
  CompressionStrategy.LZ4,
  CompressionStrategy.LZF,
origin: apache/incubator-druid

@Test
public void testSerialization() throws Exception
{
 ObjectMapper mapper = new DefaultObjectMapper();
 Assert.assertEquals("{\"type\":\"roaring\",\"compressRunOnSerialization\":true}", mapper.writeValueAsString(new RoaringBitmapSerdeFactory(null)));
 Assert.assertEquals("{\"type\":\"roaring\",\"compressRunOnSerialization\":false}", mapper.writeValueAsString(new RoaringBitmapSerdeFactory(false)));
 Assert.assertEquals("{\"type\":\"roaring\",\"compressRunOnSerialization\":true}", mapper.writeValueAsString(new RoaringBitmapSerdeFactory(true)));
 Assert.assertEquals("{\"type\":\"concise\"}", mapper.writeValueAsString(new ConciseBitmapSerdeFactory()));
 Assert.assertEquals("{\"type\":\"concise\"}", mapper.writeValueAsString(BitmapSerde.createLegacyFactory()));
 Assert.assertEquals("{\"type\":\"concise\"}", mapper.writeValueAsString(new BitmapSerde.DefaultBitmapSerdeFactory()));
 Assert.assertEquals("{\"type\":\"concise\"}", mapper.writeValueAsString(new BitmapSerde.LegacyBitmapSerdeFactory()));
}
origin: apache/incubator-druid

final BitmapSerdeFactory serdeFactory = new RoaringBitmapSerdeFactory(null);
final List<Integer> ints = generateInts();
final GenericIndexed<String> dictionary = GenericIndexed.fromIterable(
origin: apache/incubator-druid

final BitmapSerdeFactory serdeFactory = new RoaringBitmapSerdeFactory(null);
final List<Integer> ints = generateInts();
final GenericIndexed<String> dictionary = GenericIndexed.fromIterable(
origin: apache/incubator-druid

@Parameterized.Parameters
public static Iterable<Object[]> constructorFeeder()
{
 return ImmutableList.of(
   new Object[]{new ConciseBitmapFactory(), new ConciseBitmapSerdeFactory()},
   new Object[]{new RoaringBitmapFactory(), new RoaringBitmapSerdeFactory(null)}
 );
}
origin: apache/incubator-druid

final BitmapSerdeFactory serdeFactory = new RoaringBitmapSerdeFactory(null);
final List<Integer> ints = generateInts();
final GenericIndexed<String> dictionary = GenericIndexed.fromIterable(
origin: apache/incubator-druid

null,
new IndexSpec(
  new RoaringBitmapSerdeFactory(true),
  CompressionStrategy.LZ4,
  CompressionStrategy.LZF,
origin: apache/incubator-druid

@Test
public void testSerde() throws Exception
{
 final ObjectMapper objectMapper = new DefaultObjectMapper();
 final String json = "{ \"bitmap\" : { \"type\" : \"roaring\" }, \"dimensionCompression\" : \"lz4\", \"metricCompression\" : \"lzf\""
           + ", \"longEncoding\" : \"auto\" }";
 final IndexSpec spec = objectMapper.readValue(json, IndexSpec.class);
 Assert.assertEquals(new RoaringBitmapSerdeFactory(null), spec.getBitmapSerdeFactory());
 Assert.assertEquals(CompressionStrategy.LZ4, spec.getDimensionCompression());
 Assert.assertEquals(CompressionStrategy.LZF, spec.getMetricCompression());
 Assert.assertEquals(CompressionFactory.LongEncodingStrategy.AUTO, spec.getLongEncoding());
 Assert.assertEquals(spec, objectMapper.readValue(objectMapper.writeValueAsBytes(spec), IndexSpec.class));
}
origin: apache/incubator-druid

  "roaring", new RoaringBitmapSerdeFactory(true)
);
origin: apache/incubator-druid

null,
new IndexSpec(
  new RoaringBitmapSerdeFactory(true),
  CompressionStrategy.LZ4,
  CompressionStrategy.LZF,
origin: apache/incubator-druid

null,
new IndexSpec(
  new RoaringBitmapSerdeFactory(true),
  CompressionStrategy.LZ4,
  CompressionStrategy.LZF,
origin: apache/incubator-druid

null,
new IndexSpec(
  new RoaringBitmapSerdeFactory(true),
  CompressionStrategy.LZ4,
  CompressionStrategy.LZF,
origin: org.apache.druid/druid-services

 bitmapSerdeFactory = new ConciseBitmapSerdeFactory();
} else if (bitmapFactory instanceof RoaringBitmapFactory) {
 bitmapSerdeFactory = new RoaringBitmapSerdeFactory(null);
} else {
 throw new ISE(
org.apache.druid.segment.dataRoaringBitmapSerdeFactory<init>

Popular methods of RoaringBitmapSerdeFactory

  • getCompressRunOnSerialization

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
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