forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Move out Range from the visitor params
- Loading branch information
Pindikura Ravindra
committed
Aug 31, 2019
1 parent
7482414
commit 073bc78
Showing
9 changed files
with
309 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
java/vector/src/main/java/org/apache/arrow/vector/compare/Range.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* 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.arrow.vector.compare; | ||
|
||
/** | ||
* Wrapper for the parameters of comparing a range of values in two vectors. | ||
*/ | ||
public class Range { | ||
|
||
/** | ||
* Start position in the left vector. | ||
*/ | ||
private int leftStart = -1; | ||
|
||
/** | ||
* Start position in the right vector. | ||
*/ | ||
private int rightStart = -1; | ||
|
||
/** | ||
* Length of the range. | ||
*/ | ||
private int length = -1; | ||
|
||
|
||
/** | ||
* Constructs a new instance. | ||
*/ | ||
public Range() {} | ||
|
||
/** | ||
* Constructs a new instance. | ||
* | ||
* @param leftStart start index in left vector | ||
* @param rightStart start index in right vector | ||
* @param length length of range | ||
*/ | ||
public Range(int leftStart, int rightStart, int length) { | ||
this.leftStart = leftStart; | ||
this.rightStart = rightStart; | ||
this.length = length; | ||
} | ||
|
||
public int getLeftStart() { | ||
return leftStart; | ||
} | ||
|
||
public int getRightStart() { | ||
return rightStart; | ||
} | ||
|
||
public int getLength() { | ||
return length; | ||
} | ||
|
||
public Range setLeftStart(int leftStart) { | ||
this.leftStart = leftStart; | ||
return this; | ||
} | ||
|
||
public Range setRightStart(int rightStart) { | ||
this.rightStart = rightStart; | ||
return this; | ||
} | ||
|
||
public Range setLength(int length) { | ||
this.length = length; | ||
return this; | ||
} | ||
} |
146 changes: 0 additions & 146 deletions
146
java/vector/src/main/java/org/apache/arrow/vector/compare/RangeEqualsParameter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.