public static final class CannedBinaryTokenStream.BinaryTermAttributeImpl extends AttributeImpl implements CannedBinaryTokenStream.BinaryTermAttribute, TermToBytesRefAttribute
CannedBinaryTokenStream.BinaryTermAttribute
.Constructor and Description |
---|
BinaryTermAttributeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its
default value.
|
CannedBinaryTokenStream.BinaryTermAttributeImpl |
clone()
Shallow clone.
|
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in
target attribute.
|
boolean |
equals(Object other) |
void |
fillBytesRef()
Updates the bytes
TermToBytesRefAttribute.getBytesRef() to contain this term's
final encoding. |
BytesRef |
getBytesRef()
Retrieve this attribute's BytesRef.
|
int |
hashCode() |
void |
setBytesRef(BytesRef bytes)
Set the current binary value.
|
reflectAsString, reflectWith
public void fillBytesRef()
TermToBytesRefAttribute
TermToBytesRefAttribute.getBytesRef()
to contain this term's
final encoding.fillBytesRef
in interface TermToBytesRefAttribute
public BytesRef getBytesRef()
TermToBytesRefAttribute
TermToBytesRefAttribute.fillBytesRef()
.getBytesRef
in interface TermToBytesRefAttribute
public void setBytesRef(BytesRef bytes)
CannedBinaryTokenStream.BinaryTermAttribute
setBytesRef
in interface CannedBinaryTokenStream.BinaryTermAttribute
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
public CannedBinaryTokenStream.BinaryTermAttributeImpl clone()
AttributeImpl
clone
in class AttributeImpl
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.