use of org.apache.carbondata.core.indexstore.row.DataMapRowImpl in project carbondata by apache.
the class BlockletDataMap method convertToRow.
private DataMapRow convertToRow(IndexKey key) {
ByteBuffer buffer = ByteBuffer.allocate(key.getDictionaryKeys().length + key.getNoDictionaryKeys().length + 8);
buffer.putInt(key.getDictionaryKeys().length);
buffer.putInt(key.getNoDictionaryKeys().length);
buffer.put(key.getDictionaryKeys());
buffer.put(key.getNoDictionaryKeys());
DataMapRowImpl dataMapRow = new DataMapRowImpl(unsafeMemoryDMStore.getSchema());
dataMapRow.setByteArray(buffer.array(), 0);
return dataMapRow;
}
Aggregations