All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.visallo.web.structuredingest.parquet.ParquetParser Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.visallo.web.structuredingest.parquet;

import org.apache.tika.exception.TikaException;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.mime.MediaType;
import org.apache.tika.parser.AbstractParser;
import org.apache.tika.parser.ParseContext;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;

import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.Set;

public class ParquetParser extends AbstractParser {

    private static final Set SUPPORTED_TYPES = Collections.singleton(MediaType.application("x-parquet"));
    public static final String PARQUET_MIME_TYPE = "application/x-parquet";

    @Override
    public Set getSupportedTypes(ParseContext context) {
        return SUPPORTED_TYPES;
    }

    @Override
    public void parse(InputStream inputStream, ContentHandler contentHandler, Metadata metadata, ParseContext parseContext) throws IOException, SAXException, TikaException {
        // Ignore text
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy