Skip to content

Commit

Permalink
Package rename
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Apr 8, 2024
1 parent e4397f3 commit e99cefe
Show file tree
Hide file tree
Showing 42 changed files with 64 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.opensearch.common.Nullable;
import org.opensearch.common.collect.MapBuilder;
import org.opensearch.index.IndexSettings;
import org.opensearch.index.codec.freshstartree.codec.StarTreeCodec;
import org.opensearch.index.codec.startree.codec.StarTreeCodec;
import org.opensearch.index.mapper.MapperService;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
import org.apache.lucene.codecs.PostingsFormat;
import org.apache.lucene.codecs.lucene95.Lucene95Codec;
import org.opensearch.common.lucene.Lucene;
import org.opensearch.index.codec.freshstartree.codec.StarTreeCodec;
import org.opensearch.index.codec.freshstartree.codec.StarTreeDocValuesFormat;
import org.opensearch.index.codec.startree.codec.StarTreeCodec;
import org.opensearch.index.codec.startree.codec.StarTreeDocValuesFormat;
import org.opensearch.index.mapper.CompletionFieldMapper;
import org.opensearch.index.mapper.MappedFieldType;
import org.opensearch.index.mapper.MapperService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

import java.util.Comparator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/** Aggregated function type */
public enum AggregationFunctionType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/** Count value aggregator */
public class CountValueAggregator implements ValueAggregator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/** Data type of doc values */
public enum DataType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/** Sum value aggregator */
public class SumValueAggregator implements ValueAggregator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/**
* A value aggregator that pre-aggregates on the input values for a specific type of aggregation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;

/** Value aggregator factory for a given aggregation type */
public class ValueAggregatorFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* limitations under the License.
*/
/** Aggregator classes for star tree */
package org.opensearch.index.codec.freshstartree.aggregator;
package org.opensearch.index.codec.startree.aggregator;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;

import java.time.temporal.ChronoField;
import org.apache.logging.log4j.LogManager;
Expand All @@ -29,26 +29,24 @@
import org.apache.lucene.index.FieldInfo;
import org.apache.lucene.index.IndexFileNames;
import org.apache.lucene.index.IndexOptions;
import org.apache.lucene.index.NumericDocValues;
import org.apache.lucene.index.SegmentWriteState;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.index.VectorEncoding;
import org.apache.lucene.index.VectorSimilarityFunction;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.Counter;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.util.packed.PackedInts;
import org.apache.lucene.util.packed.PackedLongValues;
import org.opensearch.common.time.DateUtils;
import org.opensearch.index.codec.freshstartree.aggregator.AggregationFunctionColumnPair;
import org.opensearch.index.codec.freshstartree.aggregator.AggregationFunctionType;
import org.opensearch.index.codec.freshstartree.aggregator.ValueAggregator;
import org.opensearch.index.codec.freshstartree.aggregator.ValueAggregatorFactory;
import org.opensearch.index.codec.freshstartree.codec.SortedNumericDocValuesWriter;
import org.opensearch.index.codec.freshstartree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.freshstartree.node.StarTreeNode;
import org.opensearch.index.codec.freshstartree.util.BufferedAggregatedDocValues;
import org.opensearch.index.codec.startree.aggregator.AggregationFunctionColumnPair;
import org.opensearch.index.codec.startree.aggregator.AggregationFunctionType;
import org.opensearch.index.codec.startree.aggregator.ValueAggregator;
import org.opensearch.index.codec.startree.aggregator.ValueAggregatorFactory;
import org.opensearch.index.codec.startree.codec.SortedNumericDocValuesWriter;
import org.opensearch.index.codec.startree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.startree.node.StarTreeNode;
import org.opensearch.index.codec.startree.util.BufferedAggregatedDocValues;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.codecs.DocValuesConsumer;
import org.apache.lucene.index.IndexFileNames;
import org.apache.lucene.index.NumericDocValues;
import org.apache.lucene.index.SegmentWriteState;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.store.IndexInput;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.store.RandomAccessInput;
import org.apache.lucene.util.IOUtils;
import org.opensearch.index.codec.freshstartree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.freshstartree.util.QuickSorter;
import org.opensearch.index.codec.startree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.startree.util.QuickSorter;

import java.io.IOException;
import java.nio.ByteBuffer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;

import org.apache.lucene.codecs.DocValuesConsumer;
import org.apache.lucene.index.NumericDocValues;
import org.apache.lucene.index.SegmentWriteState;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.store.IndexOutput;
import org.opensearch.index.codec.freshstartree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.startree.codec.StarTreeAggregatedValues;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;

/** Class representing a star tree record */
public class Record {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -28,7 +28,7 @@
import java.util.Queue;

import static java.nio.charset.StandardCharsets.UTF_8;
import static org.opensearch.index.codec.freshstartree.node.OffHeapStarTreeNode.SERIALIZABLE_SIZE_IN_BYTES;
import static org.opensearch.index.codec.startree.node.OffHeapStarTreeNode.SERIALIZABLE_SIZE_IN_BYTES;

/** Util class for building star tree */
public class StarTreeBuilderUtils {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* limitations under the License.
*/
/** Builder classes for star tree */
package org.opensearch.index.codec.freshstartree.builder;
package org.opensearch.index.codec.startree.builder;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import org.apache.lucene.codecs.CodecUtil;
import org.apache.lucene.codecs.DocValuesConsumer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import org.apache.lucene.codecs.CodecUtil;
import org.apache.lucene.codecs.DocValuesProducer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@
* compatible open source license.
*/

package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import java.io.IOException;
import java.util.Arrays;
import org.apache.lucene.codecs.DocValuesConsumer;
import org.apache.lucene.codecs.DocValuesProducer;
import org.apache.lucene.index.DocValues;
import org.apache.lucene.index.DocsWithFieldSet;
import org.apache.lucene.index.EmptyDocValuesProducer;
import org.apache.lucene.index.FieldInfo;
import org.apache.lucene.index.NumericDocValues;
import org.apache.lucene.index.SegmentWriteState;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.index.Sorter;
import org.apache.lucene.search.DocIdSetIterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import org.apache.lucene.index.NumericDocValues;
import org.apache.lucene.index.SortedNumericDocValues;
import org.opensearch.index.codec.freshstartree.node.StarTree;
import org.opensearch.index.codec.startree.node.StarTree;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.CompoundFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import org.apache.lucene.codecs.DocValuesConsumer;
import org.apache.lucene.codecs.DocValuesFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import java.util.LinkedHashMap;
import org.apache.lucene.codecs.CodecUtil;
Expand All @@ -28,8 +28,8 @@
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.index.SortedSetDocValues;
import org.apache.lucene.store.IndexInput;
import org.opensearch.index.codec.freshstartree.node.OffHeapStarTree;
import org.opensearch.index.codec.freshstartree.node.StarTree;
import org.opensearch.index.codec.startree.node.OffHeapStarTree;
import org.opensearch.index.codec.startree.node.StarTree;

import java.io.IOException;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;

import java.util.Collection;
import java.util.stream.Collectors;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -27,8 +26,8 @@
import org.apache.lucene.index.SegmentWriteState;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.store.IndexOutput;
import org.opensearch.index.codec.freshstartree.builder.BaseSingleTreeBuilder;
import org.opensearch.index.codec.freshstartree.builder.OffHeapBufferedSingleTreeBuilder;
import org.opensearch.index.codec.startree.builder.BaseSingleTreeBuilder;
import org.opensearch.index.codec.startree.builder.OffHeapBufferedSingleTreeBuilder;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* limitations under the License.
*/
/** Codec for performing aggregation during indexing */
package org.opensearch.index.codec.freshstartree.codec;
package org.opensearch.index.codec.startree.codec;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.node;
package org.opensearch.index.codec.startree.node;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.node;
package org.opensearch.index.codec.startree.node;

import org.apache.lucene.store.RandomAccessInput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.node;
package org.opensearch.index.codec.startree.node;

import java.io.IOException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.node;
package org.opensearch.index.codec.startree.node;

import java.io.IOException;
import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/

/** node package */
package org.opensearch.index.codec.freshstartree.node;
package org.opensearch.index.codec.startree.node;
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensearch.index.codec.freshstartree.query;
package org.opensearch.index.codec.startree.query;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.index.SortedNumericDocValues;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.util.DocIdSetBuilder;
import org.opensearch.index.codec.freshstartree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.freshstartree.node.StarTree;
import org.opensearch.index.codec.freshstartree.node.StarTreeNode;
import org.opensearch.index.codec.startree.codec.StarTreeAggregatedValues;
import org.opensearch.index.codec.startree.node.StarTree;
import org.opensearch.index.codec.startree.node.StarTreeNode;

import java.io.IOException;
import java.util.ArrayDeque;
Expand Down
Loading

0 comments on commit e99cefe

Please sign in to comment.