public class MetaFinderMeta
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
long |
count |
long |
freq |
java.lang.String |
meta |
java.util.List<MetaFinderSourceFreq> |
metaFinderSourceFreq |
java.lang.String |
normalizedMeta |
Constructor and Description |
---|
MetaFinderMeta() |
MetaFinderMeta(MetaFinderMeta o)
Copy constructor
|
MetaFinderMeta(java.lang.String meta) |
MetaFinderMeta(java.lang.String meta,
java.lang.String normalizedMeta) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MetaFinderMeta.
|
static MetaFinderMeta |
fromString(java.lang.String s)
String representation of this MetaFinderMeta.
|
long |
getCount()
Global occurrence count of this meta, i.e., the sum of all per-source occurrence count
|
long |
getFreq()
Global frequency of this meta, i.e., the sum of all per-source frequencies
|
java.lang.String |
getMeta()
The meta name.
|
java.util.List<MetaFinderSourceFreq> |
getMetaFinderSourceFreq()
List of sources providing this meta, associated with its frequency
|
java.lang.String |
getNormalizedMeta()
The normalized ([a-z0-9_]+) meta name
|
MetaFinderMeta |
makeCopy()
Creates and returns a deep copy of this MetaFinderMeta.
|
static MetaFinderMeta |
readFrom(java.io.InputStream is)
Read this MetaFinderMeta from an XML fragment.
|
void |
setCount(long count)
Global occurrence count of this meta, i.e., the sum of all per-source occurrence count
|
void |
setFreq(long freq)
Global frequency of this meta, i.e., the sum of all per-source frequencies
|
void |
setMeta(java.lang.String meta)
The meta name.
|
void |
setNormalizedMeta(java.lang.String normalizedMeta)
The normalized ([a-z0-9_]+) meta name
|
java.lang.String |
toString()
String representation of this MetaFinderMeta.
|
MetaFinderMeta |
withCount(long count) |
MetaFinderMeta |
withCount(java.lang.Long count) |
MetaFinderMeta |
withFreq(long freq) |
MetaFinderMeta |
withFreq(java.lang.Long freq) |
MetaFinderMeta |
withMeta(java.lang.String meta) |
MetaFinderMeta |
withMetaFinderSourceFreq(java.util.Collection<MetaFinderSourceFreq> __values) |
MetaFinderMeta |
withMetaFinderSourceFreq(MetaFinderSourceFreq... __values)
List of sources providing this meta, associated with its frequency
|
MetaFinderMeta |
withNormalizedMeta(java.lang.String normalizedMeta) |
void |
writeTo(java.io.OutputStream os)
Write this MetaFinderMeta as an XML fragment
|
public java.lang.String meta
public java.lang.String normalizedMeta
public java.util.List<MetaFinderSourceFreq> metaFinderSourceFreq
public long freq
public long count
public MetaFinderMeta()
public MetaFinderMeta(java.lang.String meta)
public MetaFinderMeta(java.lang.String meta, java.lang.String normalizedMeta)
public MetaFinderMeta(MetaFinderMeta o)
public void setMeta(java.lang.String meta)
public java.lang.String getMeta()
public MetaFinderMeta withMeta(java.lang.String meta)
public void setNormalizedMeta(java.lang.String normalizedMeta)
public java.lang.String getNormalizedMeta()
public MetaFinderMeta withNormalizedMeta(java.lang.String normalizedMeta)
public java.util.List<MetaFinderSourceFreq> getMetaFinderSourceFreq()
public MetaFinderMeta withMetaFinderSourceFreq(MetaFinderSourceFreq... __values)
public MetaFinderMeta withMetaFinderSourceFreq(java.util.Collection<MetaFinderSourceFreq> __values)
public void setFreq(long freq)
public long getFreq()
public MetaFinderMeta withFreq(long freq)
public MetaFinderMeta withFreq(java.lang.Long freq)
public void setCount(long count)
public long getCount()
public MetaFinderMeta withCount(long count)
public MetaFinderMeta withCount(java.lang.Long count)
public MetaFinderMeta makeCopy()
public static MetaFinderMeta readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static MetaFinderMeta fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.