es.yrbcn.graph.weighted
Class FixedWidthFloatLabel
java.lang.Object
it.unimi.dsi.webgraph.labelling.AbstractLabel
es.yrbcn.graph.weighted.AbstractFloatLabel
es.yrbcn.graph.weighted.FixedWidthFloatLabel
- All Implemented Interfaces:
- it.unimi.dsi.lang.FlyweightPrototype<Label>, Label
public class FixedWidthFloatLabel
- extends AbstractFloatLabel
An integer represented in fixed width. The provided width must
be smaller than 32.
Methods inherited from class es.yrbcn.graph.weighted.AbstractFloatLabel |
attributeKeys, attributeTypes, equals, get, get, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, hashCode, wellKnownAttributeKey |
FixedWidthFloatLabel
public FixedWidthFloatLabel(String key,
float value)
- Creates a new fixed-width float label.
- Parameters:
key
- the (only) key of this label.value
- the value of this label.
FixedWidthFloatLabel
public FixedWidthFloatLabel(String key)
- Creates a new fixed-width int label of value 0.
- Parameters:
key
- the (only) key of this label.width
- the label width (in bits).
FixedWidthFloatLabel
public FixedWidthFloatLabel(String... arg)
copy
public FixedWidthFloatLabel copy()
fromBitStream
public int fromBitStream(it.unimi.dsi.io.InputBitStream inputBitStream,
int sourceUnused)
throws IOException
- Throws:
IOException
toBitStream
public int toBitStream(it.unimi.dsi.io.OutputBitStream outputBitStream,
int sourceUnused)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class AbstractFloatLabel
toSpec
public String toSpec()
fixedWidth
public int fixedWidth()