Return-Path: X-Original-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C02BA70D8 for ; Sun, 13 Nov 2011 15:07:46 +0000 (UTC) Received: (qmail 41920 invoked by uid 500); 13 Nov 2011 15:07:46 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 41878 invoked by uid 500); 13 Nov 2011 15:07:46 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 41871 invoked by uid 99); 13 Nov 2011 15:07:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 15:07:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 15:07:44 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 384E023888E4; Sun, 13 Nov 2011 15:07:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1201436 - in /incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces: JoinRelationship.java QueryRelationship.java TableRelationship.java Date: Sun, 13 Nov 2011 15:07:24 -0000 To: connectors-commits@incubator.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111113150724.384E023888E4@eris.apache.org> Author: kwright Date: Sun Nov 13 15:07:23 2011 New Revision: 1201436 URL: http://svn.apache.org/viewvc?rev=1201436&view=rev Log: Missed commit on a couple of files Added: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java (with props) incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java (with props) incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java (with props) Added: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java?rev=1201436&view=auto ============================================================================== --- incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java (added) +++ incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java Sun Nov 13 15:07:23 2011 @@ -0,0 +1,46 @@ +/* $Id$ */ + +/** +* 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.warthog.interfaces; + +/** This relationship type represents the joining of n other relationships, plus a joining +* criteria, yielding a result with columns that include the columns from all of the +* child relationships. +*/ +public class JoinRelationship implements WHRelationship +{ + // MHL + + /** Get the column names represented by the relationship. */ + public String[] getColumnNames() + throws WHException + { + // MHL + return null; + } + + /** Get the data for a given row # and column. */ + public WHValue getValue(int rowNumber, String columnName) + throws WHException + { + // MHL + return null; + } + +} \ No newline at end of file Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/JoinRelationship.java ------------------------------------------------------------------------------ svn:keywords = Id Added: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java?rev=1201436&view=auto ============================================================================== --- incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java (added) +++ incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java Sun Nov 13 15:07:23 2011 @@ -0,0 +1,48 @@ +/* $Id$ */ + +/** +* 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.warthog.interfaces; + +/** This relationship type represents the results of a query. +*/ +public class QueryRelationship implements WHRelationship +{ + protected WHQueryResult queryResult; + + /** Constructor */ + public QueryRelationship(WHQueryResult queryResult) + { + this.queryResult = queryResult; + } + + /** Get the column names represented by the relationship. */ + public String[] getColumnNames() + throws WHException + { + return queryResult.getColumnNames(); + } + + /** Get the data for a given row # and column. */ + public WHValue getValue(int rowNumber, String columnName) + throws WHException + { + return queryResult.getValue(rowNumber, columnName); + } + +} \ No newline at end of file Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/QueryRelationship.java ------------------------------------------------------------------------------ svn:keywords = Id Added: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java?rev=1201436&view=auto ============================================================================== --- incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java (added) +++ incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java Sun Nov 13 15:07:23 2011 @@ -0,0 +1,47 @@ +/* $Id$ */ + +/** +* 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.warthog.interfaces; + +/** This relationship represents a simple table. +*/ +public class TableRelationship implements WHRelationship +{ + protected WHTable table; + + /** Constructor */ + public TableRelationship(WHTable table) + { + this.table = table; + } + + /** Get the column names represented by the relationship. */ + public String[] getColumnNames() + throws WHException + { + return table.getColumnNames(); + } + + /** Get the data for a given row # and column. */ + public WHValue getValue(int rowNumber, String columnName) + throws WHException + { + return table.getValue(rowNumber,columnName); + } +} Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/branches/CONNECTORS-286/warthog/src/main/java/org/apache/warthog/interfaces/TableRelationship.java ------------------------------------------------------------------------------ svn:keywords = Id