com.treasuredata.jdbc.command.NullClientAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of td-jdbc Show documentation
Show all versions of td-jdbc Show documentation
JDBC Driver for Accessing Treasure Data
/*
* 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 com.treasuredata.jdbc.command;
import com.treasure_data.client.ClientException;
import com.treasuredata.jdbc.TDResultSetBase;
import com.treasuredata.jdbc.TDResultSetMetaData;
import com.treasure_data.model.DatabaseSummary;
import com.treasure_data.model.Job;
import com.treasure_data.model.JobSummary;
import com.treasure_data.model.TableSummary;
import org.msgpack.unpacker.Unpacker;
import java.util.List;
public class NullClientAPI
implements ClientAPI
{
public NullClientAPI()
{
}
public List showDatabases()
throws ClientException
{
return null;
}
public DatabaseSummary showDatabase()
throws ClientException
{
return null;
}
public List showTables()
throws ClientException
{
return null;
}
public boolean flush()
{
return true;
}
public TDResultSetBase select(String sql)
throws ClientException
{
return null;
}
public TDResultSetBase select(String sql, int queryTimeout)
throws ClientException
{
return null;
}
public TDResultSetMetaData getMetaDataWithSelect1()
{
return null;
}
public JobSummary waitJobResult(Job job)
throws ClientException
{
return null;
}
public Unpacker getJobResult(Job job)
throws ClientException
{
return null;
}
public ExtUnpacker getJobResult2(Job job)
throws ClientException
{
return new ExtUnpacker(null, getJobResult(job));
}
public void close()
throws ClientException
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy