Search in sources :

Example 16 with RelationIdentifier

use of org.apache.carbondata.core.metadata.schema.table.RelationIdentifier in project carbondata by apache.

the class CarbonUtil method fromThriftToWrapperParentTableColumnRelations.

static List<ParentColumnTableRelation> fromThriftToWrapperParentTableColumnRelations(List<org.apache.carbondata.format.ParentColumnTableRelation> thriftParentColumnRelation) {
    List<ParentColumnTableRelation> parentColumnTableRelationList = new ArrayList<>();
    for (org.apache.carbondata.format.ParentColumnTableRelation carbonTableRelation : thriftParentColumnRelation) {
        RelationIdentifier relationIdentifier = new RelationIdentifier(carbonTableRelation.getRelationIdentifier().getDatabaseName(), carbonTableRelation.getRelationIdentifier().getTableName(), carbonTableRelation.getRelationIdentifier().getTableId());
        ParentColumnTableRelation parentColumnTableRelation = new ParentColumnTableRelation(relationIdentifier, carbonTableRelation.getColumnId(), carbonTableRelation.getColumnName());
        parentColumnTableRelationList.add(parentColumnTableRelation);
    }
    return parentColumnTableRelationList;
}
Also used : ArrayList(java.util.ArrayList) ParentColumnTableRelation(org.apache.carbondata.core.metadata.schema.table.column.ParentColumnTableRelation) RelationIdentifier(org.apache.carbondata.core.metadata.schema.table.RelationIdentifier)

Aggregations

RelationIdentifier (org.apache.carbondata.core.metadata.schema.table.RelationIdentifier)16 ArrayList (java.util.ArrayList)11 DataMapSchema (org.apache.carbondata.core.metadata.schema.table.DataMapSchema)4 ParentColumnTableRelation (org.apache.carbondata.core.metadata.schema.table.column.ParentColumnTableRelation)4 LoadMetadataDetails (org.apache.carbondata.core.statusmanager.LoadMetadataDetails)3 Gson (com.google.gson.Gson)2 HashMap (java.util.HashMap)2 List (java.util.List)2 Map (java.util.Map)2 SegmentStatusManager (org.apache.carbondata.core.statusmanager.SegmentStatusManager)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 MalformedDataMapCommandException (org.apache.carbondata.common.exceptions.sql.MalformedDataMapCommandException)1 DataMapFactory (org.apache.carbondata.core.datamap.dev.DataMapFactory)1 ICarbonLock (org.apache.carbondata.core.locks.ICarbonLock)1