Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ public String getHost()
return internalUri.getHost();
}

@Override
@Deprecated
public URI getHttpUri()
{
return getInternalUri();
}

public URI getInternalUri()
{
return internalUri;
Expand Down
8 changes: 0 additions & 8 deletions core/trino-spi/src/main/java/io/trino/spi/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@
*/
package io.trino.spi;

import java.net.URI;

public interface Node
{
String getHost();

HostAddress getHostAndPort();

/**
* @deprecated Connectors should not access the HTTP endpoints of other nodes.
*/
@Deprecated
URI getHttpUri();

String getNodeIdentifier();

String getVersion();
Expand Down
1 change: 0 additions & 1 deletion core/trino-spi/src/main/java/io/trino/spi/PageSorter.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public interface PageSorter
* @return Sorted synthetic addresses for pages. A synthetic address is encoded as a long with
* the high 32 bits containing the page index and the low 32 bits containing position index
*/
@Deprecated
long[] sort(List<Type> types, List<Page> pages, List<Integer> sortChannels, List<SortOrder> sortOrders, int expectedPositions);

int decodePageIndex(long address);
Expand Down
13 changes: 0 additions & 13 deletions core/trino-spi/src/main/java/io/trino/spi/type/CharType.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import static io.trino.spi.type.Slices.sliceRepresentation;
import static java.lang.Character.MAX_CODE_POINT;
import static java.lang.Character.MIN_CODE_POINT;
import static java.lang.Math.toIntExact;
import static java.lang.String.format;
import static java.lang.invoke.MethodHandles.lookup;
import static java.util.Collections.singletonList;
Expand All @@ -60,18 +59,6 @@ public final class CharType
private final int length;
private volatile Optional<Range> range;

/**
* @deprecated Use {@link #createCharType(int)} instead.
*/
@Deprecated
public static CharType createCharType(long length)
{
if (length < 0 || length > MAX_LENGTH) {
throw new IllegalArgumentException(format("CHAR length must be in range [0, %s], got %s", MAX_LENGTH, length));
}
return createCharType(toIntExact(length));
}

public static CharType createCharType(int length)
{
if (0 <= length && length < CACHED_INSTANCES.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ public abstract sealed class TimeWithTimeZoneType
public static final TimeWithTimeZoneType TIME_TZ_NANOS = createTimeWithTimeZoneType(9);
public static final TimeWithTimeZoneType TIME_TZ_PICOS = createTimeWithTimeZoneType(12);

/**
* @deprecated Use {@link #createTimeWithTimeZoneType} instead.
*/
@Deprecated
// Use singleton for backwards compatibility with code checking `type == TIME_WITH_TIME_ZONE`
public static final TimeWithTimeZoneType TIME_WITH_TIME_ZONE = TIME_TZ_MILLIS;

private final int precision;

public static TimeWithTimeZoneType createTimeWithTimeZoneType(int precision)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ private VarbinaryType()
super(new TypeSignature(StandardTypes.VARBINARY), Slice.class);
}

/**
* @deprecated Use {@code type instanceof VarbinaryType} instead.
*/
@Deprecated
public static boolean isVarbinaryType(Type type)
{
return type instanceof VarbinaryType;
}

@Override
public boolean isComparable()
{
Expand Down