Package org.apache.lucene.index
Record Class StoredFieldDataInput
java.lang.Object
java.lang.Record
org.apache.lucene.index.StoredFieldDataInput
- Record Components:
in
- the data inputlength
- the length of the data input
A fixed size DataInput which includes the length of the input. For use as a StoredField.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionStoredFieldDataInput
(ByteArrayDataInput byteArrayDataInput) Creates a StoredFieldDataInput from a ByteArrayDataInputStoredFieldDataInput
(DataInput in, int length) Creates an instance of aStoredFieldDataInput
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the data inputint
Returns the length of the data inputfinal int
hashCode()
Returns a hash code value for this object.in()
Returns the value of thein
record component.int
length()
Returns the value of thelength
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
getDataInput
Returns the data input -
getLength
public int getLength()Returns the length of the data input -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
in
Returns the value of thein
record component.- Returns:
- the value of the
in
record component
-
length
public int length()Returns the value of thelength
record component.- Returns:
- the value of the
length
record component
-