Skip to content

deaquino/Druid.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

DruidDotNet exposes a simple API to work with Druid.

Build

Build Status NuGet

Build history

Getting Started

Install-Package Druid.Net
var request = new IndexSpecBuilder("DataSourceName")
    .SetParser("string", "json", "TimestampField", "auto")
    //type of granularity, segment granularity, query granularity, intervals startDate and endDate
    .SetGranularity("uniform", new SimpleGranularity(SimpleGranularityTypes.Year),
        new SimpleGranularity(SimpleGranularityTypes.None), DateTime.Now.Date.AddDays(-1), DateTime.Now.Date)
    .SetFirehose(new LocalFirehose("/path", "*.json"))
    .SetForceExtendableShard(true)
    .AddDimensions("dimension1", "dimension2")
    .AddExcludedDimensions("dim_to_exclude")
    .AddMetric(new CountAggregator("count"))
    .GetRequest();

var api = new IndexerClient("http://druid.com:8081/");

var result = await api.IndexAndWait(request, TimeSpan.FromMinutes(1));

Roadmap

  • Indexer
    • Add Indexer Builder
    • Add Granularity Enum
    • Add Druid Index ViewModel / Mapping.
    • Add more Indexer Types.
    • Add more enums.
  • Query

📃 License

License

Releases

No releases published

Packages

No packages published