Class DeferredLocationsTableKeyGetter
java.lang.Object
io.deephaven.enterprise.locations.locationstable.DeferredLocationsTableKeyGetter
- All Implemented Interfaces:
TableLocationKeyFinder<EnterpriseTableLocationKey>,TableLocationsKeyGetter,Comparable<TableLocationsKeyGetter>
public final class DeferredLocationsTableKeyGetter
extends Object
implements TableLocationsKeyGetter, TableLocationKeyFinder<EnterpriseTableLocationKey>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeferredLocationsTableKeyGetter(@NotNull Table sourceLocationsTable, @NotNull File tableRoot, @NotNull List<ColumnDefinition<?>> columnPartitionKeys) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull TableLocationsKeyGetter other) booleanvoidfindKeys(@NotNull Consumer<EnterpriseTableLocationKey> locationKeyObserver) Satisfies a call toTableLocationKey.getPartitionKeys()@NotNull Map<String,Comparable<?>> getPartitions(long locationKey) Satisfies a call toEnterpriseTableLocationKey.getPartitions()Comparable<?>getPartitionValue(long locationKey, String partitionKey) Satisfies a call toTableLocationKey.getPartitionValue(String)io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.LocationSnapshotgetSnapshot(long locationKey) Satisfies a call toSnapshotProvidingLocationKey.getSnapshot()@NotNull URIgetURI(long locationKey) Satisfies a call toURIProvidingLocationKey.getURI()inthashCode()
-
Field Details
-
ROWSET_INDEX_COLUMN_NAME
- See Also:
-
-
Constructor Details
-
DeferredLocationsTableKeyGetter
public DeferredLocationsTableKeyGetter(@NotNull @NotNull Table sourceLocationsTable, @NotNull @NotNull File tableRoot, @NotNull @NotNull List<ColumnDefinition<?>> columnPartitionKeys)
-
-
Method Details
-
findKeys
- Specified by:
findKeysin interfaceTableLocationKeyFinder<EnterpriseTableLocationKey>
-
getPartitionKeys
Description copied from interface:TableLocationsKeyGetterSatisfies a call toTableLocationKey.getPartitionKeys()- Specified by:
getPartitionKeysin interfaceTableLocationsKeyGetter- Returns:
- The set of available partition keys
-
getPartitions
Description copied from interface:TableLocationsKeyGetterSatisfies a call toEnterpriseTableLocationKey.getPartitions()- Specified by:
getPartitionsin interfaceTableLocationsKeyGetter- Parameters:
locationKey- the key (row) for the desired location- Returns:
- a map of the partitions
-
getPartitionValue
Description copied from interface:TableLocationsKeyGetterSatisfies a call toTableLocationKey.getPartitionValue(String)- Specified by:
getPartitionValuein interfaceTableLocationsKeyGetter- Parameters:
locationKey- the key (row) for the desired locationpartitionKey- The name of the partition- Returns:
- The partition value
-
getURI
Description copied from interface:TableLocationsKeyGetterSatisfies a call toURIProvidingLocationKey.getURI()- Specified by:
getURIin interfaceTableLocationsKeyGetter- Parameters:
locationKey- the key (row) for the desired location- Returns:
- The URI that backs the keyed location
-
getSnapshot
@NotNull public io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.LocationSnapshot getSnapshot(long locationKey) Description copied from interface:TableLocationsKeyGetterSatisfies a call toSnapshotProvidingLocationKey.getSnapshot()- Specified by:
getSnapshotin interfaceTableLocationsKeyGetter- Parameters:
locationKey- the key (row) for the desired location- Returns:
- a
TableLocationMetadataIndex.LocationSnapshotinstance which backs this location
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<TableLocationsKeyGetter>
-