Skip to content

Commit

Permalink
Rename pkg (#60)
Browse files Browse the repository at this point in the history
* rename package to io.dashbase and using dashbase maven repo

* fix script

* clean up readme

* fix pom

* fix README
  • Loading branch information
javasoze authored Jan 9, 2018
1 parent 48b7340 commit 23c9da4
Show file tree
Hide file tree
Showing 47 changed files with 139 additions and 177 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Please file bugs and feature requests [here](https://github.com/javasoze/clue/is

### Downloads:

latest version: 6.2.0-1.0.0
latest version: 6.6.2-1.0.0

#### What's new in this release?

See [Release Note](https://github.com/javasoze/clue/releases/tag/release-6.2.0-1.0.0)
See [Release Note](https://github.com/javasoze/clue/releases/tag/release-6.6.2-1.0.0)

### Build:

Expand Down Expand Up @@ -56,9 +56,9 @@ Command list:

using configuration file found at: /Users/johnwang/github/clue/config/clue.conf
Analyzer: class org.apache.lucene.analysis.standard.StandardAnalyzer
Query Builder: class com.senseidb.clue.api.DefaultQueryBuilder
Directory Builder: class com.senseidb.clue.api.DefaultDirectoryBuilder
IndexReader Factory: class com.senseidb.clue.api.DefaultIndexReaderFactory
Query Builder: class io.dashbase.clue.api.DefaultQueryBuilder
Directory Builder: class io.dashbase.clue.api.DefaultDirectoryBuilder
IndexReader Factory: class io.dashbase.clue.api.DefaultIndexReaderFactory
delete - deletes a list of documents from searching via a query, input: query
directory - prints directory information
docsetinfo - doc id set info and stats
Expand Down
4 changes: 2 additions & 2 deletions bin/build_sample_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dist=$bin/../target
HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m"
JAVA_OPTS="-server -d64"

MAIN_CLASS="com.senseidb.clue.test.BuildSampleIndex"
MAIN_CLASS="io.dashbase.clue.test.BuildSampleIndex"

java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/clue-6.2.0-1.0.0.jar $MAIN_CLASS $bin/../src/main/resources/cars.json $@
java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/clue-6.6.2-1.0.0.jar $MAIN_CLASS $bin/../src/main/resources/cars.json $@
2 changes: 1 addition & 1 deletion bin/clue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m"
JAVA_OPTS="-server -d64 -Dhadoop.conf.dir=$HADOOP_CONF_DIR"
#JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"

(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -jar $dist/clue-6.2.0-1.0.0.jar $@)
(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -jar $dist/clue-6.6.2-1.0.0.jar $@)

66 changes: 21 additions & 45 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
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.senseidb.clue</groupId>
<groupId>io.dashbase.clue</groupId>
<artifactId>clue</artifactId>
<packaging>jar</packaging>
<name>clue</name>
<version>6.2.0-1.0.0</version>
<version>6.6.2-1.0.0</version>
<description>command line client for Apache Lucene</description>

<url>http://github.com/javasoze/clue</url>
Expand Down Expand Up @@ -35,8 +35,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>com.senseidb.clue.ClueApplication</mainClass>
<lucene.version>6.2.0</lucene.version>
<mainClass>io.dashbase.clue.ClueApplication</mainClass>
<lucene.version>6.6.2</lucene.version>
</properties>

<!-- Set the compiler to java6 -->
Expand Down Expand Up @@ -86,6 +86,14 @@
</executions>
</plugin>
</plugins>
<extensions>
<!-- Enabling the use of FTP -->
<extension>
<groupId>org.kuali.maven.wagons</groupId>
<artifactId>maven-s3-wagon</artifactId>
<version>1.2.1</version>
</extension>
</extensions>
</build>

<dependencies>
Expand Down Expand Up @@ -188,46 +196,14 @@
</repositories>

<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<name>sonatype nexus staging repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>sonatype nexus snapshots repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<snapshotRepository>
<id>repo.dashbase.io</id>
<url>s3://repo.dashbase.io/snapshot</url>
</snapshotRepository>
<repository>
<id>repo.dashbase.io</id>
<url>s3://repo.dashbase.io/snapshot</url>
</repository>
</distributionManagement>
</project>

Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package com.senseidb.clue;
package io.dashbase.clue;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.URI;

import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.store.Directory;

import com.senseidb.clue.commands.ClueCommand;
import com.senseidb.clue.commands.HelpCommand;
import io.dashbase.clue.commands.ClueCommand;
import io.dashbase.clue.commands.HelpCommand;

public class ClueApplication {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package com.senseidb.clue;
package io.dashbase.clue;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

import io.dashbase.clue.api.DefaultIndexReaderFactory;
import io.dashbase.clue.api.DirectoryBuilder;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;

import com.senseidb.clue.api.BytesRefDisplay;
import com.senseidb.clue.api.DefaultDirectoryBuilder;
import com.senseidb.clue.api.DefaultIndexReaderFactory;
import com.senseidb.clue.api.DefaultQueryBuilder;
import com.senseidb.clue.api.DirectoryBuilder;
import com.senseidb.clue.api.IndexReaderFactory;
import com.senseidb.clue.api.QueryBuilder;
import com.senseidb.clue.api.RawBytesRefDisplay;
import com.senseidb.clue.api.StringBytesRefDisplay;
import io.dashbase.clue.api.BytesRefDisplay;
import io.dashbase.clue.api.DefaultDirectoryBuilder;
import io.dashbase.clue.api.DefaultQueryBuilder;
import io.dashbase.clue.api.IndexReaderFactory;
import io.dashbase.clue.api.QueryBuilder;
import io.dashbase.clue.api.RawBytesRefDisplay;
import io.dashbase.clue.api.StringBytesRefDisplay;

public class ClueConfiguration {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue;
package io.dashbase.clue;

import java.io.IOException;
import java.util.Collection;
Expand All @@ -23,33 +23,33 @@
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.store.Directory;

import com.senseidb.clue.api.BytesRefDisplay;
import com.senseidb.clue.api.IndexReaderFactory;
import com.senseidb.clue.api.QueryBuilder;
import com.senseidb.clue.commands.ClueCommand;
import com.senseidb.clue.commands.DeleteCommand;
import com.senseidb.clue.commands.DeleteUserCommitData;
import com.senseidb.clue.commands.DirectoryCommand;
import com.senseidb.clue.commands.DocSetInfoCommand;
import com.senseidb.clue.commands.DocValCommand;
import com.senseidb.clue.commands.DumpDocCommand;
import com.senseidb.clue.commands.ExitCommand;
import com.senseidb.clue.commands.ExplainCommand;
import com.senseidb.clue.commands.ExportCommand;
import com.senseidb.clue.commands.GetUserCommitDataCommand;
import com.senseidb.clue.commands.HelpCommand;
import com.senseidb.clue.commands.IndexTrimCommand;
import com.senseidb.clue.commands.InfoCommand;
import com.senseidb.clue.commands.MergeCommand;
import com.senseidb.clue.commands.NormsCommand;
import com.senseidb.clue.commands.PostingsCommand;
import com.senseidb.clue.commands.ReadonlyCommand;
import com.senseidb.clue.commands.ReconstructCommand;
import com.senseidb.clue.commands.SaveUserCommitData;
import com.senseidb.clue.commands.SearchCommand;
import com.senseidb.clue.commands.StoredFieldCommand;
import com.senseidb.clue.commands.TermVectorCommand;
import com.senseidb.clue.commands.TermsCommand;
import io.dashbase.clue.api.BytesRefDisplay;
import io.dashbase.clue.api.IndexReaderFactory;
import io.dashbase.clue.api.QueryBuilder;
import io.dashbase.clue.commands.ClueCommand;
import io.dashbase.clue.commands.DeleteCommand;
import io.dashbase.clue.commands.DeleteUserCommitData;
import io.dashbase.clue.commands.DirectoryCommand;
import io.dashbase.clue.commands.DocSetInfoCommand;
import io.dashbase.clue.commands.DocValCommand;
import io.dashbase.clue.commands.DumpDocCommand;
import io.dashbase.clue.commands.ExitCommand;
import io.dashbase.clue.commands.ExplainCommand;
import io.dashbase.clue.commands.ExportCommand;
import io.dashbase.clue.commands.GetUserCommitDataCommand;
import io.dashbase.clue.commands.HelpCommand;
import io.dashbase.clue.commands.IndexTrimCommand;
import io.dashbase.clue.commands.InfoCommand;
import io.dashbase.clue.commands.MergeCommand;
import io.dashbase.clue.commands.NormsCommand;
import io.dashbase.clue.commands.PostingsCommand;
import io.dashbase.clue.commands.ReadonlyCommand;
import io.dashbase.clue.commands.ReconstructCommand;
import io.dashbase.clue.commands.SaveUserCommitData;
import io.dashbase.clue.commands.SearchCommand;
import io.dashbase.clue.commands.StoredFieldCommand;
import io.dashbase.clue.commands.TermVectorCommand;
import io.dashbase.clue.commands.TermsCommand;

public class ClueContext {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.senseidb.clue;
package io.dashbase.clue;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Collection;
import java.util.EnumSet;

import io.dashbase.clue.util.CustomBufferedIndexInput;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CreateFlag;
import org.apache.hadoop.fs.FSDataInputStream;
Expand All @@ -20,8 +21,6 @@
import org.apache.lucene.store.LockFactory;
import org.apache.lucene.store.OutputStreamIndexOutput;

import com.senseidb.clue.util.CustomBufferedIndexInput;

public class HdfsDirectory extends BaseDirectory {

public static final int BUFFER_SIZE = 8192;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

public abstract class BytesRefDisplay {
abstract public BytesRefPrinter getBytesRefPrinter(String field);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import org.apache.lucene.util.BytesRef;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import java.io.IOException;
import java.net.URI;
Expand All @@ -7,14 +7,13 @@
import java.util.HashSet;
import java.util.Set;

import io.dashbase.clue.HdfsDirectory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.NoLockFactory;

import com.senseidb.clue.HdfsDirectory;

public class DefaultDirectoryBuilder implements DirectoryBuilder {

private static final Set<String> SUPPORTED_SCHEMES = new HashSet<String>(Arrays.asList("file", "hdfs"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.SegmentInfos;
import org.apache.lucene.store.Directory;

public class DefaultIndexReaderFactory implements IndexReaderFactory {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.queryparser.classic.QueryParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import java.io.IOException;
import java.net.URI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import org.apache.lucene.index.IndexReader;
import org.apache.lucene.store.Directory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.search.Query;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

public class RawBytesRefDisplay extends BytesRefDisplay {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.senseidb.clue.api;
package io.dashbase.clue.api;

public class StringBytesRefDisplay extends BytesRefDisplay {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.senseidb.clue.commands;
package io.dashbase.clue.commands;

import java.io.PrintStream;

import com.senseidb.clue.ClueContext;
import io.dashbase.clue.ClueContext;

public abstract class ClueCommand {
protected ClueContext ctx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.senseidb.clue.commands;
package io.dashbase.clue.commands;

import java.io.PrintStream;

import io.dashbase.clue.ClueContext;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.search.Query;

import com.senseidb.clue.ClueContext;

public class DeleteCommand extends ClueCommand {

public DeleteCommand(ClueContext ctx) {
Expand Down
Loading

0 comments on commit 23c9da4

Please sign in to comment.