Skip to content

Commit

Permalink
Merge pull request apache#847 from metamx/druid-0.7.x
Browse files Browse the repository at this point in the history
master branch is now Druid 0.7
  • Loading branch information
xvrl committed Nov 12, 2014
2 parents 4b4f1c7 + 4ac1aaf commit f884e80
Show file tree
Hide file tree
Showing 443 changed files with 34,490 additions and 4,513 deletions.
2 changes: 1 addition & 1 deletion cassandra-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.druid</groupId>
<artifactId>druid</artifactId>
<version>0.6.161-SNAPSHOT</version>
<version>0.7.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
7 changes: 3 additions & 4 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.druid</groupId>
<artifactId>druid</artifactId>
<version>0.6.161-SNAPSHOT</version>
<version>0.7.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand All @@ -46,9 +46,8 @@
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import com.metamx.common.lifecycle.LifecycleStart;
import com.metamx.common.lifecycle.LifecycleStop;
import com.metamx.common.logger.Logger;
import io.druid.db.DbConnector;
import io.druid.db.DbTablesConfig;
import io.druid.metadata.MetadataStorageConnector;
import io.druid.metadata.MetadataStorageTablesConfig;
import org.joda.time.Duration;

import java.util.Arrays;
Expand All @@ -48,7 +48,7 @@ public class ConfigManager
private final Object lock = new Object();
private boolean started = false;

private final DbConnector dbConnector;
private final MetadataStorageConnector dbConnector;
private final Supplier<ConfigManagerConfig> config;

private final ScheduledExecutorService exec;
Expand All @@ -58,7 +58,7 @@ public class ConfigManager
private volatile ConfigManager.PollingCallable poller;

@Inject
public ConfigManager(DbConnector dbConnector, Supplier<DbTablesConfig> dbTables, Supplier<ConfigManagerConfig> config)
public ConfigManager(MetadataStorageConnector dbConnector, Supplier<MetadataStorageTablesConfig> dbTables, Supplier<ConfigManagerConfig> config)
{
this.dbConnector = dbConnector;
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import com.google.common.io.ByteStreams;
import com.google.common.io.OutputSupplier;
import com.google.common.primitives.Ints;
import io.druid.collections.IntList;

import java.io.IOException;
Expand Down Expand Up @@ -262,4 +263,9 @@ public float[] readFloats(InputStream in) throws IOException

return retVal;
}

public int getSerializedStringByteSize(String str)
{
return Ints.BYTES + str.getBytes(UTF8).length;
}
}
Loading

0 comments on commit f884e80

Please sign in to comment.