@java.lang.Override public feast.serving.ServingAPIProto.TimestampRange buildPartial() { feast.serving.ServingAPIProto.TimestampRange result = new feast.serving.ServingAPIProto.TimestampRange(this); if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } if (endBuilder_ == null) { result.end_ = end_; } else { result.end_ = endBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.QueryFeatures.Request)) { return super.equals(obj); } feast.serving.ServingAPIProto.QueryFeatures.Request other = (feast.serving.ServingAPIProto.QueryFeatures.Request) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); result = result && getEntityIdList() .equals(other.getEntityIdList()); result = result && getRequestDetailsList() .equals(other.getRequestDetailsList()); result = result && (hasTimestampRange() == other.hasTimestampRange()); if (hasTimestampRange()) { result = result && getTimestampRange() .equals(other.getTimestampRange()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * Filter specifying only to retrieve features having timestamp within this range. * </pre> * * <code>.feast.serving.TimestampRange timestampRange = 4;</code> */ public feast.serving.ServingAPIProto.TimestampRangeOrBuilder getTimestampRangeOrBuilder() { if (timestampRangeBuilder_ != null) { return timestampRangeBuilder_.getMessageOrBuilder(); } else { return timestampRange_ == null ? feast.serving.ServingAPIProto.TimestampRange.getDefaultInstance() : timestampRange_; } } /**
String featureId = featureSpec.getId(); byte[] featureIdBytes = featureSpec.getId().getBytes(); String revMilliStart = roundedReversedMillis(tsRange.getStart(), granularity); String revMilliEnd = roundedReversedMillis(tsRange.getEnd(), granularity); scan.setFilter(createMultiRowRangeFilter(entityIds, revMilliStart, revMilliEnd));
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTITYNAME_FIELD_NUMBER; hash = (53 * hash) + getEntityName().hashCode(); if (getEntityIdCount() > 0) { hash = (37 * hash) + ENTITYID_FIELD_NUMBER; hash = (53 * hash) + getEntityIdList().hashCode(); } if (getRequestDetailsCount() > 0) { hash = (37 * hash) + REQUESTDETAILS_FIELD_NUMBER; hash = (53 * hash) + getRequestDetailsList().hashCode(); } if (hasTimestampRange()) { hash = (37 * hash) + TIMESTAMPRANGE_FIELD_NUMBER; hash = (53 * hash) + getTimestampRange().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTITYNAME_FIELD_NUMBER; hash = (53 * hash) + getEntityName().hashCode(); if (getEntityIdCount() > 0) { hash = (37 * hash) + ENTITYID_FIELD_NUMBER; hash = (53 * hash) + getEntityIdList().hashCode(); } if (getRequestDetailsCount() > 0) { hash = (37 * hash) + REQUESTDETAILS_FIELD_NUMBER; hash = (53 * hash) + getRequestDetailsList().hashCode(); } if (hasTimestampRange()) { hash = (37 * hash) + TIMESTAMPRANGE_FIELD_NUMBER; hash = (53 * hash) + getTimestampRange().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTITYNAME_FIELD_NUMBER; hash = (53 * hash) + getEntityName().hashCode(); if (getEntityIdCount() > 0) { hash = (37 * hash) + ENTITYID_FIELD_NUMBER; hash = (53 * hash) + getEntityIdList().hashCode(); } if (getRequestDetailsCount() > 0) { hash = (37 * hash) + REQUESTDETAILS_FIELD_NUMBER; hash = (53 * hash) + getRequestDetailsList().hashCode(); } if (hasTimestampRange()) { hash = (37 * hash) + TIMESTAMPRANGE_FIELD_NUMBER; hash = (53 * hash) + getTimestampRange().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
TimestampRange.newBuilder().setStart(defaultTs).setEnd(defaultTs).build()); } else if (request.getTimestampRange().getStart().getSeconds() == 0 && request.getTimestampRange().getStart().getNanos() == 0) { Timestamp end = request.getTimestampRange().getEnd(); requestBuilder.setTimestampRange( TimestampRange.newBuilder(request.getTimestampRange()).setStart(end)); } else if (request.getTimestampRange().getEnd().getSeconds() == 0 && request.getTimestampRange().getEnd().getNanos() == 0) { requestBuilder.setTimestampRange( TimestampRange.newBuilder(request.getTimestampRange()).setEnd(defaultTs)); Timestamp start = newRequest.getTimestampRange().getStart(); Timestamp end = newRequest.getTimestampRange().getEnd();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.TimestampRange)) { return super.equals(obj); } feast.serving.ServingAPIProto.TimestampRange other = (feast.serving.ServingAPIProto.TimestampRange) obj; boolean result = true; result = result && (hasStart() == other.hasStart()); if (hasStart()) { result = result && getStart() .equals(other.getStart()); } result = result && (hasEnd() == other.hasEnd()); if (hasEnd()) { result = result && getEnd() .equals(other.getEnd()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.QueryFeatures.Request)) { return super.equals(obj); } feast.serving.ServingAPIProto.QueryFeatures.Request other = (feast.serving.ServingAPIProto.QueryFeatures.Request) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); result = result && getEntityIdList() .equals(other.getEntityIdList()); result = result && getRequestDetailsList() .equals(other.getRequestDetailsList()); result = result && (hasTimestampRange() == other.hasTimestampRange()); if (hasTimestampRange()) { result = result && getTimestampRange() .equals(other.getTimestampRange()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.TimestampRange)) { return super.equals(obj); } feast.serving.ServingAPIProto.TimestampRange other = (feast.serving.ServingAPIProto.TimestampRange) obj; boolean result = true; result = result && (hasStart() == other.hasStart()); if (hasStart()) { result = result && getStart() .equals(other.getStart()); } result = result && (hasEnd() == other.hasEnd()); if (hasEnd()) { result = result && getEnd() .equals(other.getEnd()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.QueryFeatures.Request)) { return super.equals(obj); } feast.serving.ServingAPIProto.QueryFeatures.Request other = (feast.serving.ServingAPIProto.QueryFeatures.Request) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); result = result && getEntityIdList() .equals(other.getEntityIdList()); result = result && getRequestDetailsList() .equals(other.getRequestDetailsList()); result = result && (hasTimestampRange() == other.hasTimestampRange()); if (hasTimestampRange()) { result = result && getTimestampRange() .equals(other.getTimestampRange()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.TimestampRange)) { return super.equals(obj); } feast.serving.ServingAPIProto.TimestampRange other = (feast.serving.ServingAPIProto.TimestampRange) obj; boolean result = true; result = result && (hasStart() == other.hasStart()); if (hasStart()) { result = result && getStart() .equals(other.getStart()); } result = result && (hasEnd() == other.hasEnd()); if (hasEnd()) { result = result && getEnd() .equals(other.getEnd()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * Filter specifying only to retrieve features having timestamp within this range. * </pre> * * <code>.feast.serving.TimestampRange timestampRange = 4;</code> */ public feast.serving.ServingAPIProto.TimestampRangeOrBuilder getTimestampRangeOrBuilder() { if (timestampRangeBuilder_ != null) { return timestampRangeBuilder_.getMessageOrBuilder(); } else { return timestampRange_ == null ? feast.serving.ServingAPIProto.TimestampRange.getDefaultInstance() : timestampRange_; } } /**
/** * <pre> * Filter specifying only to retrieve features having timestamp within this range. * </pre> * * <code>.feast.serving.TimestampRange timestampRange = 4;</code> */ public feast.serving.ServingAPIProto.TimestampRangeOrBuilder getTimestampRangeOrBuilder() { if (timestampRangeBuilder_ != null) { return timestampRangeBuilder_.getMessageOrBuilder(); } else { return timestampRange_ == null ? feast.serving.ServingAPIProto.TimestampRange.getDefaultInstance() : timestampRange_; } } /**
@java.lang.Override public feast.serving.ServingAPIProto.TimestampRange buildPartial() { feast.serving.ServingAPIProto.TimestampRange result = new feast.serving.ServingAPIProto.TimestampRange(this); if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } if (endBuilder_ == null) { result.end_ = end_; } else { result.end_ = endBuilder_.build(); } onBuilt(); return result; }