@@ -71,20 +71,20 @@ class ReadablesMetadata<T extends ReadableMetadata> {
7171
7272 /**
7373 * Constructs a new instance which supplies metadata from an array of
74- * {@code columnMetadata }.
75- * @param columnMetadata Metadata from each column in a row . Not null.
74+ * {@code metadatas }.
75+ * @param metadatas Metadata from each value in a readable . Not null.
7676 * Retained. Not modified.
7777 */
78- private ReadablesMetadata (T [] columnMetadata ) {
78+ private ReadablesMetadata (T [] metadatas ) {
7979
80- // Map column names to their index. Use TreeMap for case insensitive name
81- // look ups. If multiple columns have the same case insensitive name, map
82- // the name to the lowest index of those columns .
80+ // Map value names to their index. Use TreeMap for case insensitive name
81+ // look ups. If multiple values have the same case insensitive name, map
82+ // the name to the lowest index of those values .
8383 nameIndexes = new TreeMap <>(String .CASE_INSENSITIVE_ORDER );
84- for (int i = 0 ; i < columnMetadata .length ; i ++)
85- nameIndexes .putIfAbsent (columnMetadata [i ].getName (), i );
84+ for (int i = 0 ; i < metadatas .length ; i ++)
85+ nameIndexes .putIfAbsent (metadatas [i ].getName (), i );
8686
87- metadataList = List .of (columnMetadata );
87+ metadataList = List .of (metadatas );
8888 }
8989
9090 /**
@@ -106,6 +106,12 @@ static RowMetadataImpl createRowMetadata(
106106 return new RowMetadataImpl (columnMetadataArray );
107107 }
108108
109+ /**
110+ * Creates {@code OutParametersMetadata} from an array of {@code metadata}.
111+ * @param metadata Metadata of out parameter values. Not null. Retained.
112+ * @return {@code OutParametersMetadata} backed by the provided
113+ * {@code metadata}
114+ */
109115 static OutParametersMetadataImpl createOutParametersMetadata (
110116 OutParameterMetadata [] metadata ) {
111117 return new OutParametersMetadataImpl (metadata );
0 commit comments