Sha256: da397acc11fb9f297cfc18c6815006c2d78c19adb852e5c2e75ce373bbbf841a
Contents?: true
Size: 1.11 KB
Versions: 23
Compression:
Stored size: 1.11 KB
Contents
package org.embulk.output.oracle.oci; import java.util.List; public class TableDefinition { private final String schemaName; private final String tableName; private final ColumnDefinition[] columns; public TableDefinition(String schemaName, String tableName, ColumnDefinition... columns) { this.schemaName = schemaName; this.tableName = tableName; this.columns = columns; } public TableDefinition(String schemaName, String tableName, List<ColumnDefinition> columns) { this(schemaName, tableName, columns.toArray(new ColumnDefinition[columns.size()])); } public String getSchemaName() { return schemaName; } public String getTableName() { return tableName; } public int getColumnCount() { return columns.length; } public ColumnDefinition getColumn(int index) { return columns[index]; } public int getRowSize() { int rowSize = 0; for (ColumnDefinition column : columns) { rowSize += column.getDataSize(); } return rowSize; } }
Version data entries
23 entries across 23 versions & 1 rubygems