Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions contrib/pinot-druid-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.linkedin.pinotdruidbenchmark</groupId>
<groupId>org.apache.pinotdruidbenchmark</groupId>
<artifactId>pinot-druid-benchmark</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
Expand Down Expand Up @@ -52,27 +52,27 @@
<configuration>
<programs>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.DataSeparator</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.DataSeparator</mainClass>
<name>data-separator</name>
</program>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.DataMerger</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.DataMerger</mainClass>
<name>data-merger</name>
</program>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.PinotResponseTime</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.PinotResponseTime</mainClass>
<name>pinot-response-time</name>
</program>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.DruidResponseTime</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.DruidResponseTime</mainClass>
<name>druid-response-time</name>
</program>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.PinotThroughput</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.PinotThroughput</mainClass>
<name>pinot-throughput</name>
</program>
<program>
<mainClass>com.linkedin.pinotdruidbenchmark.DruidThroughput</mainClass>
<mainClass>org.apache.pinotdruidbenchmark.DruidThroughput</mainClass>
<name>druid-throughput</name>
</program>
</programs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedReader;
import java.io.BufferedWriter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedReader;
import java.io.BufferedWriter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedReader;
import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinotdruidbenchmark;
package org.apache.pinotdruidbenchmark;

import java.io.BufferedReader;
import java.io.File;
Expand Down
2 changes: 1 addition & 1 deletion pinot-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>pinot</artifactId>
<groupId>com.linkedin.pinot</groupId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
</parent>
<artifactId>pinot-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

/**
* Shared implementation between the different ResultSets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.List;
import org.json.JSONArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

public interface BrokerSelector {
/**
* Returns the broker address in the form host:port
* @param table
* @return
*/
String selectBroker(String table);
String selectBroker(String table);

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.List;
import java.util.concurrent.ExecutionException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.Arrays;
import java.util.Properties;
Expand Down Expand Up @@ -63,5 +63,5 @@ public static Connection fromProperties(Properties properties) {
*/
public static Connection fromHostList(String... brokers) {
return new Connection(Arrays.asList(brokers), _transportFactory.buildTransport());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.ArrayList;
import java.util.HashSet;
Expand All @@ -31,8 +31,8 @@
import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.BytesPushThroughSerializer;

import static com.linkedin.pinot.client.ExternalViewReader.OFFLINE_SUFFIX;
import static com.linkedin.pinot.client.ExternalViewReader.REALTIME_SUFFIX;
import static org.apache.pinot.client.ExternalViewReader.OFFLINE_SUFFIX;
import static org.apache.pinot.client.ExternalViewReader.REALTIME_SUFFIX;


/**
Expand Down Expand Up @@ -74,7 +74,7 @@ private void refresh() {
return null;
}
}
String tableName = table.replace(OFFLINE_SUFFIX, "").replace(REALTIME_SUFFIX, "");
String tableName = table.replace(ExternalViewReader.OFFLINE_SUFFIX, "").replace(ExternalViewReader.REALTIME_SUFFIX, "");
List<String> list = tableToBrokerListMapRef.get().get(tableName);
if (list != null && !list.isEmpty()) {
return list.get(_random.nextInt(list.size()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import org.json.JSONArray;
import org.json.JSONException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import com.ning.http.client.AsyncHttpClient;
import com.ning.http.client.Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

/**
* Pinot client transport factory for JSON encoded BrokerResults through HTTP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

/**
* Pinot client exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.concurrent.Future;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

/**
* Factory for client transports.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.concurrent.Future;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

/**
* A Pinot result group, representing an aggregation function in the original query.
Expand Down Expand Up @@ -139,10 +139,10 @@ public interface ResultSet {
/**
* Get the group key name for the given key column index. use getGroupKeyLength() to know the number of groupKey
* @param groupKeyColumnIndex
* @return group key column name
* @return group key column name
*/
String getGroupKeyColumnName(int groupKeyColumnIndex);

/**
* Obtains the group key value for the given row and key column index.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -74,7 +74,7 @@ public int getResultSetCount() {
public ResultSet getResultSet(int index) {
return _resultSets.get(index);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import org.json.JSONArray;
import org.json.JSONException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.List;
import java.util.Random;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.pinot.client;
package org.apache.pinot.client;

import java.util.LinkedList;
import java.util.List;
Expand Down
Loading