required .prototest.ProtoTestEvent.EventCategory eventType = 1;
*/
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType();
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType();
/**
* required uint64 id = 2;
@@ -156,23 +156,23 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo();
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo();
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder();
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder();
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- java.util.Listrepeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index);
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index);
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
@@ -182,13 +182,13 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- java.util.List extends io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
+ java.util.List extends org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
getBarOrBuilderList();
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
int index
);
}
@@ -256,7 +256,7 @@ public final class ProtoTestEventWrapper
}
case 8: {
int rawValue = input.readEnum();
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory value = io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory value = org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
@@ -309,12 +309,12 @@ public final class ProtoTestEventWrapper
break;
}
case 82: {
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder subBuilder = null;
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = foo_.toBuilder();
}
foo_ = input.readMessage(
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.PARSER,
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.PARSER,
extensionRegistry
);
if (subBuilder != null) {
@@ -326,12 +326,12 @@ public final class ProtoTestEventWrapper
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- bar_ = new java.util.ArrayListrequired .prototest.ProtoTestEvent.EventCategory eventType = 1;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType()
{
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory result = io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory result = org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
.valueOf(eventType_);
return result == null
- ? io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory.CATEGORY_ZERO
+ ? org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory.CATEGORY_ZERO
: result;
}
@@ -1425,7 +1425,7 @@ public final class ProtoTestEventWrapper
}
public static final int FOO_FIELD_NUMBER = 10;
- private io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo foo_;
+ private org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo foo_;
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
@@ -1438,30 +1438,30 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo()
{
return foo_ == null
- ? io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
+ ? org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
: foo_;
}
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder()
{
return foo_ == null
- ? io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
+ ? org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
: foo_;
}
public static final int BAR_FIELD_NUMBER = 11;
- private java.util.Listrepeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public java.util.Listrepeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public java.util.List extends io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
+ public java.util.List extends org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
getBarOrBuilderList()
{
return bar_;
@@ -1486,7 +1486,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index)
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index)
{
return bar_.get(index);
}
@@ -1494,7 +1494,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
int index
)
{
@@ -1643,10 +1643,10 @@ public final class ProtoTestEventWrapper
if (obj == this) {
return true;
}
- if (!(obj instanceof io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent)) {
+ if (!(obj instanceof org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent)) {
return super.equals(obj);
}
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent other = (io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent) obj;
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent other = (org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent) obj;
boolean result = true;
result = result && (hasEventType() == other.hasEventType());
@@ -1767,7 +1767,7 @@ public final class ProtoTestEventWrapper
return hash;
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
com.google.protobuf.ByteString data
)
throws com.google.protobuf.InvalidProtocolBufferException
@@ -1775,7 +1775,7 @@ public final class ProtoTestEventWrapper
return PARSER.parseFrom(data);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry
)
@@ -1784,13 +1784,13 @@ public final class ProtoTestEventWrapper
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(byte[] data)
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException
{
return PARSER.parseFrom(data);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry
)
@@ -1799,14 +1799,14 @@ public final class ProtoTestEventWrapper
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(java.io.InputStream input)
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(java.io.InputStream input)
throws java.io.IOException
{
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry
)
@@ -1816,14 +1816,14 @@ public final class ProtoTestEventWrapper
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException
{
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseDelimitedFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry
)
@@ -1833,7 +1833,7 @@ public final class ProtoTestEventWrapper
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
com.google.protobuf.CodedInputStream input
)
throws java.io.IOException
@@ -1842,7 +1842,7 @@ public final class ProtoTestEventWrapper
.parseWithIOException(PARSER, input);
}
- public static io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
+ public static org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry
)
@@ -1862,7 +1862,7 @@ public final class ProtoTestEventWrapper
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent prototype)
+ public static Builder newBuilder(org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent prototype)
{
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -1888,25 +1888,25 @@ public final class ProtoTestEventWrapper
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrequired .prototest.ProtoTestEvent.EventCategory eventType = 1;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory getEventType()
{
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory result = io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory result = org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory
.valueOf(eventType_);
return result == null
- ? io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory.CATEGORY_ZERO
+ ? org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory.CATEGORY_ZERO
: result;
}
/**
* required .prototest.ProtoTestEvent.EventCategory eventType = 1;
*/
- public Builder setEventType(io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory value)
+ public Builder setEventType(org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.EventCategory value)
{
if (value == null) {
throw new NullPointerException();
@@ -2687,9 +2687,9 @@ public final class ProtoTestEventWrapper
return this;
}
- private io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo foo_ = null;
+ private org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo foo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder> fooBuilder_;
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder> fooBuilder_;
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
@@ -2702,11 +2702,11 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getFoo()
{
if (fooBuilder_ == null) {
return foo_ == null
- ? io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
+ ? org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()
: foo_;
} else {
return fooBuilder_.getMessage();
@@ -2716,7 +2716,7 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public Builder setFoo(io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
+ public Builder setFoo(org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
{
if (fooBuilder_ == null) {
if (value == null) {
@@ -2735,7 +2735,7 @@ public final class ProtoTestEventWrapper
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
public Builder setFoo(
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
)
{
if (fooBuilder_ == null) {
@@ -2751,14 +2751,14 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public Builder mergeFoo(io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
+ public Builder mergeFoo(org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
{
if (fooBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
foo_ != null &&
- foo_ != io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()) {
+ foo_ != org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance()) {
foo_ =
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.newBuilder(foo_)
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.newBuilder(foo_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2790,7 +2790,7 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder getFooBuilder()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder getFooBuilder()
{
bitField0_ |= 0x00000200;
onChanged();
@@ -2800,13 +2800,13 @@ public final class ProtoTestEventWrapper
/**
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getFooOrBuilder()
{
if (fooBuilder_ != null) {
return fooBuilder_.getMessageOrBuilder();
} else {
return foo_ == null ?
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance() : foo_;
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance() : foo_;
}
}
@@ -2814,12 +2814,12 @@ public final class ProtoTestEventWrapper
* optional .prototest.ProtoTestEvent.Foo foo = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
getFooFieldBuilder()
{
if (fooBuilder_ == null) {
fooBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>(
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>(
getFoo(),
getParentForChildren(),
isClean()
@@ -2829,24 +2829,24 @@ public final class ProtoTestEventWrapper
return fooBuilder_;
}
- private java.util.Listrepeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public java.util.Listrepeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index)
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo getBar(int index)
{
if (barBuilder_ == null) {
return bar_.get(index);
@@ -2883,7 +2883,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder setBar(
- int index, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value
+ int index, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value
)
{
if (barBuilder_ == null) {
@@ -2903,7 +2903,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder setBar(
- int index, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
+ int index, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
)
{
if (barBuilder_ == null) {
@@ -2919,7 +2919,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public Builder addBar(io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
+ public Builder addBar(org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value)
{
if (barBuilder_ == null) {
if (value == null) {
@@ -2938,7 +2938,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder addBar(
- int index, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value
+ int index, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo value
)
{
if (barBuilder_ == null) {
@@ -2958,7 +2958,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder addBar(
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
)
{
if (barBuilder_ == null) {
@@ -2975,7 +2975,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder addBar(
- int index, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
+ int index, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder builderForValue
)
{
if (barBuilder_ == null) {
@@ -2992,7 +2992,7 @@ public final class ProtoTestEventWrapper
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
public Builder addAllBar(
- java.lang.Iterable extends io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo> values
+ java.lang.Iterable extends org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo> values
)
{
if (barBuilder_ == null) {
@@ -3039,7 +3039,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder getBarBuilder(
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder getBarBuilder(
int index
)
{
@@ -3049,7 +3049,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder getBarOrBuilder(
int index
)
{
@@ -3063,7 +3063,7 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public java.util.List extends io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
+ public java.util.List extends org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.FooOrBuilder>
getBarOrBuilderList()
{
if (barBuilder_ != null) {
@@ -3076,39 +3076,39 @@ public final class ProtoTestEventWrapper
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder addBarBuilder()
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder addBarBuilder()
{
return getBarFieldBuilder().addBuilder(
- io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance());
+ org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance());
}
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder addBarBuilder(
+ public org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.Builder addBarBuilder(
int index
)
{
return getBarFieldBuilder().addBuilder(
- index, io.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance());
+ index, org.apache.druid.data.input.protobuf.ProtoTestEventWrapper.ProtoTestEvent.Foo.getDefaultInstance());
}
/**
* repeated .prototest.ProtoTestEvent.Foo bar = 11;
*/
- public java.util.ListThis interface is a specialization of {@code io.druid.collections.ResourceHandler}. + *
This interface is a specialization of {@code org.apache.druid.collections.ResourceHandler}. * * @see FileUtils#map */ diff --git a/java-util/src/main/java/io/druid/java/util/common/Numbers.java b/java-util/src/main/java/org/apache/druid/java/util/common/Numbers.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/Numbers.java rename to java-util/src/main/java/org/apache/druid/java/util/common/Numbers.java index c6af8078ebf..d3ccf267225 100644 --- a/java-util/src/main/java/io/druid/java/util/common/Numbers.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/Numbers.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; public final class Numbers { diff --git a/java-util/src/main/java/io/druid/java/util/common/Pair.java b/java-util/src/main/java/org/apache/druid/java/util/common/Pair.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/Pair.java rename to java-util/src/main/java/org/apache/druid/java/util/common/Pair.java index 213d84a88e1..4b2acad6f1b 100644 --- a/java-util/src/main/java/io/druid/java/util/common/Pair.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/Pair.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; import javax.annotation.Nullable; import java.util.Objects; diff --git a/java-util/src/main/java/io/druid/java/util/common/RE.java b/java-util/src/main/java/org/apache/druid/java/util/common/RE.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/RE.java rename to java-util/src/main/java/org/apache/druid/java/util/common/RE.java index 54e6b9c2653..f7a52a65c0b 100644 --- a/java-util/src/main/java/io/druid/java/util/common/RE.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/RE.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; /** */ diff --git a/java-util/src/main/java/io/druid/java/util/common/RetryUtils.java b/java-util/src/main/java/org/apache/druid/java/util/common/RetryUtils.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/RetryUtils.java rename to java-util/src/main/java/org/apache/druid/java/util/common/RetryUtils.java index bd8b4426d18..659835200a3 100644 --- a/java-util/src/main/java/io/druid/java/util/common/RetryUtils.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/RetryUtils.java @@ -17,12 +17,12 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; import com.google.common.base.Preconditions; import com.google.common.base.Predicate; import com.google.common.base.Throwables; -import io.druid.java.util.common.logger.Logger; +import org.apache.druid.java.util.common.logger.Logger; import javax.annotation.Nullable; import java.util.concurrent.ThreadLocalRandom; diff --git a/java-util/src/main/java/io/druid/java/util/common/StreamUtils.java b/java-util/src/main/java/org/apache/druid/java/util/common/StreamUtils.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/StreamUtils.java rename to java-util/src/main/java/org/apache/druid/java/util/common/StreamUtils.java index 89c7f1c9f86..3e4c08e9130 100644 --- a/java-util/src/main/java/io/druid/java/util/common/StreamUtils.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/StreamUtils.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; import com.google.common.base.Predicate; import com.google.common.base.Throwables; diff --git a/java-util/src/main/java/io/druid/java/util/common/StringUtils.java b/java-util/src/main/java/org/apache/druid/java/util/common/StringUtils.java similarity index 99% rename from java-util/src/main/java/io/druid/java/util/common/StringUtils.java rename to java-util/src/main/java/org/apache/druid/java/util/common/StringUtils.java index 7277aa7c726..12a47ab7921 100644 --- a/java-util/src/main/java/io/druid/java/util/common/StringUtils.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/StringUtils.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; import com.google.common.base.Strings; import com.google.common.base.Throwables; diff --git a/java-util/src/main/java/io/druid/java/util/common/UOE.java b/java-util/src/main/java/org/apache/druid/java/util/common/UOE.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/UOE.java rename to java-util/src/main/java/org/apache/druid/java/util/common/UOE.java index 2e0cde23037..c50db548a14 100644 --- a/java-util/src/main/java/io/druid/java/util/common/UOE.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/UOE.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common; +package org.apache.druid.java.util.common; /** */ diff --git a/java-util/src/main/java/io/druid/java/util/common/collect/Utils.java b/java-util/src/main/java/org/apache/druid/java/util/common/collect/Utils.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/collect/Utils.java rename to java-util/src/main/java/org/apache/druid/java/util/common/collect/Utils.java index 74f99e7a6ca..bd5444aa78b 100644 --- a/java-util/src/main/java/io/druid/java/util/common/collect/Utils.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/collect/Utils.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.collect; +package org.apache.druid.java.util.common.collect; import javax.annotation.Nullable; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/DummyExecutorService.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/DummyExecutorService.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/DummyExecutorService.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/DummyExecutorService.java index b9aca2cda0c..adc64118a0d 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/DummyExecutorService.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/DummyExecutorService.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import java.util.Collection; import java.util.Collections; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/Execs.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/Execs.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/Execs.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/Execs.java index 3e0ef2effbf..e69e661108e 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/Execs.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/Execs.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import com.google.common.base.Preconditions; import com.google.common.base.Strings; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServiceConfig.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServiceConfig.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServiceConfig.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServiceConfig.java index c05c959a277..acfe8ca29f5 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServiceConfig.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServiceConfig.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import org.skife.config.Config; import org.skife.config.Default; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServices.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServices.java similarity index 92% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServices.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServices.java index b82a8d9067a..ced354e7aaa 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/ExecutorServices.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ExecutorServices.java @@ -17,10 +17,10 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import com.google.common.base.Throwables; -import io.druid.java.util.common.lifecycle.Lifecycle; +import org.apache.druid.java.util.common.lifecycle.Lifecycle; import java.util.concurrent.ExecutorService; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/ListenableFutures.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ListenableFutures.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/ListenableFutures.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ListenableFutures.java index 5a151dc4213..1722e4a9c66 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/ListenableFutures.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ListenableFutures.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutorFactory.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutorFactory.java similarity index 94% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutorFactory.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutorFactory.java index 002e2589332..c0f56d359ad 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutorFactory.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutorFactory.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import java.util.concurrent.ScheduledExecutorService; diff --git a/java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutors.java b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutors.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutors.java rename to java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutors.java index b2436fde2e8..5368faa699d 100644 --- a/java-util/src/main/java/io/druid/java/util/common/concurrent/ScheduledExecutors.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/concurrent/ScheduledExecutors.java @@ -17,11 +17,11 @@ * under the License. */ -package io.druid.java.util.common.concurrent; +package org.apache.druid.java.util.common.concurrent; import com.google.common.util.concurrent.ThreadFactoryBuilder; -import io.druid.java.util.common.lifecycle.Lifecycle; -import io.druid.java.util.common.logger.Logger; +import org.apache.druid.java.util.common.lifecycle.Lifecycle; +import org.apache.druid.java.util.common.logger.Logger; import org.joda.time.Duration; import java.util.concurrent.Callable; diff --git a/java-util/src/main/java/io/druid/java/util/common/config/Config.java b/java-util/src/main/java/org/apache/druid/java/util/common/config/Config.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/config/Config.java rename to java-util/src/main/java/org/apache/druid/java/util/common/config/Config.java index ae9eb58f665..e5a7c96275f 100644 --- a/java-util/src/main/java/io/druid/java/util/common/config/Config.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/config/Config.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.config; +package org.apache.druid.java.util.common.config; import org.skife.config.ConfigurationObjectFactory; diff --git a/java-util/src/main/java/io/druid/java/util/common/config/DurationCoercible.java b/java-util/src/main/java/org/apache/druid/java/util/common/config/DurationCoercible.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/config/DurationCoercible.java rename to java-util/src/main/java/org/apache/druid/java/util/common/config/DurationCoercible.java index 4b779674667..cea559f055a 100644 --- a/java-util/src/main/java/io/druid/java/util/common/config/DurationCoercible.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/config/DurationCoercible.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.config; +package org.apache.druid.java.util.common.config; import org.joda.time.Duration; import org.joda.time.Period; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/AllGranularity.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/AllGranularity.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/granularity/AllGranularity.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/AllGranularity.java index 7fbf1004afa..ce6a7966b3a 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/AllGranularity.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/AllGranularity.java @@ -17,10 +17,10 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; import com.google.common.collect.ImmutableList; -import io.druid.java.util.common.DateTimes; +import org.apache.druid.java.util.common.DateTimes; import org.joda.time.DateTime; import org.joda.time.Interval; import org.joda.time.format.DateTimeFormatter; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/DurationGranularity.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/DurationGranularity.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/granularity/DurationGranularity.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/DurationGranularity.java index 7d9552950d2..a48c071b5d2 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/DurationGranularity.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/DurationGranularity.java @@ -17,12 +17,12 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Preconditions; -import io.druid.java.util.common.DateTimes; +import org.apache.druid.java.util.common.DateTimes; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormatter; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/Granularities.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularities.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/granularity/Granularities.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularities.java index 60aa88053d4..fcc4afffa76 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/Granularities.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularities.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; /** * This class was created b/c sometimes static initializers of a class that use a subclass can deadlock. diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/Granularity.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularity.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/granularity/Granularity.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularity.java index 128f80d7dd2..419ceae67e1 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/Granularity.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/Granularity.java @@ -17,15 +17,15 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; import com.fasterxml.jackson.annotation.JsonCreator; import com.google.common.collect.Lists; import com.google.common.primitives.Longs; -import io.druid.java.util.common.Cacheable; -import io.druid.java.util.common.DateTimes; -import io.druid.java.util.common.IAE; -import io.druid.java.util.common.StringUtils; +import org.apache.druid.java.util.common.Cacheable; +import org.apache.druid.java.util.common.DateTimes; +import org.apache.druid.java.util.common.IAE; +import org.apache.druid.java.util.common.StringUtils; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.Interval; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/GranularityType.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/GranularityType.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/granularity/GranularityType.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/GranularityType.java index 897d988710b..ae3a277fa00 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/GranularityType.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/GranularityType.java @@ -17,9 +17,9 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; -import io.druid.java.util.common.IAE; +import org.apache.druid.java.util.common.IAE; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.Period; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/NoneGranularity.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/NoneGranularity.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/granularity/NoneGranularity.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/NoneGranularity.java index 37bfaaa43cc..f38241383c1 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/NoneGranularity.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/NoneGranularity.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormatter; diff --git a/java-util/src/main/java/io/druid/java/util/common/granularity/PeriodGranularity.java b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/PeriodGranularity.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/granularity/PeriodGranularity.java rename to java-util/src/main/java/org/apache/druid/java/util/common/granularity/PeriodGranularity.java index 63cc7c29847..58741ef08b8 100644 --- a/java-util/src/main/java/io/druid/java/util/common/granularity/PeriodGranularity.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/granularity/PeriodGranularity.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.granularity; +package org.apache.druid.java.util.common.granularity; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -27,9 +27,9 @@ import com.fasterxml.jackson.databind.JsonSerializable; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.jsontype.TypeSerializer; import com.google.common.base.Preconditions; -import io.druid.java.util.common.DateTimes; -import io.druid.java.util.common.IAE; -import io.druid.java.util.common.StringUtils; +import org.apache.druid.java.util.common.DateTimes; +import org.apache.druid.java.util.common.IAE; +import org.apache.druid.java.util.common.StringUtils; import org.joda.time.Chronology; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Accumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulator.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/guava/Accumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulator.java index b3f4f8bc49c..7e357848105 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/Accumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; /** */ diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Accumulators.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulators.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/guava/Accumulators.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulators.java index 4bc288bb29f..8a47398c491 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/Accumulators.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Accumulators.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.List; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/BaseSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/BaseSequence.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/guava/BaseSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/BaseSequence.java index 33e71e91732..a11d742342f 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/BaseSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/BaseSequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.io.Closeable; import java.util.Iterator; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/CloseQuietly.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/CloseQuietly.java similarity index 92% rename from java-util/src/main/java/io/druid/java/util/common/guava/CloseQuietly.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/CloseQuietly.java index 46bc686a06f..8b4807b9045 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/CloseQuietly.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/CloseQuietly.java @@ -17,9 +17,9 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; -import io.druid.java.util.common.logger.Logger; +import org.apache.druid.java.util.common.logger.Logger; import java.io.Closeable; import java.io.IOException; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Comparators.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Comparators.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/guava/Comparators.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Comparators.java index 02ac326a163..500d5046bf1 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/Comparators.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Comparators.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.collect.Ordering; import com.google.common.primitives.Longs; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/ConcatSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/ConcatSequence.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/guava/ConcatSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/ConcatSequence.java index 0049860a171..62f9f99eda3 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/ConcatSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/ConcatSequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Throwables; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/DelegatingYieldingAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DelegatingYieldingAccumulator.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/DelegatingYieldingAccumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/DelegatingYieldingAccumulator.java index 6c600639aa0..2f21e97b5b3 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/DelegatingYieldingAccumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DelegatingYieldingAccumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; /** */ diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterable.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterable.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterable.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterable.java index 39d5fbba0c8..172036bc2f7 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterable.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterable.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.Iterator; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterator.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterator.java index 842dacc9506..ffc1b12058f 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/DroppingIterator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/DroppingIterator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.Iterator; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/ExecuteWhenDoneYielder.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/ExecuteWhenDoneYielder.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/ExecuteWhenDoneYielder.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/ExecuteWhenDoneYielder.java index 25a0af2380c..dd6d7cad081 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/ExecuteWhenDoneYielder.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/ExecuteWhenDoneYielder.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.io.IOException; import java.util.concurrent.Executor; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/FilteredSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteredSequence.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/guava/FilteredSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteredSequence.java index 1e7e1a92ee1..3b004c03861 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/FilteredSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteredSequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Predicate; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/FilteringAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringAccumulator.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/FilteringAccumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringAccumulator.java index afc5d6cbffd..87b5b274510 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/FilteringAccumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringAccumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Predicate; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/FilteringYieldingAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringYieldingAccumulator.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/FilteringYieldingAccumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringYieldingAccumulator.java index 17be269e484..164af652823 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/FilteringYieldingAccumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FilteringYieldingAccumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Predicate; /** diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterable.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterable.java similarity index 93% rename from java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterable.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterable.java index aa2b036c5fc..606ac29f360 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterable.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterable.java @@ -17,14 +17,14 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.base.Predicates; import com.google.common.collect.Iterables; -import io.druid.java.util.common.guava.nary.TrinaryFn; -import io.druid.java.util.common.guava.nary.TrinaryTransformIterable; +import org.apache.druid.java.util.common.guava.nary.TrinaryFn; +import org.apache.druid.java.util.common.guava.nary.TrinaryTransformIterable; import java.util.Iterator; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterator.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterator.java index 1f90d9d3f85..fa06f25ac1b 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/FunctionalIterator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/FunctionalIterator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Function; import com.google.common.base.Predicate; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/LazySequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/LazySequence.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/LazySequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/LazySequence.java index d275e3f2794..6529d139a36 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/LazySequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/LazySequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Supplier; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/LimitedSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/LimitedSequence.java similarity index 98% rename from java-util/src/main/java/io/druid/java/util/common/guava/LimitedSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/LimitedSequence.java index 4b8f8272ed6..9f76e46c8d3 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/LimitedSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/LimitedSequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Preconditions; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MappedSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappedSequence.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/MappedSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MappedSequence.java index 3209c61d407..dfc0494706f 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MappedSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappedSequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.function.Function; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MappingAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingAccumulator.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/MappingAccumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingAccumulator.java index 8a5ac80673e..0acb74a7c24 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MappingAccumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingAccumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.function.Function; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MappingYieldingAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingYieldingAccumulator.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/MappingYieldingAccumulator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingYieldingAccumulator.java index 75e5cf65a51..428dc3dfab4 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MappingYieldingAccumulator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MappingYieldingAccumulator.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import java.util.function.Function; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MergeIterable.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterable.java similarity index 96% rename from java-util/src/main/java/io/druid/java/util/common/guava/MergeIterable.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterable.java index 8e0439305af..f57d31b1849 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MergeIterable.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterable.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.collect.Lists; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MergeIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterator.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/MergeIterator.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterator.java index b7f4b420138..c12ada1fc4b 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MergeIterator.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeIterator.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.collect.Iterators; import com.google.common.collect.PeekingIterator; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/MergeSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeSequence.java similarity index 97% rename from java-util/src/main/java/io/druid/java/util/common/guava/MergeSequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeSequence.java index 9e86f546471..287fc62e289 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/MergeSequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/MergeSequence.java @@ -17,12 +17,12 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.base.Function; import com.google.common.base.Throwables; import com.google.common.collect.Ordering; -import io.druid.java.util.common.io.Closer; +import org.apache.druid.java.util.common.io.Closer; import java.io.IOException; import java.util.PriorityQueue; diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Sequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequence.java similarity index 95% rename from java-util/src/main/java/io/druid/java/util/common/guava/Sequence.java rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequence.java index 3910a215c28..69fe1909970 100644 --- a/java-util/src/main/java/io/druid/java/util/common/guava/Sequence.java +++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequence.java @@ -17,7 +17,7 @@ * under the License. */ -package io.druid.java.util.common.guava; +package org.apache.druid.java.util.common.guava; import com.google.common.collect.Ordering; @@ -36,7 +36,7 @@ import java.util.function.Function; * methods get called and other resources get cleaned up whenever processing is complete. Without this inversion * it is very easy to unintentionally leak resources when iterating over something that is backed by a resource. *
- * Sequences also expose {#see io.druid.java.util.common.guava.Yielder} Yielder objects which allow you to implement a
+ * Sequences also expose {#see org.apache.druid.java.util.common.guava.Yielder} Yielder objects which allow you to implement a
* continuation over the Sequence. Yielder do not offer the same guarantees of automatic resource management
* as the accumulate method, but they are Closeable and will do the proper cleanup when close() is called on them.
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/SequenceWrapper.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/SequenceWrapper.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/guava/SequenceWrapper.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/SequenceWrapper.java
index 9eaabb5edae..8c2a72a2b6e 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/SequenceWrapper.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/SequenceWrapper.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import com.google.common.base.Supplier;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Sequences.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequences.java
similarity index 99%
rename from java-util/src/main/java/io/druid/java/util/common/guava/Sequences.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequences.java
index 491fffb179a..2bab97141d5 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/Sequences.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Sequences.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/WrappingSequence.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingSequence.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/guava/WrappingSequence.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingSequence.java
index de41cc0e39d..2fe43bfa678 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/WrappingSequence.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingSequence.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/WrappingYielder.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingYielder.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/guava/WrappingYielder.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingYielder.java
index ad91e038051..ed442db7ca9 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/WrappingYielder.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/WrappingYielder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import com.google.common.base.Supplier;
import com.google.common.base.Throwables;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Yielder.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielder.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/guava/Yielder.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielder.java
index 61004295b67..6a684cdd0c8 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/Yielder.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import java.io.Closeable;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/Yielders.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielders.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/guava/Yielders.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielders.java
index 00f859eb06d..1d7e2cd915b 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/Yielders.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/Yielders.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
import com.google.common.base.Throwables;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulator.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulator.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulator.java
index ca0a0894252..dbdf5f1d783 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulator.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
/**
* A YieldingAccumulator is used along with a Yielder in order to replicate continuations in Java. I'm still not sure
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulators.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulators.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulators.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulators.java
index 0e2d9d5b2e4..a00562d9909 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingAccumulators.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingAccumulators.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
/**
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingSequenceBase.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingSequenceBase.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/guava/YieldingSequenceBase.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingSequenceBase.java
index b719e438f49..27e085763b5 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/YieldingSequenceBase.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/YieldingSequenceBase.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava;
+package org.apache.druid.java.util.common.guava;
/**
* A Sequence that is based entirely on the Yielder implementation.
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/nary/BinaryFn.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/BinaryFn.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/guava/nary/BinaryFn.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/BinaryFn.java
index 31c7a467678..a89125a948a 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/nary/BinaryFn.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/BinaryFn.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava.nary;
+package org.apache.druid.java.util.common.guava.nary;
/**
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/nary/SortedMergeIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/SortedMergeIterator.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/guava/nary/SortedMergeIterator.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/SortedMergeIterator.java
index f53f4c2e9b8..7c840f079b7 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/nary/SortedMergeIterator.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/SortedMergeIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava.nary;
+package org.apache.druid.java.util.common.guava.nary;
import com.google.common.collect.Iterators;
import com.google.common.collect.PeekingIterator;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryFn.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryFn.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryFn.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryFn.java
index 2c910d6a15a..4abce6c256b 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryFn.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryFn.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava.nary;
+package org.apache.druid.java.util.common.guava.nary;
/**
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterable.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterable.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterable.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterable.java
index bb99f22e1a2..9d45f785e60 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterable.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterable.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava.nary;
+package org.apache.druid.java.util.common.guava.nary;
import java.util.Iterator;
diff --git a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterator.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterator.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterator.java
index 2f5f54f0b2d..f46303478dc 100644
--- a/java-util/src/main/java/io/druid/java/util/common/guava/nary/TrinaryTransformIterator.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/guava/nary/TrinaryTransformIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.guava.nary;
+package org.apache.druid.java.util.common.guava.nary;
import java.util.Iterator;
import java.util.NoSuchElementException;
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/Closer.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/Closer.java
similarity index 99%
rename from java-util/src/main/java/io/druid/java/util/common/io/Closer.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/Closer.java
index 4794bcd1ba4..5bba0dbd187 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/Closer.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/Closer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.io;
+package org.apache.druid.java.util.common.io;
import com.google.common.base.Preconditions;
import com.google.common.base.Throwables;
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/NativeIO.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/NativeIO.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/io/NativeIO.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/NativeIO.java
index 7be6899bbbf..a9816df542e 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/NativeIO.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/NativeIO.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.io;
+package org.apache.druid.java.util.common.io;
import java.io.File;
import java.io.FileDescriptor;
@@ -30,7 +30,7 @@ import com.google.common.annotations.VisibleForTesting;
import com.sun.jna.LastErrorException;
import com.sun.jna.Native;
import com.sun.jna.Platform;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.logger.Logger;
/**
* Native I/O operations in order to minimize cache impact.
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/FileSmoosher.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/FileSmoosher.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/io/smoosh/FileSmoosher.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/FileSmoosher.java
index dbb47d444e1..887bf9e47ed 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/FileSmoosher.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/FileSmoosher.java
@@ -17,21 +17,21 @@
* under the License.
*/
-package io.druid.java.util.common.io.smoosh;
+package org.apache.druid.java.util.common.io.smoosh;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.primitives.Ints;
-import io.druid.java.util.common.FileUtils;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.IOE;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.MappedByteBufferHandler;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.io.Closer;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.FileUtils;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.IOE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.MappedByteBufferHandler;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.java.util.common.logger.Logger;
import java.io.BufferedWriter;
import java.io.Closeable;
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/Metadata.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Metadata.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/io/smoosh/Metadata.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Metadata.java
index 2ce672f209e..4f395319ea4 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/Metadata.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Metadata.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.io.smoosh;
+package org.apache.druid.java.util.common.io.smoosh;
/**
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/Smoosh.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Smoosh.java
similarity index 95%
rename from java-util/src/main/java/io/druid/java/util/common/io/smoosh/Smoosh.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Smoosh.java
index b12472aa385..749d360cc9a 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/Smoosh.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/Smoosh.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.io.smoosh;
+package org.apache.druid.java.util.common.io.smoosh;
import java.io.File;
import java.io.IOException;
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedFileMapper.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedFileMapper.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedFileMapper.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedFileMapper.java
index b91778f2986..763734798f6 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedFileMapper.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedFileMapper.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.java.util.common.io.smoosh;
+package org.apache.druid.java.util.common.io.smoosh;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.io.Closeables;
import com.google.common.io.Files;
-import io.druid.java.util.common.ByteBufferUtils;
-import io.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.ByteBufferUtils;
+import org.apache.druid.java.util.common.ISE;
import java.io.BufferedReader;
import java.io.Closeable;
diff --git a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedWriter.java b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedWriter.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedWriter.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedWriter.java
index 348a35c559b..f7411cfca5c 100644
--- a/java-util/src/main/java/io/druid/java/util/common/io/smoosh/SmooshedWriter.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/io/smoosh/SmooshedWriter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.io.smoosh;
+package org.apache.druid.java.util.common.io.smoosh;
import java.io.Closeable;
import java.nio.channels.GatheringByteChannel;
diff --git a/java-util/src/main/java/io/druid/java/util/common/jackson/JacksonUtils.java b/java-util/src/main/java/org/apache/druid/java/util/common/jackson/JacksonUtils.java
similarity index 95%
rename from java-util/src/main/java/io/druid/java/util/common/jackson/JacksonUtils.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/jackson/JacksonUtils.java
index 7f823eba18d..ee8bf660bd2 100644
--- a/java-util/src/main/java/io/druid/java/util/common/jackson/JacksonUtils.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/jackson/JacksonUtils.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.jackson;
+package org.apache.druid.java.util.common.jackson;
import com.fasterxml.jackson.core.type.TypeReference;
diff --git a/java-util/src/main/java/io/druid/java/util/common/lifecycle/Lifecycle.java b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/Lifecycle.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/lifecycle/Lifecycle.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/Lifecycle.java
index 419da8254c5..3cb76fa0e27 100644
--- a/java-util/src/main/java/io/druid/java/util/common/lifecycle/Lifecycle.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/Lifecycle.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.java.util.common.lifecycle;
+package org.apache.druid.java.util.common.lifecycle;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.logger.Logger;
import java.io.Closeable;
import java.lang.annotation.Annotation;
@@ -273,7 +273,7 @@ public class Lifecycle
{
if (!startStopLock.tryLock()) {
// (*) This check is why the state should be changed before startStopLock.lock() in stop(). This check allows to
- // spot wrong use of Lifecycle instead of entering deadlock, like https://github.com/druid-io/druid/issues/3579.
+ // spot wrong use of Lifecycle instead of entering deadlock, like https://github.com/apache/incubator-druid/issues/3579.
if (state.get().equals(State.STOP)) {
throw new ISE("Cannot add a handler in the process of Lifecycle stopping");
}
@@ -401,7 +401,7 @@ public class Lifecycle
for (Method method : o.getClass().getMethods()) {
boolean doStart = false;
for (Annotation annotation : method.getAnnotations()) {
- if ("io.druid.java.util.common.lifecycle.LifecycleStart".equals(annotation.annotationType()
+ if ("org.apache.druid.java.util.common.lifecycle.LifecycleStart".equals(annotation.annotationType()
.getCanonicalName())) {
doStart = true;
break;
@@ -420,7 +420,7 @@ public class Lifecycle
for (Method method : o.getClass().getMethods()) {
boolean doStop = false;
for (Annotation annotation : method.getAnnotations()) {
- if ("io.druid.java.util.common.lifecycle.LifecycleStop".equals(annotation.annotationType()
+ if ("org.apache.druid.java.util.common.lifecycle.LifecycleStop".equals(annotation.annotationType()
.getCanonicalName())) {
doStop = true;
break;
diff --git a/java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStart.java b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStart.java
similarity index 95%
rename from java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStart.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStart.java
index f1a6d67278b..2fe26d535c1 100644
--- a/java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStart.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStart.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.lifecycle;
+package org.apache.druid.java.util.common.lifecycle;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStop.java b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStop.java
similarity index 95%
rename from java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStop.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStop.java
index 065ac978c00..23bbb224a4e 100644
--- a/java-util/src/main/java/io/druid/java/util/common/lifecycle/LifecycleStop.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/lifecycle/LifecycleStop.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.lifecycle;
+package org.apache.druid.java.util.common.lifecycle;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/java-util/src/main/java/io/druid/java/util/common/logger/Logger.java b/java-util/src/main/java/org/apache/druid/java/util/common/logger/Logger.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/logger/Logger.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/logger/Logger.java
index 36263737cec..d5aa17ada9c 100644
--- a/java-util/src/main/java/io/druid/java/util/common/logger/Logger.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/logger/Logger.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.java.util.common.logger;
+package org.apache.druid.java.util.common.logger;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
import org.slf4j.LoggerFactory;
/**
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java
index 673981afce7..9039106ff9d 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/AbstractFlatTextFormatParser.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.collect.Utils;
+import org.apache.druid.java.util.common.collect.Utils;
import javax.annotation.Nullable;
import java.io.IOException;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/CSVParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/CSVParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/CSVParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/CSVParser.java
index 3fd85b8611d..41c2d18226b 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/CSVParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/CSVParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.annotations.VisibleForTesting;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/CloseableIterator.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/CloseableIterator.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/CloseableIterator.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/CloseableIterator.java
index 02063c0edec..b9164b2b3d4 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/CloseableIterator.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/CloseableIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import java.io.Closeable;
import java.util.Iterator;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/DelimitedParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/DelimitedParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/DelimitedParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/DelimitedParser.java
index 640a390bd73..0953fdc2753 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/DelimitedParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/DelimitedParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONFlattenerMaker.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONFlattenerMaker.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONFlattenerMaker.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONFlattenerMaker.java
index 08a98e7fe4b..805dc540b1d 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONFlattenerMaker.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONFlattenerMaker.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.FluentIterable;
@@ -26,7 +26,7 @@ import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.Option;
import com.jayway.jsonpath.spi.json.JacksonJsonNodeJsonProvider;
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
import net.thisptr.jackson.jq.JsonQuery;
import net.thisptr.jackson.jq.exception.JsonQueryException;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldSpec.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldSpec.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldSpec.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldSpec.java
index 6978ac21849..3173be73666 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldSpec.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldSpec.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldType.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldType.java
similarity index 92%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldType.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldType.java
index b8be4d7118d..de504c97af4 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathFieldType.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathFieldType.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
public enum JSONPathFieldType
{
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathParser.java
index ea2e4718dfc..1adfda7ed4a 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathSpec.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathSpec.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathSpec.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathSpec.java
index d757ab18258..d6289c32a51 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONPathSpec.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONPathSpec.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONToLowerParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONToLowerParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JSONToLowerParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONToLowerParser.java
index faedc86433e..a3d8f677617 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JSONToLowerParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JSONToLowerParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -25,7 +25,7 @@ import com.google.common.base.Function;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.StandardCharsets;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/JavaScriptParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JavaScriptParser.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/JavaScriptParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/JavaScriptParser.java
index e2bbeaaf372..ada4ba4250e 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/JavaScriptParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/JavaScriptParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.base.Function;
import org.mozilla.javascript.Context;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlattener.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlattener.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlattener.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlattener.java
index 88de5071f55..ae674c84e95 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlattener.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlattener.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import java.util.Map;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlatteners.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlatteners.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlatteners.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlatteners.java
index 2e58f67c8b4..0c722932597 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/ObjectFlatteners.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ObjectFlatteners.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.collect.Iterables;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.UOE;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.UOE;
import java.util.AbstractMap;
import java.util.Collection;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/ParseException.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParseException.java
similarity index 93%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/ParseException.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParseException.java
index e0484f20289..e71121e1b40 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/ParseException.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParseException.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
/**
*/
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/Parser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/Parser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parser.java
index 663b722f00b..62c4e496153 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/Parser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import javax.annotation.Nullable;
import java.util.List;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/ParserUtils.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParserUtils.java
similarity index 96%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/ParserUtils.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParserUtils.java
index 1284765045b..48cbfe49f24 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/ParserUtils.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/ParserUtils.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.collect.Sets;
-import io.druid.common.config.NullHandling;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.java.util.common.StringUtils;
import org.joda.time.DateTimeZone;
import javax.annotation.Nullable;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/Parsers.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parsers.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/Parsers.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parsers.java
index 17fec2c1fd6..88172bb6389 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/Parsers.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/Parsers.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
public class Parsers
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/RegexParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/RegexParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/RegexParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/RegexParser.java
index 0e522991cf3..e5371e89d61 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/RegexParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/RegexParser.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.base.Function;
import com.google.common.base.Optional;
@@ -25,7 +25,7 @@ import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.collect.Utils;
+import org.apache.druid.java.util.common.collect.Utils;
import java.util.List;
import java.util.Map;
diff --git a/java-util/src/main/java/io/druid/java/util/common/parsers/TimestampParser.java b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/TimestampParser.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/common/parsers/TimestampParser.java
rename to java-util/src/main/java/org/apache/druid/java/util/common/parsers/TimestampParser.java
index 14de994aeda..38f12060942 100644
--- a/java-util/src/main/java/io/druid/java/util/common/parsers/TimestampParser.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/common/parsers/TimestampParser.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.java.util.common.parsers;
+package org.apache.druid.java.util.common.parsers;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.IAE;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.format.DateTimeFormat;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/EmittingLogger.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/EmittingLogger.java
similarity index 91%
rename from java-util/src/main/java/io/druid/java/util/emitter/EmittingLogger.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/EmittingLogger.java
index 661ed17d3b9..8e685c69611 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/EmittingLogger.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/EmittingLogger.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.java.util.emitter;
+package org.apache.druid.java.util.emitter;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicates;
import com.google.common.collect.Maps;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.java.util.emitter.service.AlertBuilder;
-import io.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.service.AlertBuilder;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
import java.io.PrintWriter;
import java.io.StringWriter;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/BaseHttpEmittingConfig.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/BaseHttpEmittingConfig.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/BaseHttpEmittingConfig.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/BaseHttpEmittingConfig.java
index 7642f45dc92..76e3a90e3ff 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/BaseHttpEmittingConfig.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/BaseHttpEmittingConfig.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.Pair;
import javax.validation.constraints.Min;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/Batch.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Batch.java
similarity index 99%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/Batch.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/Batch.java
index b9869a628bf..5bc598a724d 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/Batch.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Batch.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import com.google.common.base.Preconditions;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.logger.Logger;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.AbstractQueuedLongSynchronizer;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/BatchingStrategy.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/BatchingStrategy.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/BatchingStrategy.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/BatchingStrategy.java
index f951d6fdfe3..268d6a468db 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/BatchingStrategy.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/BatchingStrategy.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
public enum BatchingStrategy
{
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/ComposingEmitter.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ComposingEmitter.java
similarity index 91%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/ComposingEmitter.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/ComposingEmitter.java
index 36734d34c82..f22b8bc60b2 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/ComposingEmitter.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ComposingEmitter.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import com.google.common.base.Preconditions;
-import io.druid.java.util.common.lifecycle.LifecycleStart;
-import io.druid.java.util.common.lifecycle.LifecycleStop;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStart;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStop;
+import org.apache.druid.java.util.common.logger.Logger;
import java.io.IOException;
import java.util.List;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/ConcurrentTimeCounter.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ConcurrentTimeCounter.java
similarity index 98%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/ConcurrentTimeCounter.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/ConcurrentTimeCounter.java
index a9251ece5cc..d4c5435236d 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/ConcurrentTimeCounter.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ConcurrentTimeCounter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import com.google.common.primitives.UnsignedInts;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/ContentEncoding.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ContentEncoding.java
similarity index 94%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/ContentEncoding.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/ContentEncoding.java
index b6afd2d81c3..e8ee2025f7a 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/ContentEncoding.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/ContentEncoding.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
public enum ContentEncoding
{
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/Emitter.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitter.java
similarity index 97%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/Emitter.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitter.java
index 95c3a40ed31..17e1952cae3 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/Emitter.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import java.io.Closeable;
import java.io.Flushable;
diff --git a/java-util/src/main/java/io/druid/java/util/emitter/core/Emitters.java b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitters.java
similarity index 62%
rename from java-util/src/main/java/io/druid/java/util/emitter/core/Emitters.java
rename to java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitters.java
index 77539080d6f..093550334ed 100644
--- a/java-util/src/main/java/io/druid/java/util/emitter/core/Emitters.java
+++ b/java-util/src/main/java/org/apache/druid/java/util/emitter/core/Emitters.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.java.util.emitter.core;
+package org.apache.druid.java.util.emitter.core;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Maps;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.lifecycle.Lifecycle;
-import io.druid.java.util.emitter.factory.EmitterFactory;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.java.util.emitter.factory.EmitterFactory;
import org.asynchttpclient.AsyncHttpClient;
import java.util.HashMap;
@@ -35,9 +35,9 @@ import java.util.Properties;
public class Emitters
{
- private static final String LOG_EMITTER_PROP = "io.druid.java.util.emitter.logging";
- private static final String HTTP_EMITTER_PROP = "io.druid.java.util.emitter.http";
- private static final String CUSTOM_EMITTER_TYPE_PROP = "io.druid.java.util.emitter.type";
+ private static final String LOG_EMITTER_PROP = "org.apache.druid.java.util.emitter.logging";
+ private static final String HTTP_EMITTER_PROP = "org.apache.druid.java.util.emitter.http";
+ private static final String CUSTOM_EMITTER_TYPE_PROP = "org.apache.druid.java.util.emitter.type";
public static Emitter create(Properties props, AsyncHttpClient httpClient, Lifecycle lifecycle)
{
@@ -62,7 +62,7 @@ public class Emitters
jsonified = makeCustomFactoryMap(props);
} else {
throw new ISE(
- "Unknown type of emitter. Please set [%s], [%s] or provide registered subtype of io.druid.java.util.emitter.core.factory.EmitterFactory via [%s]",
+ "Unknown type of emitter. Please set [%s], [%s] or provide registered subtype of org.apache.druid.java.util.emitter.core.factory.EmitterFactory via [%s]",
LOG_EMITTER_PROP,
HTTP_EMITTER_PROP,
CUSTOM_EMITTER_TYPE_PROP
@@ -77,7 +77,7 @@ public class Emitters
{
Map
If implementors of custom QueryMetrics don't want to fix builds on every Druid release (e. g. if they want to add
* a single dimension to emitted events and don't want to alter other dimensions and emitted metrics), they could
* inherit their custom QueryMetrics from {@link DefaultQueryMetrics} or query-specific default implementation class,
- * such as {@link io.druid.query.topn.DefaultTopNQueryMetrics}. Those classes are guaranteed to stay around and
+ * such as {@link org.apache.druid.query.topn.DefaultTopNQueryMetrics}. Those classes are guaranteed to stay around and
* implement new methods, added to the QueryMetrics interface (or a query-specific subinterface). However, there is no
* 100% guarantee of compatibility, because methods could not only be added to QueryMetrics, existing methods could also
* be changed or removed.
@@ -113,7 +113,7 @@ import java.util.List;
*
* Making subinterfaces of QueryMetrics for emitting custom dimensions and/or metrics for specific query types
* -----------------------------------------------------------------------------------------------------------
- * If a query type (e. g. {@link io.druid.query.metadata.metadata.SegmentMetadataQuery} (it's runners) needs to emit
+ * If a query type (e. g. {@link org.apache.druid.query.metadata.metadata.SegmentMetadataQuery} (it's runners) needs to emit
* custom dimensions and/or metrics which doesn't make sense for all other query types, the following steps should be
* executed:
*
@@ -135,7 +135,7 @@ import java.util.List;
* `return new DefaultSegmentMetadataQueryMetrics(genericQueryMetricsFactory.makeMetrics(query));`
*
* 5. Inject and use SegmentMetadataQueryMetricsFactory instead of {@link GenericQueryMetricsFactory} in
- * {@link io.druid.query.metadata.SegmentMetadataQueryQueryToolChest}.
+ * {@link org.apache.druid.query.metadata.SegmentMetadataQueryQueryToolChest}.
*
* 6. Establish injection of SegmentMetadataQueryMetricsFactory using config and provider method in
* QueryToolChestModule (see how it is done in QueryToolChestModule) for existing query types
@@ -148,14 +148,14 @@ import java.util.List;
* This complex procedure is needed to ensure custom {@link GenericQueryMetricsFactory} specified by users still works
* for the query type when query type decides to create their custom QueryMetrics subclass.
*
- * {@link io.druid.query.topn.TopNQueryMetrics}, {@link io.druid.query.groupby.GroupByQueryMetrics}, and {@link
- * io.druid.query.timeseries.TimeseriesQueryMetrics} are implemented differently, because they are introduced at the
+ * {@link org.apache.druid.query.topn.TopNQueryMetrics}, {@link org.apache.druid.query.groupby.GroupByQueryMetrics}, and {@link
+ * org.apache.druid.query.timeseries.TimeseriesQueryMetrics} are implemented differently, because they are introduced at the
* same time as the whole QueryMetrics abstraction and their default implementations have to actually emit more
* dimensions than the default generic QueryMetrics. So those subinterfaces shouldn't be taken as direct examples for
* following the plan specified above.
*
* Refer {@link SearchQueryMetricsFactory}
- * and {@link io.druid.query.select.SelectQueryMetricsFactory} as an implementation example of this procedure.
+ * and {@link org.apache.druid.query.select.SelectQueryMetricsFactory} as an implementation example of this procedure.
*
* @param
- * This is similar to what {@link io.druid.java.util.common.guava.MergeIterator} does with simple
+ * This is similar to what {@link org.apache.druid.java.util.common.guava.MergeIterator} does with simple
* {@link java.util.Iterator}s.
*
* @param iterators iterators to merge, must return ascending values
@@ -70,7 +70,7 @@ public final class IntIteratorUtils
}
/**
- * This class is designed mostly after {@link io.druid.java.util.common.guava.MergeIterator}.
+ * This class is designed mostly after {@link org.apache.druid.java.util.common.guava.MergeIterator}.
* {@code MergeIterator} uses a priority queue of wrapper
* "peeking" iterators. Peeking wrappers are not available in fastutil for specialized iterators like IntIterator, so
* they should be implemented manually in the druid codebase. Instead, another approach is taken: a priority queue
diff --git a/processing/src/main/java/io/druid/segment/IntListUtils.java b/processing/src/main/java/org/apache/druid/segment/IntListUtils.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/IntListUtils.java
rename to processing/src/main/java/org/apache/druid/segment/IntListUtils.java
index 9b2b2748a14..dbc3d04411e 100644
--- a/processing/src/main/java/io/druid/segment/IntListUtils.java
+++ b/processing/src/main/java/org/apache/druid/segment/IntListUtils.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Preconditions;
import it.unimi.dsi.fastutil.ints.AbstractIntList;
diff --git a/processing/src/main/java/io/druid/segment/LongColumnSelector.java b/processing/src/main/java/org/apache/druid/segment/LongColumnSelector.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/LongColumnSelector.java
rename to processing/src/main/java/org/apache/druid/segment/LongColumnSelector.java
index d3640d98105..103cd964dc6 100644
--- a/processing/src/main/java/io/druid/segment/LongColumnSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongColumnSelector.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/LongColumnSerializer.java b/processing/src/main/java/org/apache/druid/segment/LongColumnSerializer.java
similarity index 87%
rename from processing/src/main/java/io/druid/segment/LongColumnSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/LongColumnSerializer.java
index 23a3ee42cf0..0bf57e98e5d 100644
--- a/processing/src/main/java/io/druid/segment/LongColumnSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongColumnSerializer.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
-import io.druid.segment.data.CompressionFactory;
-import io.druid.segment.data.CompressionStrategy;
-import io.druid.segment.data.ColumnarLongsSerializer;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.data.CompressionFactory;
+import org.apache.druid.segment.data.CompressionStrategy;
+import org.apache.druid.segment.data.ColumnarLongsSerializer;
import java.io.IOException;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/LongColumnSerializerV2.java b/processing/src/main/java/org/apache/druid/segment/LongColumnSerializerV2.java
similarity index 86%
rename from processing/src/main/java/io/druid/segment/LongColumnSerializerV2.java
rename to processing/src/main/java/org/apache/druid/segment/LongColumnSerializerV2.java
index c3d2c314029..f6927297b8c 100644
--- a/processing/src/main/java/io/druid/segment/LongColumnSerializerV2.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongColumnSerializerV2.java
@@ -17,20 +17,20 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.primitives.Ints;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.collections.bitmap.MutableBitmap;
-import io.druid.common.utils.SerializerUtils;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.data.BitmapSerdeFactory;
-import io.druid.segment.data.ByteBufferWriter;
-import io.druid.segment.data.ColumnarLongsSerializer;
-import io.druid.segment.data.CompressionFactory;
-import io.druid.segment.data.CompressionStrategy;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.collections.bitmap.MutableBitmap;
+import org.apache.druid.common.utils.SerializerUtils;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.data.BitmapSerdeFactory;
+import org.apache.druid.segment.data.ByteBufferWriter;
+import org.apache.druid.segment.data.ColumnarLongsSerializer;
+import org.apache.druid.segment.data.CompressionFactory;
+import org.apache.druid.segment.data.CompressionStrategy;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import java.io.IOException;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/LongDimensionHandler.java b/processing/src/main/java/org/apache/druid/segment/LongDimensionHandler.java
similarity index 87%
rename from processing/src/main/java/io/druid/segment/LongDimensionHandler.java
rename to processing/src/main/java/org/apache/druid/segment/LongDimensionHandler.java
index a102573c80a..0fc176409f2 100644
--- a/processing/src/main/java/io/druid/segment/LongDimensionHandler.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongDimensionHandler.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
-import io.druid.segment.selector.settable.SettableLongColumnValueSelector;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableLongColumnValueSelector;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import java.util.Comparator;
diff --git a/processing/src/main/java/io/druid/segment/LongDimensionIndexer.java b/processing/src/main/java/org/apache/druid/segment/LongDimensionIndexer.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/LongDimensionIndexer.java
rename to processing/src/main/java/org/apache/druid/segment/LongDimensionIndexer.java
index 76c433c3eaa..20f192d7598 100644
--- a/processing/src/main/java/io/druid/segment/LongDimensionIndexer.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongDimensionIndexer.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.collections.bitmap.MutableBitmap;
-import io.druid.common.config.NullHandling;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.query.dimension.DimensionSpec;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.incremental.IncrementalIndex;
-import io.druid.segment.incremental.IncrementalIndexRowHolder;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.collections.bitmap.MutableBitmap;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.query.dimension.DimensionSpec;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.incremental.IncrementalIndex;
+import org.apache.druid.segment.incremental.IncrementalIndexRowHolder;
import javax.annotation.Nullable;
import java.util.Comparator;
diff --git a/processing/src/main/java/io/druid/segment/LongDimensionMergerV9.java b/processing/src/main/java/org/apache/druid/segment/LongDimensionMergerV9.java
similarity index 85%
rename from processing/src/main/java/io/druid/segment/LongDimensionMergerV9.java
rename to processing/src/main/java/org/apache/druid/segment/LongDimensionMergerV9.java
index e526c5c14bd..e4ab6ba3849 100644
--- a/processing/src/main/java/io/druid/segment/LongDimensionMergerV9.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongDimensionMergerV9.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.segment.column.ColumnDescriptor;
-import io.druid.segment.column.ValueType;
-import io.druid.segment.serde.ColumnPartSerde;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.column.ColumnDescriptor;
+import org.apache.druid.segment.column.ValueType;
+import org.apache.druid.segment.serde.ColumnPartSerde;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
public class LongDimensionMergerV9 extends NumericDimensionMergerV9
{
diff --git a/processing/src/main/java/io/druid/segment/LongWrappingDimensionSelector.java b/processing/src/main/java/org/apache/druid/segment/LongWrappingDimensionSelector.java
similarity index 88%
rename from processing/src/main/java/io/druid/segment/LongWrappingDimensionSelector.java
rename to processing/src/main/java/org/apache/druid/segment/LongWrappingDimensionSelector.java
index fc5593ebff0..ced7b1a3093 100644
--- a/processing/src/main/java/io/druid/segment/LongWrappingDimensionSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/LongWrappingDimensionSelector.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.virtual.BaseSingleValueDimensionSelector;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.virtual.BaseSingleValueDimensionSelector;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/MMappedIndex.java b/processing/src/main/java/org/apache/druid/segment/MMappedIndex.java
similarity index 88%
rename from processing/src/main/java/io/druid/segment/MMappedIndex.java
rename to processing/src/main/java/org/apache/druid/segment/MMappedIndex.java
index 87907b9c534..7691cc70b0c 100644
--- a/processing/src/main/java/io/druid/segment/MMappedIndex.java
+++ b/processing/src/main/java/org/apache/druid/segment/MMappedIndex.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.collections.spatial.ImmutableRTree;
-import io.druid.java.util.common.io.smoosh.SmooshedFileMapper;
-import io.druid.segment.data.CompressedColumnarLongsSupplier;
-import io.druid.segment.data.GenericIndexed;
-import io.druid.segment.data.VSizeColumnarMultiInts;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.collections.spatial.ImmutableRTree;
+import org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper;
+import org.apache.druid.segment.data.CompressedColumnarLongsSupplier;
+import org.apache.druid.segment.data.GenericIndexed;
+import org.apache.druid.segment.data.VSizeColumnarMultiInts;
import org.joda.time.Interval;
import java.util.Map;
diff --git a/processing/src/main/java/io/druid/segment/MergingRowIterator.java b/processing/src/main/java/org/apache/druid/segment/MergingRowIterator.java
similarity index 99%
rename from processing/src/main/java/io/druid/segment/MergingRowIterator.java
rename to processing/src/main/java/org/apache/druid/segment/MergingRowIterator.java
index 9654c5abdc0..b9162af1e2c 100644
--- a/processing/src/main/java/io/druid/segment/MergingRowIterator.java
+++ b/processing/src/main/java/org/apache/druid/segment/MergingRowIterator.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.java.util.common.io.Closer;
+import org.apache.druid.java.util.common.io.Closer;
import it.unimi.dsi.fastutil.objects.ObjectHeaps;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/Metadata.java b/processing/src/main/java/org/apache/druid/segment/Metadata.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/Metadata.java
rename to processing/src/main/java/org/apache/druid/segment/Metadata.java
index 9c74811bdd9..08c29113cba 100644
--- a/processing/src/main/java/io/druid/segment/Metadata.java
+++ b/processing/src/main/java/org/apache/druid/segment/Metadata.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.data.input.impl.TimestampSpec;
-import io.druid.guice.annotations.PublicApi;
-import io.druid.java.util.common.granularity.Granularity;
-import io.druid.query.aggregation.AggregatorFactory;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.guice.annotations.PublicApi;
+import org.apache.druid.java.util.common.granularity.Granularity;
+import org.apache.druid.query.aggregation.AggregatorFactory;
import javax.annotation.Nullable;
import java.util.ArrayList;
diff --git a/processing/src/main/java/io/druid/segment/MetricHolder.java b/processing/src/main/java/org/apache/druid/segment/MetricHolder.java
similarity index 86%
rename from processing/src/main/java/io/druid/segment/MetricHolder.java
rename to processing/src/main/java/org/apache/druid/segment/MetricHolder.java
index f3cb44293d5..f68246d59b5 100644
--- a/processing/src/main/java/io/druid/segment/MetricHolder.java
+++ b/processing/src/main/java/org/apache/druid/segment/MetricHolder.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.common.utils.SerializerUtils;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.io.smoosh.SmooshedFileMapper;
-import io.druid.segment.data.CompressedColumnarFloatsSupplier;
-import io.druid.segment.data.GenericIndexed;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.data.ObjectStrategy;
-import io.druid.segment.serde.ComplexMetricSerde;
-import io.druid.segment.serde.ComplexMetrics;
+import org.apache.druid.common.utils.SerializerUtils;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper;
+import org.apache.druid.segment.data.CompressedColumnarFloatsSupplier;
+import org.apache.druid.segment.data.GenericIndexed;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.ObjectStrategy;
+import org.apache.druid.segment.serde.ComplexMetricSerde;
+import org.apache.druid.segment.serde.ComplexMetrics;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/NilColumnValueSelector.java b/processing/src/main/java/org/apache/druid/segment/NilColumnValueSelector.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/NilColumnValueSelector.java
rename to processing/src/main/java/org/apache/druid/segment/NilColumnValueSelector.java
index b8c2ff38644..9cddf58d22f 100644
--- a/processing/src/main/java/io/druid/segment/NilColumnValueSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/NilColumnValueSelector.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.common.config.NullHandling;
-import io.druid.guice.annotations.PublicApi;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.guice.annotations.PublicApi;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/NullDimensionSelector.java b/processing/src/main/java/org/apache/druid/segment/NullDimensionSelector.java
similarity index 84%
rename from processing/src/main/java/io/druid/segment/NullDimensionSelector.java
rename to processing/src/main/java/org/apache/druid/segment/NullDimensionSelector.java
index d8708d06be0..0c91e342c82 100644
--- a/processing/src/main/java/io/druid/segment/NullDimensionSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/NullDimensionSelector.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Predicate;
-import io.druid.common.config.NullHandling;
-import io.druid.query.filter.ValueMatcher;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.ZeroIndexedInts;
-import io.druid.segment.filter.BooleanValueMatcher;
-import io.druid.segment.historical.SingleValueHistoricalDimensionSelector;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.query.filter.ValueMatcher;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.ZeroIndexedInts;
+import org.apache.druid.segment.filter.BooleanValueMatcher;
+import org.apache.druid.segment.historical.SingleValueHistoricalDimensionSelector;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/NumericDimensionMergerV9.java b/processing/src/main/java/org/apache/druid/segment/NumericDimensionMergerV9.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/NumericDimensionMergerV9.java
rename to processing/src/main/java/org/apache/druid/segment/NumericDimensionMergerV9.java
index 3144285a850..332812df2ed 100644
--- a/processing/src/main/java/io/druid/segment/NumericDimensionMergerV9.java
+++ b/processing/src/main/java/org/apache/druid/segment/NumericDimensionMergerV9.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import javax.annotation.Nullable;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/ObjectColumnSelector.java b/processing/src/main/java/org/apache/druid/segment/ObjectColumnSelector.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/ObjectColumnSelector.java
rename to processing/src/main/java/org/apache/druid/segment/ObjectColumnSelector.java
index 92a0af648e9..fb8617b289c 100644
--- a/processing/src/main/java/io/druid/segment/ObjectColumnSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/ObjectColumnSelector.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
/**
* This interface is convenient for implementation of "object-sourcing" {@link ColumnValueSelector}s, it provides
diff --git a/processing/src/main/java/io/druid/segment/ProgressIndicator.java b/processing/src/main/java/org/apache/druid/segment/ProgressIndicator.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/ProgressIndicator.java
rename to processing/src/main/java/org/apache/druid/segment/ProgressIndicator.java
index 8485405b3aa..3d723607a73 100644
--- a/processing/src/main/java/io/druid/segment/ProgressIndicator.java
+++ b/processing/src/main/java/org/apache/druid/segment/ProgressIndicator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/QueryableIndex.java b/processing/src/main/java/org/apache/druid/segment/QueryableIndex.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/QueryableIndex.java
rename to processing/src/main/java/org/apache/druid/segment/QueryableIndex.java
index 50f764265b4..b3c7a0c21cb 100644
--- a/processing/src/main/java/io/druid/segment/QueryableIndex.java
+++ b/processing/src/main/java/org/apache/druid/segment/QueryableIndex.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.segment.data.Indexed;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.segment.data.Indexed;
import org.joda.time.Interval;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/QueryableIndexColumnSelectorFactory.java b/processing/src/main/java/org/apache/druid/segment/QueryableIndexColumnSelectorFactory.java
similarity index 86%
rename from processing/src/main/java/io/druid/segment/QueryableIndexColumnSelectorFactory.java
rename to processing/src/main/java/org/apache/druid/segment/QueryableIndexColumnSelectorFactory.java
index 90b7121dc86..f6193ed4e50 100644
--- a/processing/src/main/java/io/druid/segment/QueryableIndexColumnSelectorFactory.java
+++ b/processing/src/main/java/org/apache/druid/segment/QueryableIndexColumnSelectorFactory.java
@@ -17,25 +17,25 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.io.Closer;
-import io.druid.query.dimension.DimensionSpec;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.segment.column.BaseColumn;
-import io.druid.segment.column.Column;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.column.DictionaryEncodedColumn;
-import io.druid.segment.column.ValueType;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.query.dimension.DimensionSpec;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.segment.column.BaseColumn;
+import org.apache.druid.segment.column.Column;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.column.DictionaryEncodedColumn;
+import org.apache.druid.segment.column.ValueType;
+import org.apache.druid.segment.data.ReadableOffset;
import javax.annotation.Nullable;
import java.util.Map;
/**
* The basic implementation of {@link ColumnSelectorFactory} over a historical segment (i. e. {@link QueryableIndex}).
- * It's counterpart for incremental index is {@link io.druid.segment.incremental.IncrementalIndexColumnSelectorFactory}.
+ * It's counterpart for incremental index is {@link org.apache.druid.segment.incremental.IncrementalIndexColumnSelectorFactory}.
*/
class QueryableIndexColumnSelectorFactory implements ColumnSelectorFactory
{
diff --git a/processing/src/main/java/io/druid/segment/QueryableIndexIndexableAdapter.java b/processing/src/main/java/org/apache/druid/segment/QueryableIndexIndexableAdapter.java
similarity index 91%
rename from processing/src/main/java/io/druid/segment/QueryableIndexIndexableAdapter.java
rename to processing/src/main/java/org/apache/druid/segment/QueryableIndexIndexableAdapter.java
index c4d626fb794..429b34695d7 100644
--- a/processing/src/main/java/io/druid/segment/QueryableIndexIndexableAdapter.java
+++ b/processing/src/main/java/org/apache/druid/segment/QueryableIndexIndexableAdapter.java
@@ -17,29 +17,29 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Sets;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.guava.CloseQuietly;
-import io.druid.java.util.common.io.Closer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.column.BaseColumn;
-import io.druid.segment.column.BitmapIndex;
-import io.druid.segment.column.Column;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.column.ComplexColumn;
-import io.druid.segment.column.DictionaryEncodedColumn;
-import io.druid.segment.column.ValueType;
-import io.druid.segment.data.BitmapValues;
-import io.druid.segment.data.ImmutableBitmapValues;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.data.IndexedIterable;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
-import io.druid.segment.selector.settable.SettableLongColumnValueSelector;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.guava.CloseQuietly;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.column.BaseColumn;
+import org.apache.druid.segment.column.BitmapIndex;
+import org.apache.druid.segment.column.Column;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.column.ComplexColumn;
+import org.apache.druid.segment.column.DictionaryEncodedColumn;
+import org.apache.druid.segment.column.ValueType;
+import org.apache.druid.segment.data.BitmapValues;
+import org.apache.druid.segment.data.ImmutableBitmapValues;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.IndexedIterable;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableLongColumnValueSelector;
import org.joda.time.Interval;
import javax.annotation.Nullable;
@@ -188,7 +188,7 @@ public class QueryableIndexIndexableAdapter implements IndexableAdapter
* expensive.
* 2) {@link #mark()} is a "lookbehind" style functionality, in compressed columnar format, that would cause
* repetitive excessive decompressions on the block boundaries. E. g. see {@link
- * io.druid.segment.data.BlockLayoutColumnarDoublesSupplier} and similar classes. Some special support for
+ * org.apache.druid.segment.data.BlockLayoutColumnarDoublesSupplier} and similar classes. Some special support for
* "lookbehind" could be added to these classes, but it's significant extra complexity.
*/
class RowIteratorImpl implements TransformableRowIterator
diff --git a/processing/src/main/java/io/druid/segment/QueryableIndexSegment.java b/processing/src/main/java/org/apache/druid/segment/QueryableIndexSegment.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/QueryableIndexSegment.java
rename to processing/src/main/java/org/apache/druid/segment/QueryableIndexSegment.java
index cd2d70055d6..40d89c7736e 100644
--- a/processing/src/main/java/io/druid/segment/QueryableIndexSegment.java
+++ b/processing/src/main/java/org/apache/druid/segment/QueryableIndexSegment.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import org.joda.time.Interval;
diff --git a/processing/src/main/java/io/druid/segment/QueryableIndexStorageAdapter.java b/processing/src/main/java/org/apache/druid/segment/QueryableIndexStorageAdapter.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/QueryableIndexStorageAdapter.java
rename to processing/src/main/java/org/apache/druid/segment/QueryableIndexStorageAdapter.java
index 9701902ffe2..a74b403e922 100644
--- a/processing/src/main/java/io/druid/segment/QueryableIndexStorageAdapter.java
+++ b/processing/src/main/java/org/apache/druid/segment/QueryableIndexStorageAdapter.java
@@ -17,35 +17,35 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.granularity.Granularity;
-import io.druid.java.util.common.guava.Sequence;
-import io.druid.java.util.common.guava.Sequences;
-import io.druid.java.util.common.io.Closer;
-import io.druid.query.BaseQuery;
-import io.druid.query.BitmapResultFactory;
-import io.druid.query.DefaultBitmapResultFactory;
-import io.druid.query.QueryMetrics;
-import io.druid.query.filter.Filter;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.column.BaseColumn;
-import io.druid.segment.column.BitmapIndex;
-import io.druid.segment.column.Column;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.column.ComplexColumn;
-import io.druid.segment.column.GenericColumn;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.data.Offset;
-import io.druid.segment.data.ReadableOffset;
-import io.druid.segment.filter.AndFilter;
-import io.druid.segment.historical.HistoricalCursor;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.granularity.Granularity;
+import org.apache.druid.java.util.common.guava.Sequence;
+import org.apache.druid.java.util.common.guava.Sequences;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.query.BaseQuery;
+import org.apache.druid.query.BitmapResultFactory;
+import org.apache.druid.query.DefaultBitmapResultFactory;
+import org.apache.druid.query.QueryMetrics;
+import org.apache.druid.query.filter.Filter;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.column.BaseColumn;
+import org.apache.druid.segment.column.BitmapIndex;
+import org.apache.druid.segment.column.Column;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.column.ComplexColumn;
+import org.apache.druid.segment.column.GenericColumn;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.Offset;
+import org.apache.druid.segment.data.ReadableOffset;
+import org.apache.druid.segment.filter.AndFilter;
+import org.apache.druid.segment.historical.HistoricalCursor;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java b/processing/src/main/java/org/apache/druid/segment/ReferenceCountingSegment.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java
rename to processing/src/main/java/org/apache/druid/segment/ReferenceCountingSegment.java
index b11eb4f094b..7add08fa7bd 100644
--- a/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java
+++ b/processing/src/main/java/org/apache/druid/segment/ReferenceCountingSegment.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Preconditions;
-import io.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.emitter.EmittingLogger;
import org.joda.time.Interval;
import java.io.Closeable;
diff --git a/processing/src/main/java/io/druid/segment/RowCombiningTimeAndDimsIterator.java b/processing/src/main/java/org/apache/druid/segment/RowCombiningTimeAndDimsIterator.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/RowCombiningTimeAndDimsIterator.java
rename to processing/src/main/java/org/apache/druid/segment/RowCombiningTimeAndDimsIterator.java
index b73ca16a95c..5120ece6a95 100644
--- a/processing/src/main/java/io/druid/segment/RowCombiningTimeAndDimsIterator.java
+++ b/processing/src/main/java/org/apache/druid/segment/RowCombiningTimeAndDimsIterator.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.query.aggregation.AggregateCombiner;
-import io.druid.query.aggregation.AggregatorFactory;
+import org.apache.druid.query.aggregation.AggregateCombiner;
+import org.apache.druid.query.aggregation.AggregatorFactory;
import javax.annotation.Nullable;
import java.util.Arrays;
diff --git a/processing/src/main/java/io/druid/segment/RowFilteringIndexAdapter.java b/processing/src/main/java/org/apache/druid/segment/RowFilteringIndexAdapter.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/RowFilteringIndexAdapter.java
rename to processing/src/main/java/org/apache/druid/segment/RowFilteringIndexAdapter.java
index cb464cb4877..289d74d61f6 100644
--- a/processing/src/main/java/io/druid/segment/RowFilteringIndexAdapter.java
+++ b/processing/src/main/java/org/apache/druid/segment/RowFilteringIndexAdapter.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.data.BitmapValues;
-import io.druid.segment.data.Indexed;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.data.BitmapValues;
+import org.apache.druid.segment.data.Indexed;
import org.joda.time.Interval;
import java.util.List;
diff --git a/processing/src/main/java/io/druid/segment/RowIterator.java b/processing/src/main/java/org/apache/druid/segment/RowIterator.java
similarity index 99%
rename from processing/src/main/java/io/druid/segment/RowIterator.java
rename to processing/src/main/java/org/apache/druid/segment/RowIterator.java
index d06361ace54..11b34f90a38 100644
--- a/processing/src/main/java/io/druid/segment/RowIterator.java
+++ b/processing/src/main/java/org/apache/druid/segment/RowIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
/**
* Extension of {@link TimeAndDimsIterator}, specialized for {@link RowPointer} instead of {@link TimeAndDimsPointer}.
diff --git a/processing/src/main/java/io/druid/segment/RowNumCounter.java b/processing/src/main/java/org/apache/druid/segment/RowNumCounter.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/RowNumCounter.java
rename to processing/src/main/java/org/apache/druid/segment/RowNumCounter.java
index a304b35d307..b7f877c3b0f 100644
--- a/processing/src/main/java/io/druid/segment/RowNumCounter.java
+++ b/processing/src/main/java/org/apache/druid/segment/RowNumCounter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import java.util.function.IntSupplier;
diff --git a/processing/src/main/java/io/druid/segment/RowPointer.java b/processing/src/main/java/org/apache/druid/segment/RowPointer.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/RowPointer.java
rename to processing/src/main/java/org/apache/druid/segment/RowPointer.java
index 68775b746b6..dcb7ab6b204 100644
--- a/processing/src/main/java/io/druid/segment/RowPointer.java
+++ b/processing/src/main/java/org/apache/druid/segment/RowPointer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import java.util.List;
import java.util.function.IntSupplier;
diff --git a/processing/src/main/java/io/druid/segment/Segment.java b/processing/src/main/java/org/apache/druid/segment/Segment.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/Segment.java
rename to processing/src/main/java/org/apache/druid/segment/Segment.java
index f62089c6d86..3f7395430c1 100644
--- a/processing/src/main/java/io/druid/segment/Segment.java
+++ b/processing/src/main/java/org/apache/druid/segment/Segment.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.guice.annotations.PublicApi;
+import org.apache.druid.guice.annotations.PublicApi;
import org.joda.time.Interval;
import java.io.Closeable;
diff --git a/processing/src/main/java/io/druid/segment/SegmentMissingException.java b/processing/src/main/java/org/apache/druid/segment/SegmentMissingException.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/SegmentMissingException.java
rename to processing/src/main/java/org/apache/druid/segment/SegmentMissingException.java
index 925cf71680a..ea102d3e0b2 100644
--- a/processing/src/main/java/io/druid/segment/SegmentMissingException.java
+++ b/processing/src/main/java/org/apache/druid/segment/SegmentMissingException.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
public class SegmentMissingException extends ISE
{
diff --git a/processing/src/main/java/io/druid/segment/SegmentValidationException.java b/processing/src/main/java/org/apache/druid/segment/SegmentValidationException.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/SegmentValidationException.java
rename to processing/src/main/java/org/apache/druid/segment/SegmentValidationException.java
index 2e1b529a2f4..1b7b6c6acd7 100644
--- a/processing/src/main/java/io/druid/segment/SegmentValidationException.java
+++ b/processing/src/main/java/org/apache/druid/segment/SegmentValidationException.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
/**
*
diff --git a/processing/src/main/java/io/druid/segment/SimpleAscendingOffset.java b/processing/src/main/java/org/apache/druid/segment/SimpleAscendingOffset.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/SimpleAscendingOffset.java
rename to processing/src/main/java/org/apache/druid/segment/SimpleAscendingOffset.java
index a08dfa5cdfc..31b635b5d03 100644
--- a/processing/src/main/java/io/druid/segment/SimpleAscendingOffset.java
+++ b/processing/src/main/java/org/apache/druid/segment/SimpleAscendingOffset.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.Offset;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.Offset;
+import org.apache.druid.segment.data.ReadableOffset;
public class SimpleAscendingOffset extends Offset
{
diff --git a/processing/src/main/java/io/druid/segment/SimpleDescendingOffset.java b/processing/src/main/java/org/apache/druid/segment/SimpleDescendingOffset.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/SimpleDescendingOffset.java
rename to processing/src/main/java/org/apache/druid/segment/SimpleDescendingOffset.java
index ca6f5d4e0a6..f19e36cc682 100644
--- a/processing/src/main/java/io/druid/segment/SimpleDescendingOffset.java
+++ b/processing/src/main/java/org/apache/druid/segment/SimpleDescendingOffset.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.Offset;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.Offset;
+import org.apache.druid.segment.data.ReadableOffset;
public class SimpleDescendingOffset extends Offset
{
diff --git a/processing/src/main/java/io/druid/segment/SimpleQueryableIndex.java b/processing/src/main/java/org/apache/druid/segment/SimpleQueryableIndex.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/SimpleQueryableIndex.java
rename to processing/src/main/java/org/apache/druid/segment/SimpleQueryableIndex.java
index 04393774829..2ff1b637cf4 100644
--- a/processing/src/main/java/io/druid/segment/SimpleQueryableIndex.java
+++ b/processing/src/main/java/org/apache/druid/segment/SimpleQueryableIndex.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Maps;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.java.util.common.io.smoosh.SmooshedFileMapper;
-import io.druid.segment.column.Column;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.data.Indexed;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper;
+import org.apache.druid.segment.column.Column;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.data.Indexed;
import org.joda.time.Interval;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/SingleScanTimeDimSelector.java b/processing/src/main/java/org/apache/druid/segment/SingleScanTimeDimSelector.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/SingleScanTimeDimSelector.java
rename to processing/src/main/java/org/apache/druid/segment/SingleScanTimeDimSelector.java
index 17b4b157deb..265297bf3fd 100644
--- a/processing/src/main/java/io/druid/segment/SingleScanTimeDimSelector.java
+++ b/processing/src/main/java/org/apache/druid/segment/SingleScanTimeDimSelector.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Predicate;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.query.filter.ValueMatcher;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.SingleIndexedInt;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.query.filter.ValueMatcher;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.SingleIndexedInt;
import javax.annotation.Nullable;
import java.util.ArrayList;
diff --git a/processing/src/main/java/io/druid/segment/StorageAdapter.java b/processing/src/main/java/org/apache/druid/segment/StorageAdapter.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/StorageAdapter.java
rename to processing/src/main/java/org/apache/druid/segment/StorageAdapter.java
index 5412d254c4c..009759c964d 100644
--- a/processing/src/main/java/io/druid/segment/StorageAdapter.java
+++ b/processing/src/main/java/org/apache/druid/segment/StorageAdapter.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.guice.annotations.PublicApi;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.data.Indexed;
+import org.apache.druid.guice.annotations.PublicApi;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.data.Indexed;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/processing/src/main/java/io/druid/segment/StringDimensionHandler.java b/processing/src/main/java/org/apache/druid/segment/StringDimensionHandler.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/StringDimensionHandler.java
rename to processing/src/main/java/org/apache/druid/segment/StringDimensionHandler.java
index c1273189a65..cafc5c8843d 100644
--- a/processing/src/main/java/io/druid/segment/StringDimensionHandler.java
+++ b/processing/src/main/java/org/apache/druid/segment/StringDimensionHandler.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
-import io.druid.data.input.impl.DimensionSchema.MultiValueHandling;
-import io.druid.java.util.common.ISE;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.ZeroIndexedInts;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
-import io.druid.segment.selector.settable.SettableDimensionValueSelector;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.data.input.impl.DimensionSchema.MultiValueHandling;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.ZeroIndexedInts;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableDimensionValueSelector;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import java.util.Comparator;
diff --git a/processing/src/main/java/io/druid/segment/StringDimensionIndexer.java b/processing/src/main/java/org/apache/druid/segment/StringDimensionIndexer.java
similarity index 95%
rename from processing/src/main/java/io/druid/segment/StringDimensionIndexer.java
rename to processing/src/main/java/org/apache/druid/segment/StringDimensionIndexer.java
index d75d00d15d6..89f025ce1e8 100644
--- a/processing/src/main/java/io/druid/segment/StringDimensionIndexer.java
+++ b/processing/src/main/java/org/apache/druid/segment/StringDimensionIndexer.java
@@ -17,31 +17,31 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Lists;
import com.google.common.primitives.Ints;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.collections.bitmap.MutableBitmap;
-import io.druid.common.config.NullHandling;
-import io.druid.data.input.impl.DimensionSchema.MultiValueHandling;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.query.dimension.DefaultDimensionSpec;
-import io.druid.query.dimension.DimensionSpec;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.query.filter.ValueMatcher;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.data.ArrayBasedIndexedInts;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.IndexedIterable;
-import io.druid.segment.filter.BooleanValueMatcher;
-import io.druid.segment.incremental.IncrementalIndex;
-import io.druid.segment.incremental.IncrementalIndexRow;
-import io.druid.segment.incremental.IncrementalIndexRowHolder;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.collections.bitmap.MutableBitmap;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.data.input.impl.DimensionSchema.MultiValueHandling;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.query.dimension.DefaultDimensionSpec;
+import org.apache.druid.query.dimension.DimensionSpec;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.query.filter.ValueMatcher;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.data.ArrayBasedIndexedInts;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.IndexedIterable;
+import org.apache.druid.segment.filter.BooleanValueMatcher;
+import org.apache.druid.segment.incremental.IncrementalIndex;
+import org.apache.druid.segment.incremental.IncrementalIndexRow;
+import org.apache.druid.segment.incremental.IncrementalIndexRowHolder;
import it.unimi.dsi.fastutil.ints.IntArrays;
import it.unimi.dsi.fastutil.ints.IntIterator;
import it.unimi.dsi.fastutil.objects.Object2IntMap;
diff --git a/processing/src/main/java/io/druid/segment/StringDimensionMergerV9.java b/processing/src/main/java/org/apache/druid/segment/StringDimensionMergerV9.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/StringDimensionMergerV9.java
rename to processing/src/main/java/org/apache/druid/segment/StringDimensionMergerV9.java
index 2d9fc40c3ff..40146dad52f 100644
--- a/processing/src/main/java/io/druid/segment/StringDimensionMergerV9.java
+++ b/processing/src/main/java/org/apache/druid/segment/StringDimensionMergerV9.java
@@ -17,45 +17,45 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Predicate;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.collections.bitmap.MutableBitmap;
-import io.druid.collections.spatial.ImmutableRTree;
-import io.druid.collections.spatial.RTree;
-import io.druid.collections.spatial.split.LinearGutmanSplitStrategy;
-import io.druid.common.config.NullHandling;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.query.filter.ValueMatcher;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.column.ColumnDescriptor;
-import io.druid.segment.column.ValueType;
-import io.druid.segment.data.ArrayIndexed;
-import io.druid.segment.data.BitmapSerdeFactory;
-import io.druid.segment.data.BitmapValues;
-import io.druid.segment.data.ByteBufferWriter;
-import io.druid.segment.data.ColumnarIntsSerializer;
-import io.druid.segment.data.ColumnarMultiIntsSerializer;
-import io.druid.segment.data.CompressedVSizeColumnarIntsSerializer;
-import io.druid.segment.data.CompressionStrategy;
-import io.druid.segment.data.GenericIndexed;
-import io.druid.segment.data.GenericIndexedWriter;
-import io.druid.segment.data.ImmutableRTreeObjectStrategy;
-import io.druid.segment.data.Indexed;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.SingleValueColumnarIntsSerializer;
-import io.druid.segment.data.V3CompressedVSizeColumnarMultiIntsSerializer;
-import io.druid.segment.data.VSizeColumnarIntsSerializer;
-import io.druid.segment.data.VSizeColumnarMultiIntsSerializer;
-import io.druid.segment.serde.DictionaryEncodedColumnPartSerde;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.collections.bitmap.MutableBitmap;
+import org.apache.druid.collections.spatial.ImmutableRTree;
+import org.apache.druid.collections.spatial.RTree;
+import org.apache.druid.collections.spatial.split.LinearGutmanSplitStrategy;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.query.filter.ValueMatcher;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.column.ColumnDescriptor;
+import org.apache.druid.segment.column.ValueType;
+import org.apache.druid.segment.data.ArrayIndexed;
+import org.apache.druid.segment.data.BitmapSerdeFactory;
+import org.apache.druid.segment.data.BitmapValues;
+import org.apache.druid.segment.data.ByteBufferWriter;
+import org.apache.druid.segment.data.ColumnarIntsSerializer;
+import org.apache.druid.segment.data.ColumnarMultiIntsSerializer;
+import org.apache.druid.segment.data.CompressedVSizeColumnarIntsSerializer;
+import org.apache.druid.segment.data.CompressionStrategy;
+import org.apache.druid.segment.data.GenericIndexed;
+import org.apache.druid.segment.data.GenericIndexedWriter;
+import org.apache.druid.segment.data.ImmutableRTreeObjectStrategy;
+import org.apache.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.SingleValueColumnarIntsSerializer;
+import org.apache.druid.segment.data.V3CompressedVSizeColumnarMultiIntsSerializer;
+import org.apache.druid.segment.data.VSizeColumnarIntsSerializer;
+import org.apache.druid.segment.data.VSizeColumnarMultiIntsSerializer;
+import org.apache.druid.segment.serde.DictionaryEncodedColumnPartSerde;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import it.unimi.dsi.fastutil.ints.IntIterable;
import it.unimi.dsi.fastutil.ints.IntIterator;
diff --git a/processing/src/main/java/io/druid/segment/TimeAndDimsIterator.java b/processing/src/main/java/org/apache/druid/segment/TimeAndDimsIterator.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/TimeAndDimsIterator.java
rename to processing/src/main/java/org/apache/druid/segment/TimeAndDimsIterator.java
index 097b9492f95..64682670efb 100644
--- a/processing/src/main/java/io/druid/segment/TimeAndDimsIterator.java
+++ b/processing/src/main/java/org/apache/druid/segment/TimeAndDimsIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import java.io.Closeable;
diff --git a/processing/src/main/java/io/druid/segment/TimeAndDimsPointer.java b/processing/src/main/java/org/apache/druid/segment/TimeAndDimsPointer.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/TimeAndDimsPointer.java
rename to processing/src/main/java/org/apache/druid/segment/TimeAndDimsPointer.java
index 56fa5baae43..2ee41711dbe 100644
--- a/processing/src/main/java/io/druid/segment/TimeAndDimsPointer.java
+++ b/processing/src/main/java/org/apache/druid/segment/TimeAndDimsPointer.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.google.common.base.Preconditions;
-import io.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.DateTimes;
import javax.annotation.Nonnull;
import java.util.Arrays;
@@ -37,7 +37,7 @@ import java.util.Map;
* facilicate ordering and rollup during merging of collections of rows (see {@link IndexMergerV9#merge} methods).
*
* The difference between "time and dims" and "row" abstraction (see {@link
- * io.druid.segment.incremental.IncrementalIndexRow}, {@link RowPointer}) is that "time and dims" is logical composite
+ * org.apache.druid.segment.incremental.IncrementalIndexRow}, {@link RowPointer}) is that "time and dims" is logical composite
* of only time point and dimension and metric values, not tied to a specific position in any data structure (aka "row
* index").
*
diff --git a/processing/src/main/java/io/druid/segment/TransformableRowIterator.java b/processing/src/main/java/org/apache/druid/segment/TransformableRowIterator.java
similarity index 98%
rename from processing/src/main/java/io/druid/segment/TransformableRowIterator.java
rename to processing/src/main/java/org/apache/druid/segment/TransformableRowIterator.java
index 1c1b648efcb..7e0b387a674 100644
--- a/processing/src/main/java/io/druid/segment/TransformableRowIterator.java
+++ b/processing/src/main/java/org/apache/druid/segment/TransformableRowIterator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
/**
* TransformableRowIterator tightens {@link RowIterator#getPointer()} contract, that allows to transform iterated
diff --git a/processing/src/main/java/io/druid/segment/VirtualColumn.java b/processing/src/main/java/org/apache/druid/segment/VirtualColumn.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/VirtualColumn.java
rename to processing/src/main/java/org/apache/druid/segment/VirtualColumn.java
index dde1cda2da2..7382b2ebd75 100644
--- a/processing/src/main/java/io/druid/segment/VirtualColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/VirtualColumn.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import io.druid.java.util.common.Cacheable;
-import io.druid.query.dimension.DimensionSpec;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.virtual.ExpressionVirtualColumn;
+import org.apache.druid.java.util.common.Cacheable;
+import org.apache.druid.query.dimension.DimensionSpec;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.virtual.ExpressionVirtualColumn;
import java.util.List;
diff --git a/processing/src/main/java/io/druid/segment/VirtualColumns.java b/processing/src/main/java/org/apache/druid/segment/VirtualColumns.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/VirtualColumns.java
rename to processing/src/main/java/org/apache/druid/segment/VirtualColumns.java
index 1acb84d1542..8b66444b1aa 100644
--- a/processing/src/main/java/io/druid/segment/VirtualColumns.java
+++ b/processing/src/main/java/org/apache/druid/segment/VirtualColumns.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment;
+package org.apache.druid.segment;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
@@ -27,14 +27,14 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
-import io.druid.java.util.common.Cacheable;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.Pair;
-import io.druid.query.cache.CacheKeyBuilder;
-import io.druid.query.dimension.DimensionSpec;
-import io.druid.segment.column.Column;
-import io.druid.segment.column.ColumnCapabilities;
-import io.druid.segment.virtual.VirtualizedColumnSelectorFactory;
+import org.apache.druid.java.util.common.Cacheable;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.query.cache.CacheKeyBuilder;
+import org.apache.druid.query.dimension.DimensionSpec;
+import org.apache.druid.segment.column.Column;
+import org.apache.druid.segment.column.ColumnCapabilities;
+import org.apache.druid.segment.virtual.VirtualizedColumnSelectorFactory;
import javax.annotation.Nullable;
import java.util.List;
diff --git a/processing/src/main/java/io/druid/segment/column/BaseColumn.java b/processing/src/main/java/org/apache/druid/segment/column/BaseColumn.java
similarity index 86%
rename from processing/src/main/java/io/druid/segment/column/BaseColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/BaseColumn.java
index f5c6f8280ca..8de067ee8e6 100644
--- a/processing/src/main/java/io/druid/segment/column/BaseColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/BaseColumn.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.data.ReadableOffset;
import java.io.Closeable;
diff --git a/processing/src/main/java/io/druid/segment/column/BitmapIndex.java b/processing/src/main/java/org/apache/druid/segment/column/BitmapIndex.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/column/BitmapIndex.java
rename to processing/src/main/java/org/apache/druid/segment/column/BitmapIndex.java
index 9621a7c1a0a..8de489cd3df 100644
--- a/processing/src/main/java/io/druid/segment/column/BitmapIndex.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/BitmapIndex.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/Column.java b/processing/src/main/java/org/apache/druid/segment/column/Column.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/column/Column.java
rename to processing/src/main/java/org/apache/druid/segment/column/Column.java
index 95e223fe2a3..85cde8fe3da 100644
--- a/processing/src/main/java/io/druid/segment/column/Column.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/Column.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.java.util.common.StringUtils;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/ColumnBuilder.java b/processing/src/main/java/org/apache/druid/segment/column/ColumnBuilder.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/column/ColumnBuilder.java
rename to processing/src/main/java/org/apache/druid/segment/column/ColumnBuilder.java
index 6791e2c9552..92ad6f5bb88 100644
--- a/processing/src/main/java/io/druid/segment/column/ColumnBuilder.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ColumnBuilder.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
-import io.druid.java.util.common.io.smoosh.SmooshedFileMapper;
+import org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/ColumnCapabilities.java b/processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilities.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/column/ColumnCapabilities.java
rename to processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilities.java
index 2c11fb90d0a..10fe1c91e4d 100644
--- a/processing/src/main/java/io/druid/segment/column/ColumnCapabilities.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilities.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/ColumnCapabilitiesImpl.java b/processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilitiesImpl.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/column/ColumnCapabilitiesImpl.java
rename to processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilitiesImpl.java
index 76341d76d5c..961163033b2 100644
--- a/processing/src/main/java/io/druid/segment/column/ColumnCapabilitiesImpl.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ColumnCapabilitiesImpl.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.ISE;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/ColumnConfig.java b/processing/src/main/java/org/apache/druid/segment/column/ColumnConfig.java
similarity index 95%
rename from processing/src/main/java/io/druid/segment/column/ColumnConfig.java
rename to processing/src/main/java/org/apache/druid/segment/column/ColumnConfig.java
index c5516d857a3..ed3fa6b4426 100644
--- a/processing/src/main/java/io/druid/segment/column/ColumnConfig.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ColumnConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
public interface ColumnConfig
{
diff --git a/processing/src/main/java/io/druid/segment/column/ColumnDescriptor.java b/processing/src/main/java/org/apache/druid/segment/column/ColumnDescriptor.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/column/ColumnDescriptor.java
rename to processing/src/main/java/org/apache/druid/segment/column/ColumnDescriptor.java
index 8760270c052..3fe4c892697 100644
--- a/processing/src/main/java/io/druid/segment/column/ColumnDescriptor.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ColumnDescriptor.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.java.util.common.io.smoosh.SmooshedFileMapper;
-import io.druid.segment.serde.ColumnPartSerde;
-import io.druid.segment.serde.Serializer;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper;
+import org.apache.druid.segment.serde.ColumnPartSerde;
+import org.apache.druid.segment.serde.Serializer;
import java.io.IOException;
import java.nio.ByteBuffer;
diff --git a/processing/src/main/java/io/druid/segment/column/ComplexColumn.java b/processing/src/main/java/org/apache/druid/segment/column/ComplexColumn.java
similarity index 85%
rename from processing/src/main/java/io/druid/segment/column/ComplexColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/ComplexColumn.java
index ec93b416c15..7075e301b22 100644
--- a/processing/src/main/java/io/druid/segment/column/ComplexColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ComplexColumn.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.ObjectColumnSelector;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.ObjectColumnSelector;
+import org.apache.druid.segment.data.ReadableOffset;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/column/DictionaryEncodedColumn.java b/processing/src/main/java/org/apache/druid/segment/column/DictionaryEncodedColumn.java
similarity index 82%
rename from processing/src/main/java/io/druid/segment/column/DictionaryEncodedColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/DictionaryEncodedColumn.java
index 79a80f7efe6..d493c46e82c 100644
--- a/processing/src/main/java/io/druid/segment/column/DictionaryEncodedColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/DictionaryEncodedColumn.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.DimensionSelector;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.DimensionSelector;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.ReadableOffset;
import javax.annotation.Nullable;
diff --git a/processing/src/main/java/io/druid/segment/column/DoublesColumn.java b/processing/src/main/java/org/apache/druid/segment/column/DoublesColumn.java
similarity index 83%
rename from processing/src/main/java/io/druid/segment/column/DoublesColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/DoublesColumn.java
index 1f2725c6208..753e45047b3 100644
--- a/processing/src/main/java/io/druid/segment/column/DoublesColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/DoublesColumn.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.IndexIO;
-import io.druid.segment.data.ColumnarDoubles;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.IndexIO;
+import org.apache.druid.segment.data.ColumnarDoubles;
+import org.apache.druid.segment.data.ReadableOffset;
/**
diff --git a/processing/src/main/java/io/druid/segment/column/DoublesColumnWithNulls.java b/processing/src/main/java/org/apache/druid/segment/column/DoublesColumnWithNulls.java
similarity index 82%
rename from processing/src/main/java/io/druid/segment/column/DoublesColumnWithNulls.java
rename to processing/src/main/java/org/apache/druid/segment/column/DoublesColumnWithNulls.java
index 2693ab79c37..905a1db6294 100644
--- a/processing/src/main/java/io/druid/segment/column/DoublesColumnWithNulls.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/DoublesColumnWithNulls.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.data.ColumnarDoubles;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.data.ColumnarDoubles;
+import org.apache.druid.segment.data.ReadableOffset;
/**
* DoublesColumn with null values.
diff --git a/processing/src/main/java/io/druid/segment/column/FloatsColumn.java b/processing/src/main/java/org/apache/druid/segment/column/FloatsColumn.java
similarity index 83%
rename from processing/src/main/java/io/druid/segment/column/FloatsColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/FloatsColumn.java
index 5c8a680f1c3..0337d30fb60 100644
--- a/processing/src/main/java/io/druid/segment/column/FloatsColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/FloatsColumn.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.IndexIO;
-import io.druid.segment.data.ColumnarFloats;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.IndexIO;
+import org.apache.druid.segment.data.ColumnarFloats;
+import org.apache.druid.segment.data.ReadableOffset;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/FloatsColumnWithNulls.java b/processing/src/main/java/org/apache/druid/segment/column/FloatsColumnWithNulls.java
similarity index 82%
rename from processing/src/main/java/io/druid/segment/column/FloatsColumnWithNulls.java
rename to processing/src/main/java/org/apache/druid/segment/column/FloatsColumnWithNulls.java
index 796fa22c482..0ec0d167fea 100644
--- a/processing/src/main/java/io/druid/segment/column/FloatsColumnWithNulls.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/FloatsColumnWithNulls.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.data.ColumnarFloats;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.data.ColumnarFloats;
+import org.apache.druid.segment.data.ReadableOffset;
/**
* FloatsColumn with null values.
diff --git a/processing/src/main/java/io/druid/segment/column/GenericColumn.java b/processing/src/main/java/org/apache/druid/segment/column/GenericColumn.java
similarity index 84%
rename from processing/src/main/java/io/druid/segment/column/GenericColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/GenericColumn.java
index e6da4ff072c..2b12c1cf793 100644
--- a/processing/src/main/java/io/druid/segment/column/GenericColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/GenericColumn.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.query.monomorphicprocessing.CalledFromHotLoop;
-import io.druid.query.monomorphicprocessing.HotLoopCallee;
+import org.apache.druid.query.monomorphicprocessing.CalledFromHotLoop;
+import org.apache.druid.query.monomorphicprocessing.HotLoopCallee;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/IndexedComplexColumn.java b/processing/src/main/java/org/apache/druid/segment/column/IndexedComplexColumn.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/column/IndexedComplexColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/IndexedComplexColumn.java
index 27b49ba62fe..53648673624 100644
--- a/processing/src/main/java/io/druid/segment/column/IndexedComplexColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/IndexedComplexColumn.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.segment.data.Indexed;
+import org.apache.druid.segment.data.Indexed;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/LongsColumn.java b/processing/src/main/java/org/apache/druid/segment/column/LongsColumn.java
similarity index 83%
rename from processing/src/main/java/io/druid/segment/column/LongsColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/LongsColumn.java
index 093be62ae59..6100dbb7a06 100644
--- a/processing/src/main/java/io/druid/segment/column/LongsColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/LongsColumn.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.IndexIO;
-import io.druid.segment.data.ColumnarLongs;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.IndexIO;
+import org.apache.druid.segment.data.ColumnarLongs;
+import org.apache.druid.segment.data.ReadableOffset;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/LongsColumnWithNulls.java b/processing/src/main/java/org/apache/druid/segment/column/LongsColumnWithNulls.java
similarity index 82%
rename from processing/src/main/java/io/druid/segment/column/LongsColumnWithNulls.java
rename to processing/src/main/java/org/apache/druid/segment/column/LongsColumnWithNulls.java
index 72e1eecf191..9c2500d2974 100644
--- a/processing/src/main/java/io/druid/segment/column/LongsColumnWithNulls.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/LongsColumnWithNulls.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.data.ColumnarLongs;
-import io.druid.segment.data.ReadableOffset;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.data.ColumnarLongs;
+import org.apache.druid.segment.data.ReadableOffset;
/**
* LongsColumn with null values.
diff --git a/processing/src/main/java/io/druid/segment/column/SimpleColumn.java b/processing/src/main/java/org/apache/druid/segment/column/SimpleColumn.java
similarity index 95%
rename from processing/src/main/java/io/druid/segment/column/SimpleColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/SimpleColumn.java
index bf76c1b0ddf..71d30e74554 100644
--- a/processing/src/main/java/io/druid/segment/column/SimpleColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/SimpleColumn.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.google.common.base.Supplier;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/SimpleDictionaryEncodedColumn.java b/processing/src/main/java/org/apache/druid/segment/column/SimpleDictionaryEncodedColumn.java
similarity index 90%
rename from processing/src/main/java/io/druid/segment/column/SimpleDictionaryEncodedColumn.java
rename to processing/src/main/java/org/apache/druid/segment/column/SimpleDictionaryEncodedColumn.java
index c325de13379..ef0e8ad9413 100644
--- a/processing/src/main/java/io/druid/segment/column/SimpleDictionaryEncodedColumn.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/SimpleDictionaryEncodedColumn.java
@@ -17,25 +17,25 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
-import io.druid.java.util.common.guava.CloseQuietly;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.query.filter.ValueMatcher;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.DimensionSelectorUtils;
-import io.druid.segment.IdLookup;
-import io.druid.segment.data.CachingIndexed;
-import io.druid.segment.data.ColumnarInts;
-import io.druid.segment.data.ColumnarMultiInts;
-import io.druid.segment.data.IndexedInts;
-import io.druid.segment.data.ReadableOffset;
-import io.druid.segment.data.SingleIndexedInt;
-import io.druid.segment.filter.BooleanValueMatcher;
-import io.druid.segment.historical.HistoricalDimensionSelector;
-import io.druid.segment.historical.SingleValueHistoricalDimensionSelector;
+import org.apache.druid.java.util.common.guava.CloseQuietly;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.query.filter.ValueMatcher;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.DimensionSelectorUtils;
+import org.apache.druid.segment.IdLookup;
+import org.apache.druid.segment.data.CachingIndexed;
+import org.apache.druid.segment.data.ColumnarInts;
+import org.apache.druid.segment.data.ColumnarMultiInts;
+import org.apache.druid.segment.data.IndexedInts;
+import org.apache.druid.segment.data.ReadableOffset;
+import org.apache.druid.segment.data.SingleIndexedInt;
+import org.apache.druid.segment.filter.BooleanValueMatcher;
+import org.apache.druid.segment.historical.HistoricalDimensionSelector;
+import org.apache.druid.segment.historical.SingleValueHistoricalDimensionSelector;
import javax.annotation.Nullable;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/column/SpatialIndex.java b/processing/src/main/java/org/apache/druid/segment/column/SpatialIndex.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/column/SpatialIndex.java
rename to processing/src/main/java/org/apache/druid/segment/column/SpatialIndex.java
index d296e1b6e71..462a15a079b 100644
--- a/processing/src/main/java/io/druid/segment/column/SpatialIndex.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/SpatialIndex.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
-import io.druid.collections.spatial.ImmutableRTree;
+import org.apache.druid.collections.spatial.ImmutableRTree;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/column/ValueType.java b/processing/src/main/java/org/apache/druid/segment/column/ValueType.java
similarity index 76%
rename from processing/src/main/java/io/druid/segment/column/ValueType.java
rename to processing/src/main/java/org/apache/druid/segment/column/ValueType.java
index 472007084c9..ed863d78829 100644
--- a/processing/src/main/java/io/druid/segment/column/ValueType.java
+++ b/processing/src/main/java/org/apache/druid/segment/column/ValueType.java
@@ -17,25 +17,25 @@
* under the License.
*/
-package io.druid.segment.column;
+package org.apache.druid.segment.column;
import com.fasterxml.jackson.annotation.JsonCreator;
-import io.druid.java.util.common.StringUtils;
-import io.druid.query.extraction.ExtractionFn;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.DimensionSelector;
-import io.druid.segment.DoubleWrappingDimensionSelector;
-import io.druid.segment.FloatWrappingDimensionSelector;
-import io.druid.segment.LongWrappingDimensionSelector;
-import io.druid.segment.selector.settable.SettableColumnValueSelector;
-import io.druid.segment.selector.settable.SettableDimensionValueSelector;
-import io.druid.segment.selector.settable.SettableDoubleColumnValueSelector;
-import io.druid.segment.selector.settable.SettableFloatColumnValueSelector;
-import io.druid.segment.selector.settable.SettableLongColumnValueSelector;
-import io.druid.segment.selector.settable.SettableObjectColumnValueSelector;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.query.extraction.ExtractionFn;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.DimensionSelector;
+import org.apache.druid.segment.DoubleWrappingDimensionSelector;
+import org.apache.druid.segment.FloatWrappingDimensionSelector;
+import org.apache.druid.segment.LongWrappingDimensionSelector;
+import org.apache.druid.segment.selector.settable.SettableColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableDimensionValueSelector;
+import org.apache.druid.segment.selector.settable.SettableDoubleColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableFloatColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableLongColumnValueSelector;
+import org.apache.druid.segment.selector.settable.SettableObjectColumnValueSelector;
/**
- * Should be the same as {@link io.druid.data.input.impl.DimensionSchema.ValueType}.
+ * Should be the same as {@link org.apache.druid.data.input.impl.DimensionSchema.ValueType}.
* TODO merge them when druid-api is merged back into the main repo
*/
public enum ValueType
diff --git a/processing/src/main/java/io/druid/segment/data/ArrayBasedIndexedInts.java b/processing/src/main/java/org/apache/druid/segment/data/ArrayBasedIndexedInts.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/data/ArrayBasedIndexedInts.java
rename to processing/src/main/java/org/apache/druid/segment/data/ArrayBasedIndexedInts.java
index 475b8c1015b..450b3e2bb56 100644
--- a/processing/src/main/java/io/druid/segment/data/ArrayBasedIndexedInts.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ArrayBasedIndexedInts.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.java.util.common.IAE;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
import it.unimi.dsi.fastutil.ints.IntArrays;
/**
diff --git a/processing/src/main/java/io/druid/segment/data/ArrayIndexed.java b/processing/src/main/java/org/apache/druid/segment/data/ArrayIndexed.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/data/ArrayIndexed.java
rename to processing/src/main/java/org/apache/druid/segment/data/ArrayIndexed.java
index 718f9bcccdc..7dca91d36d0 100644
--- a/processing/src/main/java/io/druid/segment/data/ArrayIndexed.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ArrayIndexed.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
import java.util.Arrays;
import java.util.Iterator;
diff --git a/processing/src/main/java/io/druid/segment/data/BitmapSerde.java b/processing/src/main/java/org/apache/druid/segment/data/BitmapSerde.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/data/BitmapSerde.java
rename to processing/src/main/java/org/apache/druid/segment/data/BitmapSerde.java
index 25e6085b981..90db1416a0c 100644
--- a/processing/src/main/java/io/druid/segment/data/BitmapSerde.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BitmapSerde.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.fasterxml.jackson.annotation.JsonTypeName;
diff --git a/processing/src/main/java/io/druid/segment/data/BitmapSerdeFactory.java b/processing/src/main/java/org/apache/druid/segment/data/BitmapSerdeFactory.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/data/BitmapSerdeFactory.java
rename to processing/src/main/java/org/apache/druid/segment/data/BitmapSerdeFactory.java
index 29850d83be9..71e28e031cd 100644
--- a/processing/src/main/java/io/druid/segment/data/BitmapSerdeFactory.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BitmapSerdeFactory.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import io.druid.collections.bitmap.BitmapFactory;
-import io.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.collections.bitmap.BitmapFactory;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
/**
*/
diff --git a/processing/src/main/java/io/druid/segment/data/BitmapValues.java b/processing/src/main/java/org/apache/druid/segment/data/BitmapValues.java
similarity index 97%
rename from processing/src/main/java/io/druid/segment/data/BitmapValues.java
rename to processing/src/main/java/org/apache/druid/segment/data/BitmapValues.java
index 077ac824946..00ecde570dd 100644
--- a/processing/src/main/java/io/druid/segment/data/BitmapValues.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BitmapValues.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import it.unimi.dsi.fastutil.ints.IntIterator;
import it.unimi.dsi.fastutil.ints.IntIterators;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java
similarity index 91%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java
index 3f754d22161..8c2db09fefa 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSerializer.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.java.util.common.io.Closer;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.CompressedPools;
-import io.druid.segment.serde.MetaSerdeHelper;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.CompressedPools;
+import org.apache.druid.segment.serde.MetaSerdeHelper;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
import java.io.IOException;
import java.nio.ByteBuffer;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java
index 2e60cb4e051..8701ea970f8 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarDoublesSupplier.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.google.common.base.Supplier;
-import io.druid.collections.ResourceHolder;
-import io.druid.java.util.common.guava.CloseQuietly;
+import org.apache.druid.collections.ResourceHolder;
+import org.apache.druid.java.util.common.guava.CloseQuietly;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java
similarity index 91%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java
index 0a6b657aed7..4411c0898c8 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSerializer.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.java.util.common.io.Closer;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
-import io.druid.segment.CompressedPools;
-import io.druid.segment.serde.MetaSerdeHelper;
+import org.apache.druid.java.util.common.io.Closer;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.CompressedPools;
+import org.apache.druid.segment.serde.MetaSerdeHelper;
import java.io.IOException;
import java.nio.ByteBuffer;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java
similarity index 95%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java
index dd1639dbe71..5673164131e 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarFloatsSupplier.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.google.common.base.Supplier;
-import io.druid.collections.ResourceHolder;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.guava.CloseQuietly;
+import org.apache.druid.collections.ResourceHolder;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.guava.CloseQuietly;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSerializer.java
similarity index 93%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSerializer.java
index 1031bc25b68..cad801d4bec 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSerializer.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
-import io.druid.segment.CompressedPools;
-import io.druid.segment.serde.MetaSerdeHelper;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.CompressedPools;
+import org.apache.druid.segment.serde.MetaSerdeHelper;
import java.io.IOException;
import java.nio.ByteBuffer;
diff --git a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSupplier.java b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSupplier.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSupplier.java
rename to processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSupplier.java
index 4ced7c6eea3..b8be1de9627 100644
--- a/processing/src/main/java/io/druid/segment/data/BlockLayoutColumnarLongsSupplier.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/BlockLayoutColumnarLongsSupplier.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.google.common.base.Supplier;
-import io.druid.collections.ResourceHolder;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.guava.CloseQuietly;
+import org.apache.druid.collections.ResourceHolder;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.guava.CloseQuietly;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
diff --git a/processing/src/main/java/io/druid/segment/data/ByteBufferWriter.java b/processing/src/main/java/org/apache/druid/segment/data/ByteBufferWriter.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/data/ByteBufferWriter.java
rename to processing/src/main/java/org/apache/druid/segment/data/ByteBufferWriter.java
index 48bc8170b0c..71529440113 100644
--- a/processing/src/main/java/io/druid/segment/data/ByteBufferWriter.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ByteBufferWriter.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import com.google.common.base.Preconditions;
import com.google.common.primitives.Ints;
-import io.druid.java.util.common.io.smoosh.FileSmoosher;
-import io.druid.segment.serde.Serializer;
-import io.druid.segment.writeout.SegmentWriteOutMedium;
-import io.druid.segment.writeout.WriteOutBytes;
+import org.apache.druid.java.util.common.io.smoosh.FileSmoosher;
+import org.apache.druid.segment.serde.Serializer;
+import org.apache.druid.segment.writeout.SegmentWriteOutMedium;
+import org.apache.druid.segment.writeout.WriteOutBytes;
import java.io.IOException;
import java.nio.channels.WritableByteChannel;
diff --git a/processing/src/main/java/io/druid/segment/data/CacheableObjectStrategy.java b/processing/src/main/java/org/apache/druid/segment/data/CacheableObjectStrategy.java
similarity index 96%
rename from processing/src/main/java/io/druid/segment/data/CacheableObjectStrategy.java
rename to processing/src/main/java/org/apache/druid/segment/data/CacheableObjectStrategy.java
index 0de7d46f933..25b454b3fce 100644
--- a/processing/src/main/java/io/druid/segment/data/CacheableObjectStrategy.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/CacheableObjectStrategy.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
/**
* Implementing CacheableObjectStrategy instead of ObjectSrategy indicates
diff --git a/processing/src/main/java/io/druid/segment/data/CachingIndexed.java b/processing/src/main/java/org/apache/druid/segment/data/CachingIndexed.java
similarity index 94%
rename from processing/src/main/java/io/druid/segment/data/CachingIndexed.java
rename to processing/src/main/java/org/apache/druid/segment/data/CachingIndexed.java
index bd686374be1..863f2fc2b49 100644
--- a/processing/src/main/java/io/druid/segment/data/CachingIndexed.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/CachingIndexed.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
import java.io.Closeable;
import java.util.Iterator;
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarDoubles.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarDoubles.java
similarity index 86%
rename from processing/src/main/java/io/druid/segment/data/ColumnarDoubles.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarDoubles.java
index c01c281a5e4..39e9cf03aba 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarDoubles.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarDoubles.java
@@ -17,20 +17,20 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.common.config.NullHandling;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.DoubleColumnSelector;
-import io.druid.segment.historical.HistoricalColumnSelector;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.DoubleColumnSelector;
+import org.apache.druid.segment.historical.HistoricalColumnSelector;
import java.io.Closeable;
/**
* Resource that provides random access to a packed array of primitive doubles. Backs up {@link
- * io.druid.segment.column.DoublesColumn}.
+ * org.apache.druid.segment.column.DoublesColumn}.
*/
public interface ColumnarDoubles extends Closeable
{
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarDoublesSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarDoublesSerializer.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/data/ColumnarDoublesSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarDoublesSerializer.java
index 91bf6c4b310..da1b9779d1d 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarDoublesSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarDoublesSerializer.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.segment.serde.Serializer;
+import org.apache.druid.segment.serde.Serializer;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarFloats.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarFloats.java
similarity index 87%
rename from processing/src/main/java/io/druid/segment/data/ColumnarFloats.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarFloats.java
index 31910c2241c..f8441a27b68 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarFloats.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarFloats.java
@@ -17,20 +17,20 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.common.config.NullHandling;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.FloatColumnSelector;
-import io.druid.segment.historical.HistoricalColumnSelector;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.FloatColumnSelector;
+import org.apache.druid.segment.historical.HistoricalColumnSelector;
import java.io.Closeable;
/**
* Resource that provides random access to a packed array of primitive floats. Backs up {@link
- * io.druid.segment.column.FloatsColumn}.
+ * org.apache.druid.segment.column.FloatsColumn}.
*/
public interface ColumnarFloats extends Closeable
{
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarFloatsSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarFloatsSerializer.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/data/ColumnarFloatsSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarFloatsSerializer.java
index b07bee6f653..efa63088e26 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarFloatsSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarFloatsSerializer.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.segment.serde.Serializer;
+import org.apache.druid.segment.serde.Serializer;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarInts.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarInts.java
similarity index 87%
rename from processing/src/main/java/io/druid/segment/data/ColumnarInts.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarInts.java
index 2f946ddd8c1..458be0b9ba5 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarInts.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarInts.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import java.io.Closeable;
/**
* Resource that provides random access to a packed array of primitive int values. Typically backs up dictionary-encoded
- * string columns (see {@link io.druid.segment.column.DictionaryEncodedColumn}), either directly for single-valued
+ * string columns (see {@link org.apache.druid.segment.column.DictionaryEncodedColumn}), either directly for single-valued
* string columns, or indirectly as part of implementation of {@link ColumnarMultiInts}.
*/
public interface ColumnarInts extends IndexedInts, Closeable
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarIntsSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarIntsSerializer.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/data/ColumnarIntsSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarIntsSerializer.java
index 0b009d4b72f..77aa8d4eecd 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarIntsSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarIntsSerializer.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.segment.serde.Serializer;
+import org.apache.druid.segment.serde.Serializer;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarLongs.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarLongs.java
similarity index 87%
rename from processing/src/main/java/io/druid/segment/data/ColumnarLongs.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarLongs.java
index 3e942d94282..00ff086ddd8 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarLongs.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarLongs.java
@@ -17,20 +17,20 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.collections.bitmap.ImmutableBitmap;
-import io.druid.common.config.NullHandling;
-import io.druid.query.monomorphicprocessing.RuntimeShapeInspector;
-import io.druid.segment.ColumnValueSelector;
-import io.druid.segment.LongColumnSelector;
-import io.druid.segment.historical.HistoricalColumnSelector;
+import org.apache.druid.collections.bitmap.ImmutableBitmap;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
+import org.apache.druid.segment.ColumnValueSelector;
+import org.apache.druid.segment.LongColumnSelector;
+import org.apache.druid.segment.historical.HistoricalColumnSelector;
import java.io.Closeable;
/**
* Resource that provides random access to a packed array of primitive longs. Backs up {@link
- * io.druid.segment.column.LongsColumn}.
+ * org.apache.druid.segment.column.LongsColumn}.
*/
public interface ColumnarLongs extends Closeable
{
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarLongsSerializer.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarLongsSerializer.java
similarity index 92%
rename from processing/src/main/java/io/druid/segment/data/ColumnarLongsSerializer.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarLongsSerializer.java
index e13b8bc9afa..05cf26439e3 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarLongsSerializer.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarLongsSerializer.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
-import io.druid.segment.serde.Serializer;
+import org.apache.druid.segment.serde.Serializer;
import java.io.IOException;
diff --git a/processing/src/main/java/io/druid/segment/data/ColumnarMultiInts.java b/processing/src/main/java/org/apache/druid/segment/data/ColumnarMultiInts.java
similarity index 89%
rename from processing/src/main/java/io/druid/segment/data/ColumnarMultiInts.java
rename to processing/src/main/java/org/apache/druid/segment/data/ColumnarMultiInts.java
index 0a9815db5af..8392e133ff7 100644
--- a/processing/src/main/java/io/druid/segment/data/ColumnarMultiInts.java
+++ b/processing/src/main/java/org/apache/druid/segment/data/ColumnarMultiInts.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.segment.data;
+package org.apache.druid.segment.data;
import java.io.Closeable;
/**
* Resource that provides random access to a packed array of short arrays of ints ({@link IndexedInts}). Backs up
- * multi-valued {@link io.druid.segment.column.DictionaryEncodedColumn}s.
+ * multi-valued {@link org.apache.druid.segment.column.DictionaryEncodedColumn}s.
*/
public interface ColumnarMultiInts extends Indexed
* The toString() method converts the enum name() to lowercase and replaces underscores with hyphens,
* which is the format expected for the server type string prior to the patch that introduced ServerType:
- * https://github.com/druid-io/druid/pull/4148
+ * https://github.com/apache/incubator-druid/pull/4148
*/
public enum ServerType
{
@@ -60,7 +60,7 @@ public enum ServerType
*
* @return true if it is available for replication
*
- * @see io.druid.server.coordinator.rules.LoadRule
+ * @see org.apache.druid.server.coordinator.rules.LoadRule
*/
public boolean isSegmentReplicationTarget()
{
diff --git a/server/src/main/java/io/druid/server/coordination/ZkCoordinator.java b/server/src/main/java/org/apache/druid/server/coordination/ZkCoordinator.java
similarity index 93%
rename from server/src/main/java/io/druid/server/coordination/ZkCoordinator.java
rename to server/src/main/java/org/apache/druid/server/coordination/ZkCoordinator.java
index 9e68a86b4ce..96925bcd62f 100644
--- a/server/src/main/java/io/druid/server/coordination/ZkCoordinator.java
+++ b/server/src/main/java/org/apache/druid/server/coordination/ZkCoordinator.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.server.coordination;
+package org.apache.druid.server.coordination;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Throwables;
import com.google.inject.Inject;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.java.util.common.concurrent.Execs;
-import io.druid.java.util.common.lifecycle.LifecycleStart;
-import io.druid.java.util.common.lifecycle.LifecycleStop;
-import io.druid.server.initialization.ZkPathsConfig;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.common.concurrent.Execs;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStart;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStop;
+import org.apache.druid.server.initialization.ZkPathsConfig;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.ChildData;
import org.apache.curator.framework.recipes.cache.PathChildrenCache;
@@ -37,7 +37,7 @@ import org.apache.curator.utils.ZKPaths;
import java.io.IOException;
/**
- * Use {@link io.druid.server.coordinator.HttpLoadQueuePeon} for segment load/drops.
+ * Use {@link org.apache.druid.server.coordinator.HttpLoadQueuePeon} for segment load/drops.
*/
@Deprecated
public class ZkCoordinator
diff --git a/server/src/main/java/io/druid/server/coordination/broker/DruidBroker.java b/server/src/main/java/org/apache/druid/server/coordination/broker/DruidBroker.java
similarity index 81%
rename from server/src/main/java/io/druid/server/coordination/broker/DruidBroker.java
rename to server/src/main/java/org/apache/druid/server/coordination/broker/DruidBroker.java
index 0ef6d10e27a..41e6d9ad0b5 100644
--- a/server/src/main/java/io/druid/server/coordination/broker/DruidBroker.java
+++ b/server/src/main/java/org/apache/druid/server/coordination/broker/DruidBroker.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordination.broker;
+package org.apache.druid.server.coordination.broker;
import com.google.common.base.Predicates;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.inject.Inject;
-import io.druid.client.FilteredServerInventoryView;
-import io.druid.client.ServerView;
-import io.druid.curator.discovery.ServiceAnnouncer;
-import io.druid.guice.ManageLifecycle;
-import io.druid.guice.annotations.Self;
-import io.druid.java.util.common.lifecycle.LifecycleStart;
-import io.druid.java.util.common.lifecycle.LifecycleStop;
-import io.druid.server.DruidNode;
+import org.apache.druid.client.FilteredServerInventoryView;
+import org.apache.druid.client.ServerView;
+import org.apache.druid.curator.discovery.ServiceAnnouncer;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.guice.annotations.Self;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStart;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStop;
+import org.apache.druid.server.DruidNode;
@ManageLifecycle
public class DruidBroker
diff --git a/server/src/main/java/io/druid/server/coordinator/BalancerSegmentHolder.java b/server/src/main/java/org/apache/druid/server/coordinator/BalancerSegmentHolder.java
similarity index 91%
rename from server/src/main/java/io/druid/server/coordinator/BalancerSegmentHolder.java
rename to server/src/main/java/org/apache/druid/server/coordinator/BalancerSegmentHolder.java
index 5895e90227a..b842e3f5fb8 100644
--- a/server/src/main/java/io/druid/server/coordinator/BalancerSegmentHolder.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/BalancerSegmentHolder.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.timeline.DataSegment;
/**
*/
diff --git a/server/src/main/java/io/druid/server/coordinator/BalancerStrategy.java b/server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategy.java
similarity index 89%
rename from server/src/main/java/io/druid/server/coordinator/BalancerStrategy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategy.java
index 375c5c5f15a..059f2aab06b 100644
--- a/server/src/main/java/io/druid/server/coordinator/BalancerStrategy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategy.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.Iterator;
import java.util.List;
@@ -28,8 +28,8 @@ import java.util.NavigableSet;
/**
* This interface describes the coordinator balancing strategy, which is responsible for making decisions on where
* to place {@link DataSegment}s on historical servers (described by {@link ServerHolder}). The balancing strategy
- * is used by {@link io.druid.server.coordinator.rules.LoadRule} to assign and drop segments, and by
- * {@link io.druid.server.coordinator.helper.DruidCoordinatorBalancer} to migrate segments between historicals.
+ * is used by {@link org.apache.druid.server.coordinator.rules.LoadRule} to assign and drop segments, and by
+ * {@link org.apache.druid.server.coordinator.helper.DruidCoordinatorBalancer} to migrate segments between historicals.
*/
public interface BalancerStrategy
{
@@ -72,7 +72,7 @@ public interface BalancerStrategy
/**
* Add balancing strategy stats during the 'balanceTier' operation of
- * {@link io.druid.server.coordinator.helper.DruidCoordinatorBalancer} to be included
+ * {@link org.apache.druid.server.coordinator.helper.DruidCoordinatorBalancer} to be included
* @param tier historical tier being balanced
* @param stats stats object to add balancing strategy stats to
* @param serverHolderList servers in tier being balanced
diff --git a/server/src/main/java/io/druid/server/coordinator/BalancerStrategyFactory.java b/server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategyFactory.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/BalancerStrategyFactory.java
rename to server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategyFactory.java
index 4e927d75d16..b168ab1161e 100644
--- a/server/src/main/java/io/druid/server/coordinator/BalancerStrategyFactory.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/BalancerStrategyFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
diff --git a/server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategy.java b/server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategy.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategy.java
index 18caeeb24fc..62082b4d8c4 100644
--- a/server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategy.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import com.google.common.util.concurrent.ListeningExecutorService;
-import io.druid.server.coordinator.cost.ClusterCostCache;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.server.coordinator.cost.ClusterCostCache;
+import org.apache.druid.timeline.DataSegment;
import java.util.Set;
diff --git a/server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategyFactory.java b/server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategyFactory.java
similarity index 88%
rename from server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategyFactory.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategyFactory.java
index a8c960c3fa4..20c8921b79c 100644
--- a/server/src/main/java/io/druid/server/coordinator/CachingCostBalancerStrategyFactory.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CachingCostBalancerStrategyFactory.java
@@ -17,21 +17,21 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.google.common.util.concurrent.ListeningExecutorService;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.client.ServerInventoryView;
-import io.druid.client.ServerView;
-import io.druid.java.util.common.concurrent.Execs;
-import io.druid.java.util.common.lifecycle.Lifecycle;
-import io.druid.java.util.common.lifecycle.LifecycleStart;
-import io.druid.java.util.common.lifecycle.LifecycleStop;
-import io.druid.server.coordination.DruidServerMetadata;
-import io.druid.server.coordinator.cost.ClusterCostCache;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.client.ServerInventoryView;
+import org.apache.druid.client.ServerView;
+import org.apache.druid.java.util.common.concurrent.Execs;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStart;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStop;
+import org.apache.druid.server.coordination.DruidServerMetadata;
+import org.apache.druid.server.coordinator.cost.ClusterCostCache;
+import org.apache.druid.timeline.DataSegment;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
@@ -61,7 +61,7 @@ public class CachingCostBalancerStrategyFactory implements BalancerStrategyFacto
) throws Exception
{
// Adding to lifecycle dynamically because couldn't use @ManageLifecycle on the class,
- // see https://github.com/druid-io/druid/issues/4980
+ // see https://github.com/apache/incubator-druid/issues/4980
lifecycle.addMaybeStartManagedInstance(this);
serverInventoryView.registerSegmentCallback(
diff --git a/server/src/main/java/io/druid/server/coordinator/CoordinatorCompactionConfig.java b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorCompactionConfig.java
similarity index 99%
rename from server/src/main/java/io/druid/server/coordinator/CoordinatorCompactionConfig.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CoordinatorCompactionConfig.java
index 6c3acbbc179..bb16e438215 100644
--- a/server/src/main/java/io/druid/server/coordinator/CoordinatorCompactionConfig.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorCompactionConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorDynamicConfig.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CoordinatorDynamicConfig.java
index d4dd09694e6..8e8df480bdf 100644
--- a/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorDynamicConfig.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableSet;
-import io.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.IAE;
import javax.annotation.Nullable;
import java.util.Collection;
@@ -34,8 +34,8 @@ import java.util.concurrent.TimeUnit;
* This class is for users to change their configurations while their Druid cluster is running.
* These configurations are designed to allow only simple values rather than complicated JSON objects.
*
- * @see io.druid.common.config.JacksonConfigManager
- * @see io.druid.common.config.ConfigManager
+ * @see org.apache.druid.common.config.JacksonConfigManager
+ * @see org.apache.druid.common.config.ConfigManager
*/
public class CoordinatorDynamicConfig
{
@@ -59,7 +59,7 @@ public class CoordinatorDynamicConfig
* The maximum number of segments that could be queued for loading to any given server.
* Default values is 0 with the meaning of "unbounded" (any number of
* segments could be added to the loading queue for any server).
- * See {@link LoadQueuePeon}, {@link io.druid.server.coordinator.rules.LoadRule#run}
+ * See {@link LoadQueuePeon}, {@link org.apache.druid.server.coordinator.rules.LoadRule#run}
*/
private final int maxSegmentsInNodeLoadingQueue;
@@ -76,7 +76,7 @@ public class CoordinatorDynamicConfig
// Type is Object here so that we can support both string and list as
// coordinator console can not send array of strings in the update request.
- // See https://github.com/druid-io/druid/issues/3055
+ // See https://github.com/apache/incubator-druid/issues/3055
@JsonProperty("killDataSourceWhitelist") Object killDataSourceWhitelist,
@JsonProperty("killAllDataSources") boolean killAllDataSources,
@JsonProperty("killPendingSegmentsSkipList") Object killPendingSegmentsSkipList,
diff --git a/server/src/main/java/io/druid/server/coordinator/CoordinatorOverlordServiceConfig.java b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorOverlordServiceConfig.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/CoordinatorOverlordServiceConfig.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CoordinatorOverlordServiceConfig.java
index 9b38d29f3a0..d7e0f534c06 100644
--- a/server/src/main/java/io/druid/server/coordinator/CoordinatorOverlordServiceConfig.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorOverlordServiceConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;
diff --git a/server/src/main/java/io/druid/server/coordinator/CoordinatorStats.java b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorStats.java
similarity index 99%
rename from server/src/main/java/io/druid/server/coordinator/CoordinatorStats.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CoordinatorStats.java
index 267b33edf43..98842c319ab 100644
--- a/server/src/main/java/io/druid/server/coordinator/CoordinatorStats.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CoordinatorStats.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import it.unimi.dsi.fastutil.objects.Object2LongMap;
import it.unimi.dsi.fastutil.objects.Object2LongMap.Entry;
diff --git a/server/src/main/java/io/druid/server/coordinator/CostBalancerStrategy.java b/server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategy.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/CostBalancerStrategy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategy.java
index 54f9cdf1afb..254e0d55a52 100644
--- a/server/src/main/java/io/druid/server/coordinator/CostBalancerStrategy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategy.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.base.Predicates;
import com.google.common.collect.Iterables;
@@ -25,9 +25,9 @@ import com.google.common.collect.Lists;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.timeline.DataSegment;
import org.apache.commons.math3.util.FastMath;
import org.joda.time.Interval;
@@ -54,7 +54,7 @@ public class CostBalancerStrategy implements BalancerStrategy
/**
* This defines the unnormalized cost function between two segments.
*
- * See https://github.com/druid-io/druid/pull/2972 for more details about the cost function.
+ * See https://github.com/apache/incubator-druid/pull/2972 for more details about the cost function.
*
* intervalCost: segments close together are more likely to be queried together
*
diff --git a/server/src/main/java/io/druid/server/coordinator/CostBalancerStrategyFactory.java b/server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategyFactory.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/CostBalancerStrategyFactory.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategyFactory.java
index c09651cce4d..08cdd05b6eb 100644
--- a/server/src/main/java/io/druid/server/coordinator/CostBalancerStrategyFactory.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CostBalancerStrategyFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.util.concurrent.ListeningExecutorService;
diff --git a/server/src/main/java/io/druid/server/coordinator/CuratorLoadQueuePeon.java b/server/src/main/java/org/apache/druid/server/coordinator/CuratorLoadQueuePeon.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/CuratorLoadQueuePeon.java
rename to server/src/main/java/org/apache/druid/server/coordinator/CuratorLoadQueuePeon.java
index ee0ee78a1ee..25df3586ff2 100644
--- a/server/src/main/java/io/druid/server/coordinator/CuratorLoadQueuePeon.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/CuratorLoadQueuePeon.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.concurrent.ScheduledExecutors;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.server.coordination.DataSegmentChangeRequest;
-import io.druid.server.coordination.SegmentChangeRequestDrop;
-import io.druid.server.coordination.SegmentChangeRequestLoad;
-import io.druid.server.coordination.SegmentChangeRequestNoop;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.concurrent.ScheduledExecutors;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.server.coordination.DataSegmentChangeRequest;
+import org.apache.druid.server.coordination.SegmentChangeRequestDrop;
+import org.apache.druid.server.coordination.SegmentChangeRequestLoad;
+import org.apache.druid.server.coordination.SegmentChangeRequestNoop;
+import org.apache.druid.timeline.DataSegment;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.api.CuratorWatcher;
import org.apache.curator.utils.ZKPaths;
diff --git a/server/src/main/java/io/druid/server/coordinator/DataSourceCompactionConfig.java b/server/src/main/java/org/apache/druid/server/coordinator/DataSourceCompactionConfig.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/DataSourceCompactionConfig.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DataSourceCompactionConfig.java
index 2c8787033d0..1ddcc9e6e73 100644
--- a/server/src/main/java/io/druid/server/coordinator/DataSourceCompactionConfig.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DataSourceCompactionConfig.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;
-import io.druid.client.indexing.ClientCompactQueryTuningConfig;
+import org.apache.druid.client.indexing.ClientCompactQueryTuningConfig;
import org.joda.time.Period;
import javax.annotation.Nullable;
diff --git a/server/src/main/java/io/druid/server/coordinator/DatasourceWhitelist.java b/server/src/main/java/org/apache/druid/server/coordinator/DatasourceWhitelist.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/DatasourceWhitelist.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DatasourceWhitelist.java
index 41d7b5ad742..6d89be3863f 100644
--- a/server/src/main/java/io/druid/server/coordinator/DatasourceWhitelist.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DatasourceWhitelist.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
diff --git a/server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java b/server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java
similarity index 95%
rename from server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java
index b0bd5994be1..1447bf5c121 100644
--- a/server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategy.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.util.concurrent.ListeningExecutorService;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
public class DiskNormalizedCostBalancerStrategy extends CostBalancerStrategy
{
diff --git a/server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java b/server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java
index dbe50d6316c..90fc6f9673b 100644
--- a/server/src/main/java/io/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DiskNormalizedCostBalancerStrategyFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.util.concurrent.ListeningExecutorService;
diff --git a/server/src/main/java/io/druid/server/coordinator/DruidCluster.java b/server/src/main/java/org/apache/druid/server/coordinator/DruidCluster.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/DruidCluster.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DruidCluster.java
index 912a9a059c8..c5ba2a53f83 100644
--- a/server/src/main/java/io/druid/server/coordinator/DruidCluster.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DruidCluster.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.annotations.VisibleForTesting;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.IAE;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.IAE;
import javax.annotation.Nullable;
import java.util.ArrayList;
diff --git a/server/src/main/java/io/druid/server/coordinator/DruidCoordinator.java b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinator.java
similarity index 90%
rename from server/src/main/java/io/druid/server/coordinator/DruidCoordinator.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinator.java
index 253caf1ec43..1589c1cee54 100644
--- a/server/src/main/java/io/druid/server/coordinator/DruidCoordinator.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.base.Function;
import com.google.common.base.Throwables;
@@ -29,48 +29,48 @@ import com.google.common.collect.Sets;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.inject.Inject;
-import io.druid.client.DruidDataSource;
-import io.druid.client.DruidServer;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.client.ServerInventoryView;
-import io.druid.client.coordinator.Coordinator;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.common.config.JacksonConfigManager;
-import io.druid.curator.discovery.ServiceAnnouncer;
-import io.druid.discovery.DruidLeaderSelector;
-import io.druid.guice.ManageLifecycle;
-import io.druid.guice.annotations.CoordinatorIndexingServiceHelper;
-import io.druid.guice.annotations.Self;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.common.concurrent.Execs;
-import io.druid.java.util.common.concurrent.ScheduledExecutorFactory;
-import io.druid.java.util.common.concurrent.ScheduledExecutors;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.java.util.common.guava.FunctionalIterable;
-import io.druid.java.util.common.lifecycle.LifecycleStart;
-import io.druid.java.util.common.lifecycle.LifecycleStop;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.metadata.MetadataRuleManager;
-import io.druid.metadata.MetadataSegmentManager;
-import io.druid.server.DruidNode;
-import io.druid.server.coordinator.helper.DruidCoordinatorBalancer;
-import io.druid.server.coordinator.helper.DruidCoordinatorCleanupOvershadowed;
-import io.druid.server.coordinator.helper.DruidCoordinatorCleanupUnneeded;
-import io.druid.server.coordinator.helper.DruidCoordinatorHelper;
-import io.druid.server.coordinator.helper.DruidCoordinatorLogger;
-import io.druid.server.coordinator.helper.DruidCoordinatorRuleRunner;
-import io.druid.server.coordinator.helper.DruidCoordinatorSegmentCompactor;
-import io.druid.server.coordinator.helper.DruidCoordinatorSegmentInfoLoader;
-import io.druid.server.coordinator.rules.LoadRule;
-import io.druid.server.coordinator.rules.Rule;
-import io.druid.server.initialization.ZkPathsConfig;
-import io.druid.server.lookup.cache.LookupCoordinatorManager;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidDataSource;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.client.ServerInventoryView;
+import org.apache.druid.client.coordinator.Coordinator;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.common.config.JacksonConfigManager;
+import org.apache.druid.curator.discovery.ServiceAnnouncer;
+import org.apache.druid.discovery.DruidLeaderSelector;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.guice.annotations.CoordinatorIndexingServiceHelper;
+import org.apache.druid.guice.annotations.Self;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.concurrent.Execs;
+import org.apache.druid.java.util.common.concurrent.ScheduledExecutorFactory;
+import org.apache.druid.java.util.common.concurrent.ScheduledExecutors;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.java.util.common.guava.FunctionalIterable;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStart;
+import org.apache.druid.java.util.common.lifecycle.LifecycleStop;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.metadata.MetadataRuleManager;
+import org.apache.druid.metadata.MetadataSegmentManager;
+import org.apache.druid.server.DruidNode;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorBalancer;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorCleanupOvershadowed;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorCleanupUnneeded;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorHelper;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorLogger;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorRuleRunner;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorSegmentCompactor;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorSegmentInfoLoader;
+import org.apache.druid.server.coordinator.rules.LoadRule;
+import org.apache.druid.server.coordinator.rules.Rule;
+import org.apache.druid.server.initialization.ZkPathsConfig;
+import org.apache.druid.server.lookup.cache.LookupCoordinatorManager;
+import org.apache.druid.timeline.DataSegment;
import it.unimi.dsi.fastutil.objects.Object2LongMap;
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap;
import org.apache.curator.framework.CuratorFramework;
@@ -299,7 +299,7 @@ public class DruidCoordinator
final DruidDataSource loadedView = druidServer.getDataSource(dataSource.getName());
if (loadedView != null) {
// This does not use segments.removeAll(loadedView.getSegments()) for performance reasons.
- // Please see https://github.com/druid-io/druid/pull/5632 and LoadStatusBenchmark for more info.
+ // Please see https://github.com/apache/incubator-druid/pull/5632 and LoadStatusBenchmark for more info.
for (DataSegment serverSegment : loadedView.getSegments()) {
segments.remove(serverSegment);
}
diff --git a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java
similarity index 90%
rename from server/src/main/java/io/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java
index a2ec3c22562..6ccc9338ac5 100644
--- a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorCleanupPendingSegments.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.indexer.TaskStatusPlus;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.helper.DruidCoordinatorHelper;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.indexer.TaskStatusPlus;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.helper.DruidCoordinatorHelper;
import org.joda.time.DateTime;
import org.joda.time.Period;
diff --git a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorConfig.java b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorConfig.java
similarity index 98%
rename from server/src/main/java/io/druid/server/coordinator/DruidCoordinatorConfig.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorConfig.java
index eeafcb7b17d..32eb87c1f67 100644
--- a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorConfig.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import org.joda.time.Duration;
import org.skife.config.Config;
diff --git a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorRuntimeParams.java b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorRuntimeParams.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/DruidCoordinatorRuntimeParams.java
rename to server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorRuntimeParams.java
index f57ff8374c3..69eea863bfc 100644
--- a/server/src/main/java/io/druid/server/coordinator/DruidCoordinatorRuntimeParams.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinatorRuntimeParams.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.java.util.common.DateTimes;
-import io.druid.metadata.MetadataRuleManager;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.metadata.MetadataRuleManager;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import org.joda.time.DateTime;
import java.util.Collection;
diff --git a/server/src/main/java/io/druid/server/coordinator/HttpLoadQueuePeon.java b/server/src/main/java/org/apache/druid/server/coordinator/HttpLoadQueuePeon.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/HttpLoadQueuePeon.java
rename to server/src/main/java/org/apache/druid/server/coordinator/HttpLoadQueuePeon.java
index c6392bfc56f..87f2e859981 100644
--- a/server/src/main/java/io/druid/server/coordinator/HttpLoadQueuePeon.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/HttpLoadQueuePeon.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -28,23 +28,23 @@ import com.google.common.collect.Lists;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.RE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.concurrent.ScheduledExecutors;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.java.util.http.client.HttpClient;
-import io.druid.java.util.http.client.Request;
-import io.druid.java.util.http.client.io.AppendableByteArrayInputStream;
-import io.druid.java.util.http.client.response.ClientResponse;
-import io.druid.java.util.http.client.response.InputStreamResponseHandler;
-import io.druid.server.coordination.DataSegmentChangeCallback;
-import io.druid.server.coordination.DataSegmentChangeHandler;
-import io.druid.server.coordination.DataSegmentChangeRequest;
-import io.druid.server.coordination.SegmentChangeRequestDrop;
-import io.druid.server.coordination.SegmentChangeRequestLoad;
-import io.druid.server.coordination.SegmentLoadDropHandler;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.RE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.concurrent.ScheduledExecutors;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.http.client.HttpClient;
+import org.apache.druid.java.util.http.client.Request;
+import org.apache.druid.java.util.http.client.io.AppendableByteArrayInputStream;
+import org.apache.druid.java.util.http.client.response.ClientResponse;
+import org.apache.druid.java.util.http.client.response.InputStreamResponseHandler;
+import org.apache.druid.server.coordination.DataSegmentChangeCallback;
+import org.apache.druid.server.coordination.DataSegmentChangeHandler;
+import org.apache.druid.server.coordination.DataSegmentChangeRequest;
+import org.apache.druid.server.coordination.SegmentChangeRequestDrop;
+import org.apache.druid.server.coordination.SegmentChangeRequestLoad;
+import org.apache.druid.server.coordination.SegmentLoadDropHandler;
+import org.apache.druid.timeline.DataSegment;
import org.jboss.netty.handler.codec.http.HttpHeaders;
import org.jboss.netty.handler.codec.http.HttpMethod;
import org.jboss.netty.handler.codec.http.HttpResponse;
diff --git a/server/src/main/java/io/druid/server/coordinator/LoadPeonCallback.java b/server/src/main/java/org/apache/druid/server/coordinator/LoadPeonCallback.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/LoadPeonCallback.java
rename to server/src/main/java/org/apache/druid/server/coordinator/LoadPeonCallback.java
index 6dc8c024599..67ff8f387f4 100644
--- a/server/src/main/java/io/druid/server/coordinator/LoadPeonCallback.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/LoadPeonCallback.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
/**
*/
diff --git a/server/src/main/java/io/druid/server/coordinator/LoadQueuePeon.java b/server/src/main/java/org/apache/druid/server/coordinator/LoadQueuePeon.java
similarity index 95%
rename from server/src/main/java/io/druid/server/coordinator/LoadQueuePeon.java
rename to server/src/main/java/org/apache/druid/server/coordinator/LoadQueuePeon.java
index 7bfb120e56e..7fd5e853e25 100644
--- a/server/src/main/java/io/druid/server/coordinator/LoadQueuePeon.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/LoadQueuePeon.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.Set;
diff --git a/server/src/main/java/io/druid/server/coordinator/LoadQueueTaskMaster.java b/server/src/main/java/org/apache/druid/server/coordinator/LoadQueueTaskMaster.java
similarity index 91%
rename from server/src/main/java/io/druid/server/coordinator/LoadQueueTaskMaster.java
rename to server/src/main/java/org/apache/druid/server/coordinator/LoadQueueTaskMaster.java
index 1b0832fced5..7b4b9857d3e 100644
--- a/server/src/main/java/io/druid/server/coordinator/LoadQueueTaskMaster.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/LoadQueueTaskMaster.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.fasterxml.jackson.databind.ObjectMapper;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.http.client.HttpClient;
-import io.druid.server.initialization.ZkPathsConfig;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.http.client.HttpClient;
+import org.apache.druid.server.initialization.ZkPathsConfig;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
diff --git a/server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategy.java b/server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategy.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategy.java
index 9dbd0ba433b..1c123c46720 100644
--- a/server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategy.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.Comparator;
import java.util.Iterator;
diff --git a/server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategyFactory.java b/server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategyFactory.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategyFactory.java
rename to server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategyFactory.java
index 7e7e612d891..e5770c5073d 100644
--- a/server/src/main/java/io/druid/server/coordinator/RandomBalancerStrategyFactory.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/RandomBalancerStrategyFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.util.concurrent.ListeningExecutorService;
diff --git a/server/src/main/java/io/druid/server/coordinator/ReplicationThrottler.java b/server/src/main/java/org/apache/druid/server/coordinator/ReplicationThrottler.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/ReplicationThrottler.java
rename to server/src/main/java/org/apache/druid/server/coordinator/ReplicationThrottler.java
index cd38448f213..8935f093f46 100644
--- a/server/src/main/java/io/druid/server/coordinator/ReplicationThrottler.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/ReplicationThrottler.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.common.StringUtils;
import java.util.List;
import java.util.Map;
diff --git a/server/src/main/java/io/druid/server/coordinator/ReservoirSegmentSampler.java b/server/src/main/java/org/apache/druid/server/coordinator/ReservoirSegmentSampler.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/ReservoirSegmentSampler.java
rename to server/src/main/java/org/apache/druid/server/coordinator/ReservoirSegmentSampler.java
index 48fd4e1d01f..7d2b19a3ae5 100644
--- a/server/src/main/java/io/druid/server/coordinator/ReservoirSegmentSampler.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/ReservoirSegmentSampler.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.List;
import java.util.Random;
diff --git a/server/src/main/java/io/druid/server/coordinator/SegmentReplicantLookup.java b/server/src/main/java/org/apache/druid/server/coordinator/SegmentReplicantLookup.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/SegmentReplicantLookup.java
rename to server/src/main/java/org/apache/druid/server/coordinator/SegmentReplicantLookup.java
index 245f49005ef..b5e01565a70 100644
--- a/server/src/main/java/io/druid/server/coordinator/SegmentReplicantLookup.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/SegmentReplicantLookup.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Maps;
import com.google.common.collect.Table;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.timeline.DataSegment;
import java.util.Map;
import java.util.SortedSet;
diff --git a/server/src/main/java/io/druid/server/coordinator/ServerHolder.java b/server/src/main/java/org/apache/druid/server/coordinator/ServerHolder.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/ServerHolder.java
rename to server/src/main/java/org/apache/druid/server/coordinator/ServerHolder.java
index d01a608855c..ab07cc68991 100644
--- a/server/src/main/java/io/druid/server/coordinator/ServerHolder.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/ServerHolder.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator;
+package org.apache.druid.server.coordinator;
import com.google.common.primitives.Longs;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.timeline.DataSegment;
import java.util.Objects;
diff --git a/server/src/main/java/io/druid/server/coordinator/cost/ClusterCostCache.java b/server/src/main/java/org/apache/druid/server/coordinator/cost/ClusterCostCache.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/cost/ClusterCostCache.java
rename to server/src/main/java/org/apache/druid/server/coordinator/cost/ClusterCostCache.java
index d65de768a28..63bf3c83193 100644
--- a/server/src/main/java/io/druid/server/coordinator/cost/ClusterCostCache.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/cost/ClusterCostCache.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.coordinator.cost;
+package org.apache.druid.server.coordinator.cost;
import com.google.common.base.Preconditions;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.HashMap;
import java.util.Map;
diff --git a/server/src/main/java/io/druid/server/coordinator/cost/SegmentsCostCache.java b/server/src/main/java/org/apache/druid/server/coordinator/cost/SegmentsCostCache.java
similarity index 97%
rename from server/src/main/java/io/druid/server/coordinator/cost/SegmentsCostCache.java
rename to server/src/main/java/org/apache/druid/server/coordinator/cost/SegmentsCostCache.java
index 5e266050d55..dd66a535f20 100644
--- a/server/src/main/java/io/druid/server/coordinator/cost/SegmentsCostCache.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/cost/SegmentsCostCache.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.server.coordinator.cost;
+package org.apache.druid.server.coordinator.cost;
import com.google.common.base.Preconditions;
import com.google.common.collect.Ordering;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.Intervals;
-import io.druid.java.util.common.granularity.DurationGranularity;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.server.coordinator.CostBalancerStrategy;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.java.util.common.granularity.DurationGranularity;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.server.coordinator.CostBalancerStrategy;
+import org.apache.druid.timeline.DataSegment;
import org.apache.commons.math3.util.FastMath;
import org.joda.time.Interval;
@@ -43,7 +43,7 @@ import java.util.stream.Collectors;
/**
* SegmentsCostCache provides faster way to calculate cost function proposed in {@link CostBalancerStrategy}.
- * See https://github.com/druid-io/druid/pull/2972 for more details about the cost function.
+ * See https://github.com/apache/incubator-druid/pull/2972 for more details about the cost function.
*
* Joint cost for two segments (you can make formulas below readable by copy-pasting to
* https://www.codecogs.com/latex/eqneditor.php):
diff --git a/server/src/main/java/io/druid/server/coordinator/cost/ServerCostCache.java b/server/src/main/java/org/apache/druid/server/coordinator/cost/ServerCostCache.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/cost/ServerCostCache.java
rename to server/src/main/java/org/apache/druid/server/coordinator/cost/ServerCostCache.java
index b3f82ca000b..1310b472e7e 100644
--- a/server/src/main/java/io/druid/server/coordinator/cost/ServerCostCache.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/cost/ServerCostCache.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.coordinator.cost;
+package org.apache.druid.server.coordinator.cost;
import com.google.common.base.Preconditions;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import java.util.HashMap;
import java.util.Map;
diff --git a/server/src/main/java/io/druid/server/coordinator/cost/package-info.java b/server/src/main/java/org/apache/druid/server/coordinator/cost/package-info.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/cost/package-info.java
rename to server/src/main/java/org/apache/druid/server/coordinator/cost/package-info.java
index 6302beeee1a..16281bbebe6 100644
--- a/server/src/main/java/io/druid/server/coordinator/cost/package-info.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/cost/package-info.java
@@ -18,6 +18,6 @@
*/
@ParametersAreNonnullByDefault
-package io.druid.server.coordinator.cost;
+package org.apache.druid.server.coordinator.cost;
import javax.annotation.ParametersAreNonnullByDefault;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentIterator.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentIterator.java
similarity index 93%
rename from server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentIterator.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentIterator.java
index 32e9b291800..19a2e5a624d 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentIterator.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentIterator.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap;
import java.util.Iterator;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java
similarity index 84%
rename from server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java
index 42c9abd2ce9..db861630af8 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/CompactionSegmentSearchPolicy.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.server.coordinator.DataSourceCompactionConfig;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.server.coordinator.DataSourceCompactionConfig;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import java.util.Map;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorBalancer.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorBalancer.java
similarity index 91%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorBalancer.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorBalancer.java
index b5bc8d1f0b0..97589c9bec0 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorBalancer.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorBalancer.java
@@ -17,21 +17,21 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.collect.Lists;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.server.coordinator.BalancerSegmentHolder;
-import io.druid.server.coordinator.BalancerStrategy;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.LoadPeonCallback;
-import io.druid.server.coordinator.LoadQueuePeon;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.server.coordinator.BalancerSegmentHolder;
+import org.apache.druid.server.coordinator.BalancerStrategy;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.LoadPeonCallback;
+import org.apache.druid.server.coordinator.LoadQueuePeon;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
import java.util.Comparator;
import java.util.HashMap;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java
similarity index 82%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java
index 9eac39b0fab..6894934dbbf 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupOvershadowed.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.collect.Maps;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCluster;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCluster;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import java.util.Map;
import java.util.SortedSet;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java
similarity index 85%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java
index 024d7abad04..f7604835a25 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorCleanupUnneeded.java
@@ -17,18 +17,18 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCluster;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.LoadQueuePeon;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCluster;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.LoadQueuePeon;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
import java.util.Set;
import java.util.SortedSet;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorHelper.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorHelper.java
similarity index 91%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorHelper.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorHelper.java
index 191149c28fb..a2752c35270 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorHelper.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorHelper.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
/**
*/
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorLogger.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorLogger.java
similarity index 92%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorLogger.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorLogger.java
index 5047f01059c..f56a3d7489a 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorLogger.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorLogger.java
@@ -17,21 +17,21 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.java.util.emitter.service.ServiceMetricEvent;
-import io.druid.client.ImmutableDruidServer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.query.DruidMetrics;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCluster;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.LoadQueuePeon;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.partition.PartitionChunk;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.java.util.emitter.service.ServiceMetricEvent;
+import org.apache.druid.client.ImmutableDruidServer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.query.DruidMetrics;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCluster;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.LoadQueuePeon;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.partition.PartitionChunk;
import it.unimi.dsi.fastutil.objects.Object2LongMap;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java
similarity index 88%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java
index f95e87f534a..82681c64921 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java
@@ -17,22 +17,22 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.metadata.MetadataRuleManager;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCluster;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.ReplicationThrottler;
-import io.druid.server.coordinator.rules.Rule;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.TimelineObjectHolder;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.metadata.MetadataRuleManager;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCluster;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.ReplicationThrottler;
+import org.apache.druid.server.coordinator.rules.Rule;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.TimelineObjectHolder;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import org.joda.time.DateTime;
import java.util.HashMap;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java
similarity index 92%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java
index 4a3e4900d08..20943b875d3 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentCompactor.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.inject.Inject;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.indexer.TaskStatusPlus;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.CoordinatorCompactionConfig;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DataSourceCompactionConfig;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.indexer.TaskStatusPlus;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.CoordinatorCompactionConfig;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DataSourceCompactionConfig;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import it.unimi.dsi.fastutil.objects.Object2LongMap;
import javax.annotation.Nullable;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java
similarity index 86%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java
index 524be3fe5bd..788b0d5c2da 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentInfoLoader.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
import java.util.Set;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java
similarity index 90%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java
index 4153682aad8..7030e3e6dda 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentKiller.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.JodaUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.metadata.MetadataSegmentManager;
-import io.druid.server.coordinator.DruidCoordinatorConfig;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.JodaUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.metadata.MetadataSegmentManager;
+import org.apache.druid.server.coordinator.DruidCoordinatorConfig;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
import org.joda.time.Interval;
import java.util.Collection;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java
similarity index 92%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java
index 38b889d12f9..7486dcea22e 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorSegmentMerger.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
@@ -29,22 +29,22 @@ import com.google.common.collect.Maps;
import com.google.common.collect.Multiset;
import com.google.common.collect.Ordering;
import com.google.inject.Inject;
-import io.druid.java.util.emitter.service.ServiceMetricEvent;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.common.config.JacksonConfigManager;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.common.guava.FunctionalIterable;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DatasourceWhitelist;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.TimelineObjectHolder;
-import io.druid.timeline.VersionedIntervalTimeline;
-import io.druid.timeline.partition.NoneShardSpec;
-import io.druid.timeline.partition.PartitionChunk;
+import org.apache.druid.java.util.emitter.service.ServiceMetricEvent;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.common.config.JacksonConfigManager;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.guava.FunctionalIterable;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DatasourceWhitelist;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.TimelineObjectHolder;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.timeline.partition.NoneShardSpec;
+import org.apache.druid.timeline.partition.PartitionChunk;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java
similarity index 82%
rename from server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java
index 5f9202ed58b..5ef69344810 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/DruidCoordinatorVersionConverter.java
@@ -17,16 +17,16 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.inject.Inject;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.common.config.JacksonConfigManager;
-import io.druid.segment.IndexIO;
-import io.druid.server.coordinator.DatasourceWhitelist;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.common.config.JacksonConfigManager;
+import org.apache.druid.segment.IndexIO;
+import org.apache.druid.server.coordinator.DatasourceWhitelist;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
import java.util.concurrent.atomic.AtomicReference;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstIterator.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
index 56b0faaa043..e5a19c5e381 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstIterator.java
@@ -17,22 +17,22 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.Intervals;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.coordinator.DataSourceCompactionConfig;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.TimelineObjectHolder;
-import io.druid.timeline.VersionedIntervalTimeline;
-import io.druid.timeline.partition.PartitionChunk;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.coordinator.DataSourceCompactionConfig;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.TimelineObjectHolder;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.timeline.partition.PartitionChunk;
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java
similarity index 84%
rename from server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java
index 9b754a82ea3..19b882e0097 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/NewestSegmentFirstPolicy.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
-import io.druid.server.coordinator.DataSourceCompactionConfig;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.VersionedIntervalTimeline;
+import org.apache.druid.server.coordinator.DataSourceCompactionConfig;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.VersionedIntervalTimeline;
import java.util.Map;
diff --git a/server/src/main/java/io/druid/server/coordinator/helper/SegmentCompactorUtil.java b/server/src/main/java/org/apache/druid/server/coordinator/helper/SegmentCompactorUtil.java
similarity index 98%
rename from server/src/main/java/io/druid/server/coordinator/helper/SegmentCompactorUtil.java
rename to server/src/main/java/org/apache/druid/server/coordinator/helper/SegmentCompactorUtil.java
index 04d1e81cb74..f25d1f471ca 100644
--- a/server/src/main/java/io/druid/server/coordinator/helper/SegmentCompactorUtil.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/helper/SegmentCompactorUtil.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator.helper;
+package org.apache.druid.server.coordinator.helper;
import com.google.common.base.Preconditions;
import org.joda.time.Duration;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/BroadcastDistributionRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/BroadcastDistributionRule.java
similarity index 90%
rename from server/src/main/java/io/druid/server/coordinator/rules/BroadcastDistributionRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/BroadcastDistributionRule.java
index 6d8dea510e1..99f7089a060 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/BroadcastDistributionRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/BroadcastDistributionRule.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
import java.util.HashSet;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/DropRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/DropRule.java
similarity index 80%
rename from server/src/main/java/io/druid/server/coordinator/rules/DropRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/DropRule.java
index 71e0c911589..fdd017802f5 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/DropRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/DropRule.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
/**
* DropRules indicate when segments should be completely removed from the cluster.
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java
similarity index 95%
rename from server/src/main/java/io/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java
index 03d70fb5c68..d095f1100ae 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/ForeverDropRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverDropRule.java
similarity index 93%
rename from server/src/main/java/io/druid/server/coordinator/rules/ForeverDropRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverDropRule.java
index a50a53f5632..19479c015b9 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/ForeverDropRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverDropRule.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/ForeverLoadRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverLoadRule.java
similarity index 93%
rename from server/src/main/java/io/druid/server/coordinator/rules/ForeverLoadRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverLoadRule.java
index 4c236c2f083..a509877aa95 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/ForeverLoadRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverLoadRule.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
-import io.druid.client.DruidServer;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java
index 512c0b1bb48..c40dff7268a 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalBroadcastDistributionRule.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/IntervalDropRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalDropRule.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/rules/IntervalDropRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalDropRule.java
index 3413108d49a..46f8f330fb3 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/IntervalDropRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalDropRule.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/IntervalLoadRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalLoadRule.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/rules/IntervalLoadRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalLoadRule.java
index 20fb1753ae2..b5f553a60e6 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/IntervalLoadRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/IntervalLoadRule.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
-import io.druid.client.DruidServer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/LoadRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/LoadRule.java
similarity index 95%
rename from server/src/main/java/io/druid/server/coordinator/rules/LoadRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/LoadRule.java
index 11ba9c28756..e455e939ae9 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/LoadRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/LoadRule.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.server.coordinator.BalancerStrategy;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCluster;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.server.coordinator.ReplicationThrottler;
-import io.druid.server.coordinator.ServerHolder;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.server.coordinator.BalancerStrategy;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCluster;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.server.coordinator.ReplicationThrottler;
+import org.apache.druid.server.coordinator.ServerHolder;
+import org.apache.druid.timeline.DataSegment;
import it.unimi.dsi.fastutil.objects.Object2IntMap;
import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java
index 9248f06bfa1..7d00bf7f413 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodBroadcastDistributionRule.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
import org.joda.time.Period;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/PeriodDropRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodDropRule.java
similarity index 94%
rename from server/src/main/java/io/druid/server/coordinator/rules/PeriodDropRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodDropRule.java
index 0f7492b6c86..f26c3be49df 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/PeriodDropRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodDropRule.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
import org.joda.time.Period;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/PeriodLoadRule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodLoadRule.java
similarity index 92%
rename from server/src/main/java/io/druid/server/coordinator/rules/PeriodLoadRule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodLoadRule.java
index fb3e07548d8..2fe36cc14fc 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/PeriodLoadRule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/PeriodLoadRule.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
-import io.druid.client.DruidServer;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
import org.joda.time.Period;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/Rule.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/Rule.java
similarity index 88%
rename from server/src/main/java/io/druid/server/coordinator/rules/Rule.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/Rule.java
index 589dd102479..cbde064b447 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/Rule.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/Rule.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import io.druid.server.coordinator.CoordinatorStats;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.DruidCoordinatorRuntimeParams;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.server.coordinator.CoordinatorStats;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.DruidCoordinatorRuntimeParams;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/RuleMap.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/RuleMap.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/rules/RuleMap.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/RuleMap.java
index 38bba974ccc..58fcce380a8 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/RuleMap.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/RuleMap.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import com.google.common.collect.Lists;
diff --git a/server/src/main/java/io/druid/server/coordinator/rules/Rules.java b/server/src/main/java/org/apache/druid/server/coordinator/rules/Rules.java
similarity index 96%
rename from server/src/main/java/io/druid/server/coordinator/rules/Rules.java
rename to server/src/main/java/org/apache/druid/server/coordinator/rules/Rules.java
index 56513d80e74..e5c65d9e850 100644
--- a/server/src/main/java/io/druid/server/coordinator/rules/Rules.java
+++ b/server/src/main/java/org/apache/druid/server/coordinator/rules/Rules.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.coordinator.rules;
+package org.apache.druid.server.coordinator.rules;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/emitter/ComposingEmitterConfig.java b/server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterConfig.java
similarity index 96%
rename from server/src/main/java/io/druid/server/emitter/ComposingEmitterConfig.java
rename to server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterConfig.java
index 49465b1e1af..30d96c0b5a4 100644
--- a/server/src/main/java/io/druid/server/emitter/ComposingEmitterConfig.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
diff --git a/server/src/main/java/io/druid/server/emitter/ComposingEmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterModule.java
similarity index 85%
rename from server/src/main/java/io/druid/server/emitter/ComposingEmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterModule.java
index 331b53cd69a..0d672871997 100644
--- a/server/src/main/java/io/druid/server/emitter/ComposingEmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/ComposingEmitterModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.databind.Module;
import com.google.common.base.Function;
@@ -28,12 +28,12 @@ import com.google.inject.Key;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import com.google.inject.name.Names;
-import io.druid.java.util.emitter.core.ComposingEmitter;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.ManageLifecycle;
-import io.druid.initialization.DruidModule;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.core.ComposingEmitter;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.initialization.DruidModule;
+import org.apache.druid.java.util.common.logger.Logger;
import java.util.Collections;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/emitter/EmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/EmitterModule.java
similarity index 89%
rename from server/src/main/java/io/druid/server/emitter/EmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/EmitterModule.java
index 2f55f8def5e..0b731a59fa3 100644
--- a/server/src/main/java/io/druid/server/emitter/EmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/EmitterModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.google.common.base.Supplier;
import com.google.common.collect.ImmutableMap;
@@ -33,16 +33,16 @@ import com.google.inject.TypeLiteral;
import com.google.inject.multibindings.MapBinder;
import com.google.inject.name.Named;
import com.google.inject.name.Names;
-import io.druid.guice.LazySingleton;
-import io.druid.guice.ManageLifecycle;
-import io.druid.guice.annotations.Self;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.server.DruidNode;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.guice.annotations.Self;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.server.DruidNode;
import java.lang.annotation.Annotation;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/emitter/ExtraServiceDimensions.java b/server/src/main/java/org/apache/druid/server/emitter/ExtraServiceDimensions.java
similarity index 94%
rename from server/src/main/java/io/druid/server/emitter/ExtraServiceDimensions.java
rename to server/src/main/java/org/apache/druid/server/emitter/ExtraServiceDimensions.java
index 2d4f7b15096..3deeef56459 100644
--- a/server/src/main/java/io/druid/server/emitter/ExtraServiceDimensions.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/ExtraServiceDimensions.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.google.inject.BindingAnnotation;
-import io.druid.guice.annotations.PublicApi;
+import org.apache.druid.guice.annotations.PublicApi;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/server/src/main/java/io/druid/server/emitter/HttpEmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/HttpEmitterModule.java
similarity index 87%
rename from server/src/main/java/io/druid/server/emitter/HttpEmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/HttpEmitterModule.java
index 3ea5c071559..3c3bca1df7e 100644
--- a/server/src/main/java/io/druid/server/emitter/HttpEmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/HttpEmitterModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Supplier;
@@ -26,16 +26,16 @@ import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import com.google.inject.util.Providers;
-import io.druid.guice.LazySingleton;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.core.HttpEmitterConfig;
-import io.druid.java.util.emitter.core.HttpPostEmitter;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.ManageLifecycle;
-import io.druid.java.util.common.concurrent.Execs;
-import io.druid.java.util.common.lifecycle.Lifecycle;
-import io.druid.server.security.TLSUtils;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.core.HttpEmitterConfig;
+import org.apache.druid.java.util.emitter.core.HttpPostEmitter;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.java.util.common.concurrent.Execs;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.server.security.TLSUtils;
import io.netty.handler.ssl.ClientAuth;
import io.netty.handler.ssl.JdkSslContext;
import io.netty.util.HashedWheelTimer;
diff --git a/server/src/main/java/io/druid/server/emitter/HttpEmitterSSLClientConfig.java b/server/src/main/java/org/apache/druid/server/emitter/HttpEmitterSSLClientConfig.java
similarity index 85%
rename from server/src/main/java/io/druid/server/emitter/HttpEmitterSSLClientConfig.java
rename to server/src/main/java/org/apache/druid/server/emitter/HttpEmitterSSLClientConfig.java
index 762ec3378d3..ec318489526 100644
--- a/server/src/main/java/io/druid/server/emitter/HttpEmitterSSLClientConfig.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/HttpEmitterSSLClientConfig.java
@@ -17,22 +17,22 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.metadata.PasswordProvider;
+import org.apache.druid.metadata.PasswordProvider;
/**
- * This is kept separate from {@link io.druid.java.util.emitter.core.HttpEmitterConfig} because {@link PasswordProvider}
+ * This is kept separate from {@link org.apache.druid.java.util.emitter.core.HttpEmitterConfig} because {@link PasswordProvider}
* is currently located in druid-api. The java-util module which contains HttpEmitterConfig cannot import
* PasswordProvider because this would introduce a circular dependence between java-util and druid-api.
*
* PasswordProvider could be moved to java-util, but PasswordProvider is annotated with
- * {@link io.druid.guice.annotations.ExtensionPoint}, which would also have to be moved.
+ * {@link org.apache.druid.guice.annotations.ExtensionPoint}, which would also have to be moved.
*
* It would be easier to resolve these issues and merge the TLS-related config with HttpEmitterConfig once
- * https://github.com/druid-io/druid/issues/4312 is resolved, so the TLS config is kept separate for now.
+ * https://github.com/apache/incubator-druid/issues/4312 is resolved, so the TLS config is kept separate for now.
*/
public class HttpEmitterSSLClientConfig
{
diff --git a/server/src/main/java/io/druid/server/emitter/HttpEmittingMonitor.java b/server/src/main/java/org/apache/druid/server/emitter/HttpEmittingMonitor.java
similarity index 77%
rename from server/src/main/java/io/druid/server/emitter/HttpEmittingMonitor.java
rename to server/src/main/java/org/apache/druid/server/emitter/HttpEmittingMonitor.java
index 835f2c9e70d..f69f2eb9006 100644
--- a/server/src/main/java/io/druid/server/emitter/HttpEmittingMonitor.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/HttpEmittingMonitor.java
@@ -17,18 +17,18 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.core.HttpPostEmitter;
-import io.druid.java.util.emitter.core.ParametrizedUriEmitter;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.java.util.metrics.AbstractMonitor;
-import io.druid.java.util.metrics.FeedDefiningMonitor;
-import io.druid.java.util.metrics.HttpPostEmitterMonitor;
-import io.druid.java.util.metrics.ParametrizedUriEmitterMonitor;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.core.HttpPostEmitter;
+import org.apache.druid.java.util.emitter.core.ParametrizedUriEmitter;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.java.util.metrics.AbstractMonitor;
+import org.apache.druid.java.util.metrics.FeedDefiningMonitor;
+import org.apache.druid.java.util.metrics.HttpPostEmitterMonitor;
+import org.apache.druid.java.util.metrics.ParametrizedUriEmitterMonitor;
/**
* Able to monitor {@link HttpPostEmitter} or {@link ParametrizedUriEmitter}, which is based on the former.
diff --git a/server/src/main/java/io/druid/server/emitter/LogEmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/LogEmitterModule.java
similarity index 82%
rename from server/src/main/java/io/druid/server/emitter/LogEmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/LogEmitterModule.java
index 0b1521b89c8..f27e270a650 100644
--- a/server/src/main/java/io/druid/server/emitter/LogEmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/LogEmitterModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Supplier;
@@ -25,11 +25,11 @@ import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.name.Named;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.core.LoggingEmitter;
-import io.druid.java.util.emitter.core.LoggingEmitterConfig;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.ManageLifecycle;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.core.LoggingEmitter;
+import org.apache.druid.java.util.emitter.core.LoggingEmitterConfig;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.ManageLifecycle;
/**
*/
diff --git a/server/src/main/java/io/druid/server/emitter/NoopEmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/NoopEmitterModule.java
similarity index 85%
rename from server/src/main/java/io/druid/server/emitter/NoopEmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/NoopEmitterModule.java
index 70fe0fbd84d..6e5332f1889 100644
--- a/server/src/main/java/io/druid/server/emitter/NoopEmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/NoopEmitterModule.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.name.Named;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.core.NoopEmitter;
-import io.druid.guice.ManageLifecycle;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.core.NoopEmitter;
+import org.apache.druid.guice.ManageLifecycle;
/**
*/
diff --git a/server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterModule.java b/server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterModule.java
similarity index 83%
rename from server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterModule.java
rename to server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterModule.java
index 4d1633bd5d6..2debcd36038 100644
--- a/server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterModule.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Supplier;
@@ -25,13 +25,13 @@ import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.name.Named;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.java.util.emitter.core.Emitter;
-import io.druid.java.util.emitter.core.ParametrizedUriEmitter;
-import io.druid.java.util.emitter.core.ParametrizedUriEmitterConfig;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.ManageLifecycle;
-import io.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.core.Emitter;
+import org.apache.druid.java.util.emitter.core.ParametrizedUriEmitter;
+import org.apache.druid.java.util.emitter.core.ParametrizedUriEmitterConfig;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.ManageLifecycle;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
import javax.annotation.Nullable;
import javax.net.ssl.SSLContext;
diff --git a/server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java b/server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java
similarity index 97%
rename from server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java
rename to server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java
index dd4140387fa..4023a228662 100644
--- a/server/src/main/java/io/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java
+++ b/server/src/main/java/org/apache/druid/server/emitter/ParametrizedUriEmitterSSLClientConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.emitter;
+package org.apache.druid.server.emitter;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/http/BrokerResource.java b/server/src/main/java/org/apache/druid/server/http/BrokerResource.java
similarity index 91%
rename from server/src/main/java/io/druid/server/http/BrokerResource.java
rename to server/src/main/java/org/apache/druid/server/http/BrokerResource.java
index 73d9f3bc8a3..ddbe19e0bcf 100644
--- a/server/src/main/java/io/druid/server/http/BrokerResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/BrokerResource.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.BrokerServerView;
-import io.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.client.BrokerServerView;
+import org.apache.druid.server.http.security.StateResourceFilter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
diff --git a/server/src/main/java/io/druid/server/http/ClusterResource.java b/server/src/main/java/org/apache/druid/server/http/ClusterResource.java
similarity index 93%
rename from server/src/main/java/io/druid/server/http/ClusterResource.java
rename to server/src/main/java/org/apache/druid/server/http/ClusterResource.java
index ce025283ce4..5fff19e4a10 100644
--- a/server/src/main/java/io/druid/server/http/ClusterResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/ClusterResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -26,12 +26,12 @@ import com.google.common.collect.Collections2;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.discovery.DiscoveryDruidNode;
-import io.druid.discovery.DruidNodeDiscoveryProvider;
-import io.druid.guice.LazySingleton;
-import io.druid.java.util.common.StringUtils;
-import io.druid.server.DruidNode;
-import io.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.discovery.DiscoveryDruidNode;
+import org.apache.druid.discovery.DruidNodeDiscoveryProvider;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.server.DruidNode;
+import org.apache.druid.server.http.security.StateResourceFilter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
diff --git a/server/src/main/java/io/druid/server/http/CoordinatorCompactionConfigsResource.java b/server/src/main/java/org/apache/druid/server/http/CoordinatorCompactionConfigsResource.java
similarity index 93%
rename from server/src/main/java/io/druid/server/http/CoordinatorCompactionConfigsResource.java
rename to server/src/main/java/org/apache/druid/server/http/CoordinatorCompactionConfigsResource.java
index eae124dbbee..d01fbec0ae1 100644
--- a/server/src/main/java/io/druid/server/http/CoordinatorCompactionConfigsResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/CoordinatorCompactionConfigsResource.java
@@ -17,20 +17,20 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.audit.AuditInfo;
-import io.druid.audit.AuditManager;
-import io.druid.common.config.ConfigManager.SetResult;
-import io.druid.common.config.JacksonConfigManager;
-import io.druid.java.util.common.StringUtils;
-import io.druid.server.coordinator.CoordinatorCompactionConfig;
-import io.druid.server.coordinator.DataSourceCompactionConfig;
-import io.druid.server.http.security.ConfigResourceFilter;
+import org.apache.druid.audit.AuditInfo;
+import org.apache.druid.audit.AuditManager;
+import org.apache.druid.common.config.ConfigManager.SetResult;
+import org.apache.druid.common.config.JacksonConfigManager;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.server.coordinator.CoordinatorCompactionConfig;
+import org.apache.druid.server.coordinator.DataSourceCompactionConfig;
+import org.apache.druid.server.http.security.ConfigResourceFilter;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
diff --git a/server/src/main/java/io/druid/server/http/CoordinatorDynamicConfigsResource.java b/server/src/main/java/org/apache/druid/server/http/CoordinatorDynamicConfigsResource.java
similarity index 90%
rename from server/src/main/java/io/druid/server/http/CoordinatorDynamicConfigsResource.java
rename to server/src/main/java/org/apache/druid/server/http/CoordinatorDynamicConfigsResource.java
index d5985d06238..1372d85e38e 100644
--- a/server/src/main/java/io/druid/server/http/CoordinatorDynamicConfigsResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/CoordinatorDynamicConfigsResource.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableMap;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.audit.AuditInfo;
-import io.druid.audit.AuditManager;
-import io.druid.common.config.ConfigManager.SetResult;
-import io.druid.common.config.JacksonConfigManager;
-import io.druid.java.util.common.Intervals;
-import io.druid.server.coordinator.CoordinatorDynamicConfig;
-import io.druid.server.http.security.ConfigResourceFilter;
+import org.apache.druid.audit.AuditInfo;
+import org.apache.druid.audit.AuditManager;
+import org.apache.druid.common.config.ConfigManager.SetResult;
+import org.apache.druid.common.config.JacksonConfigManager;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.server.coordinator.CoordinatorDynamicConfig;
+import org.apache.druid.server.http.security.ConfigResourceFilter;
import org.joda.time.Interval;
import javax.inject.Inject;
diff --git a/server/src/main/java/io/druid/server/http/CoordinatorRedirectInfo.java b/server/src/main/java/org/apache/druid/server/http/CoordinatorRedirectInfo.java
similarity index 92%
rename from server/src/main/java/io/druid/server/http/CoordinatorRedirectInfo.java
rename to server/src/main/java/org/apache/druid/server/http/CoordinatorRedirectInfo.java
index 80feaed7a9f..3e6042d4e38 100644
--- a/server/src/main/java/io/druid/server/http/CoordinatorRedirectInfo.java
+++ b/server/src/main/java/org/apache/druid/server/http/CoordinatorRedirectInfo.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Inject;
-import io.druid.java.util.common.StringUtils;
-import io.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.server.coordinator.DruidCoordinator;
import java.net.URL;
import java.util.Set;
diff --git a/server/src/main/java/io/druid/server/http/CoordinatorResource.java b/server/src/main/java/org/apache/druid/server/http/CoordinatorResource.java
similarity index 94%
rename from server/src/main/java/io/druid/server/http/CoordinatorResource.java
rename to server/src/main/java/org/apache/druid/server/http/CoordinatorResource.java
index b36e87d983d..167fc6c7d11 100644
--- a/server/src/main/java/io/druid/server/http/CoordinatorResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/CoordinatorResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
@@ -25,11 +25,11 @@ import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.server.coordinator.DruidCoordinator;
-import io.druid.server.coordinator.LoadQueuePeon;
-import io.druid.server.coordinator.helper.CompactionSegmentIterator;
-import io.druid.server.http.security.StateResourceFilter;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.server.coordinator.DruidCoordinator;
+import org.apache.druid.server.coordinator.LoadQueuePeon;
+import org.apache.druid.server.coordinator.helper.CompactionSegmentIterator;
+import org.apache.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.timeline.DataSegment;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
diff --git a/server/src/main/java/io/druid/server/http/DatasourcesResource.java b/server/src/main/java/org/apache/druid/server/http/DatasourcesResource.java
similarity index 94%
rename from server/src/main/java/io/druid/server/http/DatasourcesResource.java
rename to server/src/main/java/org/apache/druid/server/http/DatasourcesResource.java
index 2905bb16189..2708871bb50 100644
--- a/server/src/main/java/io/druid/server/http/DatasourcesResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/DatasourcesResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
@@ -26,29 +26,29 @@ import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.CoordinatorServerView;
-import io.druid.client.DruidDataSource;
-import io.druid.client.DruidServer;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.ImmutableSegmentLoadInfo;
-import io.druid.client.SegmentLoadInfo;
-import io.druid.client.indexing.IndexingServiceClient;
-import io.druid.java.util.common.DateTimes;
-import io.druid.java.util.common.Intervals;
-import io.druid.java.util.common.MapUtils;
-import io.druid.java.util.common.Pair;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.java.util.common.guava.FunctionalIterable;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.metadata.MetadataSegmentManager;
-import io.druid.query.TableDataSource;
-import io.druid.server.http.security.DatasourceResourceFilter;
-import io.druid.server.security.AuthConfig;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.timeline.DataSegment;
-import io.druid.timeline.TimelineLookup;
-import io.druid.timeline.TimelineObjectHolder;
-import io.druid.timeline.partition.PartitionChunk;
+import org.apache.druid.client.CoordinatorServerView;
+import org.apache.druid.client.DruidDataSource;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.ImmutableSegmentLoadInfo;
+import org.apache.druid.client.SegmentLoadInfo;
+import org.apache.druid.client.indexing.IndexingServiceClient;
+import org.apache.druid.java.util.common.DateTimes;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.java.util.common.Pair;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.java.util.common.guava.FunctionalIterable;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.metadata.MetadataSegmentManager;
+import org.apache.druid.query.TableDataSource;
+import org.apache.druid.server.http.security.DatasourceResourceFilter;
+import org.apache.druid.server.security.AuthConfig;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.TimelineLookup;
+import org.apache.druid.timeline.TimelineObjectHolder;
+import org.apache.druid.timeline.partition.PartitionChunk;
import org.joda.time.DateTime;
import org.joda.time.Interval;
diff --git a/server/src/main/java/io/druid/server/http/HistoricalResource.java b/server/src/main/java/org/apache/druid/server/http/HistoricalResource.java
similarity index 91%
rename from server/src/main/java/io/druid/server/http/HistoricalResource.java
rename to server/src/main/java/org/apache/druid/server/http/HistoricalResource.java
index f066d402352..dcaa434696e 100644
--- a/server/src/main/java/io/druid/server/http/HistoricalResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/HistoricalResource.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableMap;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.server.coordination.ZkCoordinator;
-import io.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.server.coordination.ZkCoordinator;
+import org.apache.druid.server.http.security.StateResourceFilter;
import javax.inject.Inject;
import javax.ws.rs.GET;
diff --git a/server/src/main/java/io/druid/server/http/HostAndPortWithScheme.java b/server/src/main/java/org/apache/druid/server/http/HostAndPortWithScheme.java
similarity index 97%
rename from server/src/main/java/io/druid/server/http/HostAndPortWithScheme.java
rename to server/src/main/java/org/apache/druid/server/http/HostAndPortWithScheme.java
index 4241c724656..428a51d1401 100644
--- a/server/src/main/java/io/druid/server/http/HostAndPortWithScheme.java
+++ b/server/src/main/java/org/apache/druid/server/http/HostAndPortWithScheme.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Preconditions;
import com.google.common.net.HostAndPort;
-import io.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.StringUtils;
public class HostAndPortWithScheme
{
diff --git a/server/src/main/java/io/druid/server/http/IntervalsResource.java b/server/src/main/java/org/apache/druid/server/http/IntervalsResource.java
similarity index 93%
rename from server/src/main/java/io/druid/server/http/IntervalsResource.java
rename to server/src/main/java/org/apache/druid/server/http/IntervalsResource.java
index a16c58667e2..a3c3c5275b2 100644
--- a/server/src/main/java/io/druid/server/http/IntervalsResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/IntervalsResource.java
@@ -17,18 +17,18 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.Maps;
import com.google.inject.Inject;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.InventoryView;
-import io.druid.java.util.common.Intervals;
-import io.druid.java.util.common.MapUtils;
-import io.druid.java.util.common.guava.Comparators;
-import io.druid.server.security.AuthConfig;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.InventoryView;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.java.util.common.guava.Comparators;
+import org.apache.druid.server.security.AuthConfig;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.Interval;
import javax.servlet.http.HttpServletRequest;
diff --git a/server/src/main/java/io/druid/server/http/InventoryViewUtils.java b/server/src/main/java/org/apache/druid/server/http/InventoryViewUtils.java
similarity index 87%
rename from server/src/main/java/io/druid/server/http/InventoryViewUtils.java
rename to server/src/main/java/org/apache/druid/server/http/InventoryViewUtils.java
index da89fffcf02..06c9bdfe00d 100644
--- a/server/src/main/java/io/druid/server/http/InventoryViewUtils.java
+++ b/server/src/main/java/org/apache/druid/server/http/InventoryViewUtils.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
-import io.druid.client.DruidDataSource;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.client.InventoryView;
-import io.druid.java.util.common.ISE;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.AuthorizerMapper;
+import org.apache.druid.client.DruidDataSource;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.client.InventoryView;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.AuthorizerMapper;
import javax.servlet.http.HttpServletRequest;
import java.util.Collections;
diff --git a/server/src/main/java/io/druid/server/http/LookupCoordinatorResource.java b/server/src/main/java/org/apache/druid/server/http/LookupCoordinatorResource.java
similarity index 97%
rename from server/src/main/java/io/druid/server/http/LookupCoordinatorResource.java
rename to server/src/main/java/org/apache/druid/server/http/LookupCoordinatorResource.java
index 96d238fbd71..881f3e53e05 100644
--- a/server/src/main/java/io/druid/server/http/LookupCoordinatorResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/LookupCoordinatorResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -29,18 +29,18 @@ import com.google.common.base.Strings;
import com.google.common.net.HostAndPort;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.audit.AuditInfo;
-import io.druid.audit.AuditManager;
-import io.druid.common.utils.ServletResourceUtils;
-import io.druid.guice.annotations.Json;
-import io.druid.guice.annotations.Smile;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.RE;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.query.lookup.LookupsState;
-import io.druid.server.http.security.ConfigResourceFilter;
-import io.druid.server.lookup.cache.LookupCoordinatorManager;
-import io.druid.server.lookup.cache.LookupExtractorFactoryMapContainer;
+import org.apache.druid.audit.AuditInfo;
+import org.apache.druid.audit.AuditManager;
+import org.apache.druid.common.utils.ServletResourceUtils;
+import org.apache.druid.guice.annotations.Json;
+import org.apache.druid.guice.annotations.Smile;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.RE;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.query.lookup.LookupsState;
+import org.apache.druid.server.http.security.ConfigResourceFilter;
+import org.apache.druid.server.lookup.cache.LookupCoordinatorManager;
+import org.apache.druid.server.lookup.cache.LookupExtractorFactoryMapContainer;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
diff --git a/server/src/main/java/io/druid/server/http/MetadataResource.java b/server/src/main/java/org/apache/druid/server/http/MetadataResource.java
similarity index 92%
rename from server/src/main/java/io/druid/server/http/MetadataResource.java
rename to server/src/main/java/org/apache/druid/server/http/MetadataResource.java
index fe88f42b23f..719a290ead6 100644
--- a/server/src/main/java/io/druid/server/http/MetadataResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/MetadataResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
@@ -25,15 +25,15 @@ import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.ImmutableDruidDataSource;
-import io.druid.indexing.overlord.IndexerMetadataStorageCoordinator;
-import io.druid.metadata.MetadataSegmentManager;
-import io.druid.server.http.security.DatasourceResourceFilter;
-import io.druid.server.security.AuthConfig;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.server.security.ResourceAction;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.ImmutableDruidDataSource;
+import org.apache.druid.indexing.overlord.IndexerMetadataStorageCoordinator;
+import org.apache.druid.metadata.MetadataSegmentManager;
+import org.apache.druid.server.http.security.DatasourceResourceFilter;
+import org.apache.druid.server.security.AuthConfig;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.ResourceAction;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.Interval;
import javax.servlet.http.HttpServletRequest;
diff --git a/server/src/main/java/io/druid/server/http/OverlordProxyServlet.java b/server/src/main/java/org/apache/druid/server/http/OverlordProxyServlet.java
similarity index 90%
rename from server/src/main/java/io/druid/server/http/OverlordProxyServlet.java
rename to server/src/main/java/org/apache/druid/server/http/OverlordProxyServlet.java
index f88817d0ebd..9f6b3eeaab9 100644
--- a/server/src/main/java/io/druid/server/http/OverlordProxyServlet.java
+++ b/server/src/main/java/org/apache/druid/server/http/OverlordProxyServlet.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Throwables;
import com.google.inject.Inject;
-import io.druid.client.indexing.IndexingService;
-import io.druid.discovery.DruidLeaderClient;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.server.security.AuthConfig;
+import org.apache.druid.client.indexing.IndexingService;
+import org.apache.druid.discovery.DruidLeaderClient;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.server.security.AuthConfig;
import org.eclipse.jetty.client.api.Request;
import org.eclipse.jetty.proxy.ProxyServlet;
diff --git a/server/src/main/java/io/druid/server/http/RedirectFilter.java b/server/src/main/java/org/apache/druid/server/http/RedirectFilter.java
similarity index 96%
rename from server/src/main/java/io/druid/server/http/RedirectFilter.java
rename to server/src/main/java/org/apache/druid/server/http/RedirectFilter.java
index 195ac9d4bf2..7641f1d7565 100644
--- a/server/src/main/java/io/druid/server/http/RedirectFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/RedirectFilter.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.inject.Inject;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.logger.Logger;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
diff --git a/server/src/main/java/io/druid/server/http/RedirectInfo.java b/server/src/main/java/org/apache/druid/server/http/RedirectInfo.java
similarity index 96%
rename from server/src/main/java/io/druid/server/http/RedirectInfo.java
rename to server/src/main/java/org/apache/druid/server/http/RedirectInfo.java
index 0bcf5016d9d..587ced9f0a5 100644
--- a/server/src/main/java/io/druid/server/http/RedirectInfo.java
+++ b/server/src/main/java/org/apache/druid/server/http/RedirectInfo.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import java.net.URL;
diff --git a/server/src/main/java/io/druid/server/http/RouterResource.java b/server/src/main/java/org/apache/druid/server/http/RouterResource.java
similarity index 92%
rename from server/src/main/java/io/druid/server/http/RouterResource.java
rename to server/src/main/java/org/apache/druid/server/http/RouterResource.java
index 3d4b45a772b..df308552f23 100644
--- a/server/src/main/java/io/druid/server/http/RouterResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/RouterResource.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.inject.Inject;
-import io.druid.client.selector.Server;
-import io.druid.server.router.TieredBrokerHostSelector;
+import org.apache.druid.client.selector.Server;
+import org.apache.druid.server.router.TieredBrokerHostSelector;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
diff --git a/server/src/main/java/io/druid/server/http/RulesResource.java b/server/src/main/java/org/apache/druid/server/http/RulesResource.java
similarity index 91%
rename from server/src/main/java/io/druid/server/http/RulesResource.java
rename to server/src/main/java/org/apache/druid/server/http/RulesResource.java
index 0f338a85b16..10b3f5e3996 100644
--- a/server/src/main/java/io/druid/server/http/RulesResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/RulesResource.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.audit.AuditEntry;
-import io.druid.audit.AuditInfo;
-import io.druid.audit.AuditManager;
-import io.druid.java.util.common.Intervals;
-import io.druid.metadata.MetadataRuleManager;
-import io.druid.server.coordinator.rules.Rule;
-import io.druid.server.http.security.RulesResourceFilter;
-import io.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.audit.AuditEntry;
+import org.apache.druid.audit.AuditInfo;
+import org.apache.druid.audit.AuditManager;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.metadata.MetadataRuleManager;
+import org.apache.druid.server.coordinator.rules.Rule;
+import org.apache.druid.server.http.security.RulesResourceFilter;
+import org.apache.druid.server.http.security.StateResourceFilter;
import org.joda.time.Interval;
import javax.servlet.http.HttpServletRequest;
diff --git a/server/src/main/java/io/druid/server/http/SegmentListerResource.java b/server/src/main/java/org/apache/druid/server/http/SegmentListerResource.java
similarity index 94%
rename from server/src/main/java/io/druid/server/http/SegmentListerResource.java
rename to server/src/main/java/org/apache/druid/server/http/SegmentListerResource.java
index a0cc8aab7d5..3a531b7d384 100644
--- a/server/src/main/java/io/druid/server/http/SegmentListerResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/SegmentListerResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.jaxrs.smile.SmileMediaTypes;
@@ -26,17 +26,17 @@ import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.HttpServerInventoryView;
-import io.druid.guice.annotations.Json;
-import io.druid.guice.annotations.Smile;
-import io.druid.java.util.emitter.EmittingLogger;
-import io.druid.server.coordination.BatchDataSegmentAnnouncer;
-import io.druid.server.coordination.ChangeRequestHistory;
-import io.druid.server.coordination.ChangeRequestsSnapshot;
-import io.druid.server.coordination.DataSegmentChangeRequest;
-import io.druid.server.coordination.SegmentLoadDropHandler;
-import io.druid.server.coordinator.HttpLoadQueuePeon;
-import io.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.client.HttpServerInventoryView;
+import org.apache.druid.guice.annotations.Json;
+import org.apache.druid.guice.annotations.Smile;
+import org.apache.druid.java.util.emitter.EmittingLogger;
+import org.apache.druid.server.coordination.BatchDataSegmentAnnouncer;
+import org.apache.druid.server.coordination.ChangeRequestHistory;
+import org.apache.druid.server.coordination.ChangeRequestsSnapshot;
+import org.apache.druid.server.coordination.DataSegmentChangeRequest;
+import org.apache.druid.server.coordination.SegmentLoadDropHandler;
+import org.apache.druid.server.coordinator.HttpLoadQueuePeon;
+import org.apache.druid.server.http.security.StateResourceFilter;
import javax.annotation.Nullable;
import javax.servlet.AsyncContext;
diff --git a/server/src/main/java/io/druid/server/http/SegmentToDrop.java b/server/src/main/java/org/apache/druid/server/http/SegmentToDrop.java
similarity index 97%
rename from server/src/main/java/io/druid/server/http/SegmentToDrop.java
rename to server/src/main/java/org/apache/druid/server/http/SegmentToDrop.java
index 53b0cfa2c8b..67289caaa5b 100644
--- a/server/src/main/java/io/druid/server/http/SegmentToDrop.java
+++ b/server/src/main/java/org/apache/druid/server/http/SegmentToDrop.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/http/SegmentToMove.java b/server/src/main/java/org/apache/druid/server/http/SegmentToMove.java
similarity index 97%
rename from server/src/main/java/io/druid/server/http/SegmentToMove.java
rename to server/src/main/java/org/apache/druid/server/http/SegmentToMove.java
index 7639c7c8fef..f0361e2e238 100644
--- a/server/src/main/java/io/druid/server/http/SegmentToMove.java
+++ b/server/src/main/java/org/apache/druid/server/http/SegmentToMove.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/http/ServersResource.java b/server/src/main/java/org/apache/druid/server/http/ServersResource.java
similarity index 96%
rename from server/src/main/java/io/druid/server/http/ServersResource.java
rename to server/src/main/java/org/apache/druid/server/http/ServersResource.java
index 767b61d7837..112d24283ec 100644
--- a/server/src/main/java/io/druid/server/http/ServersResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/ServersResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
@@ -26,10 +26,10 @@ import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.DruidServer;
-import io.druid.client.InventoryView;
-import io.druid.server.http.security.StateResourceFilter;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.client.InventoryView;
+import org.apache.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.timeline.DataSegment;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
diff --git a/server/src/main/java/io/druid/server/http/TiersResource.java b/server/src/main/java/org/apache/druid/server/http/TiersResource.java
similarity index 93%
rename from server/src/main/java/io/druid/server/http/TiersResource.java
rename to server/src/main/java/org/apache/druid/server/http/TiersResource.java
index 2ac6e221bf0..a3722e805c4 100644
--- a/server/src/main/java/io/druid/server/http/TiersResource.java
+++ b/server/src/main/java/org/apache/druid/server/http/TiersResource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http;
+package org.apache.druid.server.http;
import com.google.common.base.Function;
import com.google.common.collect.HashBasedTable;
@@ -28,12 +28,12 @@ import com.google.common.collect.Sets;
import com.google.common.collect.Table;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ResourceFilters;
-import io.druid.client.DruidDataSource;
-import io.druid.client.DruidServer;
-import io.druid.client.InventoryView;
-import io.druid.java.util.common.MapUtils;
-import io.druid.server.http.security.StateResourceFilter;
-import io.druid.timeline.DataSegment;
+import org.apache.druid.client.DruidDataSource;
+import org.apache.druid.client.DruidServer;
+import org.apache.druid.client.InventoryView;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.server.http.security.StateResourceFilter;
+import org.apache.druid.timeline.DataSegment;
import org.joda.time.Interval;
import javax.ws.rs.GET;
diff --git a/server/src/main/java/io/druid/server/http/security/AbstractResourceFilter.java b/server/src/main/java/org/apache/druid/server/http/security/AbstractResourceFilter.java
similarity index 94%
rename from server/src/main/java/io/druid/server/http/security/AbstractResourceFilter.java
rename to server/src/main/java/org/apache/druid/server/http/security/AbstractResourceFilter.java
index f42177d5b50..1f2a245dd19 100644
--- a/server/src/main/java/io/druid/server/http/security/AbstractResourceFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/security/AbstractResourceFilter.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package io.druid.server.http.security;
+package org.apache.druid.server.http.security;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ContainerRequest;
import com.sun.jersey.spi.container.ContainerRequestFilter;
import com.sun.jersey.spi.container.ContainerResponseFilter;
import com.sun.jersey.spi.container.ResourceFilter;
-import io.druid.server.security.Action;
-import io.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.Action;
+import org.apache.druid.server.security.AuthorizerMapper;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.Context;
diff --git a/server/src/main/java/io/druid/server/http/security/ConfigResourceFilter.java b/server/src/main/java/org/apache/druid/server/http/security/ConfigResourceFilter.java
similarity index 84%
rename from server/src/main/java/io/druid/server/http/security/ConfigResourceFilter.java
rename to server/src/main/java/org/apache/druid/server/http/security/ConfigResourceFilter.java
index 3396bf97605..2a7d32c1f50 100644
--- a/server/src/main/java/io/druid/server/http/security/ConfigResourceFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/security/ConfigResourceFilter.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.server.http.security;
+package org.apache.druid.server.http.security;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ContainerRequest;
-import io.druid.server.security.Access;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.ForbiddenException;
-import io.druid.server.security.Resource;
-import io.druid.server.security.ResourceAction;
-import io.druid.server.security.ResourceType;
+import org.apache.druid.server.security.Access;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.ForbiddenException;
+import org.apache.druid.server.security.Resource;
+import org.apache.druid.server.security.ResourceAction;
+import org.apache.druid.server.security.ResourceType;
/**
* Use this ResourceFilter at end points where Druid Cluster configuration is read or written
diff --git a/server/src/main/java/io/druid/server/http/security/DatasourceResourceFilter.java b/server/src/main/java/org/apache/druid/server/http/security/DatasourceResourceFilter.java
similarity index 89%
rename from server/src/main/java/io/druid/server/http/security/DatasourceResourceFilter.java
rename to server/src/main/java/org/apache/druid/server/http/security/DatasourceResourceFilter.java
index d2dd5484eb9..a76905dba41 100644
--- a/server/src/main/java/io/druid/server/http/security/DatasourceResourceFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/security/DatasourceResourceFilter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http.security;
+package org.apache.druid.server.http.security;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
@@ -25,13 +25,13 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ContainerRequest;
-import io.druid.server.security.Access;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.ForbiddenException;
-import io.druid.server.security.Resource;
-import io.druid.server.security.ResourceAction;
-import io.druid.server.security.ResourceType;
+import org.apache.druid.server.security.Access;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.ForbiddenException;
+import org.apache.druid.server.security.Resource;
+import org.apache.druid.server.security.ResourceAction;
+import org.apache.druid.server.security.ResourceType;
import javax.ws.rs.core.PathSegment;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/http/security/RulesResourceFilter.java b/server/src/main/java/org/apache/druid/server/http/security/RulesResourceFilter.java
similarity index 88%
rename from server/src/main/java/io/druid/server/http/security/RulesResourceFilter.java
rename to server/src/main/java/org/apache/druid/server/http/security/RulesResourceFilter.java
index a1e67261dab..0e1fee100ae 100644
--- a/server/src/main/java/io/druid/server/http/security/RulesResourceFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/security/RulesResourceFilter.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.http.security;
+package org.apache.druid.server.http.security;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
@@ -25,13 +25,13 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ContainerRequest;
-import io.druid.server.security.Access;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.ForbiddenException;
-import io.druid.server.security.Resource;
-import io.druid.server.security.ResourceAction;
-import io.druid.server.security.ResourceType;
+import org.apache.druid.server.security.Access;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.ForbiddenException;
+import org.apache.druid.server.security.Resource;
+import org.apache.druid.server.security.ResourceAction;
+import org.apache.druid.server.security.ResourceType;
import javax.ws.rs.core.PathSegment;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/http/security/StateResourceFilter.java b/server/src/main/java/org/apache/druid/server/http/security/StateResourceFilter.java
similarity index 86%
rename from server/src/main/java/io/druid/server/http/security/StateResourceFilter.java
rename to server/src/main/java/org/apache/druid/server/http/security/StateResourceFilter.java
index 3aab4e513c4..7e230302c25 100644
--- a/server/src/main/java/io/druid/server/http/security/StateResourceFilter.java
+++ b/server/src/main/java/org/apache/druid/server/http/security/StateResourceFilter.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package io.druid.server.http.security;
+package org.apache.druid.server.http.security;
import com.google.inject.Inject;
import com.sun.jersey.spi.container.ContainerRequest;
-import io.druid.server.security.Access;
-import io.druid.server.security.AuthorizerMapper;
-import io.druid.server.security.AuthorizationUtils;
-import io.druid.server.security.ForbiddenException;
-import io.druid.server.security.Resource;
-import io.druid.server.security.ResourceAction;
-import io.druid.server.security.ResourceType;
+import org.apache.druid.server.security.Access;
+import org.apache.druid.server.security.AuthorizerMapper;
+import org.apache.druid.server.security.AuthorizationUtils;
+import org.apache.druid.server.security.ForbiddenException;
+import org.apache.druid.server.security.Resource;
+import org.apache.druid.server.security.ResourceAction;
+import org.apache.druid.server.security.ResourceType;
/**
* Use this ResourceFilter at end points where Druid Cluster State is read or written
diff --git a/server/src/main/java/io/druid/server/initialization/AuthenticatorMapperModule.java b/server/src/main/java/org/apache/druid/server/initialization/AuthenticatorMapperModule.java
similarity index 86%
rename from server/src/main/java/io/druid/server/initialization/AuthenticatorMapperModule.java
rename to server/src/main/java/org/apache/druid/server/initialization/AuthenticatorMapperModule.java
index 2976517c7cc..dfbbbecfa99 100644
--- a/server/src/main/java/io/druid/server/initialization/AuthenticatorMapperModule.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/AuthenticatorMapperModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.databind.Module;
import com.google.common.base.Supplier;
@@ -26,19 +26,19 @@ import com.google.inject.Binder;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Provider;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.JsonConfigurator;
-import io.druid.guice.LazySingleton;
-import io.druid.guice.LifecycleModule;
-import io.druid.initialization.DruidModule;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.security.AuthConfig;
-import io.druid.server.security.Authenticator;
-import io.druid.server.security.AuthenticatorMapper;
-import io.druid.server.security.AllowAllAuthenticator;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.JsonConfigurator;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.guice.LifecycleModule;
+import org.apache.druid.initialization.DruidModule;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.security.AuthConfig;
+import org.apache.druid.server.security.Authenticator;
+import org.apache.druid.server.security.AuthenticatorMapper;
+import org.apache.druid.server.security.AllowAllAuthenticator;
import java.util.Collections;
import java.util.HashSet;
diff --git a/server/src/main/java/io/druid/server/initialization/AuthorizerMapperModule.java b/server/src/main/java/org/apache/druid/server/initialization/AuthorizerMapperModule.java
similarity index 87%
rename from server/src/main/java/io/druid/server/initialization/AuthorizerMapperModule.java
rename to server/src/main/java/org/apache/druid/server/initialization/AuthorizerMapperModule.java
index 605860ded1c..89e4e286743 100644
--- a/server/src/main/java/io/druid/server/initialization/AuthorizerMapperModule.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/AuthorizerMapperModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.databind.Module;
import com.google.common.base.Supplier;
@@ -26,19 +26,19 @@ import com.google.inject.Binder;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Provider;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.JsonConfigurator;
-import io.druid.guice.LazySingleton;
-import io.druid.guice.LifecycleModule;
-import io.druid.initialization.DruidModule;
-import io.druid.java.util.common.IAE;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.StringUtils;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.server.security.AllowAllAuthorizer;
-import io.druid.server.security.AuthConfig;
-import io.druid.server.security.Authorizer;
-import io.druid.server.security.AuthorizerMapper;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.JsonConfigurator;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.guice.LifecycleModule;
+import org.apache.druid.initialization.DruidModule;
+import org.apache.druid.java.util.common.IAE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.server.security.AllowAllAuthorizer;
+import org.apache.druid.server.security.AuthConfig;
+import org.apache.druid.server.security.Authorizer;
+import org.apache.druid.server.security.AuthorizerMapper;
import java.util.Collections;
import java.util.HashSet;
diff --git a/server/src/main/java/io/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java b/server/src/main/java/org/apache/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java
similarity index 97%
rename from server/src/main/java/io/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java
rename to server/src/main/java/org/apache/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java
index 17a385a3e5d..66ac575d41d 100644
--- a/server/src/main/java/io/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/BatchDataSegmentAnnouncerConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/initialization/CuratorDiscoveryConfig.java b/server/src/main/java/org/apache/druid/server/initialization/CuratorDiscoveryConfig.java
similarity index 95%
rename from server/src/main/java/io/druid/server/initialization/CuratorDiscoveryConfig.java
rename to server/src/main/java/org/apache/druid/server/initialization/CuratorDiscoveryConfig.java
index 9c075fcaa8e..c8c9ef95127 100644
--- a/server/src/main/java/io/druid/server/initialization/CuratorDiscoveryConfig.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/CuratorDiscoveryConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.annotation.JsonProperty;
diff --git a/server/src/main/java/io/druid/server/initialization/ServerConfig.java b/server/src/main/java/org/apache/druid/server/initialization/ServerConfig.java
similarity index 99%
rename from server/src/main/java/io/druid/server/initialization/ServerConfig.java
rename to server/src/main/java/org/apache/druid/server/initialization/ServerConfig.java
index 0ef91cce1b0..11a9248d83f 100644
--- a/server/src/main/java/io/druid/server/initialization/ServerConfig.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/ServerConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.Period;
diff --git a/server/src/main/java/io/druid/server/initialization/TLSServerConfig.java b/server/src/main/java/org/apache/druid/server/initialization/TLSServerConfig.java
similarity index 96%
rename from server/src/main/java/io/druid/server/initialization/TLSServerConfig.java
rename to server/src/main/java/org/apache/druid/server/initialization/TLSServerConfig.java
index 79957dcee4b..6ea2c1258d7 100644
--- a/server/src/main/java/io/druid/server/initialization/TLSServerConfig.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/TLSServerConfig.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.druid.metadata.PasswordProvider;
+import org.apache.druid.metadata.PasswordProvider;
import java.util.List;
diff --git a/server/src/main/java/io/druid/server/initialization/ZkPathsConfig.java b/server/src/main/java/org/apache/druid/server/initialization/ZkPathsConfig.java
similarity index 98%
rename from server/src/main/java/io/druid/server/initialization/ZkPathsConfig.java
rename to server/src/main/java/org/apache/druid/server/initialization/ZkPathsConfig.java
index d71fc1869cf..24eef17ec42 100644
--- a/server/src/main/java/io/druid/server/initialization/ZkPathsConfig.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/ZkPathsConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization;
+package org.apache.druid.server.initialization;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.curator.utils.ZKPaths;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/ChatHandlerServerModule.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/ChatHandlerServerModule.java
similarity index 85%
rename from server/src/main/java/io/druid/server/initialization/jetty/ChatHandlerServerModule.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/ChatHandlerServerModule.java
index 98ec5836327..268587e82fc 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/ChatHandlerServerModule.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/ChatHandlerServerModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.google.inject.Binder;
import com.google.inject.Injector;
@@ -25,19 +25,19 @@ import com.google.inject.Key;
import com.google.inject.Module;
import com.google.inject.Provides;
import com.google.inject.multibindings.Multibinder;
-import io.druid.guice.Jerseys;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.LazySingleton;
-import io.druid.guice.LifecycleModule;
-import io.druid.guice.annotations.RemoteChatHandler;
-import io.druid.guice.annotations.Self;
-import io.druid.java.util.common.lifecycle.Lifecycle;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.segment.realtime.firehose.ChatHandlerResource;
-import io.druid.server.DruidNode;
-import io.druid.server.initialization.ServerConfig;
-import io.druid.server.initialization.TLSServerConfig;
-import io.druid.server.metrics.DataSourceTaskIdHolder;
+import org.apache.druid.guice.Jerseys;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.guice.LifecycleModule;
+import org.apache.druid.guice.annotations.RemoteChatHandler;
+import org.apache.druid.guice.annotations.Self;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.segment.realtime.firehose.ChatHandlerResource;
+import org.apache.druid.server.DruidNode;
+import org.apache.druid.server.initialization.ServerConfig;
+import org.apache.druid.server.initialization.TLSServerConfig;
+import org.apache.druid.server.metrics.DataSourceTaskIdHolder;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.ssl.SslContextFactory;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/CustomExceptionMapper.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/CustomExceptionMapper.java
similarity index 96%
rename from server/src/main/java/io/druid/server/initialization/jetty/CustomExceptionMapper.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/CustomExceptionMapper.java
index 8e7fb6dd88b..2b1b8351aed 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/CustomExceptionMapper.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/CustomExceptionMapper.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.fasterxml.jackson.databind.JsonMappingException;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/ForbiddenExceptionMapper.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/ForbiddenExceptionMapper.java
similarity index 92%
rename from server/src/main/java/io/druid/server/initialization/jetty/ForbiddenExceptionMapper.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/ForbiddenExceptionMapper.java
index 9869b3a2230..a88e9fd1b50 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/ForbiddenExceptionMapper.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/ForbiddenExceptionMapper.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.google.common.collect.ImmutableMap;
-import io.druid.server.security.ForbiddenException;
+import org.apache.druid.server.security.ForbiddenException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyBindings.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyBindings.java
similarity index 95%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyBindings.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyBindings.java
index 9ae6cd3b397..3bcbafb6e03 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyBindings.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyBindings.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.google.common.collect.ImmutableMap;
import com.google.inject.Binder;
import com.google.inject.multibindings.Multibinder;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.logger.Logger;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.servlets.QoSFilter;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java
similarity index 97%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java
index 8887e428ed5..07955bb0339 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyMonitoringConnectionFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndPoint;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyRequestLog.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyRequestLog.java
similarity index 87%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyRequestLog.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyRequestLog.java
index d1e3e85cb73..7eece1e9766 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyRequestLog.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyRequestLog.java
@@ -17,19 +17,19 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.RequestLog;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.util.component.AbstractLifeCycle;
-import io.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.common.logger.Logger;
public class JettyRequestLog extends AbstractLifeCycle implements RequestLog
{
- private static final Logger logger = new Logger("io.druid.jetty.RequestLog");
+ private static final Logger logger = new Logger("org.apache.druid.jetty.RequestLog");
@Override
public void log(Request request, Response response)
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitUtils.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitUtils.java
similarity index 97%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitUtils.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitUtils.java
index 4c80edeb051..90e9d614592 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitUtils.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitUtils.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.TypeLiteral;
-import io.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.ISE;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.handler.RequestLogHandler;
import org.eclipse.jetty.server.handler.gzip.GzipHandler;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitializer.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitializer.java
similarity index 94%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitializer.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitializer.java
index 1edf9f024e3..33bb5b7c654 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerInitializer.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitializer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.google.inject.Injector;
import org.eclipse.jetty.server.Server;
diff --git a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerModule.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
similarity index 92%
rename from server/src/main/java/io/druid/server/initialization/jetty/JettyServerModule.java
rename to server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
index a118b2cf6e9..ee613d15334 100644
--- a/server/src/main/java/io/druid/server/initialization/jetty/JettyServerModule.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package io.druid.server.initialization.jetty;
+package org.apache.druid.server.initialization.jetty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
@@ -38,28 +38,28 @@ import com.sun.jersey.api.core.ResourceConfig;
import com.sun.jersey.guice.JerseyServletModule;
import com.sun.jersey.guice.spi.container.servlet.GuiceContainer;
import com.sun.jersey.spi.container.servlet.WebConfig;
-import io.druid.guice.Jerseys;
-import io.druid.guice.JsonConfigProvider;
-import io.druid.guice.LazySingleton;
-import io.druid.guice.annotations.JSR311Resource;
-import io.druid.guice.annotations.Json;
-import io.druid.guice.annotations.Self;
-import io.druid.guice.annotations.Smile;
-import io.druid.java.util.common.ISE;
-import io.druid.java.util.common.RE;
-import io.druid.java.util.common.lifecycle.Lifecycle;
-import io.druid.java.util.common.logger.Logger;
-import io.druid.java.util.emitter.service.ServiceEmitter;
-import io.druid.java.util.emitter.service.ServiceMetricEvent;
-import io.druid.java.util.metrics.AbstractMonitor;
-import io.druid.java.util.metrics.MonitorUtils;
-import io.druid.server.DruidNode;
-import io.druid.server.StatusResource;
-import io.druid.server.initialization.ServerConfig;
-import io.druid.server.initialization.TLSServerConfig;
-import io.druid.server.metrics.DataSourceTaskIdHolder;
-import io.druid.server.metrics.MetricsModule;
-import io.druid.server.metrics.MonitorsConfig;
+import org.apache.druid.guice.Jerseys;
+import org.apache.druid.guice.JsonConfigProvider;
+import org.apache.druid.guice.LazySingleton;
+import org.apache.druid.guice.annotations.JSR311Resource;
+import org.apache.druid.guice.annotations.Json;
+import org.apache.druid.guice.annotations.Self;
+import org.apache.druid.guice.annotations.Smile;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.RE;
+import org.apache.druid.java.util.common.lifecycle.Lifecycle;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.java.util.emitter.service.ServiceEmitter;
+import org.apache.druid.java.util.emitter.service.ServiceMetricEvent;
+import org.apache.druid.java.util.metrics.AbstractMonitor;
+import org.apache.druid.java.util.metrics.MonitorUtils;
+import org.apache.druid.server.DruidNode;
+import org.apache.druid.server.StatusResource;
+import org.apache.druid.server.initialization.ServerConfig;
+import org.apache.druid.server.initialization.TLSServerConfig;
+import org.apache.druid.server.metrics.DataSourceTaskIdHolder;
+import org.apache.druid.server.metrics.MetricsModule;
+import org.apache.druid.server.metrics.MonitorsConfig;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.HttpConfiguration;
@@ -211,7 +211,7 @@ public class JettyServerModule extends JerseyServletModule
final Server server = new Server(threadPool);
// Without this bean set, the default ScheduledExecutorScheduler runs as non-daemon, causing lifecycle hooks to fail
- // to fire on main exit. Related bug: https://github.com/druid-io/druid/pull/1627
+ // to fire on main exit. Related bug: https://github.com/apache/incubator-druid/pull/1627
server.addBean(new ScheduledExecutorScheduler("JettyScheduler", true), true);
final List