trait Url extends ThriftStruct with Product6[String, String, String, String, Option[SignificantSite], Boolean] with HasThriftStructCodec3[Url] with Serializable
Prefer the companion object's ophan.thrift.event.Url.apply for construction if you don't need to specify passthrough fields.
- Alphabetic
- By Inheritance
- Url
- Serializable
- HasThriftStructCodec3
- Product6
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
domain: String
the domain of this url.
the domain of this url.
This is the host stripped down to one level below the top level domain.
e.g. www.theguardian.com => theguardian.com news.google.co.uk => google.co.uk membership.theguardian.com => theguardian.com
-
abstract
def
host: String
the host of this url with no parsing or normalisation performed.
the host of this url with no parsing or normalisation performed.
Be careful about using the value of this field: almost certainly you want to use the combination of domain and path instead, which are cleared of non-significant variation.
-
abstract
def
path: String
The path served on the given host, without query strings or fragment identifiers.
The path served on the given host, without query strings or fragment identifiers.
For guardian urls, processing is performed on the path - especially for the native mobile apps - to try to make the url match up with those on www.theguardian.com
Path will always start with a /.
-
abstract
def
raw: String
The full raw URL as provided to ophan, potentially including query string and fragment identifier
The full raw URL as provided to ophan, potentially including query string and fragment identifier
Be careful about using the value of this field: almost certainly you want to use the combination of domain and path instead, which are cleared of non-significant variation.
-
abstract
def
site: Option[SignificantSite]
Indicates sites that we really care about, factoring out the variation on domain that they sometimes contain.
Indicates sites that we really care about, factoring out the variation on domain that they sometimes contain.
Note that were this url represents a page on a site that we don't consider significant, this value will be unpopulated. You should probably use domain to aggregate in that case.
-
abstract
def
synthesised: Boolean
Indicates whether this url was synthesised in some way by ophan
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: String
- Definition Classes
- Url → Product6
-
def
_2: String
- Definition Classes
- Url → Product6
-
def
_3: String
- Definition Classes
- Url → Product6
-
def
_4: String
- Definition Classes
- Url → Product6
-
def
_5: Option[SignificantSite]
- Definition Classes
- Url → Product6
-
def
_6: Boolean
- Definition Classes
- Url → Product6
-
def
_codec: ThriftStructCodec3[Url]
- Definition Classes
- Url → HasThriftStructCodec3
- def _passthroughFields: Map[Short, TFieldBlob]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- Url → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def copy(raw: String = this.raw, host: String = this.host, domain: String = this.domain, path: String = this.path, site: Option[SignificantSite] = this.site, synthesised: Boolean = this.synthesised, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): Url
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Url → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFieldBlob(_fieldId: Short): Option[TFieldBlob]
Gets a field value encoded as a binary blob using TCompactProtocol.
Gets a field value encoded as a binary blob using TCompactProtocol. If the specified field is present in the passthrough map, that value is returned. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.
-
def
getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]
Collects TCompactProtocol-encoded field values according to
getFieldBlob
into a map. -
def
hashCode(): Int
- Definition Classes
- Url → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productArity: Int
- Definition Classes
- Url → Product6 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- Url → Product6 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Url → Product
-
def
setField(_blob: TFieldBlob): Url
Sets a field using a TCompactProtocol-encoded binary blob.
Sets a field using a TCompactProtocol-encoded binary blob. If the field is a known field, the blob is decoded and the field is set to the decoded value. If the field is unknown and passthrough fields are enabled, then the blob will be stored in _passthroughFields.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Url → AnyRef → Any
- def toTuple: (String, String, String, String, Option[SignificantSite], Boolean)
- def unsetDomain: Url
-
def
unsetField(_fieldId: Short): Url
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- def unsetHost: Url
- def unsetPath: Url
-
def
unsetRaw: Url
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- def unsetSite: Url
- def unsetSynthesised: Url
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write(_oprot: TProtocol): Unit
- Definition Classes
- Url → ThriftStruct