diff options
Diffstat (limited to 'java/src/hdf/hdf5lib/structs')
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5AC_cache_config_t.java | 144 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5A_info_t.java | 11 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5E_error2_t.java | 24 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java | 48 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java | 35 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5F_info2_t.java | 36 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5G_info_t.java | 2 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5L_info_t.java | 36 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5O_hdr_info_t.java | 28 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5O_info_t.java | 39 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5O_native_info_t.java | 19 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5O_token_t.java | 13 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5_ih_info_t.java | 13 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/package-info.java | 3 |
14 files changed, 225 insertions, 226 deletions
diff --git a/java/src/hdf/hdf5lib/structs/H5AC_cache_config_t.java b/java/src/hdf/hdf5lib/structs/H5AC_cache_config_t.java index cf84532..a224124 100644 --- a/java/src/hdf/hdf5lib/structs/H5AC_cache_config_t.java +++ b/java/src/hdf/hdf5lib/structs/H5AC_cache_config_t.java @@ -18,7 +18,7 @@ import java.io.Serializable; * Information struct for H5Pget_mdc_config/H5Pset_mdc_config * */ -public class H5AC_cache_config_t implements Serializable{ +public class H5AC_cache_config_t implements Serializable { private static final long serialVersionUID = -6748085696476149972L; // general configuration fields /** @@ -27,7 +27,7 @@ public class H5AC_cache_config_t implements Serializable{ * H5AC_cache_config_t passed to the cache must have a known * version number, or an error will be flagged. */ - public int version; + public int version; /** * rpt_fcn_enabled: Boolean field used to enable and disable the default * reporting function. This function is invoked every time the @@ -35,80 +35,80 @@ public class H5AC_cache_config_t implements Serializable{ * * This is a debugging function, and should normally be turned off. */ - public boolean rpt_fcn_enabled; + public boolean rpt_fcn_enabled; /** * open_trace_file: Boolean field indicating whether the trace_file_name * field should be used to open a trace file for the cache. * * *** DEPRECATED *** Use H5Fstart/stop logging functions instead */ - public boolean open_trace_file; + public boolean open_trace_file; /** * close_trace_file: Boolean field indicating whether the current trace * file (if any) should be closed. * * *** DEPRECATED *** Use H5Fstart/stop logging functions instead */ - public boolean close_trace_file; + public boolean close_trace_file; /** * trace_file_name: Full path of the trace file to be opened if the * open_trace_file field is TRUE. * * *** DEPRECATED *** Use H5Fstart/stop logging functions instead */ - public String trace_file_name; + public String trace_file_name; /** * evictions_enabled: Boolean field used to either report the current * evictions enabled status of the cache, or to set the cache's * evictions enabled status. */ - public boolean evictions_enabled; + public boolean evictions_enabled; /** * set_initial_size: Boolean flag indicating whether the size of the * initial size of the cache is to be set to the value given in * the initial_size field. If set_initial_size is FALSE, the * initial_size field is ignored. */ - public boolean set_initial_size; + public boolean set_initial_size; /** * initial_size: If enabled, this field contain the size the cache is * to be set to upon receipt of this structure. Needless to say, * initial_size must lie in the closed interval [min_size, max_size]. */ - public long initial_size; + public long initial_size; /** * min_clean_fraction: double in the range 0 to 1 indicating the fraction * of the cache that is to be kept clean. This field is only used * in parallel mode. Typical values are 0.1 to 0.5. */ - public double min_clean_fraction; + public double min_clean_fraction; /** * max_size: Maximum size to which the cache can be adjusted. The * supplied value must fall in the closed interval * [MIN_MAX_CACHE_SIZE, MAX_MAX_CACHE_SIZE]. Also, max_size must * be greater than or equal to min_size. */ - public long max_size; + public long max_size; /** * min_size: Minimum size to which the cache can be adjusted. The * supplied value must fall in the closed interval * [H5C__MIN_MAX_CACHE_SIZE, H5C__MAX_MAX_CACHE_SIZE]. Also, min_size * must be less than or equal to max_size. */ - public long min_size; + public long min_size; /** * epoch_length: Number of accesses on the cache over which to collect * hit rate stats before running the automatic cache resize code, * if it is enabled. */ - public long epoch_length; + public long epoch_length; // size increase control fields /** * incr_mode: Instance of the H5C_cache_incr_mode enumerated type whose * value indicates how we determine whether the cache size should be * increased. At present there are two possible values. */ - public int incr_mode; + public int incr_mode; /** * lower_hr_threshold: Lower hit rate threshold. If the increment mode * (incr_mode) is H5C_incr__threshold and the hit rate drops below the @@ -117,105 +117,106 @@ public class H5AC_cache_config_t implements Serializable{ * max_size, and that the increment may be further restricted by the * max_increment field if it is enabled. */ - public double lower_hr_threshold; + public double lower_hr_threshold; /** * increment: Double containing the multiplier used to derive the new * cache size from the old if a cache size increment is triggered. * The increment must be greater than 1.0, and should not exceed 2.0. */ - public double increment; + public double increment; /** * apply_max_increment: Boolean flag indicating whether the max_increment * field should be used to limit the maximum cache size increment. */ - public boolean apply_max_increment; + public boolean apply_max_increment; /** * max_increment: If enabled by the apply_max_increment field described * above, this field contains the maximum number of bytes by which the * cache size can be increased in a single re-size. */ - public long max_increment; + public long max_increment; /** * flash_incr_mode: Instance of the H5C_cache_flash_incr_mode enumerated * type whose value indicates whether and by which algorithm we should * make flash increases in the size of the cache to accommodate insertion * of large entries and large increases in the size of a single entry. */ - public int flash_incr_mode; + public int flash_incr_mode; /** * flash_multiple: Double containing the multiple described above in the * H5C_flash_incr__add_space section of the discussion of the * flash_incr_mode section. This field is ignored unless flash_incr_mode * is H5C_flash_incr__add_space. */ - public double flash_multiple; + public double flash_multiple; /** * flash_threshold: Double containing the factor by which current max cache * size is multiplied to obtain the size threshold for the add_space flash * increment algorithm. The field is ignored unless flash_incr_mode is * H5C_flash_incr__add_space. */ - public double flash_threshold; + public double flash_threshold; // size decrease control fields /** * decr_mode: Instance of the H5C_cache_decr_mode enumerated type whose * value indicates how we determine whether the cache size should be * decreased. At present there are four possibilities. */ - public int decr_mode; + public int decr_mode; /** * upper_hr_threshold: Upper hit rate threshold. The use of this field * varies according to the current decr_mode. */ - public double upper_hr_threshold; + public double upper_hr_threshold; /** * decrement: This field is only used when the decr_mode is * H5C_decr__threshold. */ - public double decrement; + public double decrement; /** * apply_max_decrement: Boolean flag used to determine whether decrements * in cache size are to be limited by the max_decrement field. */ - public boolean apply_max_decrement; + public boolean apply_max_decrement; /** * max_decrement: Maximum number of bytes by which the cache size can be * decreased in a single re-size. Note that decrements may also be * restricted by the min_size of the cache, and (in age out modes) by * the empty_reserve field. */ - public long max_decrement; + public long max_decrement; /** * epochs_before_eviction: Integer field used in H5C_decr__age_out and * H5C_decr__age_out_with_threshold decrement modes. */ - public int epochs_before_eviction; + public int epochs_before_eviction; /** * apply_empty_reserve: Boolean field controlling whether the empty_reserve * field is to be used in computing the new cache size when the * decr_mode is H5C_decr__age_out or H5C_decr__age_out_with_threshold. */ - public boolean apply_empty_reserve; + public boolean apply_empty_reserve; /** * empty_reserve: To avoid a constant racheting down of cache size by small * amounts in the H5C_decr__age_out and H5C_decr__age_out_with_threshold * modes, this field allows one to require that any cache size * reductions leave the specified fraction of unused space in the cache. */ - public double empty_reserve; + public double empty_reserve; // parallel configuration fields /** * dirty_bytes_threshold: Threshold of dirty byte creation used to * synchronize updates between caches. */ - public long dirty_bytes_threshold; + public long dirty_bytes_threshold; /** * metadata_write_strategy: Integer field containing a code indicating the * desired metadata write strategy. */ - public int metadata_write_strategy; + public int metadata_write_strategy; - /** H5AC_cache_config_t is a public structure intended for use in public APIs. + /** + * H5AC_cache_config_t is a public structure intended for use in public APIs. * At least in its initial incarnation, it is basically a copy of struct * H5C_auto_size_ctl_t, minus the report_fcn field, and plus the * dirty_bytes_threshold field. @@ -283,46 +284,47 @@ public class H5AC_cache_config_t implements Serializable{ * synchronize updates between caches. * @param metadata_write_strategy: Integer field containing a code indicating the * desired metadata write strategy. - */ - public H5AC_cache_config_t (int version, boolean rpt_fcn_enabled, boolean open_trace_file, - boolean close_trace_file, String trace_file_name, boolean evictions_enabled, - boolean set_initial_size, long initial_size, double min_clean_fraction, long max_size, - long min_size, long epoch_length, int incr_mode, double lower_hr_threshold, - double increment, boolean apply_max_increment, long max_increment, int flash_incr_mode, - double flash_multiple, double flash_threshold, int decr_mode, double upper_hr_threshold, - double decrement, boolean apply_max_decrement, long max_decrement, - int epochs_before_eviction, boolean apply_empty_reserve, double empty_reserve, - long dirty_bytes_threshold, int metadata_write_strategy) + */ + public H5AC_cache_config_t(int version, boolean rpt_fcn_enabled, boolean open_trace_file, + boolean close_trace_file, String trace_file_name, boolean evictions_enabled, + boolean set_initial_size, long initial_size, double min_clean_fraction, + long max_size, long min_size, long epoch_length, int incr_mode, + double lower_hr_threshold, double increment, boolean apply_max_increment, + long max_increment, int flash_incr_mode, double flash_multiple, + double flash_threshold, int decr_mode, double upper_hr_threshold, + double decrement, boolean apply_max_decrement, long max_decrement, + int epochs_before_eviction, boolean apply_empty_reserve, double empty_reserve, + long dirty_bytes_threshold, int metadata_write_strategy) { - this.version = version; - this.rpt_fcn_enabled = rpt_fcn_enabled; - this.open_trace_file = open_trace_file; - this.close_trace_file = close_trace_file; - this.trace_file_name = trace_file_name; - this.evictions_enabled = evictions_enabled; - this.set_initial_size = set_initial_size; - this.initial_size = initial_size; - this.min_clean_fraction = min_clean_fraction; - this.max_size = max_size; - this.min_size = min_size; - this.epoch_length = epoch_length; - this.incr_mode = incr_mode; - this.lower_hr_threshold = lower_hr_threshold; - this.increment = increment; - this.apply_max_increment = apply_max_increment; - this.max_increment = flash_incr_mode; - this.flash_incr_mode = flash_incr_mode; - this.flash_multiple = flash_multiple; - this.flash_threshold = flash_threshold; - this.decr_mode = decr_mode; - this.upper_hr_threshold = upper_hr_threshold; - this.decrement = decrement; - this.apply_max_decrement = apply_max_decrement; - this.max_decrement = max_decrement; - this.epochs_before_eviction = epochs_before_eviction; - this.apply_empty_reserve = apply_empty_reserve; - this.empty_reserve = empty_reserve; - this.dirty_bytes_threshold = dirty_bytes_threshold; + this.version = version; + this.rpt_fcn_enabled = rpt_fcn_enabled; + this.open_trace_file = open_trace_file; + this.close_trace_file = close_trace_file; + this.trace_file_name = trace_file_name; + this.evictions_enabled = evictions_enabled; + this.set_initial_size = set_initial_size; + this.initial_size = initial_size; + this.min_clean_fraction = min_clean_fraction; + this.max_size = max_size; + this.min_size = min_size; + this.epoch_length = epoch_length; + this.incr_mode = incr_mode; + this.lower_hr_threshold = lower_hr_threshold; + this.increment = increment; + this.apply_max_increment = apply_max_increment; + this.max_increment = flash_incr_mode; + this.flash_incr_mode = flash_incr_mode; + this.flash_multiple = flash_multiple; + this.flash_threshold = flash_threshold; + this.decr_mode = decr_mode; + this.upper_hr_threshold = upper_hr_threshold; + this.decrement = decrement; + this.apply_max_decrement = apply_max_decrement; + this.max_decrement = max_decrement; + this.epochs_before_eviction = epochs_before_eviction; + this.apply_empty_reserve = apply_empty_reserve; + this.empty_reserve = empty_reserve; + this.dirty_bytes_threshold = dirty_bytes_threshold; this.metadata_write_strategy = metadata_write_strategy; } } diff --git a/java/src/hdf/hdf5lib/structs/H5A_info_t.java b/java/src/hdf/hdf5lib/structs/H5A_info_t.java index f2c10f0..364e480 100644 --- a/java/src/hdf/hdf5lib/structs/H5A_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5A_info_t.java @@ -18,7 +18,7 @@ import java.io.Serializable; * Information struct for Attribute (For H5Aget_info/H5Aget_info_by_idx/H5Aget_info_by_name) * */ -public class H5A_info_t implements Serializable{ +public class H5A_info_t implements Serializable { private static final long serialVersionUID = 2791443594041667613L; /** Indicate if creation order is valid */ public boolean corder_valid; @@ -29,10 +29,11 @@ public class H5A_info_t implements Serializable{ /** Size of raw data */ public long data_size; - H5A_info_t(boolean corder_valid, long corder, int cset, long data_size) { + H5A_info_t(boolean corder_valid, long corder, int cset, long data_size) + { this.corder_valid = corder_valid; - this.corder = corder; - this.cset = cset; - this.data_size = data_size; + this.corder = corder; + this.cset = cset; + this.data_size = data_size; } } diff --git a/java/src/hdf/hdf5lib/structs/H5E_error2_t.java b/java/src/hdf/hdf5lib/structs/H5E_error2_t.java index 5981fc7..1be836f 100644 --- a/java/src/hdf/hdf5lib/structs/H5E_error2_t.java +++ b/java/src/hdf/hdf5lib/structs/H5E_error2_t.java @@ -18,16 +18,16 @@ import java.io.Serializable; * Information struct for Attribute (For H5Ewalk) * */ -public class H5E_error2_t implements Serializable{ +public class H5E_error2_t implements Serializable { private static final long serialVersionUID = 279144359041667613L; /** class ID */ - public long cls_id; + public long cls_id; /** major error ID */ - public long maj_num; + public long maj_num; /** minor error number */ - public long min_num; + public long min_num; /** line in file where error occurs */ - public int line; + public int line; /** function in which error occurred */ public String func_name; /** file in which error occurred */ @@ -35,13 +35,15 @@ public class H5E_error2_t implements Serializable{ /** optional supplied description */ public String desc; - H5E_error2_t(long cls_id, long maj_num, long min_num, int line, String func_name, String file_name, String desc) { - this.cls_id = cls_id; - this.maj_num = maj_num; - this.min_num = min_num; - this.line = line; + H5E_error2_t(long cls_id, long maj_num, long min_num, int line, String func_name, String file_name, + String desc) + { + this.cls_id = cls_id; + this.maj_num = maj_num; + this.min_num = min_num; + this.line = line; this.func_name = func_name; this.file_name = file_name; - this.desc = desc; + this.desc = desc; } } diff --git a/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java b/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java index 95a9254..181d681 100644 --- a/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java +++ b/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java @@ -26,17 +26,17 @@ public class H5FD_hdfs_fapl_t implements Serializable { private static final long serialVersionUID = 2072473407027648309L; /** Version number of the H5FD_hdfs_fapl_t structure. */ - private int version; + private int version; /** Name of "Name Node" to access as the HDFS server. */ private String namenode_name; /** Port number to use to connect with Name Node. */ - private int namenode_port; + private int namenode_port; /** Username to use when accessing file. */ private String user_name; /** Path to the location of the Kerberos authentication cache. */ private String kerberos_ticket_cache; /** Size (in bytes) of the file read stream buffer. */ - private int stream_buffer_size; + private int stream_buffer_size; /** * Create a fapl_t structure with the specified components. @@ -51,23 +51,20 @@ public class H5FD_hdfs_fapl_t implements Serializable { * @param stream_buffer_size * Size (in bytes) of the file read stream buffer. */ - public H5FD_hdfs_fapl_t( - String namenode_name, - int namenode_port, - String user_name, - String kerberos_ticket_cache, - int stream_buffer_size) + public H5FD_hdfs_fapl_t(String namenode_name, int namenode_port, String user_name, + String kerberos_ticket_cache, int stream_buffer_size) { - this.version = 1; - this.namenode_name = namenode_name; - this.namenode_port = namenode_port; - this.user_name = user_name; - this.kerberos_ticket_cache = kerberos_ticket_cache; - this.stream_buffer_size = stream_buffer_size; + this.version = 1; + this.namenode_name = namenode_name; + this.namenode_port = namenode_port; + this.user_name = user_name; + this.kerberos_ticket_cache = kerberos_ticket_cache; + this.stream_buffer_size = stream_buffer_size; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (o == null) return false; if (!(o instanceof H5FD_hdfs_fapl_t)) @@ -90,7 +87,8 @@ public class H5FD_hdfs_fapl_t implements Serializable { } @Override - public int hashCode() { + public int hashCode() + { /* this is a _very bad_ hash algorithm for purposes of hashing! */ /* implemented to satisfy the "contract" regarding equality */ int k = (int)this.version; @@ -103,15 +101,11 @@ public class H5FD_hdfs_fapl_t implements Serializable { } @Override - public String toString() { - return "H5FD_hdfs_fapl_t (Version: " + this.version + ") {" + - "\n namenode_name: '" + this.namenode_name + - "'\n namenode_port: " + this.namenode_port + - "\n user_name: '" + this.user_name + - "'\n kerberos_ticket_cache: '" + this.kerberos_ticket_cache + - "'\n stream_buffer_size: " + this.stream_buffer_size + - "\n}\n"; + public String toString() + { + return "H5FD_hdfs_fapl_t (Version: " + this.version + ") {" + + "\n namenode_name: '" + this.namenode_name + "'\n namenode_port: " + this.namenode_port + + "\n user_name: '" + this.user_name + "'\n kerberos_ticket_cache: '" + + this.kerberos_ticket_cache + "'\n stream_buffer_size: " + this.stream_buffer_size + "\n}\n"; } } - - diff --git a/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java b/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java index ad02979..67c2463 100644 --- a/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java +++ b/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java @@ -46,7 +46,7 @@ public class H5FD_ros3_fapl_t implements Serializable { private static final long serialVersionUID = 8985533001471224030L; /** Version number of the H5FD_ros3_fapl_t structure */ - private int version; + private int version; /** Flag TRUE or FALSE whether or not requests are to be authenticated with the AWS4 algorithm. */ private boolean authenticate; /** region "aws region" for authenticating request */ @@ -59,11 +59,12 @@ public class H5FD_ros3_fapl_t implements Serializable { /** * Create a "default" fapl_t structure, for anonymous access. */ - public H5FD_ros3_fapl_t () { + public H5FD_ros3_fapl_t() + { /* H5FD_ros3_fapl_t("", "", ""); */ /* defer */ - this.version = 1; + this.version = 1; this.aws_region = ""; - this.secret_id = ""; + this.secret_id = ""; this.secret_key = ""; } @@ -76,16 +77,18 @@ public class H5FD_ros3_fapl_t implements Serializable { * @param id "secret id" or "access id" for authenticating request * @param key "secret key" or "access key" for authenticating request */ - public H5FD_ros3_fapl_t (String region, String id, String key) { - this.version = 1; /* must equal H5FD_CURR_ROS3_FAPL_T_VERSION */ - /* as found in H5FDros3.h */ + public H5FD_ros3_fapl_t(String region, String id, String key) + { + this.version = 1; /* must equal H5FD_CURR_ROS3_FAPL_T_VERSION */ + /* as found in H5FDros3.h */ this.aws_region = region; this.secret_id = id; this.secret_key = key; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (o == null) return false; if (!(o instanceof H5FD_ros3_fapl_t)) @@ -104,7 +107,8 @@ public class H5FD_ros3_fapl_t implements Serializable { } @Override - public int hashCode() { + public int hashCode() + { /* this is a _very bad_ hash algorithm for purposes of hashing! */ /* implemented to satisfy the "contract" regarding equality */ int k = (int)this.version; @@ -115,13 +119,10 @@ public class H5FD_ros3_fapl_t implements Serializable { } @Override - public String toString() { - return "H5FD_ros3_fapl_t (Version:" + this.version + ") {" + - "\n aws_region : " + this.aws_region + - "\n secret_id : " + this.secret_id + - "\n secret_key : " + this.secret_key + - "\n}\n"; + public String toString() + { + return "H5FD_ros3_fapl_t (Version:" + this.version + ") {" + + "\n aws_region : " + this.aws_region + "\n secret_id : " + this.secret_id + + "\n secret_key : " + this.secret_key + "\n}\n"; } } - - diff --git a/java/src/hdf/hdf5lib/structs/H5F_info2_t.java b/java/src/hdf/hdf5lib/structs/H5F_info2_t.java index 78e6d6c..1961b16 100644 --- a/java/src/hdf/hdf5lib/structs/H5F_info2_t.java +++ b/java/src/hdf/hdf5lib/structs/H5F_info2_t.java @@ -18,26 +18,26 @@ import java.io.Serializable; * Information struct for object (for H5Fget_info) * */ -public class H5F_info2_t implements Serializable{ +public class H5F_info2_t implements Serializable { private static final long serialVersionUID = 4691681162544054518L; /** Superblock version number */ - public int super_version; + public int super_version; /** Superblock size */ - public long super_size; + public long super_size; /** Superblock extension size */ - public long super_ext_size; + public long super_ext_size; /** Version number of file free space management */ - public int free_version; + public int free_version; /** Free space manager metadata size */ - public long free_meta_size; + public long free_meta_size; /** Amount of free space in the file */ - public long free_tot_space; + public long free_tot_space; /** Version number of shared object header info */ - public int sohm_version; + public int sohm_version; /** Shared object header message header size */ - public long sohm_hdr_size; + public long sohm_hdr_size; /** Shared object header message index and heap size */ - public H5_ih_info_t sohm_msgs_info; + public H5_ih_info_t sohm_msgs_info; /** * Constructor for current "global" information about file @@ -51,18 +51,18 @@ public class H5F_info2_t implements Serializable{ * @param sohm_hdr_size: Shared object header message header size * @param sohm_msgs_info: Shared object header message index and heap size */ - public H5F_info2_t (int super_version, long super_size, long super_ext_size, - int free_version, long free_meta_size, long free_tot_space, - int sohm_version, long sohm_hdr_size, H5_ih_info_t sohm_msgs_info) + public H5F_info2_t(int super_version, long super_size, long super_ext_size, int free_version, + long free_meta_size, long free_tot_space, int sohm_version, long sohm_hdr_size, + H5_ih_info_t sohm_msgs_info) { - this.super_version = super_version; - this.super_size = super_size; + this.super_version = super_version; + this.super_size = super_size; this.super_ext_size = super_ext_size; - this.free_version = free_version; + this.free_version = free_version; this.free_meta_size = free_meta_size; this.free_tot_space = free_tot_space; - this.sohm_version = sohm_version; - this.sohm_hdr_size = sohm_hdr_size; + this.sohm_version = sohm_version; + this.sohm_hdr_size = sohm_hdr_size; this.sohm_msgs_info = sohm_msgs_info; } } diff --git a/java/src/hdf/hdf5lib/structs/H5G_info_t.java b/java/src/hdf/hdf5lib/structs/H5G_info_t.java index e79f859..10ae76a 100644 --- a/java/src/hdf/hdf5lib/structs/H5G_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5G_info_t.java @@ -18,7 +18,7 @@ import java.io.Serializable; * Information struct for group (for H5Gget_info/H5Gget_info_by_name/H5Gget_info_by_idx) * */ -public class H5G_info_t implements Serializable{ +public class H5G_info_t implements Serializable { private static final long serialVersionUID = -3746463015312132912L; /** Type of storage for links in group */ public int storage_type; diff --git a/java/src/hdf/hdf5lib/structs/H5L_info_t.java b/java/src/hdf/hdf5lib/structs/H5L_info_t.java index a3011c0..38b64d6 100644 --- a/java/src/hdf/hdf5lib/structs/H5L_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5L_info_t.java @@ -23,39 +23,37 @@ import hdf.hdf5lib.HDF5Constants; public class H5L_info_t implements Serializable { private static final long serialVersionUID = -4754320605310155033L; /** Type of link */ - public int type; + public int type; /** Indicate if creation order is valid */ - public boolean corder_valid; + public boolean corder_valid; /** Creation order */ - public long corder; + public long corder; /** Character set of link name */ - public int cset; + public int cset; /** Character set of link name */ public H5O_token_t token; /** Size of a soft link or user-defined link value */ - public long val_size; + public long val_size; /** Constructor for using object token portion of C union */ - H5L_info_t (int type, boolean corder_valid, long corder, - int cset, H5O_token_t token) + H5L_info_t(int type, boolean corder_valid, long corder, int cset, H5O_token_t token) { - this.type = type; + this.type = type; this.corder_valid = corder_valid; - this.corder = corder; - this.cset = cset; - this.token = token; - this.val_size = -1; + this.corder = corder; + this.cset = cset; + this.token = token; + this.val_size = -1; } /** Constructor for using val_size portion of C union */ - H5L_info_t (int type, boolean corder_valid, long corder, - int cset, long val_size) + H5L_info_t(int type, boolean corder_valid, long corder, int cset, long val_size) { - this.type = type; + this.type = type; this.corder_valid = corder_valid; - this.corder = corder; - this.cset = cset; - this.token = HDF5Constants.H5O_TOKEN_UNDEF; - this.val_size = val_size; + this.corder = corder; + this.cset = cset; + this.token = HDF5Constants.H5O_TOKEN_UNDEF; + this.val_size = val_size; } } diff --git a/java/src/hdf/hdf5lib/structs/H5O_hdr_info_t.java b/java/src/hdf/hdf5lib/structs/H5O_hdr_info_t.java index 2475dd9..16a0eae 100644 --- a/java/src/hdf/hdf5lib/structs/H5O_hdr_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5O_hdr_info_t.java @@ -41,31 +41,31 @@ public class H5O_hdr_info_t implements Serializable { /** Flags to indicate message type is shared in header */ public long mesg_shared; - H5O_hdr_info_t (int version, int nmesgs, int nchunks, int flags, - long space_total, long space_meta, long space_mesg, long space_free, - long mesg_present, long mesg_shared) + H5O_hdr_info_t(int version, int nmesgs, int nchunks, int flags, long space_total, long space_meta, + long space_mesg, long space_free, long mesg_present, long mesg_shared) { - this.version = version; - this.nmesgs = nmesgs; - this.nchunks = nchunks; - this.flags = flags; - this.space_total = space_total; - this.space_meta = space_meta; - this.space_mesg = space_mesg; - this.space_free = space_free; + this.version = version; + this.nmesgs = nmesgs; + this.nchunks = nchunks; + this.flags = flags; + this.space_total = space_total; + this.space_meta = space_meta; + this.space_mesg = space_mesg; + this.space_free = space_free; this.mesg_present = mesg_present; - this.mesg_shared = mesg_shared; + this.mesg_shared = mesg_shared; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (this == o) return true; if (!(o instanceof H5O_hdr_info_t)) return false; - H5O_hdr_info_t info = (H5O_hdr_info_t) o; + H5O_hdr_info_t info = (H5O_hdr_info_t)o; if (this.version != info.version) return false; diff --git a/java/src/hdf/hdf5lib/structs/H5O_info_t.java b/java/src/hdf/hdf5lib/structs/H5O_info_t.java index d2208d2..011a88e 100644 --- a/java/src/hdf/hdf5lib/structs/H5O_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5O_info_t.java @@ -21,25 +21,26 @@ import java.io.Serializable; public class H5O_info_t implements Serializable { private static final long serialVersionUID = 4691681163544054518L; /** File number that object is located in */ - public long fileno; + public long fileno; /** Object token in file */ public H5O_token_t token; /** Basic object type (group, dataset, etc.) */ - public int type; + public int type; /** Reference count of object */ - public int rc; + public int rc; /** Access time */ - public long atime; + public long atime; /** Modification time */ - public long mtime; + public long mtime; /** Change time */ - public long ctime; + public long ctime; /** Birth time */ - public long btime; + public long btime; /** Number of attributes attached to object */ - public long num_attrs; + public long num_attrs; - /** Constructor for data model information struct for objects + /** + * Constructor for data model information struct for objects * * @param fileno: File number that object is located in * @param token: Object token in file @@ -51,17 +52,17 @@ public class H5O_info_t implements Serializable { * @param btime: Birth time * @param num_attrs: Number of attributes attached to object */ - public H5O_info_t (long fileno, H5O_token_t token, int type, - int rc, long atime, long mtime, long ctime, long btime, long num_attrs) + public H5O_info_t(long fileno, H5O_token_t token, int type, int rc, long atime, long mtime, long ctime, + long btime, long num_attrs) { - this.fileno = fileno; - this.token = token; - this.type = type; - this.rc = rc; - this.atime = atime; - this.mtime = mtime; - this.ctime = ctime; - this.btime = btime; + this.fileno = fileno; + this.token = token; + this.type = type; + this.rc = rc; + this.atime = atime; + this.mtime = mtime; + this.ctime = ctime; + this.btime = btime; this.num_attrs = num_attrs; } } diff --git a/java/src/hdf/hdf5lib/structs/H5O_native_info_t.java b/java/src/hdf/hdf5lib/structs/H5O_native_info_t.java index 70e5231..ec01b40 100644 --- a/java/src/hdf/hdf5lib/structs/H5O_native_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5O_native_info_t.java @@ -15,7 +15,8 @@ package hdf.hdf5lib.structs; import java.io.Serializable; /** - * Information struct for native HDF5 object info, such as object header metadata (for H5Oget_info/H5Oget_info_by_name/H5Oget_info_by_idx). + * Information struct for native HDF5 object info, such as object header metadata (for + * H5Oget_info/H5Oget_info_by_name/H5Oget_info_by_idx). * */ public class H5O_native_info_t implements Serializable { @@ -29,26 +30,26 @@ public class H5O_native_info_t implements Serializable { /** v2 B-tree and heap for attributes */ public H5_ih_info_t attr_info; - H5O_native_info_t (H5O_hdr_info_t oheader_info, H5_ih_info_t obj_info, H5_ih_info_t attr_info) + H5O_native_info_t(H5O_hdr_info_t oheader_info, H5_ih_info_t obj_info, H5_ih_info_t attr_info) { - this.hdr_info = oheader_info; - this.obj_info = obj_info; + this.hdr_info = oheader_info; + this.obj_info = obj_info; this.attr_info = attr_info; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (this == o) return true; if (!(o instanceof H5O_native_info_t)) return false; - H5O_native_info_t info = (H5O_native_info_t) o; + H5O_native_info_t info = (H5O_native_info_t)o; - if (!this.hdr_info.equals(info.hdr_info) - || !this.obj_info.equals(info.obj_info) - || !this.attr_info.equals(info.attr_info)) + if (!this.hdr_info.equals(info.hdr_info) || !this.obj_info.equals(info.obj_info) || + !this.attr_info.equals(info.attr_info)) return false; return true; diff --git a/java/src/hdf/hdf5lib/structs/H5O_token_t.java b/java/src/hdf/hdf5lib/structs/H5O_token_t.java index f0bb978..8f2b7e2 100644 --- a/java/src/hdf/hdf5lib/structs/H5O_token_t.java +++ b/java/src/hdf/hdf5lib/structs/H5O_token_t.java @@ -30,28 +30,25 @@ public class H5O_token_t implements Serializable { */ public byte[] data; - H5O_token_t (byte[] data) { - this.data = data; - } + H5O_token_t(byte[] data) { this.data = data; } /** * Check if token data is undefined * * @return true if token data is undefined */ - public boolean isUndefined() { - return this.equals(HDF5Constants.H5O_TOKEN_UNDEF); - } + public boolean isUndefined() { return this.equals(HDF5Constants.H5O_TOKEN_UNDEF); } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (this == o) return true; if (!(o instanceof H5O_token_t)) return false; - H5O_token_t token = (H5O_token_t) o; + H5O_token_t token = (H5O_token_t)o; return Arrays.equals(this.data, token.data); } diff --git a/java/src/hdf/hdf5lib/structs/H5_ih_info_t.java b/java/src/hdf/hdf5lib/structs/H5_ih_info_t.java index 0c6111b..3213695 100644 --- a/java/src/hdf/hdf5lib/structs/H5_ih_info_t.java +++ b/java/src/hdf/hdf5lib/structs/H5_ih_info_t.java @@ -21,25 +21,26 @@ import java.io.Serializable; public class H5_ih_info_t implements Serializable { private static final long serialVersionUID = -142238015615462707L; /** btree and/or list size of index */ - public long index_size; + public long index_size; /** btree and/or list size of hp */ - public long heap_size; + public long heap_size; - H5_ih_info_t (long index_size, long heap_size) + H5_ih_info_t(long index_size, long heap_size) { this.index_size = index_size; - this.heap_size = heap_size; + this.heap_size = heap_size; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (this == o) return true; if (!(o instanceof H5_ih_info_t)) return false; - H5_ih_info_t info = (H5_ih_info_t) o; + H5_ih_info_t info = (H5_ih_info_t)o; if (this.index_size != info.index_size) return false; diff --git a/java/src/hdf/hdf5lib/structs/package-info.java b/java/src/hdf/hdf5lib/structs/package-info.java index 8a9d97d..a3ec6cd 100644 --- a/java/src/hdf/hdf5lib/structs/package-info.java +++ b/java/src/hdf/hdf5lib/structs/package-info.java @@ -11,7 +11,8 @@ * help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** All structure definitions define java equivalents of the C structures needed +/** + * All structure definitions define java equivalents of the C structures needed * by the C API calls. See the C API for information about the structures. */ package hdf.hdf5lib.structs; |