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

com.facebook.presto.hive.$internal.jodd.io.findfile.WildcardFindFile Maven / Gradle / Ivy

// Copyright (c) 2003-2014, Jodd Team (com.facebook.presto.hive.$internal.jodd.org). All Rights Reserved.

package com.facebook.presto.hive.$internal.jodd.io.findfile;

import com.facebook.presto.hive.$internal.jodd.util.Wildcard;

import java.io.File;

/**
 * {@link FindFile} that matches file names using *, ?
 * and ** wildcards.
 *
 * @see com.facebook.presto.hive.$internal.jodd.io.findfile.RegExpFindFile
 */
public class WildcardFindFile extends FindFile {

	@Override
	protected boolean match(String path, String pattern) {
		return Wildcard.matchPath(path, pattern);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy