Package org.apache.orc.impl
Class ReaderImpl.StripeInformationImpl
java.lang.Object
org.apache.orc.impl.ReaderImpl.StripeInformationImpl
- All Implemented Interfaces:
StripeInformation
- Enclosing class:
- ReaderImpl
-
Constructor Summary
ConstructorsConstructorDescriptionStripeInformationImpl(OrcProto.StripeInformation stripe, long stripeId, long previousOriginalStripeId, byte[][] previousKeys) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongGet the length of the stripe's data.byte[][]Get the encrypted keys starting from this stripe until overridden by a new set in a following stripe.longGet the original stripe id that was used when the stripe was originally written.longGet the length of the stripe's tail section, which contains its index.longGet the length of the stripe's indexes.longGet the total length of the stripe in bytes.longGet the number of rows in the stripe.longGet the byte offset of the start of the stripe.longGet the index of this stripe in the current file.booleanDoes this stripe have an explicit encryption stripe id set?inthashCode()toString()
-
Constructor Details
-
StripeInformationImpl
public StripeInformationImpl(OrcProto.StripeInformation stripe, long stripeId, long previousOriginalStripeId, byte[][] previousKeys)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getOffset
public long getOffset()Description copied from interface:StripeInformationGet the byte offset of the start of the stripe.- Specified by:
getOffsetin interfaceStripeInformation- Returns:
- the bytes from the start of the file
-
getLength
public long getLength()Description copied from interface:StripeInformationGet the total length of the stripe in bytes.- Specified by:
getLengthin interfaceStripeInformation- Returns:
- the number of bytes in the stripe
-
getDataLength
public long getDataLength()Description copied from interface:StripeInformationGet the length of the stripe's data.- Specified by:
getDataLengthin interfaceStripeInformation- Returns:
- the number of bytes in the stripe
-
getIndexLength
public long getIndexLength()Description copied from interface:StripeInformationGet the length of the stripe's indexes.- Specified by:
getIndexLengthin interfaceStripeInformation- Returns:
- the number of bytes in the index
-
getNumberOfRows
public long getNumberOfRows()Description copied from interface:StripeInformationGet the number of rows in the stripe.- Specified by:
getNumberOfRowsin interfaceStripeInformation- Returns:
- a count of the number of rows
-
getStripeId
public long getStripeId()Description copied from interface:StripeInformationGet the index of this stripe in the current file.- Specified by:
getStripeIdin interfaceStripeInformation- Returns:
- 0 to number_of_stripes - 1
-
hasEncryptionStripeId
public boolean hasEncryptionStripeId()Description copied from interface:StripeInformationDoes this stripe have an explicit encryption stripe id set?- Specified by:
hasEncryptionStripeIdin interfaceStripeInformation- Returns:
- true if this stripe was the first stripe of a merge
-
getEncryptionStripeId
public long getEncryptionStripeId()Description copied from interface:StripeInformationGet the original stripe id that was used when the stripe was originally written. This is only different that getStripeId in merged files.- Specified by:
getEncryptionStripeIdin interfaceStripeInformation- Returns:
- the original stripe id + 1
-
getEncryptedLocalKeys
public byte[][] getEncryptedLocalKeys()Description copied from interface:StripeInformationGet the encrypted keys starting from this stripe until overridden by a new set in a following stripe. The top level array is one for each encryption variant. Each element is an encrypted key.- Specified by:
getEncryptedLocalKeysin interfaceStripeInformation- Returns:
- the array of encrypted keys
-
toString
-