Class ReadOnlyParquetTableLocation
java.lang.Object
com.illumon.iris.db.v2.locations.SubscriptionAggregator<TableLocation.Listener>
com.illumon.iris.db.v2.locations.AbstractTableLocation<TableKey,com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>
com.illumon.iris.db.v2.locations.local.ReadOnlyParquetTableLocation
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,ParquetFormatTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>,TableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>,TableLocationKey,TableLocationState,NamedImplementation
public class ReadOnlyParquetTableLocation extends AbstractTableLocation<TableKey,com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>> implements ParquetFormatTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocation
TableLocation.Format, TableLocation.ListenerNested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
TableLocationKey.ComparatorImpl, TableLocationKey.KeyedObjectKeyImpl<VALUE_TYPE>, TableLocationKey.SelfKeyedObjectKeyImpl<VALUE_TYPE extends TableLocationKey> -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
COMPARATOR, NULL_PARTITIONFields inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
NULL_SIZE, NULL_TIME -
Constructor Summary
Constructors Constructor Description ReadOnlyParquetTableLocation(TableKey tableKey, TableLocationKey tableLocationKey, File parquetFile, io.deephaven.parquet.base.ParquetFileReader fileReader, ParquetInstructions instructions) -
Method Summary
Modifier and Type Method Description io.deephaven.parquet.base.util.SeekableChannelsProvidergetChannelProvider()Get the channel provider for reading from the parquet file.Map<String,ColumnTypeInfo>getColumnTypes()intgetColumnVersion()Get the column version for this location.TablegetDataIndex(com.illumon.dataobjects.ColumnDefinition<?>... columns)Get the data index table for the specified set of columns.Map<String,GroupingColumnInfo>getGroupingColumns()Retrieve theGroupingColumnInfofor all available grouping columns.FilegetParquetFile()Get the full path to the Parquet file for this location.List<SortPair>getSortedColumns()Get an ordered list of columns this location is sorted by.booleanhasDataIndexFor(com.illumon.dataobjects.ColumnDefinition<?>... columns)Check if this location has a data index for the specified columns.protected com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>makeColumnLocation(String name)voidrefresh()Initialize or refresh state information.Methods inherited from class com.illumon.iris.db.v2.locations.AbstractTableLocation
clearColumnLocations, deliverInitialSnapshot, getColumnLocation, getColumnPartition, getInternalPartition, getLastModifiedTimeMillis, getSize, getStateLock, getTableKey, handleUpdate, handleUpdate, toStringMethods inherited from class com.illumon.iris.db.v2.locations.SubscriptionAggregator
activateUnderlyingDataSource, activationFailed, activationSuccessful, checkHasSubscribers, deactivateUnderlyingDataSource, matchSubscriptionToken, postActivationHook, subscribe, supportsSubscriptions, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.locations.ParquetFormatTableLocation
getFormatMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocation
append, getColumnLocation, getTableKey, subscribe, supportsSubscriptions, toGenericString, toStringDetailed, toStringHelper, unsubscribeMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
getColumnPartition, getInternalPartition, writeToMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
copyStateValuesTo, getLastModifiedTimeMillis, getSize, getStateLock, writeStateValuesTo
-
Constructor Details
-
ReadOnlyParquetTableLocation
public ReadOnlyParquetTableLocation(@NotNull TableKey tableKey, @NotNull TableLocationKey tableLocationKey, @NotNull File parquetFile, @NotNull io.deephaven.parquet.base.ParquetFileReader fileReader, @NotNull ParquetInstructions instructions)
-
-
Method Details
-
getParquetFile
Description copied from interface:ParquetFormatTableLocationGet the full path to the Parquet file for this location.- Specified by:
getParquetFilein interfaceParquetFormatTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Returns:
- the parquet file
-
refresh
public void refresh()Description copied from interface:TableLocationInitialize or refresh state information.- Specified by:
refreshin interfaceTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>
-
getGroupingColumns
Description copied from interface:ParquetFormatTableLocationRetrieve theGroupingColumnInfofor all available grouping columns.- Specified by:
getGroupingColumnsin interfaceParquetFormatTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Returns:
- a map of column name to
GroupingColumnInfo
-
getChannelProvider
public io.deephaven.parquet.base.util.SeekableChannelsProvider getChannelProvider()Description copied from interface:ParquetFormatTableLocationGet the channel provider for reading from the parquet file.- Specified by:
getChannelProviderin interfaceParquetFormatTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Returns:
- a
SeekableChannelsProviderto read from the file
-
getSortedColumns
Description copied from interface:TableLocationGet an ordered list of columns this location is sorted by.- Specified by:
getSortedColumnsin interfaceTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Returns:
- a non-null ordered list of
SortPairs
-
makeColumnLocation
@NotNull protected com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values> makeColumnLocation(@NotNull String name)- Specified by:
makeColumnLocationin classAbstractTableLocation<TableKey,com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>
-
getColumnTypes
-
hasDataIndexFor
public boolean hasDataIndexFor(@NotNull com.illumon.dataobjects.ColumnDefinition<?>... columns)Description copied from interface:TableLocationCheck if this location has a data index for the specified columns.- Specified by:
hasDataIndexForin interfaceTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Parameters:
columns- the set of columns to check for.- Returns:
- true if the table has a Data Index for the specified columns
-
getDataIndex
@Nullable public Table getDataIndex(@NotNull com.illumon.dataobjects.ColumnDefinition<?>... columns)Description copied from interface:TableLocationGet the data index table for the specified set of columns. Note that the order of columns does not matter here.- Specified by:
getDataIndexin interfaceTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Parameters:
columns- the key columns for the index- Returns:
- the index table or null if one does not exist.
-
getColumnVersion
public int getColumnVersion()Description copied from interface:TableLocationGet the column version for this location.- Specified by:
getColumnVersionin interfaceTableLocation<com.illumon.iris.db.v2.locations.local.ParquetColumnLocation<Attributes.Values>>- Returns:
- the column version
-