Java Code Examples for org.apache.flink.table.catalog.stats.CatalogTableStatistics#UNKNOWN
The following examples show how to use
org.apache.flink.table.catalog.stats.CatalogTableStatistics#UNKNOWN .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HiveCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws TableNotExistException, CatalogException { Table hiveTable = getHiveTable(tablePath); if (!isTablePartitioned(hiveTable)) { return createCatalogTableStatistics(hiveTable.getParameters()); } else { return CatalogTableStatistics.UNKNOWN; } }
Example 2
Source File: GenericInMemoryCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws TableNotExistException { checkNotNull(tablePath); if (!tableExists(tablePath)) { throw new TableNotExistException(getName(), tablePath); } if (!isPartitionedTable(tablePath)) { CatalogTableStatistics result = tableStats.get(tablePath); return result != null ? result.copy() : CatalogTableStatistics.UNKNOWN; } else { return CatalogTableStatistics.UNKNOWN; } }
Example 3
Source File: GenericInMemoryCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getPartitionStatistics(ObjectPath tablePath, CatalogPartitionSpec partitionSpec) throws PartitionNotExistException { checkNotNull(tablePath); checkNotNull(partitionSpec); if (!partitionExists(tablePath, partitionSpec)) { throw new PartitionNotExistException(getName(), tablePath, partitionSpec); } CatalogTableStatistics result = partitionStats.get(tablePath).get(partitionSpec); return result != null ? result.copy() : CatalogTableStatistics.UNKNOWN; }
Example 4
Source File: HiveCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws TableNotExistException, CatalogException { Table hiveTable = getHiveTable(tablePath); if (!isTablePartitioned(hiveTable)) { return createCatalogTableStatistics(hiveTable.getParameters()); } else { return CatalogTableStatistics.UNKNOWN; } }
Example 5
Source File: GenericInMemoryCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws TableNotExistException { checkNotNull(tablePath); if (!tableExists(tablePath)) { throw new TableNotExistException(getName(), tablePath); } if (!isPartitionedTable(tablePath)) { CatalogTableStatistics result = tableStats.get(tablePath); return result != null ? result.copy() : CatalogTableStatistics.UNKNOWN; } else { return CatalogTableStatistics.UNKNOWN; } }
Example 6
Source File: GenericInMemoryCatalog.java From flink with Apache License 2.0 | 5 votes |
@Override public CatalogTableStatistics getPartitionStatistics(ObjectPath tablePath, CatalogPartitionSpec partitionSpec) throws PartitionNotExistException { checkNotNull(tablePath); checkNotNull(partitionSpec); if (!partitionExists(tablePath, partitionSpec)) { throw new PartitionNotExistException(getName(), tablePath, partitionSpec); } CatalogTableStatistics result = partitionStats.get(tablePath).get(partitionSpec); return result != null ? result.copy() : CatalogTableStatistics.UNKNOWN; }
Example 7
Source File: KuduCatalog.java From bahir-flink with Apache License 2.0 | 4 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws CatalogException { return CatalogTableStatistics.UNKNOWN; }
Example 8
Source File: KuduCatalog.java From bahir-flink with Apache License 2.0 | 4 votes |
@Override public CatalogTableStatistics getPartitionStatistics(ObjectPath tablePath, CatalogPartitionSpec partitionSpec) throws CatalogException { return CatalogTableStatistics.UNKNOWN; }
Example 9
Source File: AbstractJdbcCatalog.java From flink with Apache License 2.0 | 4 votes |
@Override public CatalogTableStatistics getTableStatistics(ObjectPath tablePath) throws TableNotExistException, CatalogException { return CatalogTableStatistics.UNKNOWN; }
Example 10
Source File: AbstractJdbcCatalog.java From flink with Apache License 2.0 | 4 votes |
@Override public CatalogTableStatistics getPartitionStatistics(ObjectPath tablePath, CatalogPartitionSpec partitionSpec) throws PartitionNotExistException, CatalogException { return CatalogTableStatistics.UNKNOWN; }