use of com.linkedin.pinot.core.io.reader.impl.FixedByteSingleValueMultiColReader in project pinot by linkedin.
the class FixedByteSingleColumnMultiValueReaderWriter method getStringArray.
@Override
public int getStringArray(int row, String[] stringArray) {
int bufferIndex = headerReader.getInt(row, 1);
int startIndex = headerReader.getInt(row, 1);
int length = headerReader.getInt(row, 2);
FixedByteSingleValueMultiColReader dataReader = dataReaders.get(bufferIndex);
for (int i = 0; i < length; i++) {
stringArray[i] = dataReader.getString(startIndex + i, 0);
}
return length;
}
use of com.linkedin.pinot.core.io.reader.impl.FixedByteSingleValueMultiColReader in project pinot by linkedin.
the class FixedByteSingleColumnMultiValueReaderWriter method getShortArray.
@Override
public int getShortArray(int row, short[] shortsArray) {
int bufferIndex = headerReader.getInt(row, 1);
int startIndex = headerReader.getInt(row, 1);
int length = headerReader.getInt(row, 2);
FixedByteSingleValueMultiColReader dataReader = dataReaders.get(bufferIndex);
for (int i = 0; i < length; i++) {
shortsArray[i] = dataReader.getShort(startIndex + i, 0);
}
return length;
}
use of com.linkedin.pinot.core.io.reader.impl.FixedByteSingleValueMultiColReader in project pinot by linkedin.
the class FixedByteSingleColumnMultiValueReaderWriter method getFloatArray.
@Override
public int getFloatArray(int row, float[] floatArray) {
int bufferIndex = headerReader.getInt(row, 1);
int startIndex = headerReader.getInt(row, 1);
int length = headerReader.getInt(row, 2);
FixedByteSingleValueMultiColReader dataReader = dataReaders.get(bufferIndex);
for (int i = 0; i < length; i++) {
floatArray[i] = dataReader.getFloat(startIndex + i, 0);
}
return length;
}
use of com.linkedin.pinot.core.io.reader.impl.FixedByteSingleValueMultiColReader in project pinot by linkedin.
the class FixedByteSingleColumnMultiValueReaderWriter method getDoubleArray.
@Override
public int getDoubleArray(int row, double[] doubleArray) {
int bufferIndex = headerReader.getInt(row, 1);
int startIndex = headerReader.getInt(row, 1);
int length = headerReader.getInt(row, 2);
FixedByteSingleValueMultiColReader dataReader = dataReaders.get(bufferIndex);
for (int i = 0; i < length; i++) {
doubleArray[i] = dataReader.getDouble(startIndex + i, 0);
}
return length;
}
use of com.linkedin.pinot.core.io.reader.impl.FixedByteSingleValueMultiColReader in project pinot by linkedin.
the class FixedByteSingleColumnMultiValueReaderWriter method getCharArray.
@Override
public int getCharArray(int row, char[] charArray) {
int bufferIndex = headerReader.getInt(row, 1);
int startIndex = headerReader.getInt(row, 1);
int length = headerReader.getInt(row, 2);
FixedByteSingleValueMultiColReader dataReader = dataReaders.get(bufferIndex);
for (int i = 0; i < length; i++) {
charArray[i] = dataReader.getChar(startIndex + i, 0);
}
return length;
}
Aggregations