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

com.pivotal.gemfirexd.internal.shared.common.RangeRoutingObjectInfo Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version
/*
 * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
 *
 * Licensed 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. See accompanying
 * LICENSE file.
 */
package com.pivotal.gemfirexd.internal.shared.common;

import java.sql.SQLException;


/**
 * 
 * @author kneeraj
 * 
 */
public class RangeRoutingObjectInfo extends AbstractRoutingObjectInfo {

  private ColumnRoutingObjectInfo lowerBound;

  private boolean lowerBoundInclusive;

  private ColumnRoutingObjectInfo upperBound;

  private boolean upperBoundInclusive;

  public RangeRoutingObjectInfo(int isParameter, ColumnRoutingObjectInfo lowerBound,
      boolean lowerBoundInclusive, ColumnRoutingObjectInfo upperBound,
      boolean upperBoundInclusive, Object resolver) {
    super(isParameter, null, resolver);
    this.lowerBound = lowerBound;
    this.lowerBoundInclusive = lowerBoundInclusive;
    this.upperBound = upperBound;
    this.upperBoundInclusive = upperBoundInclusive;
    // TODO Auto-generated constructor stub
  }

  public int computeHashCode(int hash, int resolverType, boolean requiresSerializedHash) {
    // TODO Auto-generated method stub
    return 0;
  }

  public void setActualValue(Object val) {
    // TODO Auto-generated method stub
    
  }

  public int getTypeFormatId() {
    // TODO Auto-generated method stub
    return 0;
  }

  public Object getActualValue() {
    // TODO Auto-generated method stub
    return null;
  }

  public int dvdEquivalenthashCode() {
    // TODO Auto-generated method stub
    return 0;
  }

  public void setActualValue(Object[] parameters, Converter crossConverter) throws SQLException {
    if (this.lowerBound != null) {
      this.lowerBound.setActualValue(parameters, crossConverter);
    }
    if (this.upperBound != null) {
      this.upperBound.setActualValue(parameters, null);
    }
  }

  public static void dummy() {
  }
//  @Override
//  public Object getRoutingObject(Object value, ClientResolver resolver) {
//    // TODO Auto-generated method stub
//    return null;
//  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy