forked from senseidb/sensei
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the performance of the group by map reduce. Still some fixes
needed
- Loading branch information
Volodymyr Zhabiuk
committed
Jan 2, 2013
1 parent
4ca8fe1
commit 853bff5
Showing
23 changed files
with
817 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
sensei-core/src/main/java/com/senseidb/search/req/mapred/SingleFieldAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package com.senseidb.search.req.mapred; | ||
|
||
public interface SingleFieldAccessor { | ||
/** | ||
* Get facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public Object get(int docId); | ||
|
||
/** | ||
* Get string facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public String getString(int docId); | ||
|
||
/** | ||
* Get long facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public long getLong(int docId); | ||
|
||
/** | ||
* Get double facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public double getDouble(int docId); | ||
|
||
/** | ||
* Get short facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public short getShort(int docId); | ||
|
||
/** | ||
* Get integer facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public int getInteger(int docId); | ||
|
||
/** | ||
* Get float facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public float getFloat(int docId); | ||
|
||
/** | ||
* Get array facet value for the document | ||
* @param fieldName | ||
* @param docId | ||
* @return | ||
*/ | ||
public Object[] getArray(int docId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
...src/main/java/com/senseidb/search/req/mapred/functions/HashSetDistinctCountMapReduce.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.