Skip to content

Commit

Permalink
Move FunctionNamespaceManager to SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
rongrong committed Sep 4, 2019
1 parent 5149d92 commit 85d30a6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.facebook.presto.spi.connector.ConnectorPartitioningHandle;
import com.facebook.presto.spi.connector.ConnectorTransactionHandle;
import com.facebook.presto.spi.function.FunctionHandle;
import com.facebook.presto.spi.function.FunctionHandleResolver;
import com.facebook.presto.split.EmptySplitHandleResolver;

import javax.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.facebook.presto.metadata;

import com.facebook.presto.spi.function.FunctionHandle;
import com.facebook.presto.spi.function.FunctionHandleResolver;

public class StaticFunctionNamespaceHandleResolver
implements FunctionHandleResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
import com.facebook.presto.spi.block.BlockEncodingSerde;
import com.facebook.presto.spi.function.FunctionHandle;
import com.facebook.presto.spi.function.FunctionMetadata;
import com.facebook.presto.spi.function.FunctionNamespaceManager;
import com.facebook.presto.spi.function.OperatorType;
import com.facebook.presto.spi.function.Signature;
import com.facebook.presto.spi.function.SqlFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.metadata;

import com.facebook.presto.spi.function.FunctionHandle;
package com.facebook.presto.spi.function;

public interface FunctionHandleResolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.metadata;
package com.facebook.presto.spi.function;

import com.facebook.presto.spi.QueryId;
import com.facebook.presto.spi.function.FunctionHandle;
import com.facebook.presto.spi.function.FunctionMetadata;
import com.facebook.presto.spi.function.Signature;
import com.facebook.presto.spi.function.SqlFunction;
import com.facebook.presto.spi.api.Experimental;
import com.facebook.presto.spi.relation.FullyQualifiedName;

import java.util.Collection;
import java.util.List;

@Experimental
public interface FunctionNamespaceManager
{
void addFunctions(List<? extends SqlFunction> functions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.metadata;
package com.facebook.presto.spi.function;

public interface FunctionNamespaceManagerFactory
{
Expand Down

0 comments on commit 85d30a6

Please sign in to comment.