in core/src/main/java/org/apache/iceberg/V3Metadata.java [454:514]
private Object get(int pos) {
switch (pos) {
case 0:
return wrapped.content().id();
case 1:
return wrapped.location();
case 2:
return wrapped.format() != null ? wrapped.format().toString() : null;
case 3:
return wrapped.partition();
case 4:
return wrapped.recordCount();
case 5:
return wrapped.fileSizeInBytes();
case 6:
return wrapped.columnSizes();
case 7:
return wrapped.valueCounts();
case 8:
return wrapped.nullValueCounts();
case 9:
return wrapped.nanValueCounts();
case 10:
return wrapped.lowerBounds();
case 11:
return wrapped.upperBounds();
case 12:
return wrapped.keyMetadata();
case 13:
return wrapped.splitOffsets();
case 14:
return wrapped.equalityFieldIds();
case 15:
return wrapped.sortOrderId();
case 16:
if (wrapped.content() == FileContent.DATA) {
return wrapped.firstRowId();
} else {
return null;
}
case 17:
if (wrapped.content() == FileContent.POSITION_DELETES) {
return ((DeleteFile) wrapped).referencedDataFile();
} else {
return null;
}
case 18:
if (wrapped.content() == FileContent.POSITION_DELETES) {
return ((DeleteFile) wrapped).contentOffset();
} else {
return null;
}
case 19:
if (wrapped.content() == FileContent.POSITION_DELETES) {
return ((DeleteFile) wrapped).contentSizeInBytes();
} else {
return null;
}
}
throw new IllegalArgumentException("Unknown field ordinal: " + pos);
}