Skip to content

Commit

Permalink
More renames
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbranco80 committed Aug 21, 2024
1 parent b90a58b commit aff751e
Show file tree
Hide file tree
Showing 74 changed files with 150 additions and 264 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ lazy val compilerSqlParser = (project in file("compiler-sql-parser"))
javaSrcBasePath := s"${baseDirectory.value}/src/main/java",
parserDefinitions := List(
(
s"${javaSrcBasePath.value}/raw/client/sql/generated",
s"${javaSrcBasePath.value}/com/rawlabs/compiler/sql/generated",
"com.rawlabs.compiler.sql.generated",
s"${javaSrcBasePath.value}/com/rawlabs/compiler/sql/grammar",
"Psql"
Expand Down
6 changes: 3 additions & 3 deletions compiler-snapi-frontend/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
exports raw.compiler.rql2.source;
exports raw.compiler.rql2.antlr4;
exports raw.compiler.utils;
exports raw.inferrer.api;
exports raw.inferrer.local;
exports com.rawlabs.compiler.snapi.inferrer.api;
exports com.rawlabs.compiler.snapi.inferrer.local;

opens raw.inferrer.api to
opens com.rawlabs.compiler.snapi.inferrer.api to
com.fasterxml.jackson.databind;
opens raw.compiler.rql2.api to
com.fasterxml.jackson.databind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import java.time._
import java.time.format.{DateTimeFormatter, DateTimeParseException}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import com.rawlabs.utils.core.RawServiceException

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import com.rawlabs.utils.sources.api._
import com.rawlabs.utils.sources.bytestream.api.ByteStreamLocation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import com.google.common.base.Stopwatch
import com.google.common.cache.{CacheBuilder, CacheLoader, LoadingCache}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import com.rawlabs.utils.core.RawSettings
import raw.inferrer.local.LocalInferrerService
import com.rawlabs.compiler.snapi.inferrer.local.LocalInferrerService

object InferrerServiceProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import com.rawlabs.utils.sources.api.Encoding

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

import org.bitbucket.inkytonik.kiama.output.PrettyPrinter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.api
package com.rawlabs.compiler.snapi.inferrer.api

sealed abstract class SourceType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import java.io.{InputStream, InputStreamReader, Reader}
import com.ibm.icu.text.CharsetDetector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import com.typesafe.scalalogging.StrictLogging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import raw.inferrer.api.InferrerException
import com.rawlabs.compiler.snapi.inferrer.api.InferrerException

class LocalInferrerException(message: String, cause: Throwable = null) extends InferrerException(message, cause)
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import com.rawlabs.utils.core.{RawException, RawSettings}
import com.typesafe.scalalogging.StrictLogging
import org.bitbucket.inkytonik.kiama.output.PrettyPrinter
import raw.compiler.rql2.api.LocationDescription
import raw.inferrer.api._
import raw.inferrer.local.auto.{AutoInferrer, InferrerBufferedSeekableIS}
import raw.inferrer.local.csv.{CsvInferrer, CsvMergeTypes}
import raw.inferrer.local.hjson.HjsonInferrer
import raw.inferrer.local.jdbc.JdbcInferrer
import raw.inferrer.local.json.JsonInferrer
import raw.inferrer.local.text.TextInferrer
import raw.inferrer.local.xml.{XmlInferrer, XmlMergeTypes}
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local.auto.{AutoInferrer, InferrerBufferedSeekableIS}
import com.rawlabs.compiler.snapi.inferrer.local.csv.{CsvInferrer, CsvMergeTypes}
import com.rawlabs.compiler.snapi.inferrer.local.hjson.HjsonInferrer
import com.rawlabs.compiler.snapi.inferrer.local.jdbc.JdbcInferrer
import com.rawlabs.compiler.snapi.inferrer.local.json.JsonInferrer
import com.rawlabs.compiler.snapi.inferrer.local.text.TextInferrer
import com.rawlabs.compiler.snapi.inferrer.local.xml.{XmlInferrer, XmlMergeTypes}
import com.rawlabs.utils.sources.api._
import com.rawlabs.utils.sources.bytestream.api.ByteStreamLocation
import com.rawlabs.utils.sources.filesystem.api.FileSystemLocation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.api._
import scala.collection.mutable

private[inferrer] trait MergeTypes extends StrictLogging {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* licenses/APL.txt.
*/

package raw.inferrer.local
package com.rawlabs.compiler.snapi.inferrer.local

import org.apache.commons.lang3.math.NumberUtils
import raw.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.api._

import scala.collection.mutable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.auto
package com.rawlabs.compiler.snapi.inferrer.local.auto

import com.rawlabs.utils.core.RawSettings
import java.io.Reader
import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.api._
import raw.inferrer.local._
import raw.inferrer.local.csv.CsvInferrer
import raw.inferrer.local.hjson.HjsonInferrer
import raw.inferrer.local.json.JsonInferrer
import raw.inferrer.local.text.TextInferrer
import raw.inferrer.local.xml.XmlInferrer
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.local.csv.CsvInferrer
import com.rawlabs.compiler.snapi.inferrer.local.hjson.HjsonInferrer
import com.rawlabs.compiler.snapi.inferrer.local.json.JsonInferrer
import com.rawlabs.compiler.snapi.inferrer.local.text.TextInferrer
import com.rawlabs.compiler.snapi.inferrer.local.xml.XmlInferrer
import com.rawlabs.utils.sources.bytestream.api.ByteStreamLocation
import com.rawlabs.utils.sources.filesystem.api.{DirectoryMetadata, FileSystemLocation}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.auto
package com.rawlabs.compiler.snapi.inferrer.local.auto

import com.rawlabs.utils.sources.bytestream.api.SeekableInputStream

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.csv
package com.rawlabs.compiler.snapi.inferrer.local.csv

import com.rawlabs.utils.core.{RawException, RawSettings}
import java.io.Reader
import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.local._
import raw.inferrer.local.text.TextLineIterator
import raw.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.local.text.TextLineIterator
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.utils.sources.bytestream.api.SeekableInputStream
import com.rawlabs.utils.sources.api.Encoding

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.csv
package com.rawlabs.compiler.snapi.inferrer.local.csv

import raw.inferrer.api.{SourceAnyType, SourceAttrType, SourceNullableType, SourceRecordType, SourceType}
import raw.inferrer.local.MergeTypes
import com.rawlabs.compiler.snapi.inferrer.api.{SourceAnyType, SourceAttrType, SourceNullableType, SourceRecordType, SourceType}
import com.rawlabs.compiler.snapi.inferrer.local.MergeTypes

trait CsvMergeTypes extends MergeTypes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.csv
package com.rawlabs.compiler.snapi.inferrer.local.csv

import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.api.{
import com.rawlabs.compiler.snapi.inferrer.api.{
SourceAttrType,
SourceCollectionType,
SourceDoubleType,
Expand All @@ -23,7 +23,7 @@ import raw.inferrer.api.{
SourceStringType,
SourceType
}
import raw.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.local._

import scala.collection.mutable.ArrayBuffer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.hjson
package com.rawlabs.compiler.snapi.inferrer.local.hjson

import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.databind.ObjectMapper
import com.rawlabs.utils.core.{RawException, RawSettings}
import raw.inferrer.api._
import raw.inferrer.local._
import raw.inferrer.local.json.JsonUtils
import raw.inferrer.local.text.TextLineIterator
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.local.json.JsonUtils
import com.rawlabs.compiler.snapi.inferrer.local.text.TextLineIterator
import com.rawlabs.utils.sources.api._
import com.rawlabs.utils.sources.bytestream.api.SeekableInputStream

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.jdbc
package com.rawlabs.compiler.snapi.inferrer.local.jdbc

import java.sql.ResultSetMetaData

import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.api.{SourceAttrType, SourceCollectionType, SourceRecordType, SourceType}
import com.rawlabs.compiler.snapi.inferrer.api.{SourceAttrType, SourceCollectionType, SourceRecordType, SourceType}
import com.rawlabs.utils.sources.jdbc.api.{JdbcServerLocation, JdbcTableLocation}

import scala.collection.mutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.jdbc
package com.rawlabs.compiler.snapi.inferrer.local.jdbc

import raw.inferrer.api.{
import com.rawlabs.compiler.snapi.inferrer.api.{
InferrerException,
SourceAttrType,
SourceBinaryType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.json
package com.rawlabs.compiler.snapi.inferrer.local.json

import java.io.Reader
import com.fasterxml.jackson.core._
import com.fasterxml.jackson.core.exc.InputCoercionException
import com.rawlabs.utils.core.{RawException, RawSettings}
import raw.inferrer.api._
import raw.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.utils.sources.api._
import com.rawlabs.utils.sources.bytestream.api.SeekableInputStream

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.json
package com.rawlabs.compiler.snapi.inferrer.local.json

import com.fasterxml.jackson.core.JsonParser.Feature
import com.fasterxml.jackson.core.json.JsonReadFeature
import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.local._
import raw.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.api._

import scala.collection.JavaConverters._
import scala.collection.immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.text
package com.rawlabs.compiler.snapi.inferrer.local.text

import com.rawlabs.utils.core.{RawException, RawSettings}
import java.io.Reader
import com.typesafe.scalalogging.StrictLogging
import raw.inferrer.api._
import raw.inferrer.local._
import com.rawlabs.compiler.snapi.inferrer.api._
import com.rawlabs.compiler.snapi.inferrer.local._
import com.rawlabs.utils.sources.api._
import com.rawlabs.utils.sources.bytestream.api.SeekableInputStream

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* licenses/APL.txt.
*/

package raw.inferrer.local.text
package com.rawlabs.compiler.snapi.inferrer.local.text

import java.io.Reader

Expand Down
Loading

0 comments on commit aff751e

Please sign in to comment.