public static class MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings extends MetaObjectCophirKeywords
MetaObjectCophirKeywords.CophirWeightedCosineDistanceFunction, MetaObjectCophirKeywords.MetaObjectCophirKeywordsDistCosine, MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
keywordStrings
objects
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectCophirKeywordsWithTKStrings loaded from binary input buffer.
|
|
MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.io.BufferedReader stream)
Creates a new instance of MetaObjectCophirKeywordsWithTKStrings from a stream.
|
|
MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.io.BufferedReader stream,
int wordLines,
int keywordStringLines)
Creates a new instance of MetaObjectCophirKeywordsWithTKStrings from a stream.
|
|
MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(MetaObjectCophirKeywords object)
Creates a new instance of MetaObjectCophirKeywordsWithTKStrings from the given
MetaObjectCophirKeywords . |
|
MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends LocalAbstractObject> objects,
java.lang.String[] keywordStrings)
Creates a new instance of MetaObjectCophirKeywordsWithTKStrings with the given encapsulated objects.
|
Modifier and Type | Method and Description |
---|---|
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
getDescriptorNames, getKeywordsObject, getMaxDistance, getObjectName, getStringData, getStringData, getStringDataFields, getWeight, getWeights, wrapWithKwStringSerialization, wrapWithTitleOnlySerialization, writeData
getDistanceImpl
createClassArray, getObject, getObject, getObjectCount, getObjectMap, getObjectNames, getObjects, readObjects
clearSurplusData, containsObject, createMetaDistancesHolder, createSearchMetaObject, dataEquals, dataHashCode, fillMetaDistances, fillMetaDistances, getDistanceImpl, getObjectFromMap, getSize, implementationGetDistance, readObject, readObject, readObjects, readObjects, readObjectsHeader, toString, writeObjects, writeObjectsHeader
clone, clone, cloneRandomlyModify, create, create, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, getDistanceUpperBoundImpl, getFieldsForNames, getNormDistance, getPrecomputedDistance, getPrecomputedDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, isDistanceCompatible, parseObjectComment, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
public MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(MetaObjectCophirKeywords object)
MetaObjectCophirKeywords
.
The locator, the attributes and the encapsulated objects from the source object
are
taken.object
- the source metaobject from which to get the datapublic MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends LocalAbstractObject> objects, java.lang.String[] keywordStrings)
locatorURI
- the locator URI for the new objectobjects
- the encapsulated objects to add (keys should match the MetaObjectCophirKeywords.descriptorNames
)keywordStrings
- the keyword strings that are represented by the keyword identifiers multi-vectorpublic MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.io.BufferedReader stream) throws java.io.IOException
stream
- text stream to read the data fromjava.io.IOException
- when an error appears during reading from given stream;
EOFException
is thrown when end-of-file of the given stream is reachedjava.lang.NumberFormatException
- when the line with the descriptor is not validpublic MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(java.io.BufferedReader stream, int wordLines, int keywordStringLines) throws java.io.IOException, java.lang.NumberFormatException
stream
- text stream to read the data fromwordLines
- number of lines the keyword identifiers are stored on (zero, one, or multiple)keywordStringLines
- number of lines the keyword strings are stored on (zero, one, or multiple)java.io.IOException
- when an error appears during reading from given stream;
EOFException
is thrown when end-of-file of the given stream is reachedjava.lang.NumberFormatException
- when the line with the descriptor is not validprotected MetaObjectCophirKeywords.MetaObjectCophirKeywordsWithTKStrings(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the MetaObjectProfiSCTWithTKStrings fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic int getBinarySize(BinarySerializator serializator)
LocalAbstractObject
getBinarySize
in interface BinarySerializable
getBinarySize
in class MetaObjectArray
serializator
- the serializator used to write objectspublic int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
LocalAbstractObject
output
.binarySerialize
in interface BinarySerializable
binarySerialize
in class MetaObjectArray
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serialization