NIFI-8308 Remove unnecessary field adjustments from QuestDB row creation

This closes #4888.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
Bence Simon 2021-03-10 17:01:17 +01:00 committed by Peter Turcsanyi
parent fedeafb43f
commit 4d68509212
1 changed files with 0 additions and 2 deletions

View File

@ -38,7 +38,6 @@ class StorageStatusWritingTemplate extends QuestDbWritingTemplate<Pair<Instant,
for (final StorageStatus contentRepository : entry.getRight().getContentRepositories()) {
final long capturedAt = TimeUnit.MILLISECONDS.toMicros(entry.getLeft().toEpochMilli());
final TableWriter.Row row = tableWriter.newRow(capturedAt);
row.putTimestamp(0, capturedAt);
row.putSym(1, contentRepository.getName());
row.putShort(2, Integer.valueOf(0).shortValue());
row.putLong(3, contentRepository.getFreeSpace());
@ -49,7 +48,6 @@ class StorageStatusWritingTemplate extends QuestDbWritingTemplate<Pair<Instant,
for (final StorageStatus provenanceRepository : entry.getRight().getProvenanceRepositories()) {
final long capturedAt = TimeUnit.MILLISECONDS.toMicros(entry.getLeft().toEpochMilli());
final TableWriter.Row row = tableWriter.newRow(capturedAt);
row.putTimestamp(0, capturedAt);
row.putSym(1, provenanceRepository.getName());
row.putShort(2, Integer.valueOf(1).shortValue());
row.putLong(3, provenanceRepository.getFreeSpace());