You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metamodel.apache.org by ka...@apache.org on 2019/03/25 02:29:58 UTC

[metamodel] 04/09: Fixed license headers and improved class-level javadocs.

This is an automated email from the ASF dual-hosted git repository.

kaspersor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/metamodel.git

commit 8c3007d658a0043873076ced268acd319f84efb2
Author: Kasper Sørensen <i....@gmail.com>
AuthorDate: Wed Mar 13 12:18:38 2019 -0700

    Fixed license headers and improved class-level javadocs.
---
 .../org/apache/metamodel/arff/ArffDataContext.java   |  4 ++++
 .../java/org/apache/metamodel/arff/ArffDataSet.java  | 20 +++++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/arff/src/main/java/org/apache/metamodel/arff/ArffDataContext.java b/arff/src/main/java/org/apache/metamodel/arff/ArffDataContext.java
index 0b4ca5d..2b35abb 100644
--- a/arff/src/main/java/org/apache/metamodel/arff/ArffDataContext.java
+++ b/arff/src/main/java/org/apache/metamodel/arff/ArffDataContext.java
@@ -46,6 +46,10 @@ import org.slf4j.LoggerFactory;
 import com.google.common.base.CharMatcher;
 import com.google.common.base.Splitter;
 
+/**
+ * DataContext implementation for ARFF (.arff) files, which can be loosely described a specialized type of CSV files
+ * with schema information, comments and data types in the header section of the file.
+ */
 public class ArffDataContext extends QueryPostprocessDataContext {
 
     private static final Logger logger = LoggerFactory.getLogger(ArffDataContext.class);
diff --git a/arff/src/main/java/org/apache/metamodel/arff/ArffDataSet.java b/arff/src/main/java/org/apache/metamodel/arff/ArffDataSet.java
index 2d1df07..902e52c 100644
--- a/arff/src/main/java/org/apache/metamodel/arff/ArffDataSet.java
+++ b/arff/src/main/java/org/apache/metamodel/arff/ArffDataSet.java
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.metamodel.arff;
 
 import java.io.BufferedReader;
@@ -20,7 +38,7 @@ import org.apache.metamodel.util.Resource;
 import com.opencsv.CSVParser;
 import com.opencsv.ICSVParser;
 
-public class ArffDataSet extends AbstractDataSet {
+final class ArffDataSet extends AbstractDataSet {
 
     private final ICSVParser csvParser = new CSVParser(',', '\'');
     private final Resource resource;