Refactoring

This commit is contained in:
Andrea Cavalli 2021-01-30 22:14:48 +01:00
parent ef43bbe5fe
commit f0f34d89a9
43 changed files with 48 additions and 45 deletions

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.indicizer;
package it.cavallium.dbengine.database;
public enum DatabaseMemoryMode {
LOW, NORMAL, HIGH

View File

@ -2,11 +2,11 @@ package it.cavallium.dbengine.database;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import it.cavallium.dbengine.database.collections.LLInt;
import it.cavallium.dbengine.database.collections.LLLong;
import java.io.Closeable;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import it.cavallium.dbengine.database.structures.LLInt;
import it.cavallium.dbengine.database.structures.LLLong;
public interface LLKeyValueDatabase extends Closeable, LLSnapshottable, LLKeyValueDatabaseStructure {

View File

@ -3,7 +3,7 @@ package it.cavallium.dbengine.database;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import com.google.protobuf.ByteString;
import it.cavallium.dbengine.database.utils.RandomSortField;
import it.cavallium.dbengine.lucene.RandomSortField;
import it.cavallium.dbengine.proto.LLKeyScore;
import it.cavallium.dbengine.proto.LLType;
import java.nio.ByteBuffer;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.structures;
package it.cavallium.dbengine.database.collections;
import com.google.common.primitives.Ints;
import it.cavallium.dbengine.database.LLKeyValueDatabaseStructure;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.structures;
package it.cavallium.dbengine.database.collections;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;

View File

@ -11,10 +11,10 @@ import it.cavallium.dbengine.database.LLTerm;
import it.cavallium.dbengine.database.LLUtils;
import it.cavallium.dbengine.database.LuceneUtils;
import it.cavallium.dbengine.database.analyzer.TextFieldsAnalyzer;
import it.cavallium.dbengine.database.luceneutil.AdaptiveStreamSearcher;
import it.cavallium.dbengine.database.luceneutil.LuceneStreamSearcher;
import it.cavallium.dbengine.database.luceneutil.PagedStreamSearcher;
import it.cavallium.luceneserializer.luceneserializer.QueryParser;
import it.cavallium.dbengine.lucene.searcher.AdaptiveStreamSearcher;
import it.cavallium.dbengine.lucene.searcher.LuceneStreamSearcher;
import it.cavallium.dbengine.lucene.searcher.PagedStreamSearcher;
import it.cavallium.dbengine.lucene.serializer.QueryParser;
import java.io.IOException;
import java.nio.file.Path;
import java.time.Duration;

View File

@ -1,5 +1,6 @@
package it.cavallium.dbengine.database.indicizer;
import it.cavallium.dbengine.database.DatabaseMemoryMode;
import it.cavallium.dbengine.database.LLScoreMode;
import it.cavallium.dbengine.database.LLSearchResult;
import it.cavallium.dbengine.database.LLSort;

View File

@ -1,6 +1,7 @@
package it.cavallium.dbengine.database.indicizer;
import it.cavallium.dbengine.client.CompositeSnapshot;
import it.cavallium.dbengine.database.DatabaseMemoryMode;
import it.cavallium.dbengine.database.LLScoreMode;
import it.cavallium.dbengine.database.LLSearchResult;
import it.cavallium.dbengine.database.LLSort;

View File

@ -1,5 +1,6 @@
package it.cavallium.dbengine.database.indicizer;
import it.cavallium.dbengine.database.DatabaseMemoryMode;
import it.cavallium.dbengine.database.LLLuceneIndex;
import it.cavallium.dbengine.database.LLScoreMode;
import it.cavallium.dbengine.database.LLSearchResult;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
import java.util.Collection;
import java.util.concurrent.atomic.AtomicBoolean;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
public class LuceneParallelStreamCollectorResult {

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
public interface LuceneParallelStreamConsumer {

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
import java.io.IOException;
import java.math.BigInteger;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
import java.util.concurrent.ThreadLocalRandom;
import org.apache.lucene.search.FieldComparator;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.utils;
package it.cavallium.dbengine.lucene;
import org.apache.lucene.search.SortField;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import java.io.IOException;

View File

@ -1,7 +1,7 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import it.cavallium.dbengine.database.utils.LuceneParallelStreamCollectorManager;
import it.cavallium.dbengine.lucene.LuceneParallelStreamCollectorManager;
import java.io.IOException;
import java.util.Set;
import java.util.concurrent.CompletionException;

View File

@ -1,4 +1,4 @@
package it.cavallium.dbengine.database.luceneutil;
package it.cavallium.dbengine.lucene.searcher;
import it.cavallium.dbengine.database.LLKeyScore;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import java.util.Collection;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import java.util.Objects;
import org.apache.lucene.search.BooleanClause;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class BooleanQueryPart implements SerializedQueryObject {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class BoostQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.BooleanQuery;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class IntPointExactQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class IntPointRangeQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class LongPointExactQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class LongPointRangeQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class MatchAllDocsQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import org.apache.lucene.search.BooleanClause;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class ParseException extends Exception {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class PhraseQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public interface Query extends SerializedQueryObject {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public enum QueryConstructorType {
BOOLEAN_QUERY,

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import java.nio.charset.StandardCharsets;
import java.util.Base64;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public interface SerializedQueryObject {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
public class SortedNumericDocValuesFieldSlowRangeQuery implements Query {

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import java.nio.charset.StandardCharsets;
import java.util.Base64;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import org.apache.lucene.index.Term;

View File

@ -1,4 +1,4 @@
package it.cavallium.luceneserializer.luceneserializer;
package it.cavallium.dbengine.lucene.serializer;
import org.apache.lucene.index.Term;