Refactoring
This commit is contained in:
parent
ef43bbe5fe
commit
f0f34d89a9
@ -1,4 +1,4 @@
|
||||
package it.cavallium.dbengine.database.indicizer;
|
||||
package it.cavallium.dbengine.database;
|
||||
|
||||
public enum DatabaseMemoryMode {
|
||||
LOW, NORMAL, HIGH
|
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
@ -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;
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.dbengine.database.utils;
|
||||
package it.cavallium.dbengine.lucene;
|
||||
|
||||
public class LuceneParallelStreamCollectorResult {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.dbengine.database.utils;
|
||||
package it.cavallium.dbengine.lucene;
|
||||
|
||||
public interface LuceneParallelStreamConsumer {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.dbengine.database.utils;
|
||||
package it.cavallium.dbengine.lucene;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigInteger;
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.dbengine.database.utils;
|
||||
package it.cavallium.dbengine.lucene;
|
||||
|
||||
import org.apache.lucene.search.SortField;
|
||||
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class BooleanQueryPart implements SerializedQueryObject {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class BoostQuery implements Query {
|
||||
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class IntPointExactQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class IntPointRangeQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class LongPointExactQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class LongPointRangeQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class MatchAllDocsQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import org.apache.lucene.search.BooleanClause;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class ParseException extends Exception {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class PhraseQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public interface Query extends SerializedQueryObject {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public enum QueryConstructorType {
|
||||
BOOLEAN_QUERY,
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Base64;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public interface SerializedQueryObject {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
public class SortedNumericDocValuesFieldSlowRangeQuery implements Query {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Base64;
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package it.cavallium.luceneserializer.luceneserializer;
|
||||
package it.cavallium.dbengine.lucene.serializer;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
|
Loading…
Reference in New Issue
Block a user