HBASE-18739 Make all TimeRange Constructors InterfaceAudience Private
This commit is contained in:
parent
a253e87704
commit
9dd458a8c7
|
@ -29,7 +29,8 @@ import org.apache.hadoop.hbase.util.Bytes;
|
||||||
* Evaluated according to minStamp <= timestamp < maxStamp
|
* Evaluated according to minStamp <= timestamp < maxStamp
|
||||||
* or [minStamp,maxStamp) in interval notation.
|
* or [minStamp,maxStamp) in interval notation.
|
||||||
* <p>
|
* <p>
|
||||||
* Only used internally; should not be accessed directly by clients.
|
* Can be returned and read by clients. Should not be directly created by clients.
|
||||||
|
* Thus, all constructors are purposely @InterfaceAudience.Private.
|
||||||
*<p>Immutable. Thread-safe.
|
*<p>Immutable. Thread-safe.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Public
|
||||||
|
@ -43,9 +44,11 @@ public class TimeRange {
|
||||||
/**
|
/**
|
||||||
* Default constructor.
|
* Default constructor.
|
||||||
* Represents interval [0, Long.MAX_VALUE) (allTime)
|
* Represents interval [0, Long.MAX_VALUE) (allTime)
|
||||||
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above
|
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be
|
||||||
|
* changed to private or removed in 3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@InterfaceAudience.Private
|
||||||
public TimeRange() {
|
public TimeRange() {
|
||||||
this(INITIAL_MIN_TIMESTAMP, INITIAL_MAX_TIMESTAMP);
|
this(INITIAL_MIN_TIMESTAMP, INITIAL_MAX_TIMESTAMP);
|
||||||
}
|
}
|
||||||
|
@ -53,9 +56,11 @@ public class TimeRange {
|
||||||
/**
|
/**
|
||||||
* Represents interval [minStamp, Long.MAX_VALUE)
|
* Represents interval [minStamp, Long.MAX_VALUE)
|
||||||
* @param minStamp the minimum timestamp value, inclusive
|
* @param minStamp the minimum timestamp value, inclusive
|
||||||
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above
|
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be
|
||||||
|
* changed to private or removed in 3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@InterfaceAudience.Private
|
||||||
public TimeRange(long minStamp) {
|
public TimeRange(long minStamp) {
|
||||||
this(minStamp, INITIAL_MAX_TIMESTAMP);
|
this(minStamp, INITIAL_MAX_TIMESTAMP);
|
||||||
}
|
}
|
||||||
|
@ -63,9 +68,11 @@ public class TimeRange {
|
||||||
/**
|
/**
|
||||||
* Represents interval [minStamp, Long.MAX_VALUE)
|
* Represents interval [minStamp, Long.MAX_VALUE)
|
||||||
* @param minStamp the minimum timestamp value, inclusive
|
* @param minStamp the minimum timestamp value, inclusive
|
||||||
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above
|
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be
|
||||||
|
* changed to private or removed in 3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@InterfaceAudience.Private
|
||||||
public TimeRange(byte [] minStamp) {
|
public TimeRange(byte [] minStamp) {
|
||||||
this(Bytes.toLong(minStamp));
|
this(Bytes.toLong(minStamp));
|
||||||
}
|
}
|
||||||
|
@ -74,9 +81,11 @@ public class TimeRange {
|
||||||
* Represents interval [minStamp, maxStamp)
|
* Represents interval [minStamp, maxStamp)
|
||||||
* @param minStamp the minimum timestamp, inclusive
|
* @param minStamp the minimum timestamp, inclusive
|
||||||
* @param maxStamp the maximum timestamp, exclusive
|
* @param maxStamp the maximum timestamp, exclusive
|
||||||
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above
|
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be
|
||||||
|
* changed to private or removed in 3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@InterfaceAudience.Private
|
||||||
public TimeRange(byte [] minStamp, byte [] maxStamp) {
|
public TimeRange(byte [] minStamp, byte [] maxStamp) {
|
||||||
this(Bytes.toLong(minStamp), Bytes.toLong(maxStamp));
|
this(Bytes.toLong(minStamp), Bytes.toLong(maxStamp));
|
||||||
}
|
}
|
||||||
|
@ -86,9 +95,11 @@ public class TimeRange {
|
||||||
* @param minStamp the minimum timestamp, inclusive
|
* @param minStamp the minimum timestamp, inclusive
|
||||||
* @param maxStamp the maximum timestamp, exclusive
|
* @param maxStamp the maximum timestamp, exclusive
|
||||||
* @throws IllegalArgumentException if either <0,
|
* @throws IllegalArgumentException if either <0,
|
||||||
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above
|
* @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be
|
||||||
|
* changed to private or removed in 3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@InterfaceAudience.Private
|
||||||
public TimeRange(long minStamp, long maxStamp) {
|
public TimeRange(long minStamp, long maxStamp) {
|
||||||
check(minStamp, maxStamp);
|
check(minStamp, maxStamp);
|
||||||
this.minStamp = minStamp;
|
this.minStamp = minStamp;
|
||||||
|
|
Loading…
Reference in New Issue