33
33
import org .carbondata .core .carbon .datastore .block .SegmentTaskIndex ;
34
34
import org .carbondata .core .carbon .datastore .block .TableBlockInfo ;
35
35
import org .carbondata .core .carbon .datastore .exception .IndexBuilderException ;
36
- import org .carbondata .core .carbon .metadata .leafnode .DataFileMetadata ;
36
+ import org .carbondata .core .carbon .metadata .leafnode .DataFileFooter ;
37
37
import org .carbondata .core .constants .CarbonCommonConstants ;
38
38
import org .carbondata .core .util .CarbonCoreLogEvent ;
39
39
import org .carbondata .core .util .CarbonUtil ;
@@ -118,7 +118,7 @@ public Map<String, AbstractIndex> loadAndGetTaskIdToSegmentsMap(
118
118
tableSegmentMap .put (absoluteTableIdentifier , tableSegmentMapTemp );
119
119
}
120
120
Map <String , AbstractIndex > map = null ;
121
- DataFileMetadata dataFileMatadata = null ;
121
+ DataFileFooter footer = null ;
122
122
try {
123
123
while (iteratorOverSegmentBlocksInfos .hasNext ()) {
124
124
// segment id to table block mapping
@@ -138,19 +138,19 @@ public Map<String, AbstractIndex> loadAndGetTaskIdToSegmentsMap(
138
138
Entry <String , List <TableBlockInfo >> taskIdToBlockInfoIterator = iterator .next ();
139
139
// all the block of one task id will be loaded together
140
140
// so creating a list which will have all the data file metadata to of one task
141
- List <DataFileMetadata > taskDataFileMetadata = new ArrayList <DataFileMetadata >();
141
+ List <DataFileFooter > footerList = new ArrayList <DataFileFooter >();
142
142
143
143
for (TableBlockInfo tableBlockInfo : taskIdToBlockInfoIterator .getValue ()) {
144
- dataFileMatadata = CarbonUtil
144
+ footer = CarbonUtil
145
145
.readMetadatFile (tableBlockInfo .getFilePath (), tableBlockInfo .getBlockOffset ());
146
- dataFileMatadata .setFilePath (tableBlockInfo .getFilePath ());
147
- dataFileMatadata .setOffset (tableBlockInfo .getBlockOffset ());
148
- taskDataFileMetadata .add (dataFileMatadata );
146
+ footer .setFilePath (tableBlockInfo .getFilePath ());
147
+ footer .setOffset (tableBlockInfo .getBlockOffset ());
148
+ footerList .add (footer );
149
149
}
150
150
AbstractIndex segment = new SegmentTaskIndex ();
151
151
// file path of only first block is passed as it all table block info path of
152
152
// same task id will be same
153
- segment .buildIndex (taskDataFileMetadata );
153
+ segment .buildIndex (footerList );
154
154
map .put (taskIdToBlockInfoIterator .getKey (), segment );
155
155
}
156
156
0 commit comments